mm_contract 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/index.js +5 -22
- package/lib/admin.js +17 -0
- package/lib/contract.js +24 -0
- package/lib/eth.js +436 -0
- package/lib/eth_ext.js +290 -0
- package/package.json +13 -5
- package/tool/contract/index.js +132 -0
- package/tool/contract/tool.json +111 -0
- package/.gitattributes +0 -2
- package/app/ap.sol +0 -26
- package/app/test.sol +0 -463
- package/app/token.sol +0 -260
- package/demo/abi/auction.json +0 -1168
- package/demo/abi/bep20.json +0 -533
- package/demo/abi/blindbox.json +0 -767
- package/demo/abi/erc1155.json +0 -833
- package/demo/abi/erc721s.json +0 -1393
- package/demo/abi/exchange.json +0 -408
- package/demo/abi/invite.json +0 -605
- package/demo/abi/itemsell.json +0 -420
- package/demo/abi/nftmarket.json +0 -747
- package/demo/abi/plant.json +0 -1093
- package/demo/abi/sharepool.json +0 -773
- package/demo/abi/tokenmarket.json +0 -174
- package/demo/abi/tokensell.json +0 -465
- package/demo/abi/vipcard.json +0 -86
- package/demo/abi/vipshop.json +0 -303
- package/demo/index.js +0 -63
- package/demo/index_2.js +0 -31
- package/demo/test.js +0 -65
- package/demo/test_abi.js +0 -448
- package/mm_eth.js +0 -720
- package/sol/assets.sol +0 -2
- package/sol/erc20.sol +0 -23
- package/sol/erc721.sol +0 -40
- package/sol/ownable.sol +0 -42
- package/sol/safeMath.sol +0 -118
- package/sol//345/220/210/347/272/246/345/234/260/345/235/200.txt +0 -2
- package/test.js +0 -13
- /package/{mm_tron.js → lib/tron.js} +0 -0
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"anonymous": false,
|
|
4
|
-
"inputs": [
|
|
5
|
-
{
|
|
6
|
-
"indexed": false,
|
|
7
|
-
"internalType": "address",
|
|
8
|
-
"name": "_operator",
|
|
9
|
-
"type": "address"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"indexed": false,
|
|
13
|
-
"internalType": "uint256",
|
|
14
|
-
"name": "_power",
|
|
15
|
-
"type": "uint256"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"name": "AdminChaged",
|
|
19
|
-
"type": "event"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"anonymous": false,
|
|
23
|
-
"inputs": [
|
|
24
|
-
{
|
|
25
|
-
"indexed": false,
|
|
26
|
-
"internalType": "address",
|
|
27
|
-
"name": "_previousOwner",
|
|
28
|
-
"type": "address"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"indexed": false,
|
|
32
|
-
"internalType": "address",
|
|
33
|
-
"name": "_newOwner",
|
|
34
|
-
"type": "address"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"name": "OwnershipTransferred",
|
|
38
|
-
"type": "event"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"inputs": [
|
|
42
|
-
{
|
|
43
|
-
"internalType": "address",
|
|
44
|
-
"name": "_owner",
|
|
45
|
-
"type": "address"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"name": "balanceOf",
|
|
49
|
-
"outputs": [
|
|
50
|
-
{
|
|
51
|
-
"internalType": "uint256",
|
|
52
|
-
"name": "",
|
|
53
|
-
"type": "uint256"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"stateMutability": "view",
|
|
57
|
-
"type": "function"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"inputs": [],
|
|
61
|
-
"name": "close",
|
|
62
|
-
"outputs": [],
|
|
63
|
-
"stateMutability": "nonpayable",
|
|
64
|
-
"type": "function"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"inputs": [],
|
|
68
|
-
"name": "getOwner",
|
|
69
|
-
"outputs": [
|
|
70
|
-
{
|
|
71
|
-
"internalType": "address",
|
|
72
|
-
"name": "",
|
|
73
|
-
"type": "address"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"stateMutability": "view",
|
|
77
|
-
"type": "function"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [
|
|
81
|
-
{
|
|
82
|
-
"internalType": "address",
|
|
83
|
-
"name": "_owner",
|
|
84
|
-
"type": "address"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"name": "idsOf",
|
|
88
|
-
"outputs": [
|
|
89
|
-
{
|
|
90
|
-
"internalType": "uint256[]",
|
|
91
|
-
"name": "",
|
|
92
|
-
"type": "uint256[]"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"stateMutability": "view",
|
|
96
|
-
"type": "function"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"inputs": [
|
|
100
|
-
{
|
|
101
|
-
"internalType": "address",
|
|
102
|
-
"name": "_operator",
|
|
103
|
-
"type": "address"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"name": "isAdmin",
|
|
107
|
-
"outputs": [
|
|
108
|
-
{
|
|
109
|
-
"internalType": "uint256",
|
|
110
|
-
"name": "",
|
|
111
|
-
"type": "uint256"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"stateMutability": "view",
|
|
115
|
-
"type": "function"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "open",
|
|
120
|
-
"outputs": [],
|
|
121
|
-
"stateMutability": "nonpayable",
|
|
122
|
-
"type": "function"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [
|
|
126
|
-
{
|
|
127
|
-
"internalType": "uint256",
|
|
128
|
-
"name": "_id",
|
|
129
|
-
"type": "uint256"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"name": "ownerOf",
|
|
133
|
-
"outputs": [
|
|
134
|
-
{
|
|
135
|
-
"internalType": "address",
|
|
136
|
-
"name": "",
|
|
137
|
-
"type": "address"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"stateMutability": "view",
|
|
141
|
-
"type": "function"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"inputs": [
|
|
145
|
-
{
|
|
146
|
-
"internalType": "address",
|
|
147
|
-
"name": "_operator",
|
|
148
|
-
"type": "address"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"internalType": "uint256",
|
|
152
|
-
"name": "_power",
|
|
153
|
-
"type": "uint256"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"name": "setAdmin",
|
|
157
|
-
"outputs": [],
|
|
158
|
-
"stateMutability": "nonpayable",
|
|
159
|
-
"type": "function"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"inputs": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "address",
|
|
165
|
-
"name": "_newOwner",
|
|
166
|
-
"type": "address"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"name": "transferOwnership",
|
|
170
|
-
"outputs": [],
|
|
171
|
-
"stateMutability": "nonpayable",
|
|
172
|
-
"type": "function"
|
|
173
|
-
}
|
|
174
|
-
]
|
package/demo/abi/tokensell.json
DELETED
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [],
|
|
4
|
-
"stateMutability": "nonpayable",
|
|
5
|
-
"type": "constructor"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"anonymous": false,
|
|
9
|
-
"inputs": [
|
|
10
|
-
{
|
|
11
|
-
"indexed": false,
|
|
12
|
-
"internalType": "address",
|
|
13
|
-
"name": "_operator",
|
|
14
|
-
"type": "address"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"indexed": false,
|
|
18
|
-
"internalType": "uint256",
|
|
19
|
-
"name": "_power",
|
|
20
|
-
"type": "uint256"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"name": "AdminChaged",
|
|
24
|
-
"type": "event"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"anonymous": false,
|
|
28
|
-
"inputs": [
|
|
29
|
-
{
|
|
30
|
-
"indexed": false,
|
|
31
|
-
"internalType": "address",
|
|
32
|
-
"name": "_user",
|
|
33
|
-
"type": "address"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"indexed": false,
|
|
37
|
-
"internalType": "address",
|
|
38
|
-
"name": "_token",
|
|
39
|
-
"type": "address"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"indexed": false,
|
|
43
|
-
"internalType": "uint256",
|
|
44
|
-
"name": "_count",
|
|
45
|
-
"type": "uint256"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"name": "BuyToken",
|
|
49
|
-
"type": "event"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"anonymous": false,
|
|
53
|
-
"inputs": [
|
|
54
|
-
{
|
|
55
|
-
"indexed": false,
|
|
56
|
-
"internalType": "address",
|
|
57
|
-
"name": "_previousOwner",
|
|
58
|
-
"type": "address"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"indexed": false,
|
|
62
|
-
"internalType": "address",
|
|
63
|
-
"name": "_newOwner",
|
|
64
|
-
"type": "address"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"name": "OwnershipTransferred",
|
|
68
|
-
"type": "event"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"inputs": [
|
|
72
|
-
{
|
|
73
|
-
"internalType": "uint256",
|
|
74
|
-
"name": "_tokenId",
|
|
75
|
-
"type": "uint256"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"internalType": "uint256",
|
|
79
|
-
"name": "_count",
|
|
80
|
-
"type": "uint256"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"name": "buyToken",
|
|
84
|
-
"outputs": [],
|
|
85
|
-
"stateMutability": "nonpayable",
|
|
86
|
-
"type": "function"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"inputs": [
|
|
90
|
-
{
|
|
91
|
-
"internalType": "address",
|
|
92
|
-
"name": "",
|
|
93
|
-
"type": "address"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"internalType": "uint256",
|
|
97
|
-
"name": "",
|
|
98
|
-
"type": "uint256"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"internalType": "uint256",
|
|
102
|
-
"name": "",
|
|
103
|
-
"type": "uint256"
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"name": "buyedCount",
|
|
107
|
-
"outputs": [
|
|
108
|
-
{
|
|
109
|
-
"internalType": "uint256",
|
|
110
|
-
"name": "",
|
|
111
|
-
"type": "uint256"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"stateMutability": "view",
|
|
115
|
-
"type": "function"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [],
|
|
119
|
-
"name": "close",
|
|
120
|
-
"outputs": [],
|
|
121
|
-
"stateMutability": "nonpayable",
|
|
122
|
-
"type": "function"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [],
|
|
126
|
-
"name": "coin",
|
|
127
|
-
"outputs": [
|
|
128
|
-
{
|
|
129
|
-
"internalType": "contract IBEP20",
|
|
130
|
-
"name": "",
|
|
131
|
-
"type": "address"
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"stateMutability": "view",
|
|
135
|
-
"type": "function"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"inputs": [
|
|
139
|
-
{
|
|
140
|
-
"internalType": "uint256",
|
|
141
|
-
"name": "",
|
|
142
|
-
"type": "uint256"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"internalType": "uint256",
|
|
146
|
-
"name": "",
|
|
147
|
-
"type": "uint256"
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"name": "dayCanBuy",
|
|
151
|
-
"outputs": [
|
|
152
|
-
{
|
|
153
|
-
"internalType": "uint256",
|
|
154
|
-
"name": "",
|
|
155
|
-
"type": "uint256"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"stateMutability": "view",
|
|
159
|
-
"type": "function"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"inputs": [],
|
|
163
|
-
"name": "getListTokens",
|
|
164
|
-
"outputs": [
|
|
165
|
-
{
|
|
166
|
-
"components": [
|
|
167
|
-
{
|
|
168
|
-
"internalType": "address",
|
|
169
|
-
"name": "token",
|
|
170
|
-
"type": "address"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"internalType": "uint256",
|
|
174
|
-
"name": "unitPrice",
|
|
175
|
-
"type": "uint256"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"internalType": "uint256",
|
|
179
|
-
"name": "personLimit",
|
|
180
|
-
"type": "uint256"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"internalType": "struct TokenSell.Token[]",
|
|
184
|
-
"name": "",
|
|
185
|
-
"type": "tuple[]"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"stateMutability": "view",
|
|
189
|
-
"type": "function"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"inputs": [],
|
|
193
|
-
"name": "getOwner",
|
|
194
|
-
"outputs": [
|
|
195
|
-
{
|
|
196
|
-
"internalType": "address",
|
|
197
|
-
"name": "",
|
|
198
|
-
"type": "address"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"stateMutability": "view",
|
|
202
|
-
"type": "function"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"inputs": [
|
|
206
|
-
{
|
|
207
|
-
"internalType": "address",
|
|
208
|
-
"name": "_user",
|
|
209
|
-
"type": "address"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"internalType": "uint256",
|
|
213
|
-
"name": "_tokenId",
|
|
214
|
-
"type": "uint256"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"name": "getPersonWeekBuy",
|
|
218
|
-
"outputs": [
|
|
219
|
-
{
|
|
220
|
-
"internalType": "uint256",
|
|
221
|
-
"name": "",
|
|
222
|
-
"type": "uint256"
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"stateMutability": "view",
|
|
226
|
-
"type": "function"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"inputs": [
|
|
230
|
-
{
|
|
231
|
-
"internalType": "uint256",
|
|
232
|
-
"name": "_tokenId",
|
|
233
|
-
"type": "uint256"
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
"name": "getTodaySell",
|
|
237
|
-
"outputs": [
|
|
238
|
-
{
|
|
239
|
-
"internalType": "uint256",
|
|
240
|
-
"name": "",
|
|
241
|
-
"type": "uint256"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"stateMutability": "view",
|
|
245
|
-
"type": "function"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"inputs": [
|
|
249
|
-
{
|
|
250
|
-
"internalType": "uint256",
|
|
251
|
-
"name": "_tokenId",
|
|
252
|
-
"type": "uint256"
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
"name": "getToken",
|
|
256
|
-
"outputs": [
|
|
257
|
-
{
|
|
258
|
-
"components": [
|
|
259
|
-
{
|
|
260
|
-
"internalType": "address",
|
|
261
|
-
"name": "token",
|
|
262
|
-
"type": "address"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"internalType": "uint256",
|
|
266
|
-
"name": "unitPrice",
|
|
267
|
-
"type": "uint256"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"internalType": "uint256",
|
|
271
|
-
"name": "personLimit",
|
|
272
|
-
"type": "uint256"
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"internalType": "struct TokenSell.Token",
|
|
276
|
-
"name": "",
|
|
277
|
-
"type": "tuple"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"stateMutability": "view",
|
|
281
|
-
"type": "function"
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"inputs": [
|
|
285
|
-
{
|
|
286
|
-
"internalType": "address",
|
|
287
|
-
"name": "",
|
|
288
|
-
"type": "address"
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"name": "idOfToken",
|
|
292
|
-
"outputs": [
|
|
293
|
-
{
|
|
294
|
-
"internalType": "uint256",
|
|
295
|
-
"name": "",
|
|
296
|
-
"type": "uint256"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"stateMutability": "view",
|
|
300
|
-
"type": "function"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"inputs": [
|
|
304
|
-
{
|
|
305
|
-
"internalType": "address",
|
|
306
|
-
"name": "_operator",
|
|
307
|
-
"type": "address"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"name": "isAdmin",
|
|
311
|
-
"outputs": [
|
|
312
|
-
{
|
|
313
|
-
"internalType": "uint256",
|
|
314
|
-
"name": "",
|
|
315
|
-
"type": "uint256"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"stateMutability": "view",
|
|
319
|
-
"type": "function"
|
|
320
|
-
},
|
|
321
|
-
{
|
|
322
|
-
"inputs": [],
|
|
323
|
-
"name": "open",
|
|
324
|
-
"outputs": [],
|
|
325
|
-
"stateMutability": "nonpayable",
|
|
326
|
-
"type": "function"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"inputs": [
|
|
330
|
-
{
|
|
331
|
-
"internalType": "address",
|
|
332
|
-
"name": "_operator",
|
|
333
|
-
"type": "address"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
"internalType": "uint256",
|
|
337
|
-
"name": "_power",
|
|
338
|
-
"type": "uint256"
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
"name": "setAdmin",
|
|
342
|
-
"outputs": [],
|
|
343
|
-
"stateMutability": "nonpayable",
|
|
344
|
-
"type": "function"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"inputs": [
|
|
348
|
-
{
|
|
349
|
-
"internalType": "address",
|
|
350
|
-
"name": "_address",
|
|
351
|
-
"type": "address"
|
|
352
|
-
}
|
|
353
|
-
],
|
|
354
|
-
"name": "setCoin",
|
|
355
|
-
"outputs": [],
|
|
356
|
-
"stateMutability": "nonpayable",
|
|
357
|
-
"type": "function"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"inputs": [
|
|
361
|
-
{
|
|
362
|
-
"internalType": "uint256",
|
|
363
|
-
"name": "_weekDay",
|
|
364
|
-
"type": "uint256"
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
"internalType": "uint256",
|
|
368
|
-
"name": "_tokenId",
|
|
369
|
-
"type": "uint256"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"internalType": "uint256",
|
|
373
|
-
"name": "_count",
|
|
374
|
-
"type": "uint256"
|
|
375
|
-
}
|
|
376
|
-
],
|
|
377
|
-
"name": "setDayCanBuy",
|
|
378
|
-
"outputs": [],
|
|
379
|
-
"stateMutability": "nonpayable",
|
|
380
|
-
"type": "function"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"inputs": [
|
|
384
|
-
{
|
|
385
|
-
"internalType": "uint256",
|
|
386
|
-
"name": "_tokenId",
|
|
387
|
-
"type": "uint256"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"internalType": "address",
|
|
391
|
-
"name": "_token",
|
|
392
|
-
"type": "address"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"internalType": "uint256",
|
|
396
|
-
"name": "_unitPrice",
|
|
397
|
-
"type": "uint256"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"internalType": "uint256",
|
|
401
|
-
"name": "_personLimit",
|
|
402
|
-
"type": "uint256"
|
|
403
|
-
}
|
|
404
|
-
],
|
|
405
|
-
"name": "setToken",
|
|
406
|
-
"outputs": [],
|
|
407
|
-
"stateMutability": "nonpayable",
|
|
408
|
-
"type": "function"
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"inputs": [
|
|
412
|
-
{
|
|
413
|
-
"internalType": "uint256",
|
|
414
|
-
"name": "",
|
|
415
|
-
"type": "uint256"
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
"name": "tokens",
|
|
419
|
-
"outputs": [
|
|
420
|
-
{
|
|
421
|
-
"internalType": "address",
|
|
422
|
-
"name": "token",
|
|
423
|
-
"type": "address"
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
"internalType": "uint256",
|
|
427
|
-
"name": "unitPrice",
|
|
428
|
-
"type": "uint256"
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
"internalType": "uint256",
|
|
432
|
-
"name": "personLimit",
|
|
433
|
-
"type": "uint256"
|
|
434
|
-
}
|
|
435
|
-
],
|
|
436
|
-
"stateMutability": "view",
|
|
437
|
-
"type": "function"
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"inputs": [
|
|
441
|
-
{
|
|
442
|
-
"internalType": "address",
|
|
443
|
-
"name": "_newOwner",
|
|
444
|
-
"type": "address"
|
|
445
|
-
}
|
|
446
|
-
],
|
|
447
|
-
"name": "transferOwnership",
|
|
448
|
-
"outputs": [],
|
|
449
|
-
"stateMutability": "nonpayable",
|
|
450
|
-
"type": "function"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"inputs": [
|
|
454
|
-
{
|
|
455
|
-
"internalType": "address",
|
|
456
|
-
"name": "_owner",
|
|
457
|
-
"type": "address"
|
|
458
|
-
}
|
|
459
|
-
],
|
|
460
|
-
"name": "withdraw",
|
|
461
|
-
"outputs": [],
|
|
462
|
-
"stateMutability": "nonpayable",
|
|
463
|
-
"type": "function"
|
|
464
|
-
}
|
|
465
|
-
]
|
package/demo/abi/vipcard.json
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"anonymous": false,
|
|
4
|
-
"inputs": [
|
|
5
|
-
{
|
|
6
|
-
"indexed": false,
|
|
7
|
-
"internalType": "address",
|
|
8
|
-
"name": "_user",
|
|
9
|
-
"type": "address"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"indexed": false,
|
|
13
|
-
"internalType": "uint256",
|
|
14
|
-
"name": "_cardId",
|
|
15
|
-
"type": "uint256"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"name": "Use",
|
|
19
|
-
"type": "event"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"inputs": [],
|
|
23
|
-
"name": "invite",
|
|
24
|
-
"outputs": [
|
|
25
|
-
{
|
|
26
|
-
"internalType": "address",
|
|
27
|
-
"name": "",
|
|
28
|
-
"type": "address"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"stateMutability": "nonpayable",
|
|
32
|
-
"type": "function"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"inputs": [],
|
|
36
|
-
"name": "limitLevel",
|
|
37
|
-
"outputs": [
|
|
38
|
-
{
|
|
39
|
-
"internalType": "uint256",
|
|
40
|
-
"name": "",
|
|
41
|
-
"type": "uint256"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"stateMutability": "nonpayable",
|
|
45
|
-
"type": "function"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"internalType": "address",
|
|
51
|
-
"name": "_address",
|
|
52
|
-
"type": "address"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"name": "setInvite",
|
|
56
|
-
"outputs": [],
|
|
57
|
-
"stateMutability": "nonpayable",
|
|
58
|
-
"type": "function"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"inputs": [
|
|
62
|
-
{
|
|
63
|
-
"internalType": "uint256",
|
|
64
|
-
"name": "_level",
|
|
65
|
-
"type": "uint256"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"name": "setLimitLevel",
|
|
69
|
-
"outputs": [],
|
|
70
|
-
"stateMutability": "nonpayable",
|
|
71
|
-
"type": "function"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"inputs": [
|
|
75
|
-
{
|
|
76
|
-
"internalType": "uint256",
|
|
77
|
-
"name": "_id",
|
|
78
|
-
"type": "uint256"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"name": "use",
|
|
82
|
-
"outputs": [],
|
|
83
|
-
"stateMutability": "nonpayable",
|
|
84
|
-
"type": "function"
|
|
85
|
-
}
|
|
86
|
-
]
|