add network for arbitrm sepolia

This commit is contained in:
CounterFire2023 2023-12-27 14:21:00 +08:00
parent 7f4afbe3c1
commit 9258f7d464
54 changed files with 296350 additions and 146438 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -40,22 +40,22 @@
"absolutePath": "project:/contracts/interfaces/IMetaData.sol",
"exportedSymbols": {
"IMetaData": [
9973
11356
]
},
"id": 9974,
"id": 11357,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 9963,
"id": 11346,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:46"
"src": "32:23:53"
},
{
"abstract": false,
@ -64,36 +64,36 @@
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 9973,
"id": 11356,
"linearizedBaseContracts": [
9973
11356
],
"name": "IMetaData",
"nameLocation": "67:9:46",
"nameLocation": "67:9:53",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "f666196d",
"id": 9972,
"id": 11355,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getMetaData",
"nameLocation": "90:11:46",
"nameLocation": "90:11:53",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 9968,
"id": 11351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9965,
"id": 11348,
"mutability": "mutable",
"name": "token",
"nameLocation": "115:5:46",
"nameLocation": "115:5:53",
"nodeType": "VariableDeclaration",
"scope": 9972,
"src": "107:13:46",
"scope": 11355,
"src": "107:13:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@ -101,10 +101,10 @@
"typeString": "address"
},
"typeName": {
"id": 9964,
"id": 11347,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:46",
"src": "107:7:53",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
@ -115,13 +115,13 @@
},
{
"constant": false,
"id": 9967,
"id": 11350,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "134:7:46",
"nameLocation": "134:7:53",
"nodeType": "VariableDeclaration",
"scope": 9972,
"src": "126:15:46",
"scope": 11355,
"src": "126:15:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@ -129,10 +129,10 @@
"typeString": "uint256"
},
"typeName": {
"id": 9966,
"id": 11349,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "126:7:46",
"src": "126:7:53",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@ -141,21 +141,21 @@
"visibility": "internal"
}
],
"src": "101:44:46"
"src": "101:44:53"
},
"returnParameters": {
"id": 9971,
"id": 11354,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 9970,
"id": 11353,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 9972,
"src": "169:13:46",
"scope": 11355,
"src": "169:13:53",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
@ -163,10 +163,10 @@
"typeString": "string"
},
"typeName": {
"id": 9969,
"id": 11352,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "169:6:46",
"src": "169:6:53",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
@ -175,29 +175,184 @@
"visibility": "internal"
}
],
"src": "168:15:46"
"src": "168:15:53"
},
"scope": 9973,
"src": "81:103:46",
"scope": 11356,
"src": "81:103:53",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 9974,
"src": "57:129:46",
"scope": 11357,
"src": "57:129:53",
"usedErrors": []
}
],
"src": "32:155:46"
"src": "32:155:53"
},
"legacyAST": {
"absolutePath": "project:/contracts/interfaces/IMetaData.sol",
"exportedSymbols": {
"IMetaData": [
11356
]
},
"id": 11357,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 11346,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:53"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IMetaData",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 11356,
"linearizedBaseContracts": [
11356
],
"name": "IMetaData",
"nameLocation": "67:9:53",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "f666196d",
"id": 11355,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getMetaData",
"nameLocation": "90:11:53",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11351,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11348,
"mutability": "mutable",
"name": "token",
"nameLocation": "115:5:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "107:13:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 11347,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:53",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11350,
"mutability": "mutable",
"name": "tokenId",
"nameLocation": "134:7:53",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "126:15:53",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 11349,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "126:7:53",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "101:44:53"
},
"returnParameters": {
"id": 11354,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11353,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 11355,
"src": "169:13:53",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 11352,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "169:6:53",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "168:15:53"
},
"scope": 11356,
"src": "81:103:53",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 11357,
"src": "57:129:53",
"usedErrors": []
}
],
"src": "32:155:53"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2023-11-27T08:18:52.352Z",
"schemaVersion": "3.4.4",
"updatedAt": "2023-12-01T09:03:16.566Z",
"devdoc": {
"kind": "dev",
"methods": {},

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 it is too large Load Diff

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,30 +7,30 @@
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "57:211:72:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "57:211:72:-:0;;;;;;;;",
"sourceMap": "57:211:83:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "57:211:83:-:0;;;;;;;;",
"source": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.10;\n\nlibrary UInt {\n function asSingletonArray(uint256 element)\n internal\n pure\n returns (uint256[] memory)\n {\n uint256[] memory array = new uint256[](1);\n array[0] = element;\n return array;\n }\n}\n",
"sourcePath": "/Users/zhl/Documents/workspace/crypto/becrypto/contracts/utils/UInt.sol",
"ast": {
"absolutePath": "project:/contracts/utils/UInt.sol",
"exportedSymbols": {
"UInt": [
17407
21263
]
},
"id": 17408,
"id": 21264,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 17378,
"id": 21234,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:72"
"src": "32:23:83"
},
{
"abstract": false,
@ -39,34 +39,34 @@
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
"id": 17407,
"id": 21263,
"linearizedBaseContracts": [
17407
21263
],
"name": "UInt",
"nameLocation": "65:4:72",
"nameLocation": "65:4:83",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 17405,
"id": 21261,
"nodeType": "Block",
"src": "172:94:72",
"src": "172:94:83",
"statements": [
{
"assignments": [
17390
21246
],
"declarations": [
{
"constant": false,
"id": 17390,
"id": 21246,
"mutability": "mutable",
"name": "array",
"nameLocation": "195:5:72",
"nameLocation": "195:5:83",
"nodeType": "VariableDeclaration",
"scope": 17405,
"src": "178:22:72",
"scope": 21261,
"src": "178:22:83",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
@ -75,18 +75,18 @@
},
"typeName": {
"baseType": {
"id": 17388,
"id": 21244,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "178:7:72",
"src": "178:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 17389,
"id": 21245,
"nodeType": "ArrayTypeName",
"src": "178:9:72",
"src": "178:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
@ -95,19 +95,19 @@
"visibility": "internal"
}
],
"id": 17396,
"id": 21252,
"initialValue": {
"arguments": [
{
"hexValue": "31",
"id": 17394,
"id": 21250,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "217:1:72",
"src": "217:1:83",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
@ -122,38 +122,38 @@
"typeString": "int_const 1"
}
],
"id": 17393,
"id": 21249,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "203:13:72",
"src": "203:13:83",
"typeDescriptions": {
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
"typeString": "function (uint256) pure returns (uint256[] memory)"
},
"typeName": {
"baseType": {
"id": 17391,
"id": 21247,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "207:7:72",
"src": "207:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 17392,
"id": 21248,
"nodeType": "ArrayTypeName",
"src": "207:9:72",
"src": "207:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
}
},
"id": 17395,
"id": 21251,
"isConstant": false,
"isLValue": false,
"isPure": true,
@ -161,7 +161,7 @@
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "203:16:72",
"src": "203:16:83",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
@ -169,39 +169,39 @@
}
},
"nodeType": "VariableDeclarationStatement",
"src": "178:41:72"
"src": "178:41:83"
},
{
"expression": {
"id": 17401,
"id": 21257,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"baseExpression": {
"id": 17397,
"id": 21253,
"name": "array",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17390,
"src": "225:5:72",
"referencedDeclaration": 21246,
"src": "225:5:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[] memory"
}
},
"id": 17399,
"id": 21255,
"indexExpression": {
"hexValue": "30",
"id": 17398,
"id": 21254,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "231:1:72",
"src": "231:1:83",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
@ -213,7 +213,7 @@
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "225:8:72",
"src": "225:8:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@ -222,67 +222,67 @@
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 17400,
"id": 21256,
"name": "element",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17380,
"src": "236:7:72",
"referencedDeclaration": 21236,
"src": "236:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "225:18:72",
"src": "225:18:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 17402,
"id": 21258,
"nodeType": "ExpressionStatement",
"src": "225:18:72"
"src": "225:18:83"
},
{
"expression": {
"id": 17403,
"id": 21259,
"name": "array",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 17390,
"src": "256:5:72",
"referencedDeclaration": 21246,
"src": "256:5:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[] memory"
}
},
"functionReturnParameters": 17385,
"id": 17404,
"functionReturnParameters": 21241,
"id": 21260,
"nodeType": "Return",
"src": "249:12:72"
"src": "249:12:83"
}
]
},
"id": 17406,
"id": 21262,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "asSingletonArray",
"nameLocation": "83:16:72",
"nameLocation": "83:16:83",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 17381,
"id": 21237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17380,
"id": 21236,
"mutability": "mutable",
"name": "element",
"nameLocation": "108:7:72",
"nameLocation": "108:7:83",
"nodeType": "VariableDeclaration",
"scope": 17406,
"src": "100:15:72",
"scope": 21262,
"src": "100:15:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
@ -290,10 +290,10 @@
"typeString": "uint256"
},
"typeName": {
"id": 17379,
"id": 21235,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "100:7:72",
"src": "100:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
@ -302,21 +302,21 @@
"visibility": "internal"
}
],
"src": "99:17:72"
"src": "99:17:83"
},
"returnParameters": {
"id": 17385,
"id": 21241,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17384,
"id": 21240,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 17406,
"src": "152:16:72",
"scope": 21262,
"src": "152:16:83",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
@ -325,18 +325,18 @@
},
"typeName": {
"baseType": {
"id": 17382,
"id": 21238,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "152:7:72",
"src": "152:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 17383,
"id": 21239,
"nodeType": "ArrayTypeName",
"src": "152:9:72",
"src": "152:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
@ -345,29 +345,379 @@
"visibility": "internal"
}
],
"src": "151:18:72"
"src": "151:18:83"
},
"scope": 17407,
"src": "74:192:72",
"scope": 21263,
"src": "74:192:83",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
}
],
"scope": 17408,
"src": "57:211:72",
"scope": 21264,
"src": "57:211:83",
"usedErrors": []
}
],
"src": "32:237:72"
"src": "32:237:83"
},
"legacyAST": {
"absolutePath": "project:/contracts/utils/UInt.sol",
"exportedSymbols": {
"UInt": [
21263
]
},
"id": 21264,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 21234,
"literals": [
"solidity",
"0.8",
".10"
],
"nodeType": "PragmaDirective",
"src": "32:23:83"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "UInt",
"contractDependencies": [],
"contractKind": "library",
"fullyImplemented": true,
"id": 21263,
"linearizedBaseContracts": [
21263
],
"name": "UInt",
"nameLocation": "65:4:83",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 21261,
"nodeType": "Block",
"src": "172:94:83",
"statements": [
{
"assignments": [
21246
],
"declarations": [
{
"constant": false,
"id": 21246,
"mutability": "mutable",
"name": "array",
"nameLocation": "195:5:83",
"nodeType": "VariableDeclaration",
"scope": 21261,
"src": "178:22:83",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 21244,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "178:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21245,
"nodeType": "ArrayTypeName",
"src": "178:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"id": 21252,
"initialValue": {
"arguments": [
{
"hexValue": "31",
"id": 21250,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "217:1:83",
"typeDescriptions": {
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
},
"value": "1"
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_rational_1_by_1",
"typeString": "int_const 1"
}
],
"id": 21249,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"nodeType": "NewExpression",
"src": "203:13:83",
"typeDescriptions": {
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_uint256_$dyn_memory_ptr_$",
"typeString": "function (uint256) pure returns (uint256[] memory)"
},
"typeName": {
"baseType": {
"id": 21247,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "207:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21248,
"nodeType": "ArrayTypeName",
"src": "207:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
}
},
"id": 21251,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "203:16:83",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[] memory"
}
},
"nodeType": "VariableDeclarationStatement",
"src": "178:41:83"
},
{
"expression": {
"id": 21257,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"baseExpression": {
"id": 21253,
"name": "array",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21246,
"src": "225:5:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[] memory"
}
},
"id": 21255,
"indexExpression": {
"hexValue": "30",
"id": 21254,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "231:1:83",
"typeDescriptions": {
"typeIdentifier": "t_rational_0_by_1",
"typeString": "int_const 0"
},
"value": "0"
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "225:8:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"id": 21256,
"name": "element",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21236,
"src": "236:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "225:18:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21258,
"nodeType": "ExpressionStatement",
"src": "225:18:83"
},
{
"expression": {
"id": 21259,
"name": "array",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21246,
"src": "256:5:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[] memory"
}
},
"functionReturnParameters": 21241,
"id": 21260,
"nodeType": "Return",
"src": "249:12:83"
}
]
},
"id": 21262,
"implemented": true,
"kind": "function",
"modifiers": [],
"name": "asSingletonArray",
"nameLocation": "83:16:83",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 21237,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21236,
"mutability": "mutable",
"name": "element",
"nameLocation": "108:7:83",
"nodeType": "VariableDeclaration",
"scope": 21262,
"src": "100:15:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 21235,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "100:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "99:17:83"
},
"returnParameters": {
"id": 21241,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 21240,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 21262,
"src": "152:16:83",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_memory_ptr",
"typeString": "uint256[]"
},
"typeName": {
"baseType": {
"id": 21238,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "152:7:83",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 21239,
"nodeType": "ArrayTypeName",
"src": "152:9:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr",
"typeString": "uint256[]"
}
},
"visibility": "internal"
}
],
"src": "151:18:83"
},
"scope": 21263,
"src": "74:192:83",
"stateMutability": "pure",
"virtual": false,
"visibility": "internal"
}
],
"scope": 21264,
"src": "57:211:83",
"usedErrors": []
}
],
"src": "32:237:83"
},
"compiler": {
"name": "solc",
"version": "0.8.10+commit.fc410830.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2023-11-27T08:18:52.516Z",
"schemaVersion": "3.4.4",
"updatedAt": "2023-12-01T09:03:16.840Z",
"devdoc": {
"kind": "dev",
"methods": {},

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,33 @@
const market = {
feeToAddress: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
mallFeeAddress: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
paymentTokens: [
"0x514609B71340E149Cb81A80A953D07A7Fe41bd4F", // USDT
],
};
const admins = {
admin: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
proposers: [
"0x50A8e60041A206AcaA5F844a1104896224be6F39",
"0x746338765a8FbDD1c5aB61bfb92CD6D960C3C662",
],
confirmers: ["0x50A8e60041A206AcaA5F844a1104896224be6F39"],
executors: [
"0x50A8e60041A206AcaA5F844a1104896224be6F39",
"0x746338765a8FbDD1c5aB61bfb92CD6D960C3C662",
"0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b",
],
};
const token = {
baseTokenURI: "https://market.cebg.games/api/nft/info/",
};
var config = {
market,
admins,
token,
};
module.exports = config;

33
config/config_sepolia.js Normal file
View File

@ -0,0 +1,33 @@
const market = {
feeToAddress: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
mallFeeAddress: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
paymentTokens: [
"0x514609B71340E149Cb81A80A953D07A7Fe41bd4F", // USDT
],
};
const admins = {
admin: "0x50A8e60041A206AcaA5F844a1104896224be6F39",
proposers: [
"0x50A8e60041A206AcaA5F844a1104896224be6F39",
"0x746338765a8FbDD1c5aB61bfb92CD6D960C3C662",
],
confirmers: ["0x50A8e60041A206AcaA5F844a1104896224be6F39"],
executors: [
"0x50A8e60041A206AcaA5F844a1104896224be6F39",
"0x746338765a8FbDD1c5aB61bfb92CD6D960C3C662",
"0x22d491Bde2303f2f43325b2108D26f1eAbA1e32b",
],
};
const token = {
baseTokenURI: "https://market.cebg.games/api/nft/info/",
};
var config = {
market,
admins,
token,
};
module.exports = config;

View File

@ -0,0 +1,140 @@
[
{
"name": "BEBadge",
"type": "erc721",
"json": "assets/contracts/BEBadge.json",
"address": "0x09F0dFFA584B1277D7c4E44265a6b5D03303Fc99"
},
{
"name": "BEMultiSigWallet",
"type": "logic",
"json": "assets/contracts/BEMultiSigWallet.json",
"address": "0xC43AA64C83eaAFD429E03506a413cB834046a7f2"
},
{
"name": "NftDistributor",
"type": "logic",
"json": "assets/contracts/NftDistributor.json",
"address": "0x877d90e87Fd3810CE5469c1fFC3228107ca80C74"
},
{
"name": "CEC",
"type": "erc20",
"json": "assets/contracts/FT.json",
"address": "0x4A490306E1644Ce1AA755c90A2F3728A1E925e11"
},
{
"name": "CEG",
"type": "erc20",
"json": "assets/contracts/FT.json",
"address": "0xa12cdbC6BAcDDE9BbC03F9a7ea1240c7D48009E5"
},
{
"name": "BEUSDC",
"type": "erc20",
"json": "assets/contracts/FT.json",
"address": "0x705FA0719764E184458b407dfeFD54958b52070a"
},
{
"name": "BEUSDT",
"type": "erc20",
"json": "assets/contracts/FT.json",
"address": "0x1304E6AA241eE3C9ea44Db9e593e85Ae76eC41F1"
},
{
"name": "HERO",
"type": "erc721",
"json": "assets/contracts/NFT.json",
"address": "0x59e751c2037B710090035B6ea928e0cce80aC03f"
},
{
"name": "PLANET",
"type": "erc721",
"json": "assets/contracts/NFT.json",
"address": "0x8ee0a9D6025A46f21c9b0b75a8472D001d94e8A7"
},
{
"name": "TestHERO",
"type": "erc721",
"json": "assets/contracts/NFT.json",
"address": "0xCD4bb3402f1a444a1AF10F31946Ed37DaC0eaC4d"
},
{
"name": "GoldBrick",
"type": "erc721",
"json": "assets/contracts/NFT.json",
"address": "0x22Ac497e7FbdaDDB6945354F8080998f4Abbdc4b"
},
{
"name": "UserMinterFactory",
"type": "logic",
"json": "assets/contracts/UserMinterFactory.json",
"address": "0x57cCdaF10dBDb0171207ec6Ccb6669D4a09257F8"
},
{
"name": "BENftMarket",
"type": "logic",
"json": "assets/contracts/BENftMarket.json",
"address": "0x914F7646F30A18d84C21b0255b84896Ef7e5a05a"
},
{
"name": "BENftMall",
"type": "logic",
"json": "assets/contracts/BENftMall.json",
"address": "0x3c5991E9A0e6c713163cD0a91f246dc61f18d918"
},
{
"name": "BETokenMall",
"type": "logic",
"json": "assets/contracts/BETokenMall.json",
"address": "0x23e7Ef7D6F9bc3305E8EF0Fa1e5e12C1D5a4b06B"
},
{
"name": "GameItemMarket",
"type": "logic",
"json": "assets/contracts/GameItemMarket.json",
"address": "0x2036A0708AC2F17F67b08357d8b4A7d47cF49c29"
},
{
"name": "GameItemMall",
"type": "logic",
"json": "assets/contracts/GameItemMall.json",
"address": "0x20e2677F32dC0CB5D0bB0DEf9df84369AD5a7EC2"
},
{
"name": "Gacha",
"type": "erc721",
"json": "assets/contracts/BEBadge.json",
"address": "0xe2E4D5a4045fBFcbCBECAf5b8A94303712d2FA97"
},
{
"name": "ClaimGachaFactory",
"type": "logic",
"json": "assets/contracts/ClaimBoxFactory.json",
"address": "0x7F2b4DB626d878778e178B4F0C7bA3a2870C6dd0"
},
{
"name": "JSONMetadata",
"type": "logic",
"json": "assets/contracts/JSONMetadata.json",
"address": "0xA8478E6566befD4D5e8c812f7BF1e0424CC3D3E0"
},
{
"name": "ERC721Staking",
"type": "logic",
"json": "assets/contracts/ERC721Staking.json",
"address": "0xd46fA2E72BA0F54092D0eF6a6e0D1d5660259C7a"
},
{
"name": "EvolveProxy",
"type": "logic",
"json": "assets/contracts/EvolveProxy.json",
"address": "0xb8ca503E4cc48087394E192F9f118f2c0732A0fc"
},
{
"name": "GoldBricksFactory",
"type": "logic",
"json": "assets/contracts/GoldBricksFactory.json",
"address": "0x45E2Eae3634a69Fb9242397A75dd5751aEa8041e"
}
]

View File

@ -142,5 +142,17 @@
"type": "logic",
"json": "assets/contracts/BENftMallTrans.json",
"address": "0x24e08D7c3109A945a33c1ff737f34Dd80b27c723"
},
{
"name": "GoldBrick",
"type": "erc721",
"json": "assets/contracts/NFT.json",
"address": "0x0bC735C26040a56352271C32A9bAf9cc47f2F264"
},
{
"name": "GoldBricksFactory",
"type": "logic",
"json": "assets/contracts/GoldBricksFactory.json",
"address": "0x40295E4879926D04E04cE59F0293b5b5FDe6267c"
}
]

View File

@ -17,6 +17,8 @@
"deploy:combo_testnet": "truffle migrate --network combo_testnet --compile-none",
"deploy:polygon_testnet": "truffle migrate --network polygon_testnet --compile-none",
"deploy:dev:arbitrum_testnet": "DEPLOY_ENV=dev truffle migrate --network arbitrum_testnet --compile-none",
"deploy:dev:arbitrum_sepolia": "DEPLOY_ENV=dev truffle migrate --network arbitrum_sepolia --compile-none",
"deploy:dev:sepolia": "DEPLOY_ENV=dev truffle migrate --network sepolia --compile-none",
"deploy:dev:zk_testnet": "DEPLOY_ENV=dev truffle migrate --network zk_testnet --compile-none",
"deploy:dev:x1_testnet": "DEPLOY_ENV=dev truffle migrate --network x1_testnet --compile-none",
"deploy:dev:goerli": "DEPLOY_ENV=dev truffle migrate --network goerli --compile-none",

View File

@ -199,6 +199,43 @@ module.exports = {
explorerUrl: "https://goerli.arbiscan.io/address",
},
},
arbitrum_sepolia: {
provider: () =>
new HDWalletProvider({
privateKeys: [kccTestnetKey],
// providerOrUrl: "https://sepolia-rollup.arbitrum.io/rpc",
// providerOrUrl: "https://arbitrum-sepolia.blockpi.network/v1/rpc/public",
// providerOrUrl: "https://arbitrum-sepolia.infura.io/v3/8ae5bef48da14bbbac03860879a08bd7",
providerOrUrl: "https://arbitrum-sepolia.infura.io/v3/b6bf7d3508c941499b10025c0776eaf8",
pollingInterval: 8000,
}),
network_id: 421614,
confirmations: 6,
timeoutBlocks: 5000,
networkCheckTimeout: 10000000,
deploymentPollingInterval: 8000,
skipDryRun: true,
production: true,
disableConfirmationListener: true,
from: "0x50A8e60041A206AcaA5F844a1104896224be6F39"
},
sepolia: {
provider: () =>
new HDWalletProvider({
privateKeys: [kccTestnetKey],
providerOrUrl: "https://sepolia.infura.io/v3/b6bf7d3508c941499b10025c0776eaf8",
pollingInterval: 8000,
}),
network_id: 11155111,
confirmations: 6,
timeoutBlocks: 5000,
networkCheckTimeout: 10000000,
deploymentPollingInterval: 8000,
skipDryRun: true,
production: true,
disableConfirmationListener: true,
from: "0x50A8e60041A206AcaA5F844a1104896224be6F39"
},
combo_testnet: {
provider: () =>
new HDWalletProvider({