update some lib version, change local dev cfg

This commit is contained in:
CounterFire2023 2023-11-29 11:02:04 +08:00
parent 77a208736a
commit 6c3321f2be
11 changed files with 17196 additions and 1437 deletions

File diff suppressed because one or more lines are too long

3167
build/contracts/Base64.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,972 @@
{
"contractName": "IERC20Permit",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "deadline",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "permit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "nonces",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DOMAIN_SEPARATOR",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.10+commit.fc410830\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all.\",\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\"},\"nonces(address)\":{\"details\":\"Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.\"},\"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\":{\"details\":\"Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section].\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":\"IERC20Permit\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"keccak256\":\"0xec63854014a5b4f2b3290ab9103a21bdf902a508d0f41a8573fea49e98bf571a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc5b5dc12fbc4002f282eaa7a5f06d8310ed62c1c77c5770f6283e058454c39a\",\"dweb:/ipfs/Qme9rE2wS3yBuyJq9GgbmzbsBQsW2M2sVFqYYLw7bosGrv\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n */\ninterface IERC20Permit {\n /**\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n * given ``owner``'s signed approval.\n *\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n * ordering also apply here.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `deadline` must be a timestamp in the future.\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n * over the EIP712-formatted function arguments.\n * - the signature must use ``owner``'s current nonce (see {nonces}).\n *\n * For more information on the signature format, see the\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n * section].\n */\n function permit(\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n /**\n * @dev Returns the current nonce for `owner`. This value must be\n * included whenever a signature is generated for {permit}.\n *\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\n * prevents a signature from being used multiple times.\n */\n function nonces(address owner) external view returns (uint256);\n\n /**\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n */\n // solhint-disable-next-line func-name-mixedcase\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n",
"sourcePath": "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol",
"ast": {
"absolutePath": "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol",
"exportedSymbols": {
"IERC20Permit": [
4195
]
},
"id": 4196,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4161,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "123:23:19"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IERC20Permit",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 4162,
"nodeType": "StructuredDocumentation",
"src": "148:480:19",
"text": " @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n need to send a transaction, and thus is not required to hold Ether at all."
},
"fullyImplemented": false,
"id": 4195,
"linearizedBaseContracts": [
4195
],
"name": "IERC20Permit",
"nameLocation": "639:12:19",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 4163,
"nodeType": "StructuredDocumentation",
"src": "658:792:19",
"text": " @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n given ``owner``'s signed approval.\n IMPORTANT: The same issues {IERC20-approve} has related to transaction\n ordering also apply here.\n Emits an {Approval} event.\n Requirements:\n - `spender` cannot be the zero address.\n - `deadline` must be a timestamp in the future.\n - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n over the EIP712-formatted function arguments.\n - the signature must use ``owner``'s current nonce (see {nonces}).\n For more information on the signature format, see the\n https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n section]."
},
"functionSelector": "d505accf",
"id": 4180,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "permit",
"nameLocation": "1464:6:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4178,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4165,
"mutability": "mutable",
"name": "owner",
"nameLocation": "1488:5:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1480:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4164,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1480:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4167,
"mutability": "mutable",
"name": "spender",
"nameLocation": "1511:7:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1503:15:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4166,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1503:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4169,
"mutability": "mutable",
"name": "value",
"nameLocation": "1536:5:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1528:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4168,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1528:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4171,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "1559:8:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1551:16:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4170,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1551:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4173,
"mutability": "mutable",
"name": "v",
"nameLocation": "1583:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1577:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 4172,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1577:5:19",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4175,
"mutability": "mutable",
"name": "r",
"nameLocation": "1602:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1594:9:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4174,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1594:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4177,
"mutability": "mutable",
"name": "s",
"nameLocation": "1621:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1613:9:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4176,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1613:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1470:158:19"
},
"returnParameters": {
"id": 4179,
"nodeType": "ParameterList",
"parameters": [],
"src": "1637:0:19"
},
"scope": 4195,
"src": "1455:183:19",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 4181,
"nodeType": "StructuredDocumentation",
"src": "1644:294:19",
"text": " @dev Returns the current nonce for `owner`. This value must be\n included whenever a signature is generated for {permit}.\n Every successful call to {permit} increases ``owner``'s nonce by one. This\n prevents a signature from being used multiple times."
},
"functionSelector": "7ecebe00",
"id": 4188,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "nonces",
"nameLocation": "1952:6:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4184,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4183,
"mutability": "mutable",
"name": "owner",
"nameLocation": "1967:5:19",
"nodeType": "VariableDeclaration",
"scope": 4188,
"src": "1959:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4182,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1959:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1958:15:19"
},
"returnParameters": {
"id": 4187,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4186,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 4188,
"src": "1997:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4185,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1997:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1996:9:19"
},
"scope": 4195,
"src": "1943:63:19",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 4189,
"nodeType": "StructuredDocumentation",
"src": "2012:128:19",
"text": " @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."
},
"functionSelector": "3644e515",
"id": 4194,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "DOMAIN_SEPARATOR",
"nameLocation": "2207:16:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4190,
"nodeType": "ParameterList",
"parameters": [],
"src": "2223:2:19"
},
"returnParameters": {
"id": 4193,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4192,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 4194,
"src": "2249:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4191,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2249:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "2248:9:19"
},
"scope": 4195,
"src": "2198:60:19",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 4196,
"src": "629:1631:19",
"usedErrors": []
}
],
"src": "123:2138:19"
},
"legacyAST": {
"absolutePath": "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol",
"exportedSymbols": {
"IERC20Permit": [
4195
]
},
"id": 4196,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4161,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "123:23:19"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IERC20Permit",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 4162,
"nodeType": "StructuredDocumentation",
"src": "148:480:19",
"text": " @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n need to send a transaction, and thus is not required to hold Ether at all."
},
"fullyImplemented": false,
"id": 4195,
"linearizedBaseContracts": [
4195
],
"name": "IERC20Permit",
"nameLocation": "639:12:19",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 4163,
"nodeType": "StructuredDocumentation",
"src": "658:792:19",
"text": " @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n given ``owner``'s signed approval.\n IMPORTANT: The same issues {IERC20-approve} has related to transaction\n ordering also apply here.\n Emits an {Approval} event.\n Requirements:\n - `spender` cannot be the zero address.\n - `deadline` must be a timestamp in the future.\n - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n over the EIP712-formatted function arguments.\n - the signature must use ``owner``'s current nonce (see {nonces}).\n For more information on the signature format, see the\n https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n section]."
},
"functionSelector": "d505accf",
"id": 4180,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "permit",
"nameLocation": "1464:6:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4178,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4165,
"mutability": "mutable",
"name": "owner",
"nameLocation": "1488:5:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1480:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4164,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1480:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4167,
"mutability": "mutable",
"name": "spender",
"nameLocation": "1511:7:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1503:15:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4166,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1503:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4169,
"mutability": "mutable",
"name": "value",
"nameLocation": "1536:5:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1528:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4168,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1528:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4171,
"mutability": "mutable",
"name": "deadline",
"nameLocation": "1559:8:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1551:16:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4170,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1551:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4173,
"mutability": "mutable",
"name": "v",
"nameLocation": "1583:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1577:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 4172,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1577:5:19",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4175,
"mutability": "mutable",
"name": "r",
"nameLocation": "1602:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1594:9:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4174,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1594:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4177,
"mutability": "mutable",
"name": "s",
"nameLocation": "1621:1:19",
"nodeType": "VariableDeclaration",
"scope": 4180,
"src": "1613:9:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4176,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1613:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1470:158:19"
},
"returnParameters": {
"id": 4179,
"nodeType": "ParameterList",
"parameters": [],
"src": "1637:0:19"
},
"scope": 4195,
"src": "1455:183:19",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 4181,
"nodeType": "StructuredDocumentation",
"src": "1644:294:19",
"text": " @dev Returns the current nonce for `owner`. This value must be\n included whenever a signature is generated for {permit}.\n Every successful call to {permit} increases ``owner``'s nonce by one. This\n prevents a signature from being used multiple times."
},
"functionSelector": "7ecebe00",
"id": 4188,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "nonces",
"nameLocation": "1952:6:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4184,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4183,
"mutability": "mutable",
"name": "owner",
"nameLocation": "1967:5:19",
"nodeType": "VariableDeclaration",
"scope": 4188,
"src": "1959:13:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4182,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1959:7:19",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1958:15:19"
},
"returnParameters": {
"id": 4187,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4186,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 4188,
"src": "1997:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4185,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1997:7:19",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1996:9:19"
},
"scope": 4195,
"src": "1943:63:19",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"documentation": {
"id": 4189,
"nodeType": "StructuredDocumentation",
"src": "2012:128:19",
"text": " @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."
},
"functionSelector": "3644e515",
"id": 4194,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "DOMAIN_SEPARATOR",
"nameLocation": "2207:16:19",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4190,
"nodeType": "ParameterList",
"parameters": [],
"src": "2223:2:19"
},
"returnParameters": {
"id": 4193,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4192,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 4194,
"src": "2249:7:19",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 4191,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2249:7:19",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "2248:9:19"
},
"scope": 4195,
"src": "2198:60:19",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 4196,
"src": "629:1631:19",
"usedErrors": []
}
],
"src": "123:2138:19"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.4",
"updatedAt": "2023-11-28T07:46:30.958Z",
"devdoc": {
"details": "Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't need to send a transaction, and thus is not required to hold Ether at all.",
"kind": "dev",
"methods": {
"DOMAIN_SEPARATOR()": {
"details": "Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}."
},
"nonces(address)": {
"details": "Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times."
},
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
"details": "Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}

File diff suppressed because it is too large Load Diff

View File

@ -3,126 +3,126 @@
"name": "BEBadge", "name": "BEBadge",
"type": "erc721", "type": "erc721",
"json": "assets/contracts/BEBadge.json", "json": "assets/contracts/BEBadge.json",
"address": "0x464c94ea90fc7D0D08Bb956cffB9AcfE3AAA5313" "address": "0xCfEB869F69431e42cdB54A4F4f105C19C080A601"
}, },
{ {
"name": "BEMultiSigWallet", "name": "BEMultiSigWallet",
"type": "logic", "type": "logic",
"json": "assets/contracts/BEMultiSigWallet.json", "json": "assets/contracts/BEMultiSigWallet.json",
"address": "0x53b94F9474c01678040BA7da4bc54DCD8c0Ed0BA" "address": "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
}, },
{ {
"name": "NftDistributor", "name": "NftDistributor",
"type": "logic", "type": "logic",
"json": "assets/contracts/NftDistributor.json", "json": "assets/contracts/NftDistributor.json",
"address": "0xFd8643CeE37DaE121Ca0E84FD2Ceeb49E828B493" "address": "0xe982E462b094850F12AF94d21D470e21bE9D0E9C"
}, },
{ {
"name": "CEC", "name": "CEC",
"type": "erc20", "type": "erc20",
"json": "assets/contracts/FT.json", "json": "assets/contracts/FT.json",
"address": "0x5C3670E0Ac747b03CD0e3B3165b2fd69e6fB790A" "address": "0x67B5656d60a809915323Bf2C40A8bEF15A152e3e"
}, },
{ {
"name": "CEG", "name": "CEG",
"type": "erc20", "type": "erc20",
"json": "assets/contracts/FT.json", "json": "assets/contracts/FT.json",
"address": "0x51E8aB3c2885860c34d38922c5a9b54215B8CC9b" "address": "0x2612Af3A521c2df9EAF28422Ca335b04AdF3ac66"
}, },
{ {
"name": "BEUSDC", "name": "BEUSDC",
"type": "erc20", "type": "erc20",
"json": "assets/contracts/FT.json", "json": "assets/contracts/FT.json",
"address": "0x0a8c20aadDDDF50AFD1d431342Aaf28E4e757884" "address": "0xA57B8a5584442B467b4689F1144D269d096A3daF"
}, },
{ {
"name": "BEUSDT", "name": "BEUSDT",
"type": "erc20", "type": "erc20",
"json": "assets/contracts/FT.json", "json": "assets/contracts/FT.json",
"address": "0x1DbdE3fbc981A0B5E02778286aE623e864e09dCD" "address": "0x26b4AFb60d6C903165150C6F0AA14F8016bE4aec"
}, },
{ {
"name": "HERO", "name": "HERO",
"type": "erc721", "type": "erc721",
"json": "assets/contracts/NFT.json", "json": "assets/contracts/NFT.json",
"address": "0xe67a1e001a30eF1e0EDE04637F1Aceb3F2080604" "address": "0xDb56f2e9369E0D7bD191099125a3f6C370F8ed15"
}, },
{ {
"name": "PLANET", "name": "PLANET",
"type": "erc721", "type": "erc721",
"json": "assets/contracts/NFT.json", "json": "assets/contracts/NFT.json",
"address": "0x4c8cF69bfd3361Dcf1795354afB32Ec4a26212F8" "address": "0xA94B7f0465E98609391C623d0560C5720a3f2D33"
}, },
{ {
"name": "TestHERO", "name": "TestHERO",
"type": "erc721", "type": "erc721",
"json": "assets/contracts/NFT.json", "json": "assets/contracts/NFT.json",
"address": "0x3c3d89322de3aC6D5BCBD10801BbB2C68f5AC5f1" "address": "0x6eD79Aa1c71FD7BdBC515EfdA3Bd4e26394435cC"
}, },
{ {
"name": "UserMinterFactory", "name": "UserMinterFactory",
"type": "logic", "type": "logic",
"json": "assets/contracts/UserMinterFactory.json", "json": "assets/contracts/UserMinterFactory.json",
"address": "0x102EB6c9895955Ce780508f1e9ee7Ac2bdd1CE57" "address": "0xFC628dd79137395F3C9744e33b1c5DE554D94882"
}, },
{ {
"name": "BENftMarket", "name": "BENftMarket",
"type": "logic", "type": "logic",
"json": "assets/contracts/BENftMarket.json", "json": "assets/contracts/BENftMarket.json",
"address": "0x0937F524C8A7d3D6Af3023875CF6c7f293F3B994" "address": "0x21a59654176f2689d12E828B77a783072CD26680"
}, },
{ {
"name": "BENftMall", "name": "BENftMall",
"type": "logic", "type": "logic",
"json": "assets/contracts/BENftMall.json", "json": "assets/contracts/BENftMall.json",
"address": "0x1932400a9A132D20c3961E2848DE4bA3Ce8Ff30B" "address": "0xD86C8F0327494034F60e25074420BcCF560D5610"
}, },
{ {
"name": "BETokenMall", "name": "BETokenMall",
"type": "logic", "type": "logic",
"json": "assets/contracts/BETokenMall.json", "json": "assets/contracts/BETokenMall.json",
"address": "0x79e0ba0C34ED4cc6a493ebCdf11A84491Cb6f5ea" "address": "0x4bf749ec68270027C5910220CEAB30Cc284c7BA2"
}, },
{ {
"name": "GameItemMarket", "name": "GameItemMarket",
"type": "logic", "type": "logic",
"json": "assets/contracts/GameItemMarket.json", "json": "assets/contracts/GameItemMarket.json",
"address": "0xc080828C1A20E7cb0D20AD5191314e64286989E5" "address": "0x86072CbFF48dA3C1F01824a6761A03F105BCC697"
}, },
{ {
"name": "GameItemMall", "name": "GameItemMall",
"type": "logic", "type": "logic",
"json": "assets/contracts/GameItemMall.json", "json": "assets/contracts/GameItemMall.json",
"address": "0x3B2d33aC0B76462c8Eb58548ed7db68BC826F15E" "address": "0xFF6049B87215476aBf744eaA3a476cBAd46fB1cA"
}, },
{ {
"name": "Gacha", "name": "Gacha",
"type": "erc721", "type": "erc721",
"json": "assets/contracts/BEBadge.json", "json": "assets/contracts/BEBadge.json",
"address": "0xe00b745b5e71337507d43a8584320c4192CA7994" "address": "0x2D8BE6BF0baA74e0A907016679CaE9190e80dD0A"
}, },
{ {
"name": "ClaimGachaFactory", "name": "ClaimGachaFactory",
"type": "logic", "type": "logic",
"json": "assets/contracts/ClaimBoxFactory.json", "json": "assets/contracts/ClaimBoxFactory.json",
"address": "0x3e5399049a779489000583dD0d14576D0472Fe94" "address": "0x970e8f18ebfEa0B08810f33a5A40438b9530FBCF"
}, },
{ {
"name": "JSONMetadata", "name": "JSONMetadata",
"type": "logic", "type": "logic",
"json": "assets/contracts/JSONMetadata.json", "json": "assets/contracts/JSONMetadata.json",
"address": "0x0d31fD995E1540CE90Fd98462Cf3284b1693Ad8C" "address": "0x5b9b42d6e4B2e4Bf8d42Eba32D46918e10899B66"
}, },
{ {
"name": "ERC721Staking", "name": "ERC721Staking",
"type": "logic", "type": "logic",
"json": "assets/contracts/ERC721Staking.json", "json": "assets/contracts/ERC721Staking.json",
"address": "0x59a13b07fE44Aa7221Fd6C55A3E8df26d4E37a65" "address": "0xB9bdBAEc07751F6d54d19A6B9995708873F3DE18"
}, },
{ {
"name": "EvolveProxy", "name": "EvolveProxy",
"type": "logic", "type": "logic",
"json": "assets/contracts/EvolveProxy.json", "json": "assets/contracts/EvolveProxy.json",
"address": "0xC4bC1f775dB36c07b0bC506cbB83fCe12E182053" "address": "0x988B6CFBf3332FF98FFBdED665b1F53a61f92612"
} }
] ]

2726
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@openzeppelin/test-helpers": "^0.5.15", "@openzeppelin/test-helpers": "^0.5.15",
"@truffle/hdwallet-provider": "^2.0.0", "@truffle/hdwallet-provider": "^1.7.0",
"chai": "^4.3.4", "chai": "^4.3.4",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.24", "prettier-plugin-solidity": "^1.0.0-beta.24",

View File

@ -268,7 +268,7 @@ module.exports = {
}, },
development: { development: {
host: "127.0.0.1", // Localhost (default: none) host: "127.0.0.1", // Localhost (default: none)
port: 9545, // Standard Ethereum port (default: none) port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none) network_id: "*", // Any network (default: none)
}, },
}, },