You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

295 lines
11 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>ERC721A</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<link rel="icon" href="assets/img/favicon.png">
<meta property="og:title" content="ERC721A Documentation">
<meta property="og:description" content="Mint multiple NFTs for close to the cost of one.">
<meta property="og:image" content="https://chiru-labs.github.io/ERC721A/assets/img/preview.png">
<meta property="og:image:url" content="https://chiru-labs.github.io/ERC721A/assets/img/preview.png">
<meta property="twitter:image" content="https://chiru-labs.github.io/ERC721A/assets/img/preview.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="1200">
<meta property="og:image:alt" content="ERC721A Documentation">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Poppins:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//unpkg.com/docsify-themeable@0.8.6/dist/css/theme-simple.css" crossorigin="anonymous"/>
<link rel="stylesheet" href="assets/logo/stylesheet.css"/>
<link rel="stylesheet" href="assets/fontello/css/fontello.css"/>
<style type="text/css">
/* !important attributes are for consistency in dark theme */
:root {
--theme-hue: 355;
--theme-saturation: 57%;
--theme-lightness: 48%;
--theme-color: #c03541 !important;
--base-font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--sidebar-nav-pagelink-background-image--loaded: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.2' height='7' viewBox='0 0 11.2 7'%3E%3Cpath d='M1.5 1.5l4.1 4 4.1-4' stroke-width='1.5' stroke='rgb%28192,53,64%29' fill='none' stroke-linecap='square' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
--sidebar-nav-pagelink-background-image--active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11.2' height='7' viewBox='0 0 11.2 7'%3E%3Cpath d='M1.5 1.5l4.1 4 4.1-4' stroke-width='1.5' stroke='rgb%28192,53,64%29' fill='none' stroke-linecap='square' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
--sidebar-nav-pagelink-background-image--collapse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11.2' viewBox='0 0 7 11.2'%3E%3Cpath d='M1.5 1.5l4 4.1 -4 4.1' stroke-width='1.5' stroke='rgb%28192,53,64%29' fill='none' stroke-linecap='square' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
--search-input-background-image: url("data:image/svg+xml,%3Csvg height='20px' width='20px' viewBox='0 0 24 24' fill='none' stroke='rgba%28128,128,128,0.6%29' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' preserveAspectRatio='xMidYMid meet' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5' vector-effect='non-scaling-stroke'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='15.8' y2='15.8' vector-effect='non-scaling-stroke'%3E%3C/line%3E%3C/svg%3E");
}
.clear-button.show svg circle {
fill: rgba(128,128,128,0.5) !important;
}
.sidebar .search input:focus {
box-shadow: none !important;
}
.sidebar .search .input-wrap:hover {
transition: 0.2s border-color;
border-color: rgba(192,53,64,0.7);
}
.sidebar .search .input-wrap.focus {
border-color: rgba(192,53,64,0.7);
box-shadow: 0 0 3px 1px rgba(192,53,64,0.3);
}
.sidebar-nav > ul > li > ul > li > ul > li > a {
font-weight: 600 !important;
}
.sidebar-nav > ul > li > ul > li > ul > li > a::before {
display: none !important;
}
.sidebar > h1 .app-name-link {
font-family: "Styrene B";
font-size: 1.6em;
line-height: 1;
color: #000;
}
.sidebar > h1 .app-name-link b {
font-weight: bold;
color: #d8113d;
}
.sidebar {
background: #eeedeb;
}
.sidebar-toggle-button {
background: #e4e3e1;
}
.markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6 {
color: #000;
font-family : "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
#theme {
text-align: justify;
margin-bottom: -8px;
}
#theme .choice {
box-sizing: border-box;
padding: 0;
margin: 0;
display: inline-block;
width: 33%;
cursor: pointer;
text-align: center;
}
#theme .choice:hover, #theme .choice.active {
transition: 0.2s color;
color: var(--theme-color);
}
#theme .choice .icon {
font-size: 1.3em;
margin: -3px 0 -5px 0;
}
#theme .choice .text {
font-size: 0.6em;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
.s0cial {
font-size: 0.88em;
margin-top: 1px;
margin-bottom: 1px;
}
.s0cial i:before {
font-size: 1.38em;
margin-right: 10px;
transform: translateY(1.2px);
}
.copyright {
font-size: 0.7em;
text-align: center;
margin-top: 23px;
opacity: 0.6;
}
</style>
<link rel="stylesheet" href="assets/css/prism-theme.css"/>
</head>
<body>
<div id="app"></div>
<script type="text/javascript">
window.$docsify = {
name: 'ERC721<b>A</b>',
repo: 'https://github.com/chiru-labs/ERC721A',
coverpage: false,
homepage: 'overview.md',
loadSidebar: 'sidebar.md',
auto2top: true,
maxLevel: 3,
subMaxLevel: 3,
search: {
depth: 3,
noData: 'No results!',
placeholder: 'Search...'
},
themeable: {
readyTransition : false,
responsiveTables: true
}
}
</script>
<script src="//unpkg.com/docsify@4.12.2/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify-themeable@0.8.6"></script>
<script src="//unpkg.com/docsify@4.12.2/lib/plugins/search.js"></script>
<script src="//unpkg.com/darkreader@4.9.34"></script>
<script type="text/javascript">
(function () {
var smoothScroll = function (scrollFrom, scrollTo, duration) {
var timePassed = 0, step = 15, interval, tick = function () {
if (timePassed >= duration) {
window.scrollTo(0, scrollTo);
clearInterval(interval);
} else {
window.scrollTo(0, scrollFrom + ~~((scrollTo - scrollFrom) * (timePassed / duration)));
}
timePassed += step;
};
tick();
interval = setInterval(tick, step);
}, t, r, y, clickCallback = function (e) {
for (t = e.target; t; t = t.parentElement) {
if ((t.tagName.toUpperCase() == 'A') &&
(r = t.getAttribute('href')) &&
(r = (''+r).match('#(.*)')) &&
(window.location.hash == r[0]) &&
(r = r[0].match(/\?id=(.+?)$/)) &&
(t = document.querySelector('#'+r[1].toLowerCase()))
) {
y = t.getBoundingClientRect().top, yo = window.pageYOffset;
smoothScroll(yo, y + yo, 300);
return;
}
}
};
document.addEventListener('click', clickCallback);
})();
// Solidity syntax highlighting via Prism.
Prism.languages.solidity=Prism.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),Prism.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),Prism.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),Prism.languages.sol=Prism.languages.solidity;
// Dark mode via darkreader.
var exponentialWait = function (callback, startDelay, multiplier) {
var delay = startDelay || 30;
var waiter = function () {
if (!callback()) {
delay *= (multiplier || 2);
setTimeout(waiter, delay);
}
};
waiter();
};
var setupTheme = function () {
DarkReader.setFetchMethod(window.fetch);
var lsThemeKey = 'erc721a_theme';
var getLsTheme = function () {
return window.localStorage.getItem(lsThemeKey)
};
var setLsTheme = function (name) {
window.localStorage.setItem(lsThemeKey, name)
};
var drSettings = {
brightness: 100,
contrast: 100,
sepia: 0
};
var getChoiceEl = function (name) {
return document.querySelector('#theme .choice[name=' + name + ']');
};
var currentTheme = 0;
var getChoiceEls = function () {
return document.querySelectorAll('#theme .choice');
};
var setElActive = function (el, active) {
if (!el) return;
if (active) {
el.className += ' active';
} else {
el.className = el.className.replace(/\s+active\s*/, '');
}
};
var setOnlyChoiceActive = function (name) {
var a = getChoiceEls();
for (var i = 0; i < a.length; ++i) {
setElActive(a[i], 0);
}
setElActive(getChoiceEl(name), 1);
};
var themeActivate = function (name, forceRefresh) {
setOnlyChoiceActive(name);
if (currentTheme == name && !forceRefresh) return;
if (name == 'light') DarkReader.disable();
if (name == 'auto') DarkReader.auto(drSettings);
if (name == 'dark') DarkReader.enable(drSettings);
setLsTheme(currentTheme = name);
};
var reloadTheme = function (forceRefresh) {
themeActivate(getLsTheme() || 'auto', forceRefresh);
};
var delayedReloadTheme = function () {
setTimeout(function () {
exponentialWait(function () {
if (document.querySelector('.markdown-section h1')) {
setTimeout(function () { reloadTheme(1) }, 60);
return true;
}
});
}, 800);
};
var reloadChoices = function () {
var setClick = function (name) {
getChoiceEl(name).onclick = function () {
themeActivate(name);
delayedReloadTheme();
};
};
setClick('light');
setClick('auto');
setClick('dark');
reloadTheme();
};
exponentialWait(function () {
if (getChoiceEls().length > 0) {
reloadChoices();
setInterval(function () {
if (!document.querySelector('#theme .choice').onclick)
reloadChoices();
}, 500);
delayedReloadTheme();
return true;
}
});
reloadTheme();
};
if (window.fetch) {
setupTheme();
}
exponentialWait(function () {
var searchInput = document.querySelector('.sidebar .search input');
if (searchInput) {
var searchInputWrap = document.querySelector('.sidebar .search .input-wrap');
searchInput.addEventListener('focus', function () {
searchInputWrap.className += ' focus';
});
searchInput.addEventListener('blur', function () {
searchInputWrap.className = searchInputWrap.className.replace(/\s+focus\s*/, '');
});
return true;
}
});
</script>
</body>
</html>