Install: https://github.com/makerdao/multicall.js
yarn add @makerdao/multicall
<!-- Localhost start: http-server --> | |
<html> | |
<link | |
rel="icon" | |
type="image/x-icon" | |
href="https://www.mozilla.org/media/img/favicons/firefox/browser/favicon.f093404c0135.ico" | |
/> | |
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> | |
<script> |
(function() { | |
var synoLang; | |
var isSynoReady; | |
var additional = { | |
code : 'vie', // <== uses reference language list at the bottom and set the 'code' to the language you wanted | |
label: 'Tiếng Việt' // <== 'label' can be anything you wanted. i.e. if set to 'New lang 123' you will see 'New lang 123' in the list | |
} | |
Install: https://github.com/makerdao/multicall.js
yarn add @makerdao/multicall
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
contract AbiEncode { | |
function encode() public pure returns (bytes memory) { | |
uint[2] memory amounts = [uint(1e18), uint(99e18)]; | |
bytes memory userData = abi.encode(0, amounts); | |
return userData; | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MockERC20 is ERC20 { | |
constructor( | |
string memory _name, | |
string memory _symbol, |
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
contract MockERC721 is ERC721 { | |
constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) { | |
mint(msg.sender, 0); | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.4; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
contract MockERC1155 is ERC1155 { | |
constructor() public ERC1155("https://nhancv.com/{id}.json") { | |
mint(msg.sender, 0, 1); | |
} |
// SPDX-License-Identifier: GNU GENERAL PUBLIC LICENSE V3 | |
pragma solidity =0.8.3; | |
contract WBNB { | |
string public name = "Wrapped BNB"; | |
string public symbol = "WBNB"; | |
uint8 public decimals = 18; | |
event Approval(address indexed src, address indexed guy, uint wad); | |
event Transfer(address indexed src, address indexed dst, uint wad); |
String get btnSkip { | |
return Intl.message( | |
// fallback text | |
context.strings.btnSkip, | |
// lang key | |
name: 'btnSkip', | |
); | |
} |
# python3 intl_arb2csv.py | |
import csv | |
import json | |
import os | |
def qrepr(s): | |
"repr with double-quotes" | |
# make one symbol special that isn't treated special in a string, in | |
# this case '@'. |