substrate-nft-tracker 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3b43198ef2d4325bc3e406ca0badb5e8f8c88c4045f18d5338ea91ae856e1f7b
4
+ data.tar.gz: 5611c4ab857aab7fc68836ac19e7531efdb41e2997fc0f55760dc974b1c92675
5
+ SHA512:
6
+ metadata.gz: e45b0e2b68a2cbd0e999944f66073baf935178082dc602c148dbba8cdb8bb761a7b882bf7b5dfc33467635dc9297810f7e10f7ac0a6e5cb02b97fe7ea7709ba4
7
+ data.tar.gz: 673abc1c7ff2613fdda71510f24fc7f555fccee823ace11486c01ee6e916f267ea762138ad29e26e79f3a30e8df1769ac23bbc8d7b60815d29d1cc95f87dd963
data/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ test.rb
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ Style/StringLiterals:
2
+ Enabled: true
3
+ EnforcedStyle: double_quotes
4
+
5
+ Style/StringLiteralsInInterpolation:
6
+ Enabled: true
7
+ EnforcedStyle: double_quotes
8
+
9
+ Layout/LineLength:
10
+ Max: 120
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at wuminzhe@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in substrate-nft-tracker.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 0.80"
data/Gemfile.lock ADDED
@@ -0,0 +1,104 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ substrate-nft-tracker (0.1.0)
5
+ ethereum.rb (~> 2.5)
6
+ scale.rb (~> 0.3.2)
7
+ sqlite3 (~> 1.4, >= 1.4.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (6.1.4.1)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ zeitwerk (~> 2.3)
18
+ ast (2.4.2)
19
+ base58 (0.2.3)
20
+ blake2b_rs (0.1.2)
21
+ ffi (= 1.15.0)
22
+ thermite (~> 0)
23
+ concurrent-ruby (1.1.9)
24
+ diff-lcs (1.4.4)
25
+ digest-sha3 (1.1.0)
26
+ ethereum.rb (2.5)
27
+ activesupport (>= 4.0)
28
+ digest-sha3 (~> 1.1)
29
+ eventmachine (1.2.7)
30
+ faye-websocket (0.11.1)
31
+ eventmachine (>= 0.12.0)
32
+ websocket-driver (>= 0.5.1)
33
+ ffi (1.15.0)
34
+ i18n (1.8.10)
35
+ concurrent-ruby (~> 1.0)
36
+ json (2.3.1)
37
+ minitar (0.9)
38
+ minitest (5.14.4)
39
+ parallel (1.20.1)
40
+ parser (3.0.2.0)
41
+ ast (~> 2.4.1)
42
+ rainbow (3.0.0)
43
+ rake (13.0.6)
44
+ regexp_parser (2.1.1)
45
+ rexml (3.2.5)
46
+ rspec (3.10.0)
47
+ rspec-core (~> 3.10.0)
48
+ rspec-expectations (~> 3.10.0)
49
+ rspec-mocks (~> 3.10.0)
50
+ rspec-core (3.10.1)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-expectations (3.10.1)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-mocks (3.10.2)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.10.0)
58
+ rspec-support (3.10.2)
59
+ rubocop (0.93.1)
60
+ parallel (~> 1.10)
61
+ parser (>= 2.7.1.5)
62
+ rainbow (>= 2.2.2, < 4.0)
63
+ regexp_parser (>= 1.8)
64
+ rexml
65
+ rubocop-ast (>= 0.6.0)
66
+ ruby-progressbar (~> 1.7)
67
+ unicode-display_width (>= 1.4.0, < 2.0)
68
+ rubocop-ast (1.9.1)
69
+ parser (>= 3.0.1.1)
70
+ ruby-progressbar (1.11.0)
71
+ scale.rb (0.3.2)
72
+ base58
73
+ blake2b_rs (~> 0.1.2)
74
+ faye-websocket
75
+ json (~> 2.3.0)
76
+ thor (~> 1.0)
77
+ xxhash
78
+ sqlite3 (1.4.2)
79
+ thermite (0.13.0)
80
+ minitar (~> 0.5)
81
+ rake (>= 10)
82
+ tomlrb (~> 1.2)
83
+ thor (1.1.0)
84
+ tomlrb (1.3.0)
85
+ tzinfo (2.0.4)
86
+ concurrent-ruby (~> 1.0)
87
+ unicode-display_width (1.7.0)
88
+ websocket-driver (0.7.5)
89
+ websocket-extensions (>= 0.1.0)
90
+ websocket-extensions (0.1.5)
91
+ xxhash (0.4.0)
92
+ zeitwerk (2.4.2)
93
+
94
+ PLATFORMS
95
+ arm64-darwin-20
96
+
97
+ DEPENDENCIES
98
+ rake (~> 13.0)
99
+ rspec (~> 3.0)
100
+ rubocop (~> 0.80)
101
+ substrate-nft-tracker!
102
+
103
+ BUNDLED WITH
104
+ 2.2.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Aki Wu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Substrate Nft Tracker
2
+
3
+ This is a tool for tracking NFT in the evm pallet of substrate based blockchain.
4
+
5
+ This tool is part of [The NFT Explorer](https://github.com/uni-arts-chain/uniscan). It gets NFT-related events by listening to the substrate's native events.
6
+
7
+ The advantage of this approach is that it does not rely on the rpc interfaces provided by the Ethereum, but uses the native rpc interface provided by substrate. This approach is more reliable in the polkadot ecosystem.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ $ gem install substrate-nft-tracker
13
+ ```
14
+
15
+ ## Run
16
+
17
+ Run an example(it is for Darwinia Pangolin Network) that has been implemented here.
18
+
19
+ ```bash
20
+ $ pangolin 1234
21
+ ```
22
+
23
+ The only parameter is the start block height.
24
+
25
+ ## Develop a new NFT tracker for a new blockchain
26
+
27
+ You can create a new project yourself, or you can fork the project and add files on top of it, I recommend the latter:
28
+
29
+ 1. Create the client of the blockchain
30
+
31
+ You can refer to `lib/testnets/pangolin.rb` as an example.
32
+
33
+ You need to add types for this chain and implement two methods `get_latest_block_number()` and `get_events_by_block_number(block_number)`.
34
+
35
+ 2. Create an executable program
36
+
37
+ You can refer to `exe/pangolin` as an example.
38
+
39
+ ## Test
40
+
41
+ run `rake spec` to run the tests.
42
+
43
+ ## Contributing
44
+
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/uni-arts-chain/substrate-nft-tracker.
46
+
47
+ ## License
48
+
49
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "tracker"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/pangolin ADDED
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path("../lib/tracker", __dir__)
4
+
5
+ Tracker::logger = Logger.new(STDOUT)
6
+ Tracker::logger.level = Logger::INFO
7
+
8
+ if ARGV[0].nil?
9
+ puts "Please input a block_number."
10
+ puts "Usage: pangolin <BLOCK_NUMBER>"
11
+ else
12
+ begin
13
+ start_from = Integer(ARGV[0])
14
+
15
+ # name, symbol = get_name_and_symbol(client, "0xBD9058bed767E006dbE4Ab1ba85446401b1daafC")
16
+
17
+ # init client and nft helper
18
+ pangolin = Pangolin.new("wss://pangolin-rpc.darwinia.network")
19
+ nft_helper = SubstrateEvmNftHelper.new(pangolin)
20
+ contract_helper = PangolinContractHelper.new
21
+
22
+ nft_helper.track_nft(start_from) do |erc721_events, erc1155_events|
23
+ # TODO: send to sidekiq queue
24
+
25
+ erc721_events.each do |erc721_event|
26
+ begin
27
+ name, symbol = contract_helper.get_name_and_symbol(erc721_event[:address])
28
+ token_uri = contract_helper.get_token_uri(erc721_event[:address], erc721_event[:token_id])
29
+ puts "name: #{name}, symbol: #{symbol}, token_uri: #{token_uri}, #{erc721_event}"
30
+ rescue => ex
31
+ puts ex.message
32
+ puts ex.backtrace
33
+ end
34
+ end
35
+
36
+ erc1155_events.each do |erc1155_event|
37
+ begin
38
+ uri = contract_helper.get_uri(erc1155_event[:address], erc1155_event[:token_id])
39
+ puts "uri: #{uri}, #{erc1155_event}"
40
+ rescue => ex
41
+ puts ex.message
42
+ puts ex.backtrace
43
+ end
44
+ end
45
+
46
+ end
47
+
48
+ rescue ArgumentError => ex
49
+ if ex.message.start_with?("invalid value for Integer")
50
+ puts "Please input an integer as the block number."
51
+ puts "Usage: pangolin <BLOCK_NUMBER>"
52
+ end
53
+ rescue => ex
54
+ puts ex.message
55
+ puts ex.backtrace
56
+ end
57
+ end
data/lib/.DS_Store ADDED
Binary file
data/lib/erc1155.json ADDED
@@ -0,0 +1,325 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "account",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "indexed": true,
13
+ "internalType": "address",
14
+ "name": "operator",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "indexed": false,
19
+ "internalType": "bool",
20
+ "name": "approved",
21
+ "type": "bool"
22
+ }
23
+ ],
24
+ "name": "ApprovalForAll",
25
+ "type": "event"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "operator",
34
+ "type": "address"
35
+ },
36
+ {
37
+ "indexed": true,
38
+ "internalType": "address",
39
+ "name": "from",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": true,
44
+ "internalType": "address",
45
+ "name": "to",
46
+ "type": "address"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint256[]",
51
+ "name": "ids",
52
+ "type": "uint256[]"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "uint256[]",
57
+ "name": "values",
58
+ "type": "uint256[]"
59
+ }
60
+ ],
61
+ "name": "TransferBatch",
62
+ "type": "event"
63
+ },
64
+ {
65
+ "anonymous": false,
66
+ "inputs": [
67
+ {
68
+ "indexed": true,
69
+ "internalType": "address",
70
+ "name": "operator",
71
+ "type": "address"
72
+ },
73
+ {
74
+ "indexed": true,
75
+ "internalType": "address",
76
+ "name": "from",
77
+ "type": "address"
78
+ },
79
+ {
80
+ "indexed": true,
81
+ "internalType": "address",
82
+ "name": "to",
83
+ "type": "address"
84
+ },
85
+ {
86
+ "indexed": false,
87
+ "internalType": "uint256",
88
+ "name": "id",
89
+ "type": "uint256"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "uint256",
94
+ "name": "value",
95
+ "type": "uint256"
96
+ }
97
+ ],
98
+ "name": "TransferSingle",
99
+ "type": "event"
100
+ },
101
+ {
102
+ "anonymous": false,
103
+ "inputs": [
104
+ {
105
+ "indexed": false,
106
+ "internalType": "string",
107
+ "name": "value",
108
+ "type": "string"
109
+ },
110
+ {
111
+ "indexed": true,
112
+ "internalType": "uint256",
113
+ "name": "id",
114
+ "type": "uint256"
115
+ }
116
+ ],
117
+ "name": "URI",
118
+ "type": "event"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "address",
124
+ "name": "from",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "internalType": "address",
129
+ "name": "to",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "internalType": "uint256[]",
134
+ "name": "ids",
135
+ "type": "uint256[]"
136
+ },
137
+ {
138
+ "internalType": "uint256[]",
139
+ "name": "amounts",
140
+ "type": "uint256[]"
141
+ },
142
+ {
143
+ "internalType": "bytes",
144
+ "name": "data",
145
+ "type": "bytes"
146
+ }
147
+ ],
148
+ "name": "safeBatchTransferFrom",
149
+ "outputs": [],
150
+ "stateMutability": "nonpayable",
151
+ "type": "function"
152
+ },
153
+ {
154
+ "inputs": [
155
+ {
156
+ "internalType": "address",
157
+ "name": "from",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "internalType": "address",
162
+ "name": "to",
163
+ "type": "address"
164
+ },
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "id",
168
+ "type": "uint256"
169
+ },
170
+ {
171
+ "internalType": "uint256",
172
+ "name": "amount",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "internalType": "bytes",
177
+ "name": "data",
178
+ "type": "bytes"
179
+ }
180
+ ],
181
+ "name": "safeTransferFrom",
182
+ "outputs": [],
183
+ "stateMutability": "nonpayable",
184
+ "type": "function"
185
+ },
186
+ {
187
+ "inputs": [
188
+ {
189
+ "internalType": "address",
190
+ "name": "operator",
191
+ "type": "address"
192
+ },
193
+ {
194
+ "internalType": "bool",
195
+ "name": "approved",
196
+ "type": "bool"
197
+ }
198
+ ],
199
+ "name": "setApprovalForAll",
200
+ "outputs": [],
201
+ "stateMutability": "nonpayable",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [
206
+ {
207
+ "internalType": "string",
208
+ "name": "uri_",
209
+ "type": "string"
210
+ }
211
+ ],
212
+ "stateMutability": "nonpayable",
213
+ "type": "constructor"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "address",
219
+ "name": "account",
220
+ "type": "address"
221
+ },
222
+ {
223
+ "internalType": "uint256",
224
+ "name": "id",
225
+ "type": "uint256"
226
+ }
227
+ ],
228
+ "name": "balanceOf",
229
+ "outputs": [
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "stateMutability": "view",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [
241
+ {
242
+ "internalType": "address[]",
243
+ "name": "accounts",
244
+ "type": "address[]"
245
+ },
246
+ {
247
+ "internalType": "uint256[]",
248
+ "name": "ids",
249
+ "type": "uint256[]"
250
+ }
251
+ ],
252
+ "name": "balanceOfBatch",
253
+ "outputs": [
254
+ {
255
+ "internalType": "uint256[]",
256
+ "name": "",
257
+ "type": "uint256[]"
258
+ }
259
+ ],
260
+ "stateMutability": "view",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "address",
267
+ "name": "account",
268
+ "type": "address"
269
+ },
270
+ {
271
+ "internalType": "address",
272
+ "name": "operator",
273
+ "type": "address"
274
+ }
275
+ ],
276
+ "name": "isApprovedForAll",
277
+ "outputs": [
278
+ {
279
+ "internalType": "bool",
280
+ "name": "",
281
+ "type": "bool"
282
+ }
283
+ ],
284
+ "stateMutability": "view",
285
+ "type": "function"
286
+ },
287
+ {
288
+ "inputs": [
289
+ {
290
+ "internalType": "bytes4",
291
+ "name": "interfaceId",
292
+ "type": "bytes4"
293
+ }
294
+ ],
295
+ "name": "supportsInterface",
296
+ "outputs": [
297
+ {
298
+ "internalType": "bool",
299
+ "name": "",
300
+ "type": "bool"
301
+ }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "uint256",
310
+ "name": "",
311
+ "type": "uint256"
312
+ }
313
+ ],
314
+ "name": "uri",
315
+ "outputs": [
316
+ {
317
+ "internalType": "string",
318
+ "name": "",
319
+ "type": "string"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ }
325
+ ]