mixin_bot 0.9.0 → 0.11.0
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.
- checksums.yaml +4 -4
- data/lib/mixin_bot/api/encrypted_message.rb +204 -0
- data/lib/mixin_bot/api/message.rb +10 -181
- data/lib/mixin_bot/api/snapshot.rb +1 -1
- data/lib/mixin_bot/api.rb +2 -0
- data/lib/mixin_bot/cli/utils.rb +2 -2
- data/lib/mixin_bot/utils/nfo.rb +4 -5
- data/lib/mixin_bot/utils.rb +12 -13
- data/lib/mixin_bot/version.rb +1 -1
- data/lib/mvm/abis/bridge.json +154 -0
- data/lib/mvm/abis/erc20.json +188 -0
- data/lib/mvm/abis/erc721.json +317 -0
- data/lib/mvm/abis/mirror.json +163 -0
- data/lib/mvm/abis/registry.json +248 -0
- data/lib/mvm/bridge.rb +38 -0
- data/lib/mvm/client.rb +50 -0
- data/lib/mvm/nft.rb +53 -0
- data/lib/mvm/scan.rb +27 -0
- data/lib/mvm.rb +28 -0
- metadata +27 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "type": "address", "name": "factory", "internalType": "address" },
|
|
7
|
+
{ "type": "address", "name": "xin", "internalType": "address" }
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "event",
|
|
12
|
+
"name": "Bound",
|
|
13
|
+
"inputs": [
|
|
14
|
+
{
|
|
15
|
+
"type": "address",
|
|
16
|
+
"name": "from",
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"indexed": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "address",
|
|
22
|
+
"name": "to",
|
|
23
|
+
"internalType": "address",
|
|
24
|
+
"indexed": true
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"anonymous": false
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "event",
|
|
31
|
+
"name": "Through",
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"type": "address",
|
|
35
|
+
"name": "asset",
|
|
36
|
+
"internalType": "address",
|
|
37
|
+
"indexed": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "address",
|
|
41
|
+
"name": "from",
|
|
42
|
+
"internalType": "address",
|
|
43
|
+
"indexed": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "address",
|
|
47
|
+
"name": "to",
|
|
48
|
+
"internalType": "address",
|
|
49
|
+
"indexed": true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "uint256",
|
|
53
|
+
"name": "amount",
|
|
54
|
+
"internalType": "uint256",
|
|
55
|
+
"indexed": false
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"anonymous": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "event",
|
|
62
|
+
"name": "Vault",
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"type": "address",
|
|
66
|
+
"name": "from",
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"indexed": true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "uint256",
|
|
72
|
+
"name": "amount",
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"indexed": false
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"anonymous": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "function",
|
|
81
|
+
"stateMutability": "view",
|
|
82
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
83
|
+
"name": "BASE",
|
|
84
|
+
"inputs": []
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "function",
|
|
88
|
+
"stateMutability": "view",
|
|
89
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
90
|
+
"name": "FACTORY",
|
|
91
|
+
"inputs": []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "function",
|
|
95
|
+
"stateMutability": "view",
|
|
96
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
97
|
+
"name": "OWNER",
|
|
98
|
+
"inputs": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "function",
|
|
102
|
+
"stateMutability": "view",
|
|
103
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
104
|
+
"name": "XIN",
|
|
105
|
+
"inputs": []
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "function",
|
|
109
|
+
"stateMutability": "nonpayable",
|
|
110
|
+
"outputs": [],
|
|
111
|
+
"name": "bind",
|
|
112
|
+
"inputs": [
|
|
113
|
+
{ "type": "address", "name": "receiver", "internalType": "address" }
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "function",
|
|
118
|
+
"stateMutability": "view",
|
|
119
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
120
|
+
"name": "bridges",
|
|
121
|
+
"inputs": [{ "type": "address", "name": "", "internalType": "address" }]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "function",
|
|
125
|
+
"stateMutability": "nonpayable",
|
|
126
|
+
"outputs": [],
|
|
127
|
+
"name": "pass",
|
|
128
|
+
"inputs": [
|
|
129
|
+
{ "type": "address", "name": "asset", "internalType": "address" },
|
|
130
|
+
{ "type": "uint256", "name": "amount", "internalType": "uint256" }
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "function",
|
|
135
|
+
"stateMutability": "payable",
|
|
136
|
+
"outputs": [],
|
|
137
|
+
"name": "release",
|
|
138
|
+
"inputs": [
|
|
139
|
+
{ "type": "address", "name": "receiver", "internalType": "address" },
|
|
140
|
+
{ "type": "bytes", "name": "input", "internalType": "bytes" }
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "function",
|
|
145
|
+
"stateMutability": "nonpayable",
|
|
146
|
+
"outputs": [],
|
|
147
|
+
"name": "vault",
|
|
148
|
+
"inputs": [
|
|
149
|
+
{ "type": "address", "name": "asset", "internalType": "address" },
|
|
150
|
+
{ "type": "uint256", "name": "amount", "internalType": "uint256" }
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{ "type": "receive", "stateMutability": "payable" }
|
|
154
|
+
]
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "type": "uint128", "name": "_id", "internalType": "uint128" },
|
|
7
|
+
{ "type": "string", "name": "_name", "internalType": "string" },
|
|
8
|
+
{ "type": "string", "name": "_symbol", "internalType": "string" }
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "event",
|
|
13
|
+
"name": "Approval",
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"type": "address",
|
|
17
|
+
"name": "owner",
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"indexed": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "address",
|
|
23
|
+
"name": "spender",
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"indexed": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"name": "value",
|
|
30
|
+
"internalType": "uint256",
|
|
31
|
+
"indexed": false
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"anonymous": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "event",
|
|
38
|
+
"name": "Transfer",
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"type": "address",
|
|
42
|
+
"name": "from",
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"indexed": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "address",
|
|
48
|
+
"name": "to",
|
|
49
|
+
"internalType": "address",
|
|
50
|
+
"indexed": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "uint256",
|
|
54
|
+
"name": "value",
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"indexed": false
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"anonymous": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "function",
|
|
63
|
+
"stateMutability": "view",
|
|
64
|
+
"outputs": [
|
|
65
|
+
{ "type": "uint256", "name": "remaining", "internalType": "uint256" }
|
|
66
|
+
],
|
|
67
|
+
"name": "allowance",
|
|
68
|
+
"inputs": [
|
|
69
|
+
{ "type": "address", "name": "_owner", "internalType": "address" },
|
|
70
|
+
{ "type": "address", "name": "_spender", "internalType": "address" }
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "function",
|
|
75
|
+
"stateMutability": "nonpayable",
|
|
76
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
77
|
+
"name": "approve",
|
|
78
|
+
"inputs": [
|
|
79
|
+
{ "type": "address", "name": "_spender", "internalType": "address" },
|
|
80
|
+
{ "type": "uint256", "name": "_value", "internalType": "uint256" }
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "function",
|
|
85
|
+
"stateMutability": "view",
|
|
86
|
+
"outputs": [
|
|
87
|
+
{ "type": "uint256", "name": "balance", "internalType": "uint256" }
|
|
88
|
+
],
|
|
89
|
+
"name": "balanceOf",
|
|
90
|
+
"inputs": [
|
|
91
|
+
{ "type": "address", "name": "_owner", "internalType": "address" }
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "function",
|
|
96
|
+
"stateMutability": "nonpayable",
|
|
97
|
+
"outputs": [],
|
|
98
|
+
"name": "burn",
|
|
99
|
+
"inputs": [
|
|
100
|
+
{ "type": "address", "name": "to", "internalType": "address" },
|
|
101
|
+
{ "type": "uint256", "name": "value", "internalType": "uint256" }
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "function",
|
|
106
|
+
"stateMutability": "view",
|
|
107
|
+
"outputs": [{ "type": "uint8", "name": "", "internalType": "uint8" }],
|
|
108
|
+
"name": "decimals",
|
|
109
|
+
"inputs": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "function",
|
|
113
|
+
"stateMutability": "view",
|
|
114
|
+
"outputs": [{ "type": "uint128", "name": "", "internalType": "uint128" }],
|
|
115
|
+
"name": "id",
|
|
116
|
+
"inputs": []
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "function",
|
|
120
|
+
"stateMutability": "nonpayable",
|
|
121
|
+
"outputs": [],
|
|
122
|
+
"name": "mint",
|
|
123
|
+
"inputs": [
|
|
124
|
+
{ "type": "address", "name": "to", "internalType": "address" },
|
|
125
|
+
{ "type": "uint256", "name": "value", "internalType": "uint256" }
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "function",
|
|
130
|
+
"stateMutability": "view",
|
|
131
|
+
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
132
|
+
"name": "name",
|
|
133
|
+
"inputs": []
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "function",
|
|
137
|
+
"stateMutability": "view",
|
|
138
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
139
|
+
"name": "registry",
|
|
140
|
+
"inputs": []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "function",
|
|
144
|
+
"stateMutability": "view",
|
|
145
|
+
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
146
|
+
"name": "symbol",
|
|
147
|
+
"inputs": []
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "function",
|
|
151
|
+
"stateMutability": "view",
|
|
152
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
153
|
+
"name": "totalSupply",
|
|
154
|
+
"inputs": []
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "function",
|
|
158
|
+
"stateMutability": "nonpayable",
|
|
159
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
160
|
+
"name": "transfer",
|
|
161
|
+
"inputs": [
|
|
162
|
+
{ "type": "address", "name": "to", "internalType": "address" },
|
|
163
|
+
{ "type": "uint256", "name": "value", "internalType": "uint256" }
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "function",
|
|
168
|
+
"stateMutability": "nonpayable",
|
|
169
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
170
|
+
"name": "transferFrom",
|
|
171
|
+
"inputs": [
|
|
172
|
+
{ "type": "address", "name": "from", "internalType": "address" },
|
|
173
|
+
{ "type": "address", "name": "to", "internalType": "address" },
|
|
174
|
+
{ "type": "uint256", "name": "value", "internalType": "uint256" }
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "function",
|
|
179
|
+
"stateMutability": "nonpayable",
|
|
180
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
181
|
+
"name": "transferWithExtra",
|
|
182
|
+
"inputs": [
|
|
183
|
+
{ "type": "address", "name": "to", "internalType": "address" },
|
|
184
|
+
{ "type": "uint256", "name": "value", "internalType": "uint256" },
|
|
185
|
+
{ "type": "bytes", "name": "extra", "internalType": "bytes" }
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
]
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"stateMutability": "nonpayable",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{ "type": "uint256", "name": "_collection", "internalType": "uint256" },
|
|
7
|
+
{ "type": "string", "name": "_name", "internalType": "string" },
|
|
8
|
+
{ "type": "string", "name": "_symbol", "internalType": "string" }
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "event",
|
|
13
|
+
"name": "Approval",
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"type": "address",
|
|
17
|
+
"name": "_owner",
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"indexed": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "address",
|
|
23
|
+
"name": "_approved",
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"indexed": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"name": "_tokenId",
|
|
30
|
+
"internalType": "uint256",
|
|
31
|
+
"indexed": true
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"anonymous": false
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "event",
|
|
38
|
+
"name": "ApprovalForAll",
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"type": "address",
|
|
42
|
+
"name": "_owner",
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"indexed": true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "address",
|
|
48
|
+
"name": "_operator",
|
|
49
|
+
"internalType": "address",
|
|
50
|
+
"indexed": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "bool",
|
|
54
|
+
"name": "_approved",
|
|
55
|
+
"internalType": "bool",
|
|
56
|
+
"indexed": false
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"anonymous": false
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"type": "event",
|
|
63
|
+
"name": "OwnershipTransferred",
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"type": "address",
|
|
67
|
+
"name": "previousOwner",
|
|
68
|
+
"internalType": "address",
|
|
69
|
+
"indexed": true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "address",
|
|
73
|
+
"name": "newOwner",
|
|
74
|
+
"internalType": "address",
|
|
75
|
+
"indexed": true
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"anonymous": false
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "event",
|
|
82
|
+
"name": "Transfer",
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"type": "address",
|
|
86
|
+
"name": "_from",
|
|
87
|
+
"internalType": "address",
|
|
88
|
+
"indexed": true
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "address",
|
|
92
|
+
"name": "_to",
|
|
93
|
+
"internalType": "address",
|
|
94
|
+
"indexed": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "uint256",
|
|
98
|
+
"name": "_tokenId",
|
|
99
|
+
"internalType": "uint256",
|
|
100
|
+
"indexed": true
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"anonymous": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "function",
|
|
107
|
+
"stateMutability": "view",
|
|
108
|
+
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
109
|
+
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
|
|
110
|
+
"inputs": []
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "function",
|
|
114
|
+
"stateMutability": "view",
|
|
115
|
+
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
116
|
+
"name": "NOT_CURRENT_OWNER",
|
|
117
|
+
"inputs": []
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "function",
|
|
121
|
+
"stateMutability": "nonpayable",
|
|
122
|
+
"outputs": [],
|
|
123
|
+
"name": "approve",
|
|
124
|
+
"inputs": [
|
|
125
|
+
{ "type": "address", "name": "_approved", "internalType": "address" },
|
|
126
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "function",
|
|
131
|
+
"stateMutability": "view",
|
|
132
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
133
|
+
"name": "balanceOf",
|
|
134
|
+
"inputs": [
|
|
135
|
+
{ "type": "address", "name": "_owner", "internalType": "address" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "function",
|
|
140
|
+
"stateMutability": "nonpayable",
|
|
141
|
+
"outputs": [],
|
|
142
|
+
"name": "burn",
|
|
143
|
+
"inputs": [
|
|
144
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "function",
|
|
149
|
+
"stateMutability": "view",
|
|
150
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
151
|
+
"name": "collection",
|
|
152
|
+
"inputs": []
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "function",
|
|
156
|
+
"stateMutability": "view",
|
|
157
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
158
|
+
"name": "getApproved",
|
|
159
|
+
"inputs": [
|
|
160
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "function",
|
|
165
|
+
"stateMutability": "view",
|
|
166
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
167
|
+
"name": "isApprovedForAll",
|
|
168
|
+
"inputs": [
|
|
169
|
+
{ "type": "address", "name": "_owner", "internalType": "address" },
|
|
170
|
+
{ "type": "address", "name": "_operator", "internalType": "address" }
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "function",
|
|
175
|
+
"stateMutability": "nonpayable",
|
|
176
|
+
"outputs": [],
|
|
177
|
+
"name": "mint",
|
|
178
|
+
"inputs": [
|
|
179
|
+
{ "type": "address", "name": "_to", "internalType": "address" },
|
|
180
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" },
|
|
181
|
+
{ "type": "string", "name": "_uri", "internalType": "string" }
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "function",
|
|
186
|
+
"stateMutability": "view",
|
|
187
|
+
"outputs": [
|
|
188
|
+
{ "type": "string", "name": "_name", "internalType": "string" }
|
|
189
|
+
],
|
|
190
|
+
"name": "name",
|
|
191
|
+
"inputs": []
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "function",
|
|
195
|
+
"stateMutability": "view",
|
|
196
|
+
"outputs": [{ "type": "address", "name": "", "internalType": "address" }],
|
|
197
|
+
"name": "owner",
|
|
198
|
+
"inputs": []
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "function",
|
|
202
|
+
"stateMutability": "view",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{ "type": "address", "name": "_owner", "internalType": "address" }
|
|
205
|
+
],
|
|
206
|
+
"name": "ownerOf",
|
|
207
|
+
"inputs": [
|
|
208
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"type": "function",
|
|
213
|
+
"stateMutability": "nonpayable",
|
|
214
|
+
"outputs": [],
|
|
215
|
+
"name": "safeTransferFrom",
|
|
216
|
+
"inputs": [
|
|
217
|
+
{ "type": "address", "name": "_from", "internalType": "address" },
|
|
218
|
+
{ "type": "address", "name": "_to", "internalType": "address" },
|
|
219
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "function",
|
|
224
|
+
"stateMutability": "nonpayable",
|
|
225
|
+
"outputs": [],
|
|
226
|
+
"name": "safeTransferFrom",
|
|
227
|
+
"inputs": [
|
|
228
|
+
{ "type": "address", "name": "_from", "internalType": "address" },
|
|
229
|
+
{ "type": "address", "name": "_to", "internalType": "address" },
|
|
230
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" },
|
|
231
|
+
{ "type": "bytes", "name": "_data", "internalType": "bytes" }
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "function",
|
|
236
|
+
"stateMutability": "nonpayable",
|
|
237
|
+
"outputs": [],
|
|
238
|
+
"name": "setApprovalForAll",
|
|
239
|
+
"inputs": [
|
|
240
|
+
{ "type": "address", "name": "_operator", "internalType": "address" },
|
|
241
|
+
{ "type": "bool", "name": "_approved", "internalType": "bool" }
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "function",
|
|
246
|
+
"stateMutability": "view",
|
|
247
|
+
"outputs": [{ "type": "bool", "name": "", "internalType": "bool" }],
|
|
248
|
+
"name": "supportsInterface",
|
|
249
|
+
"inputs": [
|
|
250
|
+
{ "type": "bytes4", "name": "_interfaceID", "internalType": "bytes4" }
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"type": "function",
|
|
255
|
+
"stateMutability": "view",
|
|
256
|
+
"outputs": [
|
|
257
|
+
{ "type": "string", "name": "_symbol", "internalType": "string" }
|
|
258
|
+
],
|
|
259
|
+
"name": "symbol",
|
|
260
|
+
"inputs": []
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "function",
|
|
264
|
+
"stateMutability": "view",
|
|
265
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
266
|
+
"name": "tokenByIndex",
|
|
267
|
+
"inputs": [
|
|
268
|
+
{ "type": "uint256", "name": "_index", "internalType": "uint256" }
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "function",
|
|
273
|
+
"stateMutability": "view",
|
|
274
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
275
|
+
"name": "tokenOfOwnerByIndex",
|
|
276
|
+
"inputs": [
|
|
277
|
+
{ "type": "address", "name": "_owner", "internalType": "address" },
|
|
278
|
+
{ "type": "uint256", "name": "_index", "internalType": "uint256" }
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "function",
|
|
283
|
+
"stateMutability": "view",
|
|
284
|
+
"outputs": [{ "type": "string", "name": "", "internalType": "string" }],
|
|
285
|
+
"name": "tokenURI",
|
|
286
|
+
"inputs": [
|
|
287
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "function",
|
|
292
|
+
"stateMutability": "view",
|
|
293
|
+
"outputs": [{ "type": "uint256", "name": "", "internalType": "uint256" }],
|
|
294
|
+
"name": "totalSupply",
|
|
295
|
+
"inputs": []
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"type": "function",
|
|
299
|
+
"stateMutability": "nonpayable",
|
|
300
|
+
"outputs": [],
|
|
301
|
+
"name": "transferFrom",
|
|
302
|
+
"inputs": [
|
|
303
|
+
{ "type": "address", "name": "_from", "internalType": "address" },
|
|
304
|
+
{ "type": "address", "name": "_to", "internalType": "address" },
|
|
305
|
+
{ "type": "uint256", "name": "_tokenId", "internalType": "uint256" }
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "function",
|
|
310
|
+
"stateMutability": "nonpayable",
|
|
311
|
+
"outputs": [],
|
|
312
|
+
"name": "transferOwnership",
|
|
313
|
+
"inputs": [
|
|
314
|
+
{ "type": "address", "name": "_newOwner", "internalType": "address" }
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
]
|