@subwallet/extension-base 1.0.1 → 1.0.2-1b

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.
Files changed (220) hide show
  1. package/background/KoniTypes.d.ts +25 -36
  2. package/background/KoniTypes.js +12 -7
  3. package/background/errors/TransactionError.js +21 -1
  4. package/cjs/background/KoniTypes.js +14 -8
  5. package/cjs/background/errors/TransactionError.js +20 -0
  6. package/cjs/constants/index.js +13 -28
  7. package/cjs/koni/api/dotsama/balance.js +60 -224
  8. package/cjs/koni/api/dotsama/transfer.js +30 -29
  9. package/cjs/koni/api/nft/acala_nft/index.js +4 -1
  10. package/cjs/koni/api/nft/bit.country/index.js +4 -1
  11. package/cjs/koni/api/nft/evm_nft/index.js +7 -3
  12. package/cjs/koni/api/nft/index.js +3 -6
  13. package/cjs/koni/api/nft/karura_nft/index.js +4 -1
  14. package/cjs/koni/api/nft/rmrk_nft/index.js +8 -1
  15. package/cjs/koni/api/nft/statemine_nft/index.js +4 -1
  16. package/cjs/koni/api/nft/unique_nft/index.js +6 -1
  17. package/cjs/koni/api/nft/wasm_nft/index.js +169 -111
  18. package/cjs/koni/api/nft/wasm_nft/utils.js +11 -7
  19. package/cjs/koni/api/staking/bonding/amplitude.js +18 -10
  20. package/cjs/koni/api/staking/bonding/astar.js +37 -238
  21. package/cjs/koni/api/staking/bonding/index.js +26 -14
  22. package/cjs/koni/api/staking/bonding/paraChain.js +100 -11
  23. package/cjs/koni/api/staking/bonding/relayChain.js +174 -16
  24. package/cjs/koni/api/staking/bonding/utils.js +55 -10
  25. package/cjs/koni/api/tokens/wasm/index.js +5 -4
  26. package/cjs/koni/api/tokens/wasm/utils.js +63 -0
  27. package/cjs/koni/api/xcm/index.js +0 -111
  28. package/cjs/koni/api/xcm/polkadotXcm.js +2 -2
  29. package/cjs/koni/api/xcm/utils.js +18 -13
  30. package/cjs/koni/api/xcm/xTokens.js +3 -5
  31. package/cjs/koni/api/xcm/xcmPallet.js +9 -6
  32. package/cjs/koni/background/cron.js +179 -77
  33. package/cjs/koni/background/handlers/Extension.js +231 -195
  34. package/cjs/koni/background/handlers/State.js +147 -111
  35. package/cjs/koni/background/handlers/Tabs.js +48 -39
  36. package/cjs/koni/background/subscription.js +64 -56
  37. package/cjs/packageInfo.js +1 -1
  38. package/cjs/page/index.js +5 -0
  39. package/cjs/services/chain-service/constants.js +1 -11
  40. package/cjs/services/chain-service/handler/SubstrateChainHandler.js +13 -8
  41. package/cjs/services/chain-service/handler/light-client/index.js +2 -0
  42. package/cjs/services/chain-service/index.js +39 -6
  43. package/cjs/services/chain-service/utils.js +4 -0
  44. package/cjs/services/event-service/index.js +75 -0
  45. package/cjs/services/event-service/types.js +11 -0
  46. package/cjs/services/history-service/index.js +46 -21
  47. package/cjs/services/history-service/subsquid-multi-chain-history.js +19 -11
  48. package/cjs/services/keyring-service/index.js +101 -0
  49. package/cjs/services/migration-service/index.js +13 -10
  50. package/cjs/{koni/migration/scripts/RemoveWrongCrowdloan.js → services/migration-service/scripts/AutoEnableChainsTokens.js} +11 -6
  51. package/cjs/services/migration-service/scripts/MigrateNetworkSettings.js +39 -19
  52. package/cjs/services/migration-service/scripts/MigrateSettings.js +31 -0
  53. package/cjs/services/migration-service/scripts/MigrateTransactionHistory.js +72 -0
  54. package/cjs/services/migration-service/scripts/index.js +13 -4
  55. package/cjs/services/price-service/coingecko.js +15 -3
  56. package/cjs/services/price-service/index.js +15 -18
  57. package/cjs/services/request-service/constants.js +8 -2
  58. package/cjs/services/request-service/handler/AuthRequestHandler.js +43 -12
  59. package/cjs/services/request-service/index.js +3 -0
  60. package/cjs/services/storage-service/DatabaseService.js +53 -34
  61. package/cjs/services/storage-service/databases/index.js +1 -1
  62. package/cjs/services/storage-service/db-stores/BaseStoreWithAddressAndChain.js +2 -8
  63. package/cjs/services/storage-service/db-stores/Nft.js +8 -18
  64. package/cjs/services/storage-service/db-stores/Transaction.js +10 -7
  65. package/cjs/services/subscan-service/index.js +107 -0
  66. package/cjs/services/subscan-service/subscan-chain-map.js +74 -0
  67. package/cjs/services/subscan-service/types.js +1 -0
  68. package/cjs/services/transaction-service/event-parser/index.js +20 -48
  69. package/cjs/services/transaction-service/index.js +66 -22
  70. package/cjs/services/transaction-service/utils.js +4 -6
  71. package/cjs/utils/address.js +9 -1
  72. package/cjs/utils/index.js +30 -26
  73. package/constants/index.d.ts +8 -13
  74. package/constants/index.js +8 -13
  75. package/koni/api/dotsama/balance.d.ts +0 -1
  76. package/koni/api/dotsama/balance.js +33 -197
  77. package/koni/api/dotsama/transfer.js +5 -4
  78. package/koni/api/nft/acala_nft/index.js +3 -1
  79. package/koni/api/nft/bit.country/index.js +3 -1
  80. package/koni/api/nft/evm_nft/index.js +6 -3
  81. package/koni/api/nft/index.d.ts +1 -2
  82. package/koni/api/nft/index.js +3 -6
  83. package/koni/api/nft/karura_nft/index.js +3 -1
  84. package/koni/api/nft/nft.d.ts +1 -0
  85. package/koni/api/nft/rmrk_nft/index.js +8 -1
  86. package/koni/api/nft/statemine_nft/index.js +3 -1
  87. package/koni/api/nft/unique_nft/index.js +5 -1
  88. package/koni/api/nft/wasm_nft/index.d.ts +0 -2
  89. package/koni/api/nft/wasm_nft/index.js +167 -109
  90. package/koni/api/nft/wasm_nft/utils.d.ts +7 -5
  91. package/koni/api/nft/wasm_nft/utils.js +7 -5
  92. package/koni/api/staking/bonding/amplitude.d.ts +1 -2
  93. package/koni/api/staking/bonding/amplitude.js +22 -13
  94. package/koni/api/staking/bonding/astar.d.ts +2 -11
  95. package/koni/api/staking/bonding/astar.js +39 -231
  96. package/koni/api/staking/bonding/index.d.ts +5 -2
  97. package/koni/api/staking/bonding/index.js +27 -17
  98. package/koni/api/staking/bonding/paraChain.d.ts +4 -1
  99. package/koni/api/staking/bonding/paraChain.js +101 -14
  100. package/koni/api/staking/bonding/relayChain.d.ts +6 -2
  101. package/koni/api/staking/bonding/relayChain.js +172 -17
  102. package/koni/api/staking/bonding/utils.d.ts +15 -2
  103. package/koni/api/staking/bonding/utils.js +53 -11
  104. package/koni/api/tokens/wasm/index.js +5 -4
  105. package/koni/api/tokens/wasm/utils.d.ts +6 -0
  106. package/koni/api/tokens/wasm/utils.js +54 -0
  107. package/koni/api/xcm/index.js +1 -112
  108. package/koni/api/xcm/polkadotXcm.js +3 -3
  109. package/koni/api/xcm/utils.d.ts +5 -6
  110. package/koni/api/xcm/utils.js +15 -10
  111. package/koni/api/xcm/xTokens.js +5 -7
  112. package/koni/api/xcm/xcmPallet.js +10 -9
  113. package/koni/background/cron.d.ts +6 -1
  114. package/koni/background/cron.js +179 -76
  115. package/koni/background/handlers/Extension.d.ts +2 -2
  116. package/koni/background/handlers/Extension.js +161 -125
  117. package/koni/background/handlers/State.d.ts +21 -20
  118. package/koni/background/handlers/State.js +144 -111
  119. package/koni/background/handlers/Tabs.js +30 -20
  120. package/koni/background/subscription.d.ts +1 -1
  121. package/koni/background/subscription.js +64 -58
  122. package/package.json +63 -18
  123. package/packageInfo.js +1 -1
  124. package/page/index.d.ts +2 -0
  125. package/page/index.js +4 -0
  126. package/services/chain-service/constants.d.ts +0 -1
  127. package/services/chain-service/constants.js +0 -9
  128. package/services/chain-service/handler/SubstrateChainHandler.js +14 -9
  129. package/services/chain-service/handler/light-client/index.d.ts +17 -1
  130. package/services/chain-service/handler/light-client/index.js +1 -1
  131. package/services/chain-service/helper/psp22_abi.json +1041 -881
  132. package/services/chain-service/helper/psp34_abi.json +2963 -1807
  133. package/services/chain-service/index.d.ts +6 -4
  134. package/services/chain-service/index.js +40 -9
  135. package/services/chain-service/utils.d.ts +1 -0
  136. package/services/chain-service/utils.js +3 -0
  137. package/services/event-service/index.d.ts +22 -0
  138. package/services/event-service/index.js +63 -0
  139. package/services/event-service/types.d.ts +28 -0
  140. package/services/event-service/types.js +4 -0
  141. package/services/history-service/index.d.ts +5 -3
  142. package/services/history-service/index.js +46 -21
  143. package/services/history-service/subsquid-multi-chain-history.js +22 -13
  144. package/services/keyring-service/index.d.ts +19 -0
  145. package/services/keyring-service/index.js +93 -0
  146. package/services/migration-service/index.js +11 -9
  147. package/services/migration-service/scripts/AutoEnableChainsTokens.d.ts +4 -0
  148. package/services/migration-service/scripts/AutoEnableChainsTokens.js +13 -0
  149. package/services/migration-service/scripts/MigrateNetworkSettings.js +37 -18
  150. package/services/migration-service/scripts/MigrateSettings.d.ts +4 -0
  151. package/services/migration-service/scripts/MigrateSettings.js +23 -0
  152. package/services/migration-service/scripts/MigrateTransactionHistory.d.ts +4 -0
  153. package/services/migration-service/scripts/MigrateTransactionHistory.js +64 -0
  154. package/services/migration-service/scripts/index.d.ts +1 -0
  155. package/services/migration-service/scripts/index.js +10 -3
  156. package/services/price-service/coingecko.js +15 -3
  157. package/services/price-service/index.d.ts +5 -3
  158. package/services/price-service/index.js +15 -18
  159. package/services/request-service/constants.d.ts +1 -0
  160. package/services/request-service/constants.js +6 -1
  161. package/services/request-service/handler/AuthRequestHandler.d.ts +8 -1
  162. package/services/request-service/handler/AuthRequestHandler.js +44 -13
  163. package/services/request-service/index.d.ts +7 -1
  164. package/services/request-service/index.js +3 -0
  165. package/services/storage-service/DatabaseService.d.ts +1 -0
  166. package/services/storage-service/DatabaseService.js +53 -34
  167. package/services/storage-service/databases/index.js +1 -1
  168. package/services/storage-service/db-stores/BaseStoreWithAddressAndChain.d.ts +1 -1
  169. package/services/storage-service/db-stores/BaseStoreWithAddressAndChain.js +2 -8
  170. package/services/storage-service/db-stores/Nft.d.ts +3 -3
  171. package/services/storage-service/db-stores/Nft.js +8 -17
  172. package/services/storage-service/db-stores/Transaction.js +10 -7
  173. package/services/subscan-service/index.d.ts +20 -0
  174. package/services/subscan-service/index.js +99 -0
  175. package/services/subscan-service/subscan-chain-map.d.ts +5 -0
  176. package/services/subscan-service/subscan-chain-map.js +63 -0
  177. package/services/subscan-service/types.d.ts +27 -0
  178. package/services/subscan-service/types.js +1 -0
  179. package/services/transaction-service/event-parser/index.d.ts +2 -2
  180. package/services/transaction-service/event-parser/index.js +21 -49
  181. package/services/transaction-service/index.d.ts +4 -2
  182. package/services/transaction-service/index.js +66 -22
  183. package/services/transaction-service/utils.js +5 -6
  184. package/utils/address.d.ts +1 -0
  185. package/utils/address.js +9 -2
  186. package/utils/index.d.ts +2 -1
  187. package/utils/index.js +26 -23
  188. package/cjs/background/errors/EvmRpcError.js +0 -21
  189. package/cjs/background/errors/SubWalletProviderError.js +0 -17
  190. package/cjs/constants/ethereum.js +0 -19
  191. package/cjs/errors/SubWalletProviderError.js +0 -17
  192. package/cjs/koni/api/xcm/astar.js +0 -160
  193. package/cjs/koni/api/xcm/moonbeamXcm.js +0 -80
  194. package/cjs/koni/api/xcm/statemintXcm.js +0 -197
  195. package/cjs/koni/api/xcm/substrateXcm.js +0 -213
  196. package/cjs/koni/migration/Base.js +0 -20
  197. package/cjs/koni/migration/index.js +0 -45
  198. package/cjs/koni/migration/scripts/ChangeRouteToHome.js +0 -22
  199. package/cjs/koni/migration/scripts/ClearOldStorage.js +0 -24
  200. package/cjs/koni/migration/scripts/RemoveWrongTransactionHistoriesFromStore.js +0 -36
  201. package/cjs/koni/migration/scripts/ResetTransactionHistoryEventIdx.js +0 -21
  202. package/cjs/koni/migration/scripts/index.js +0 -22
  203. package/cjs/koni/page/index.js +0 -16
  204. package/cjs/services/asset-service/index.js +0 -91
  205. package/cjs/services/storage-service/db-stores/ExtraDelegationInfo.js +0 -17
  206. package/cjs/stores/Balance.js +0 -18
  207. package/cjs/stores/Crowdloan.js +0 -18
  208. package/cjs/stores/CustomEvmToken.js +0 -18
  209. package/cjs/stores/NetworkMap.js +0 -18
  210. package/cjs/stores/Nft.js +0 -18
  211. package/cjs/stores/NftCollection.js +0 -18
  212. package/cjs/stores/Price.js +0 -18
  213. package/cjs/stores/Staking.js +0 -18
  214. package/cjs/stores/StakingReward.js +0 -18
  215. package/cjs/utils/eth/parseTransactionData.js +0 -284
  216. package/koni/page/index.d.ts +0 -2
  217. package/koni/page/index.js +0 -9
  218. /package/cjs/{koni/page → page}/SubWalleEvmProvider.js +0 -0
  219. /package/{koni/page → page}/SubWalleEvmProvider.d.ts +0 -0
  220. /package/{koni/page → page}/SubWalleEvmProvider.js +0 -0
@@ -1,1988 +1,3144 @@
1
1
  {
2
2
  "source": {
3
- "hash": "0xd7e57074819fb921f32335167a210d7d47374c6af9fdb5aeaba32f2ca3d48c04",
4
- "language": "ink! 3.3.1",
5
- "compiler": "rustc 1.63.0-nightly"
3
+ "hash": "0x7b5a055c557dbac5743e7c70a6cda0db33c9e92fd566d47fce63cad5244363d8",
4
+ "language": "ink! 4.0.1",
5
+ "compiler": "rustc 1.70.0-nightly",
6
+ "build_info": {
7
+ "build_mode": "Debug",
8
+ "cargo_contract_version": "2.0.0-rc",
9
+ "rust_toolchain": "nightly-x86_64-unknown-linux-gnu",
10
+ "wasm_opt_settings": {
11
+ "keep_debug_symbols": false,
12
+ "optimization_passes": "Z"
13
+ }
14
+ }
6
15
  },
7
16
  "contract": {
8
17
  "name": "psp34_nft",
9
- "version": "1.2.0",
18
+ "version": "1.0.0",
10
19
  "authors": [
11
20
  "ArtZero <admin@artzero.io>"
12
21
  ]
13
22
  },
14
- "V3": {
15
- "spec": {
16
- "constructors": [
17
- {
18
- "args": [
19
- {
20
- "label": "contract_owner",
21
- "type": {
22
- "displayName": [
23
- "AccountId"
24
- ],
25
- "type": 8
26
- }
27
- },
28
- {
29
- "label": "name",
30
- "type": {
31
- "displayName": [
32
- "String"
33
- ],
34
- "type": 29
35
- }
36
- },
37
- {
38
- "label": "symbol",
39
- "type": {
40
- "displayName": [
41
- "String"
42
- ],
43
- "type": 29
44
- }
23
+ "spec": {
24
+ "constructors": [
25
+ {
26
+ "args": [
27
+ {
28
+ "label": "contract_owner",
29
+ "type": {
30
+ "displayName": [
31
+ "AccountId"
32
+ ],
33
+ "type": 0
45
34
  }
46
- ],
47
- "docs": [],
48
- "label": "new",
49
- "payable": false,
50
- "selector": "0x9bae9d5e"
51
- }
52
- ],
53
- "docs": [],
54
- "events": [],
55
- "messages": [
56
- {
57
- "args": [],
58
- "docs": [
59
- " Only Owner can mint new token"
60
- ],
61
- "label": "mint",
62
- "mutates": true,
63
- "payable": false,
64
- "returnType": {
65
- "displayName": [
66
- "Result"
67
- ],
68
- "type": 30
69
35
  },
70
- "selector": "0xcfdd9aa2"
71
- },
72
- {
73
- "args": [
74
- {
75
- "label": "metadata",
76
- "type": {
77
- "displayName": [
78
- "Vec"
79
- ],
80
- "type": 32
81
- }
36
+ {
37
+ "label": "name",
38
+ "type": {
39
+ "displayName": [
40
+ "String"
41
+ ],
42
+ "type": 10
82
43
  }
83
- ],
84
- "docs": [
85
- " Only Owner can mint new token and add attributes for it"
86
- ],
87
- "label": "mint_with_attributes",
88
- "mutates": true,
89
- "payable": false,
90
- "returnType": {
91
- "displayName": [
92
- "Result"
93
- ],
94
- "type": 34
95
44
  },
96
- "selector": "0xf90b8f61"
97
- },
98
- {
99
- "args": [],
100
- "docs": [
101
- " Get Token Count"
45
+ {
46
+ "label": "symbol",
47
+ "type": {
48
+ "displayName": [
49
+ "String"
50
+ ],
51
+ "type": 10
52
+ }
53
+ }
54
+ ],
55
+ "docs": [],
56
+ "label": "new",
57
+ "payable": false,
58
+ "returnType": {
59
+ "displayName": [
60
+ "ink_primitives",
61
+ "ConstructorResult"
102
62
  ],
103
- "label": "get_last_token_id",
104
- "mutates": false,
105
- "payable": false,
106
- "returnType": {
107
- "displayName": [
108
- "u64"
109
- ],
110
- "type": 5
111
- },
112
- "selector": "0x41e2a4d7"
63
+ "type": 11
113
64
  },
114
- {
115
- "args": [
116
- {
117
- "label": "token_id",
118
- "type": {
119
- "displayName": [
120
- "Id"
121
- ],
122
- "type": 1
123
- }
65
+ "selector": "0x9bae9d5e"
66
+ }
67
+ ],
68
+ "docs": [],
69
+ "events": [
70
+ {
71
+ "args": [
72
+ {
73
+ "docs": [],
74
+ "indexed": true,
75
+ "label": "from",
76
+ "type": {
77
+ "displayName": [
78
+ "Option"
79
+ ],
80
+ "type": 31
124
81
  }
125
- ],
126
- "docs": [
127
- " Lock nft - Only owner token"
128
- ],
129
- "label": "lock",
130
- "mutates": true,
131
- "payable": false,
132
- "returnType": {
133
- "displayName": [
134
- "Result"
135
- ],
136
- "type": 30
137
82
  },
138
- "selector": "0xbbaa6540"
139
- },
140
- {
141
- "args": [
142
- {
143
- "label": "token_id",
144
- "type": {
145
- "displayName": [
146
- "Id"
147
- ],
148
- "type": 1
149
- }
83
+ {
84
+ "docs": [],
85
+ "indexed": true,
86
+ "label": "to",
87
+ "type": {
88
+ "displayName": [
89
+ "Option"
90
+ ],
91
+ "type": 31
150
92
  }
151
- ],
152
- "docs": [
153
- " Check token is locked or not"
154
- ],
155
- "label": "is_locked_nft",
156
- "mutates": false,
157
- "payable": false,
158
- "returnType": {
159
- "displayName": [
160
- "bool"
161
- ],
162
- "type": 36
163
93
  },
164
- "selector": "0x1d244111"
165
- },
166
- {
167
- "args": [],
168
- "docs": [
169
- " Get Locked Token Count"
170
- ],
171
- "label": "get_locked_token_count",
172
- "mutates": false,
173
- "payable": false,
174
- "returnType": {
175
- "displayName": [
176
- "u64"
177
- ],
178
- "type": 5
94
+ {
95
+ "docs": [],
96
+ "indexed": false,
97
+ "label": "id",
98
+ "type": {
99
+ "displayName": [
100
+ "Id"
101
+ ],
102
+ "type": 26
103
+ }
104
+ }
105
+ ],
106
+ "docs": [
107
+ " - Specify transfer event."
108
+ ],
109
+ "label": "Transfer"
110
+ },
111
+ {
112
+ "args": [
113
+ {
114
+ "docs": [],
115
+ "indexed": true,
116
+ "label": "from",
117
+ "type": {
118
+ "displayName": [
119
+ "Option"
120
+ ],
121
+ "type": 31
122
+ }
179
123
  },
180
- "selector": "0x012797cc"
181
- },
182
- {
183
- "args": [
184
- {
185
- "label": "id",
186
- "type": {
187
- "displayName": [
188
- "Id"
189
- ],
190
- "type": 1
191
- }
124
+ {
125
+ "docs": [],
126
+ "indexed": true,
127
+ "label": "to",
128
+ "type": {
129
+ "displayName": [
130
+ "Option"
131
+ ],
132
+ "type": 31
192
133
  }
193
- ],
194
- "docs": [],
195
- "label": "burn",
196
- "mutates": true,
197
- "payable": false,
198
- "returnType": {
199
- "displayName": [
200
- "Result"
201
- ],
202
- "type": 34
203
134
  },
204
- "selector": "0xb1efc17b"
205
- },
206
- {
207
- "args": [],
208
- "docs": [
209
- " Returns the address of the current owner."
210
- ],
211
- "label": "Ownable::owner",
212
- "mutates": false,
213
- "payable": false,
214
- "returnType": {
215
- "displayName": [
216
- "ownable_external",
217
- "OwnerOutput"
218
- ],
219
- "type": 8
135
+ {
136
+ "docs": [],
137
+ "indexed": false,
138
+ "label": "id",
139
+ "type": {
140
+ "displayName": [
141
+ "Id"
142
+ ],
143
+ "type": 26
144
+ }
220
145
  },
221
- "selector": "0x4fa43c8c"
222
- },
223
- {
224
- "args": [],
225
- "docs": [
226
- " Leaves the contract without owner. It will not be possible to call",
227
- " owner's functions anymore. Can only be called by the current owner.",
228
- "",
229
- " NOTE: Renouncing ownership will leave the contract without an owner,",
230
- " thereby removing any functionality that is only available to the owner.",
231
- "",
232
- " On success a `OwnershipTransferred` event is emitted.",
233
- "",
234
- " # Errors",
235
- "",
236
- " Panics with `CallerIsNotOwner` error if caller is not owner"
146
+ {
147
+ "docs": [],
148
+ "indexed": false,
149
+ "label": "approved",
150
+ "type": {
151
+ "displayName": [
152
+ "bool"
153
+ ],
154
+ "type": 9
155
+ }
156
+ }
157
+ ],
158
+ "docs": [
159
+ " - Specify approval event."
160
+ ],
161
+ "label": "Approval"
162
+ }
163
+ ],
164
+ "lang_error": {
165
+ "displayName": [
166
+ "ink",
167
+ "LangError"
168
+ ],
169
+ "type": 12
170
+ },
171
+ "messages": [
172
+ {
173
+ "args": [],
174
+ "docs": [
175
+ " This function let NFT Contract Owner to mint a new NFT without providing NFT Traits/Attributes"
176
+ ],
177
+ "label": "mint",
178
+ "mutates": true,
179
+ "payable": false,
180
+ "returnType": {
181
+ "displayName": [
182
+ "ink",
183
+ "MessageResult"
237
184
  ],
238
- "label": "Ownable::renounce_ownership",
239
- "mutates": true,
240
- "payable": false,
241
- "returnType": {
242
- "displayName": [
243
- "ownable_external",
244
- "RenounceOwnershipOutput"
245
- ],
246
- "type": 37
247
- },
248
- "selector": "0x5e228753"
185
+ "type": 13
249
186
  },
250
- {
251
- "args": [
252
- {
253
- "label": "new_owner",
254
- "type": {
255
- "displayName": [
256
- "ownable_external",
257
- "TransferOwnershipInput1"
258
- ],
259
- "type": 8
260
- }
187
+ "selector": "0xcfdd9aa2"
188
+ },
189
+ {
190
+ "args": [
191
+ {
192
+ "label": "metadata",
193
+ "type": {
194
+ "displayName": [
195
+ "Vec"
196
+ ],
197
+ "type": 20
261
198
  }
199
+ }
200
+ ],
201
+ "docs": [
202
+ " This function let NFT Contract Owner to mint a new NFT with NFT Traits/Attributes"
203
+ ],
204
+ "label": "mint_with_attributes",
205
+ "mutates": true,
206
+ "payable": false,
207
+ "returnType": {
208
+ "displayName": [
209
+ "ink",
210
+ "MessageResult"
262
211
  ],
263
- "docs": [
264
- " Transfers ownership of the contract to a `new_owner`.",
265
- " Can only be called by the current owner.",
266
- "",
267
- " On success a `OwnershipTransferred` event is emitted.",
268
- "",
269
- " # Errors",
270
- "",
271
- " Panics with `CallerIsNotOwner` error if caller is not owner.",
272
- "",
273
- " Panics with `NewOwnerIsZero` error if new owner's address is zero."
274
- ],
275
- "label": "Ownable::transfer_ownership",
276
- "mutates": true,
277
- "payable": false,
278
- "returnType": {
279
- "displayName": [
280
- "ownable_external",
281
- "TransferOwnershipOutput"
282
- ],
283
- "type": 37
284
- },
285
- "selector": "0x11f43efd"
212
+ "type": 13
286
213
  },
287
- {
288
- "args": [
289
- {
290
- "label": "operator",
291
- "type": {
292
- "displayName": [
293
- "psp34_external",
294
- "ApproveInput1"
295
- ],
296
- "type": 8
297
- }
298
- },
299
- {
300
- "label": "id",
301
- "type": {
302
- "displayName": [
303
- "psp34_external",
304
- "ApproveInput2"
305
- ],
306
- "type": 14
307
- }
308
- },
309
- {
310
- "label": "approved",
311
- "type": {
312
- "displayName": [
313
- "psp34_external",
314
- "ApproveInput3"
315
- ],
316
- "type": 36
317
- }
214
+ "selector": "0xf90b8f61"
215
+ },
216
+ {
217
+ "args": [
218
+ {
219
+ "label": "new_owner",
220
+ "type": {
221
+ "displayName": [
222
+ "ownable_external",
223
+ "TransferOwnershipInput1"
224
+ ],
225
+ "type": 0
318
226
  }
227
+ }
228
+ ],
229
+ "docs": [
230
+ " Transfers ownership of the contract to a `new_owner`.",
231
+ " Can only be called by the current owner.",
232
+ "",
233
+ " On success a `OwnershipTransferred` event is emitted.",
234
+ "",
235
+ " # Errors",
236
+ "",
237
+ " Panics with `CallerIsNotOwner` error if caller is not owner.",
238
+ "",
239
+ " Panics with `NewOwnerIsZero` error if new owner's address is zero."
240
+ ],
241
+ "label": "Ownable::transfer_ownership",
242
+ "mutates": true,
243
+ "payable": false,
244
+ "returnType": {
245
+ "displayName": [
246
+ "ink",
247
+ "MessageResult"
319
248
  ],
320
- "docs": [
321
- " Approves `operator` to withdraw the `id` token from the caller's account.",
322
- " If `id` is `None` approves or disapproves the operator for all tokens of the caller.",
323
- "",
324
- " On success a `Approval` event is emitted.",
325
- "",
326
- " # Errors",
327
- "",
328
- " Returns `SelfApprove` error if it is self approve.",
329
- "",
330
- " Returns `NotApproved` error if caller is not owner of `id`."
331
- ],
332
- "label": "PSP34::approve",
333
- "mutates": true,
334
- "payable": false,
335
- "returnType": {
336
- "displayName": [
337
- "psp34_external",
338
- "ApproveOutput"
339
- ],
340
- "type": 34
341
- },
342
- "selector": "0x1932a8b0"
249
+ "type": 22
343
250
  },
344
- {
345
- "args": [
346
- {
347
- "label": "to",
348
- "type": {
349
- "displayName": [
350
- "psp34_external",
351
- "TransferInput1"
352
- ],
353
- "type": 8
354
- }
355
- },
356
- {
357
- "label": "id",
358
- "type": {
359
- "displayName": [
360
- "psp34_external",
361
- "TransferInput2"
362
- ],
363
- "type": 1
364
- }
365
- },
366
- {
367
- "label": "data",
368
- "type": {
369
- "displayName": [
370
- "psp34_external",
371
- "TransferInput3"
372
- ],
373
- "type": 7
374
- }
375
- }
251
+ "selector": "0x11f43efd"
252
+ },
253
+ {
254
+ "args": [],
255
+ "docs": [
256
+ " Leaves the contract without owner. It will not be possible to call",
257
+ " owner's functions anymore. Can only be called by the current owner.",
258
+ "",
259
+ " NOTE: Renouncing ownership will leave the contract without an owner,",
260
+ " thereby removing any functionality that is only available to the owner.",
261
+ "",
262
+ " On success a `OwnershipTransferred` event is emitted.",
263
+ "",
264
+ " # Errors",
265
+ "",
266
+ " Panics with `CallerIsNotOwner` error if caller is not owner"
267
+ ],
268
+ "label": "Ownable::renounce_ownership",
269
+ "mutates": true,
270
+ "payable": false,
271
+ "returnType": {
272
+ "displayName": [
273
+ "ink",
274
+ "MessageResult"
376
275
  ],
377
- "docs": [
378
- " Transfer approved or owned token from caller.",
379
- "",
380
- " On success a `Transfer` event is emitted.",
381
- "",
382
- " # Errors",
383
- "",
384
- " Returns `TokenNotExists` error if `id` does not exist.",
385
- "",
386
- " Returns `NotApproved` error if `from` doesn't have allowance for transferring.",
387
- "",
388
- " Returns `SafeTransferCheckFailed` error if `to` doesn't accept transfer."
276
+ "type": 22
277
+ },
278
+ "selector": "0x5e228753"
279
+ },
280
+ {
281
+ "args": [],
282
+ "docs": [
283
+ " Returns the address of the current owner."
284
+ ],
285
+ "label": "Ownable::owner",
286
+ "mutates": false,
287
+ "payable": false,
288
+ "returnType": {
289
+ "displayName": [
290
+ "ink",
291
+ "MessageResult"
389
292
  ],
390
- "label": "PSP34::transfer",
391
- "mutates": true,
392
- "payable": false,
393
- "returnType": {
394
- "displayName": [
395
- "psp34_external",
396
- "TransferOutput"
397
- ],
398
- "type": 34
399
- },
400
- "selector": "0x3128d61b"
293
+ "type": 24
401
294
  },
402
- {
403
- "args": [],
404
- "docs": [
405
- " Returns current NFT total supply."
295
+ "selector": "0x4fa43c8c"
296
+ },
297
+ {
298
+ "args": [],
299
+ "docs": [
300
+ " Returns the collection `Id` of the NFT token.",
301
+ "",
302
+ " This can represents the relationship between tokens/contracts/pallets."
303
+ ],
304
+ "label": "PSP34::collection_id",
305
+ "mutates": false,
306
+ "payable": false,
307
+ "returnType": {
308
+ "displayName": [
309
+ "ink",
310
+ "MessageResult"
406
311
  ],
407
- "label": "PSP34::total_supply",
408
- "mutates": false,
409
- "payable": false,
410
- "returnType": {
411
- "displayName": [
412
- "psp34_external",
413
- "TotalSupplyOutput"
414
- ],
415
- "type": 6
416
- },
417
- "selector": "0x628413fe"
312
+ "type": 25
418
313
  },
419
- {
420
- "args": [
421
- {
422
- "label": "owner",
423
- "type": {
424
- "displayName": [
425
- "psp34_external",
426
- "AllowanceInput1"
427
- ],
428
- "type": 8
429
- }
430
- },
431
- {
432
- "label": "operator",
433
- "type": {
434
- "displayName": [
435
- "psp34_external",
436
- "AllowanceInput2"
437
- ],
438
- "type": 8
439
- }
440
- },
441
- {
442
- "label": "id",
443
- "type": {
444
- "displayName": [
445
- "psp34_external",
446
- "AllowanceInput3"
447
- ],
448
- "type": 14
449
- }
314
+ "selector": "0xffa27a5f"
315
+ },
316
+ {
317
+ "args": [
318
+ {
319
+ "label": "to",
320
+ "type": {
321
+ "displayName": [
322
+ "psp34_external",
323
+ "TransferInput1"
324
+ ],
325
+ "type": 0
450
326
  }
451
- ],
452
- "docs": [
453
- " Returns `true` if the operator is approved by the owner to withdraw `id` token.",
454
- " If `id` is `None`, returns `true` if the operator is approved to withdraw all owner's tokens."
455
- ],
456
- "label": "PSP34::allowance",
457
- "mutates": false,
458
- "payable": false,
459
- "returnType": {
460
- "displayName": [
461
- "psp34_external",
462
- "AllowanceOutput"
463
- ],
464
- "type": 36
465
327
  },
466
- "selector": "0x4790f55a"
467
- },
468
- {
469
- "args": [],
470
- "docs": [
471
- " Returns the collection `Id` of the NFT token.",
472
- "",
473
- " This can represents the relationship between tokens/contracts/pallets."
474
- ],
475
- "label": "PSP34::collection_id",
476
- "mutates": false,
477
- "payable": false,
478
- "returnType": {
479
- "displayName": [
480
- "psp34_external",
481
- "CollectionIdOutput"
482
- ],
483
- "type": 1
328
+ {
329
+ "label": "id",
330
+ "type": {
331
+ "displayName": [
332
+ "psp34_external",
333
+ "TransferInput2"
334
+ ],
335
+ "type": 26
336
+ }
484
337
  },
485
- "selector": "0xffa27a5f"
486
- },
487
- {
488
- "args": [
489
- {
490
- "label": "owner",
491
- "type": {
492
- "displayName": [
493
- "psp34_external",
494
- "BalanceOfInput1"
495
- ],
496
- "type": 8
497
- }
338
+ {
339
+ "label": "data",
340
+ "type": {
341
+ "displayName": [
342
+ "psp34_external",
343
+ "TransferInput3"
344
+ ],
345
+ "type": 8
498
346
  }
347
+ }
348
+ ],
349
+ "docs": [
350
+ " Transfer approved or owned token from caller.",
351
+ "",
352
+ " On success a `Transfer` event is emitted.",
353
+ "",
354
+ " # Errors",
355
+ "",
356
+ " Returns `TokenNotExists` error if `id` does not exist.",
357
+ "",
358
+ " Returns `NotApproved` error if `from` doesn't have allowance for transferring.",
359
+ "",
360
+ " Returns `SafeTransferCheckFailed` error if `to` doesn't accept transfer."
361
+ ],
362
+ "label": "PSP34::transfer",
363
+ "mutates": true,
364
+ "payable": false,
365
+ "returnType": {
366
+ "displayName": [
367
+ "ink",
368
+ "MessageResult"
499
369
  ],
500
- "docs": [
501
- " Returns the balance of the owner.",
502
- "",
503
- " This represents the amount of unique tokens the owner has."
504
- ],
505
- "label": "PSP34::balance_of",
506
- "mutates": false,
507
- "payable": false,
508
- "returnType": {
509
- "displayName": [
510
- "psp34_external",
511
- "BalanceOfOutput"
512
- ],
513
- "type": 4
514
- },
515
- "selector": "0xcde7e55f"
370
+ "type": 27
516
371
  },
517
- {
518
- "args": [
519
- {
520
- "label": "id",
521
- "type": {
522
- "displayName": [
523
- "psp34_external",
524
- "OwnerOfInput1"
525
- ],
526
- "type": 1
527
- }
372
+ "selector": "0x3128d61b"
373
+ },
374
+ {
375
+ "args": [
376
+ {
377
+ "label": "operator",
378
+ "type": {
379
+ "displayName": [
380
+ "psp34_external",
381
+ "ApproveInput1"
382
+ ],
383
+ "type": 0
528
384
  }
529
- ],
530
- "docs": [
531
- " Returns the owner of the token if any."
532
- ],
533
- "label": "PSP34::owner_of",
534
- "mutates": false,
535
- "payable": false,
536
- "returnType": {
537
- "displayName": [
538
- "psp34_external",
539
- "OwnerOfOutput"
540
- ],
541
- "type": 19
542
385
  },
543
- "selector": "0x1168624d"
544
- },
545
- {
546
- "args": [
547
- {
548
- "label": "id",
549
- "type": {
550
- "displayName": [
551
- "psp34metadata_external",
552
- "GetAttributeInput1"
553
- ],
554
- "type": 1
555
- }
556
- },
557
- {
558
- "label": "key",
559
- "type": {
560
- "displayName": [
561
- "psp34metadata_external",
562
- "GetAttributeInput2"
563
- ],
564
- "type": 7
565
- }
386
+ {
387
+ "label": "id",
388
+ "type": {
389
+ "displayName": [
390
+ "psp34_external",
391
+ "ApproveInput2"
392
+ ],
393
+ "type": 29
566
394
  }
567
- ],
568
- "docs": [
569
- " Returns the attribute of `id` for the given `key`.",
570
- "",
571
- " If `id` is a collection id of the token, it returns attributes for collection."
572
- ],
573
- "label": "PSP34Metadata::get_attribute",
574
- "mutates": false,
575
- "payable": false,
576
- "returnType": {
577
- "displayName": [
578
- "psp34metadata_external",
579
- "GetAttributeOutput"
580
- ],
581
- "type": 39
582
395
  },
583
- "selector": "0xf19d48d1"
584
- },
585
- {
586
- "args": [
587
- {
588
- "label": "owner",
589
- "type": {
590
- "displayName": [
591
- "psp34enumerable_external",
592
- "OwnersTokenByIndexInput1"
593
- ],
594
- "type": 8
595
- }
596
- },
597
- {
598
- "label": "index",
599
- "type": {
600
- "displayName": [
601
- "psp34enumerable_external",
602
- "OwnersTokenByIndexInput2"
603
- ],
604
- "type": 6
605
- }
396
+ {
397
+ "label": "approved",
398
+ "type": {
399
+ "displayName": [
400
+ "psp34_external",
401
+ "ApproveInput3"
402
+ ],
403
+ "type": 9
606
404
  }
405
+ }
406
+ ],
407
+ "docs": [
408
+ " Approves `operator` to withdraw the `id` token from the caller's account.",
409
+ " If `id` is `None` approves or disapproves the operator for all tokens of the caller.",
410
+ "",
411
+ " On success a `Approval` event is emitted.",
412
+ "",
413
+ " # Errors",
414
+ "",
415
+ " Returns `SelfApprove` error if it is self approve.",
416
+ "",
417
+ " Returns `NotApproved` error if caller is not owner of `id`."
418
+ ],
419
+ "label": "PSP34::approve",
420
+ "mutates": true,
421
+ "payable": false,
422
+ "returnType": {
423
+ "displayName": [
424
+ "ink",
425
+ "MessageResult"
607
426
  ],
608
- "docs": [
609
- " Returns a token `Id` owned by `owner` at a given `index` of its token list.",
610
- " Use along with `balance_of` to enumerate all of ``owner``'s tokens."
611
- ],
612
- "label": "PSP34Enumerable::owners_token_by_index",
613
- "mutates": false,
614
- "payable": false,
615
- "returnType": {
616
- "displayName": [
617
- "psp34enumerable_external",
618
- "OwnersTokenByIndexOutput"
619
- ],
620
- "type": 40
621
- },
622
- "selector": "0x3bcfb511"
427
+ "type": 27
623
428
  },
624
- {
625
- "args": [
626
- {
627
- "label": "index",
628
- "type": {
629
- "displayName": [
630
- "psp34enumerable_external",
631
- "TokenByIndexInput1"
632
- ],
633
- "type": 6
634
- }
429
+ "selector": "0x1932a8b0"
430
+ },
431
+ {
432
+ "args": [
433
+ {
434
+ "label": "id",
435
+ "type": {
436
+ "displayName": [
437
+ "psp34_external",
438
+ "OwnerOfInput1"
439
+ ],
440
+ "type": 26
635
441
  }
442
+ }
443
+ ],
444
+ "docs": [
445
+ " Returns the owner of the token if any."
446
+ ],
447
+ "label": "PSP34::owner_of",
448
+ "mutates": false,
449
+ "payable": false,
450
+ "returnType": {
451
+ "displayName": [
452
+ "ink",
453
+ "MessageResult"
636
454
  ],
637
- "docs": [
638
- " Returns a token `Id` at a given `index` of all the tokens stored by the contract.",
639
- " Use along with `total_supply` to enumerate all tokens."
640
- ],
641
- "label": "PSP34Enumerable::token_by_index",
642
- "mutates": false,
643
- "payable": false,
644
- "returnType": {
645
- "displayName": [
646
- "psp34enumerable_external",
647
- "TokenByIndexOutput"
648
- ],
649
- "type": 40
650
- },
651
- "selector": "0xcd0340d0"
455
+ "type": 30
652
456
  },
653
- {
654
- "args": [
655
- {
656
- "label": "uri",
657
- "type": {
658
- "displayName": [
659
- "psp34traits_external",
660
- "SetBaseUriInput1"
661
- ],
662
- "type": 29
663
- }
457
+ "selector": "0x1168624d"
458
+ },
459
+ {
460
+ "args": [
461
+ {
462
+ "label": "owner",
463
+ "type": {
464
+ "displayName": [
465
+ "psp34_external",
466
+ "AllowanceInput1"
467
+ ],
468
+ "type": 0
664
469
  }
665
- ],
666
- "docs": [
667
- " Change baseURI"
668
- ],
669
- "label": "Psp34Traits::set_base_uri",
670
- "mutates": true,
671
- "payable": false,
672
- "returnType": {
673
- "displayName": [
674
- "psp34traits_external",
675
- "SetBaseUriOutput"
676
- ],
677
- "type": 30
678
470
  },
679
- "selector": "0x4de6850b"
680
- },
681
- {
682
- "args": [
683
- {
684
- "label": "token_id",
685
- "type": {
686
- "displayName": [
687
- "psp34traits_external",
688
- "SetMultipleAttributesInput1"
689
- ],
690
- "type": 1
691
- }
692
- },
693
- {
694
- "label": "metadata",
695
- "type": {
696
- "displayName": [
697
- "psp34traits_external",
698
- "SetMultipleAttributesInput2"
699
- ],
700
- "type": 32
701
- }
471
+ {
472
+ "label": "operator",
473
+ "type": {
474
+ "displayName": [
475
+ "psp34_external",
476
+ "AllowanceInput2"
477
+ ],
478
+ "type": 0
702
479
  }
703
- ],
704
- "docs": [
705
- " Only Owner can set multiple attributes to a token"
706
- ],
707
- "label": "Psp34Traits::set_multiple_attributes",
708
- "mutates": true,
709
- "payable": false,
710
- "returnType": {
711
- "displayName": [
712
- "psp34traits_external",
713
- "SetMultipleAttributesOutput"
714
- ],
715
- "type": 30
716
480
  },
717
- "selector": "0x5bf8416b"
718
- },
719
- {
720
- "args": [
721
- {
722
- "label": "token_id",
723
- "type": {
724
- "displayName": [
725
- "psp34traits_external",
726
- "GetAttributesInput1"
727
- ],
728
- "type": 1
729
- }
730
- },
731
- {
732
- "label": "attributes",
733
- "type": {
734
- "displayName": [
735
- "psp34traits_external",
736
- "GetAttributesInput2"
737
- ],
738
- "type": 41
739
- }
481
+ {
482
+ "label": "id",
483
+ "type": {
484
+ "displayName": [
485
+ "psp34_external",
486
+ "AllowanceInput3"
487
+ ],
488
+ "type": 29
740
489
  }
490
+ }
491
+ ],
492
+ "docs": [
493
+ " Returns `true` if the operator is approved by the owner to withdraw `id` token.",
494
+ " If `id` is `None`, returns `true` if the operator is approved to withdraw all owner's tokens."
495
+ ],
496
+ "label": "PSP34::allowance",
497
+ "mutates": false,
498
+ "payable": false,
499
+ "returnType": {
500
+ "displayName": [
501
+ "ink",
502
+ "MessageResult"
741
503
  ],
742
- "docs": [
743
- " Get multiple attributes"
744
- ],
745
- "label": "Psp34Traits::get_attributes",
746
- "mutates": false,
747
- "payable": false,
748
- "returnType": {
749
- "displayName": [
750
- "psp34traits_external",
751
- "GetAttributesOutput"
752
- ],
753
- "type": 41
754
- },
755
- "selector": "0x18209102"
504
+ "type": 32
756
505
  },
757
- {
758
- "args": [],
759
- "docs": [
760
- " Get Attribute Count"
506
+ "selector": "0x4790f55a"
507
+ },
508
+ {
509
+ "args": [],
510
+ "docs": [
511
+ " Returns current NFT total supply."
512
+ ],
513
+ "label": "PSP34::total_supply",
514
+ "mutates": false,
515
+ "payable": false,
516
+ "returnType": {
517
+ "displayName": [
518
+ "ink",
519
+ "MessageResult"
761
520
  ],
762
- "label": "Psp34Traits::get_attribute_count",
763
- "mutates": false,
764
- "payable": false,
765
- "returnType": {
766
- "displayName": [
767
- "psp34traits_external",
768
- "GetAttributeCountOutput"
769
- ],
770
- "type": 4
771
- },
772
- "selector": "0x61c50d69"
521
+ "type": 33
773
522
  },
774
- {
775
- "args": [
776
- {
777
- "label": "index",
778
- "type": {
779
- "displayName": [
780
- "psp34traits_external",
781
- "GetAttributeNameInput1"
782
- ],
783
- "type": 4
784
- }
523
+ "selector": "0x628413fe"
524
+ },
525
+ {
526
+ "args": [
527
+ {
528
+ "label": "owner",
529
+ "type": {
530
+ "displayName": [
531
+ "psp34_external",
532
+ "BalanceOfInput1"
533
+ ],
534
+ "type": 0
785
535
  }
536
+ }
537
+ ],
538
+ "docs": [
539
+ " Returns the balance of the owner.",
540
+ "",
541
+ " This represents the amount of unique tokens the owner has."
542
+ ],
543
+ "label": "PSP34::balance_of",
544
+ "mutates": false,
545
+ "payable": false,
546
+ "returnType": {
547
+ "displayName": [
548
+ "ink",
549
+ "MessageResult"
786
550
  ],
787
- "docs": [
788
- " Get Attribute Name"
789
- ],
790
- "label": "Psp34Traits::get_attribute_name",
791
- "mutates": false,
792
- "payable": false,
793
- "returnType": {
794
- "displayName": [
795
- "psp34traits_external",
796
- "GetAttributeNameOutput"
797
- ],
798
- "type": 29
799
- },
800
- "selector": "0xfcfe34de"
551
+ "type": 34
801
552
  },
802
- {
803
- "args": [
804
- {
805
- "label": "token_id",
806
- "type": {
807
- "displayName": [
808
- "psp34traits_external",
809
- "TokenUriInput1"
810
- ],
811
- "type": 5
812
- }
553
+ "selector": "0xcde7e55f"
554
+ },
555
+ {
556
+ "args": [
557
+ {
558
+ "label": "id",
559
+ "type": {
560
+ "displayName": [
561
+ "psp34metadata_external",
562
+ "GetAttributeInput1"
563
+ ],
564
+ "type": 26
813
565
  }
814
- ],
815
- "docs": [
816
- " Get URI from token ID"
817
- ],
818
- "label": "Psp34Traits::token_uri",
819
- "mutates": false,
820
- "payable": false,
821
- "returnType": {
822
- "displayName": [
823
- "psp34traits_external",
824
- "TokenUriOutput"
825
- ],
826
- "type": 29
827
- },
828
- "selector": "0x249dfd4f"
829
- },
830
- {
831
- "args": [],
832
- "docs": [
833
- " Get owner address"
834
- ],
835
- "label": "Psp34Traits::get_owner",
836
- "mutates": false,
837
- "payable": false,
838
- "returnType": {
839
- "displayName": [
840
- "psp34traits_external",
841
- "GetOwnerOutput"
842
- ],
843
- "type": 8
844
- },
845
- "selector": "0x8e1d8d71"
846
- }
847
- ]
848
- },
849
- "storage": {
850
- "struct": {
851
- "fields": [
852
- {
853
- "layout": {
854
- "struct": {
855
- "fields": [
856
- {
857
- "layout": {
858
- "cell": {
859
- "key": "0x0dbe693b00000000000000000000000000000000000000000000000000000000",
860
- "ty": 0
861
- }
862
- },
863
- "name": "token_owner"
864
- },
865
- {
866
- "layout": {
867
- "cell": {
868
- "key": "0x0ebe693b00000000000000000000000000000000000000000000000000000000",
869
- "ty": 12
870
- }
871
- },
872
- "name": "operator_approvals"
873
- },
874
- {
875
- "layout": {
876
- "struct": {
877
- "fields": [
878
- {
879
- "layout": {
880
- "cell": {
881
- "key": "0x4cefab1200000000000000000000000000000000000000000000000000000000",
882
- "ty": 18
883
- }
884
- },
885
- "name": "enumerable"
886
- },
887
- {
888
- "layout": {
889
- "enum": {
890
- "dispatchKey": "0x4defab1200000000000000000000000000000000000000000000000000000000",
891
- "variants": {
892
- "0": {
893
- "fields": [
894
- {
895
- "layout": {
896
- "cell": {
897
- "key": "0x4eefab1200000000000000000000000000000000000000000000000000000000",
898
- "ty": 15
899
- }
900
- },
901
- "name": null
902
- }
903
- ]
904
- },
905
- "1": {
906
- "fields": []
907
- }
908
- }
909
- }
910
- },
911
- "name": "_reserved"
912
- }
913
- ]
914
- }
915
- },
916
- "name": "balances"
917
- },
918
- {
919
- "layout": {
920
- "enum": {
921
- "dispatchKey": "0x0fbe693b00000000000000000000000000000000000000000000000000000000",
922
- "variants": {
923
- "0": {
924
- "fields": [
925
- {
926
- "layout": {
927
- "cell": {
928
- "key": "0x10be693b00000000000000000000000000000000000000000000000000000000",
929
- "ty": 15
930
- }
931
- },
932
- "name": null
933
- }
934
- ]
935
- },
936
- "1": {
937
- "fields": []
938
- }
939
- }
940
- }
941
- },
942
- "name": "_reserved"
943
- }
944
- ]
945
- }
946
- },
947
- "name": "psp34"
948
- },
949
- {
950
- "layout": {
951
- "struct": {
952
- "fields": [
953
- {
954
- "layout": {
955
- "cell": {
956
- "key": "0xc4c906f100000000000000000000000000000000000000000000000000000000",
957
- "ty": 22
958
- }
959
- },
960
- "name": "attributes"
961
- },
962
- {
963
- "layout": {
964
- "enum": {
965
- "dispatchKey": "0xc5c906f100000000000000000000000000000000000000000000000000000000",
966
- "variants": {
967
- "0": {
968
- "fields": [
969
- {
970
- "layout": {
971
- "cell": {
972
- "key": "0xc6c906f100000000000000000000000000000000000000000000000000000000",
973
- "ty": 15
974
- }
975
- },
976
- "name": null
977
- }
978
- ]
979
- },
980
- "1": {
981
- "fields": []
982
- }
983
- }
984
- }
985
- },
986
- "name": "_reserved"
987
- }
988
- ]
989
- }
990
- },
991
- "name": "metadata"
992
- },
993
- {
994
- "layout": {
995
- "struct": {
996
- "fields": [
997
- {
998
- "layout": {
999
- "cell": {
1000
- "key": "0xb36ee29c00000000000000000000000000000000000000000000000000000000",
1001
- "ty": 8
1002
- }
1003
- },
1004
- "name": "owner"
1005
- },
1006
- {
1007
- "layout": {
1008
- "enum": {
1009
- "dispatchKey": "0xb46ee29c00000000000000000000000000000000000000000000000000000000",
1010
- "variants": {
1011
- "0": {
1012
- "fields": [
1013
- {
1014
- "layout": {
1015
- "cell": {
1016
- "key": "0xb56ee29c00000000000000000000000000000000000000000000000000000000",
1017
- "ty": 15
1018
- }
1019
- },
1020
- "name": null
1021
- }
1022
- ]
1023
- },
1024
- "1": {
1025
- "fields": []
1026
- }
1027
- }
1028
- }
1029
- },
1030
- "name": "_reserved"
1031
- }
1032
- ]
1033
- }
1034
- },
1035
- "name": "ownable"
1036
- },
1037
- {
1038
- "layout": {
1039
- "cell": {
1040
- "key": "0x0000000000000000000000000000000000000000000000000000000000000000",
1041
- "ty": 5
1042
- }
1043
- },
1044
- "name": "last_token_id"
1045
566
  },
1046
567
  {
1047
- "layout": {
1048
- "cell": {
1049
- "key": "0x0100000000000000000000000000000000000000000000000000000000000000",
1050
- "ty": 4
1051
- }
1052
- },
1053
- "name": "attribute_count"
1054
- },
1055
- {
1056
- "layout": {
1057
- "cell": {
1058
- "key": "0x0200000000000000000000000000000000000000000000000000000000000000",
1059
- "ty": 26
1060
- }
1061
- },
1062
- "name": "attribute_names"
1063
- },
1064
- {
1065
- "layout": {
1066
- "cell": {
1067
- "key": "0x0300000000000000000000000000000000000000000000000000000000000000",
1068
- "ty": 28
1069
- }
1070
- },
1071
- "name": "locked_tokens"
1072
- },
1073
- {
1074
- "layout": {
1075
- "cell": {
1076
- "key": "0x0400000000000000000000000000000000000000000000000000000000000000",
1077
- "ty": 5
1078
- }
1079
- },
1080
- "name": "locked_token_count"
1081
- }
1082
- ]
1083
- }
1084
- },
1085
- "types": [
1086
- {
1087
- "id": 0,
1088
- "type": {
1089
- "def": {
1090
- "composite": {
1091
- "fields": [
1092
- {
1093
- "type": 10
1094
- }
1095
- ]
1096
- }
1097
- },
1098
- "params": [
1099
- {
1100
- "name": "K",
1101
- "type": 1
1102
- },
1103
- {
1104
- "name": "V",
568
+ "label": "key",
569
+ "type": {
570
+ "displayName": [
571
+ "psp34metadata_external",
572
+ "GetAttributeInput2"
573
+ ],
1105
574
  "type": 8
1106
575
  }
576
+ }
577
+ ],
578
+ "docs": [
579
+ " Returns the attribute of `id` for the given `key`.",
580
+ "",
581
+ " If `id` is a collection id of the token, it returns attributes for collection."
582
+ ],
583
+ "label": "PSP34Metadata::get_attribute",
584
+ "mutates": false,
585
+ "payable": false,
586
+ "returnType": {
587
+ "displayName": [
588
+ "ink",
589
+ "MessageResult"
1107
590
  ],
1108
- "path": [
1109
- "openbrush_lang",
1110
- "storage",
1111
- "mapping",
1112
- "Mapping"
1113
- ]
1114
- }
591
+ "type": 35
592
+ },
593
+ "selector": "0xf19d48d1"
1115
594
  },
1116
595
  {
1117
- "id": 1,
1118
- "type": {
1119
- "def": {
1120
- "variant": {
1121
- "variants": [
1122
- {
1123
- "fields": [
1124
- {
1125
- "type": 2,
1126
- "typeName": "u8"
1127
- }
1128
- ],
1129
- "index": 0,
1130
- "name": "U8"
1131
- },
1132
- {
1133
- "fields": [
1134
- {
1135
- "type": 3,
1136
- "typeName": "u16"
1137
- }
1138
- ],
1139
- "index": 1,
1140
- "name": "U16"
1141
- },
1142
- {
1143
- "fields": [
1144
- {
1145
- "type": 4,
1146
- "typeName": "u32"
1147
- }
1148
- ],
1149
- "index": 2,
1150
- "name": "U32"
1151
- },
1152
- {
1153
- "fields": [
1154
- {
1155
- "type": 5,
1156
- "typeName": "u64"
1157
- }
1158
- ],
1159
- "index": 3,
1160
- "name": "U64"
1161
- },
1162
- {
1163
- "fields": [
1164
- {
1165
- "type": 6,
1166
- "typeName": "u128"
1167
- }
1168
- ],
1169
- "index": 4,
1170
- "name": "U128"
1171
- },
1172
- {
1173
- "fields": [
1174
- {
1175
- "type": 7,
1176
- "typeName": "Vec<u8>"
1177
- }
1178
- ],
1179
- "index": 5,
1180
- "name": "Bytes"
1181
- }
1182
- ]
596
+ "args": [
597
+ {
598
+ "label": "owner",
599
+ "type": {
600
+ "displayName": [
601
+ "psp34enumerable_external",
602
+ "OwnersTokenByIndexInput1"
603
+ ],
604
+ "type": 0
1183
605
  }
1184
606
  },
1185
- "path": [
1186
- "openbrush_contracts",
1187
- "traits",
1188
- "types",
1189
- "Id"
1190
- ]
1191
- }
1192
- },
1193
- {
1194
- "id": 2,
1195
- "type": {
1196
- "def": {
1197
- "primitive": "u8"
607
+ {
608
+ "label": "index",
609
+ "type": {
610
+ "displayName": [
611
+ "psp34enumerable_external",
612
+ "OwnersTokenByIndexInput2"
613
+ ],
614
+ "type": 7
615
+ }
1198
616
  }
1199
- }
617
+ ],
618
+ "docs": [
619
+ " Returns a token `Id` owned by `owner` at a given `index` of its token list.",
620
+ " Use along with `balance_of` to enumerate all of ``owner``'s tokens.",
621
+ "",
622
+ " The start index is zero."
623
+ ],
624
+ "label": "PSP34Enumerable::owners_token_by_index",
625
+ "mutates": false,
626
+ "payable": false,
627
+ "returnType": {
628
+ "displayName": [
629
+ "ink",
630
+ "MessageResult"
631
+ ],
632
+ "type": 37
633
+ },
634
+ "selector": "0x3bcfb511"
1200
635
  },
1201
636
  {
1202
- "id": 3,
1203
- "type": {
1204
- "def": {
1205
- "primitive": "u16"
637
+ "args": [
638
+ {
639
+ "label": "index",
640
+ "type": {
641
+ "displayName": [
642
+ "psp34enumerable_external",
643
+ "TokenByIndexInput1"
644
+ ],
645
+ "type": 7
646
+ }
1206
647
  }
1207
- }
648
+ ],
649
+ "docs": [
650
+ " Returns a token `Id` at a given `index` of all the tokens stored by the contract.",
651
+ " Use along with `total_supply` to enumerate all tokens.",
652
+ "",
653
+ " The start index is zero."
654
+ ],
655
+ "label": "PSP34Enumerable::token_by_index",
656
+ "mutates": false,
657
+ "payable": false,
658
+ "returnType": {
659
+ "displayName": [
660
+ "ink",
661
+ "MessageResult"
662
+ ],
663
+ "type": 37
664
+ },
665
+ "selector": "0xcd0340d0"
1208
666
  },
1209
667
  {
1210
- "id": 4,
1211
- "type": {
1212
- "def": {
1213
- "primitive": "u32"
668
+ "args": [
669
+ {
670
+ "label": "token_id",
671
+ "type": {
672
+ "displayName": [
673
+ "psp34traits_external",
674
+ "LockInput1"
675
+ ],
676
+ "type": 26
677
+ }
1214
678
  }
1215
- }
679
+ ],
680
+ "docs": [
681
+ " This function lets NFT owner to lock their NFT. Once locked, the NFT traits (attributes) can not be changed"
682
+ ],
683
+ "label": "Psp34Traits::lock",
684
+ "mutates": true,
685
+ "payable": false,
686
+ "returnType": {
687
+ "displayName": [
688
+ "ink",
689
+ "MessageResult"
690
+ ],
691
+ "type": 13
692
+ },
693
+ "selector": "0xa7245b9b"
1216
694
  },
1217
695
  {
1218
- "id": 5,
1219
- "type": {
1220
- "def": {
1221
- "primitive": "u64"
696
+ "args": [
697
+ {
698
+ "label": "uri",
699
+ "type": {
700
+ "displayName": [
701
+ "psp34traits_external",
702
+ "SetBaseUriInput1"
703
+ ],
704
+ "type": 10
705
+ }
1222
706
  }
1223
- }
707
+ ],
708
+ "docs": [
709
+ " This function sets the baseURI for the NFT contract. Only Contract Owner can perform this function. baseURI is the location of the metadata files if the NFT collection use external source to keep their NFT artwork. ArtZero uses IPFS by default, the baseURI can have format like this: ipfs://<hash_ID>/"
710
+ ],
711
+ "label": "Psp34Traits::set_base_uri",
712
+ "mutates": true,
713
+ "payable": false,
714
+ "returnType": {
715
+ "displayName": [
716
+ "ink",
717
+ "MessageResult"
718
+ ],
719
+ "type": 13
720
+ },
721
+ "selector": "0x4de6850b"
1224
722
  },
1225
723
  {
1226
- "id": 6,
1227
- "type": {
1228
- "def": {
1229
- "primitive": "u128"
1230
- }
1231
- }
724
+ "args": [],
725
+ "docs": [
726
+ " This function returns how many NFTs have been locked by its owners"
727
+ ],
728
+ "label": "Psp34Traits::get_locked_token_count",
729
+ "mutates": false,
730
+ "payable": false,
731
+ "returnType": {
732
+ "displayName": [
733
+ "ink",
734
+ "MessageResult"
735
+ ],
736
+ "type": 39
737
+ },
738
+ "selector": "0x8fe2ce73"
1232
739
  },
1233
740
  {
1234
- "id": 7,
1235
- "type": {
1236
- "def": {
1237
- "sequence": {
1238
- "type": 2
741
+ "args": [
742
+ {
743
+ "label": "token_id",
744
+ "type": {
745
+ "displayName": [
746
+ "psp34traits_external",
747
+ "TokenUriInput1"
748
+ ],
749
+ "type": 6
1239
750
  }
1240
751
  }
1241
- }
752
+ ],
753
+ "docs": [
754
+ " This function return the metadata location of an NFT. The format is baseURI/<token_id>.json"
755
+ ],
756
+ "label": "Psp34Traits::token_uri",
757
+ "mutates": false,
758
+ "payable": false,
759
+ "returnType": {
760
+ "displayName": [
761
+ "ink",
762
+ "MessageResult"
763
+ ],
764
+ "type": 40
765
+ },
766
+ "selector": "0x249dfd4f"
1242
767
  },
1243
768
  {
1244
- "id": 8,
1245
- "type": {
1246
- "def": {
1247
- "composite": {
1248
- "fields": [
1249
- {
1250
- "type": 9,
1251
- "typeName": "[u8; 32]"
1252
- }
1253
- ]
769
+ "args": [
770
+ {
771
+ "label": "token_id",
772
+ "type": {
773
+ "displayName": [
774
+ "psp34traits_external",
775
+ "SetMultipleAttributesInput1"
776
+ ],
777
+ "type": 26
1254
778
  }
1255
779
  },
1256
- "path": [
1257
- "ink_env",
1258
- "types",
1259
- "AccountId"
1260
- ]
1261
- }
1262
- },
1263
- {
1264
- "id": 9,
1265
- "type": {
1266
- "def": {
1267
- "array": {
1268
- "len": 32,
1269
- "type": 2
780
+ {
781
+ "label": "metadata",
782
+ "type": {
783
+ "displayName": [
784
+ "psp34traits_external",
785
+ "SetMultipleAttributesInput2"
786
+ ],
787
+ "type": 20
1270
788
  }
1271
789
  }
1272
- }
790
+ ],
791
+ "docs": [
792
+ " This function set the attributes to each NFT. Only Contract Owner can perform this function. The metadata input is an array of [(attribute, value)]. The attributes in ArtZero platform are the NFT traits."
793
+ ],
794
+ "label": "Psp34Traits::set_multiple_attributes",
795
+ "mutates": true,
796
+ "payable": false,
797
+ "returnType": {
798
+ "displayName": [
799
+ "ink",
800
+ "MessageResult"
801
+ ],
802
+ "type": 13
803
+ },
804
+ "selector": "0x5bf8416b"
1273
805
  },
1274
806
  {
1275
- "id": 10,
1276
- "type": {
1277
- "def": {
1278
- "sequence": {
1279
- "type": 11
807
+ "args": [
808
+ {
809
+ "label": "index",
810
+ "type": {
811
+ "displayName": [
812
+ "psp34traits_external",
813
+ "GetAttributeNameInput1"
814
+ ],
815
+ "type": 5
1280
816
  }
1281
817
  }
1282
- }
818
+ ],
819
+ "docs": [
820
+ " This function return the attribute name using attribute index. Beacause attributes of an NFT can be set to anything by Contract Owner, AztZero uses this function to get all attributes of an NFT"
821
+ ],
822
+ "label": "Psp34Traits::get_attribute_name",
823
+ "mutates": false,
824
+ "payable": false,
825
+ "returnType": {
826
+ "displayName": [
827
+ "ink",
828
+ "MessageResult"
829
+ ],
830
+ "type": 40
831
+ },
832
+ "selector": "0xfcfe34de"
1283
833
  },
1284
834
  {
1285
- "id": 11,
1286
- "type": {
1287
- "def": {
1288
- "tuple": [
1289
- 1,
1290
- 8
1291
- ]
1292
- }
1293
- }
835
+ "args": [],
836
+ "docs": [
837
+ " This function return the owner of the NFT Contract"
838
+ ],
839
+ "label": "Psp34Traits::get_owner",
840
+ "mutates": false,
841
+ "payable": false,
842
+ "returnType": {
843
+ "displayName": [
844
+ "ink",
845
+ "MessageResult"
846
+ ],
847
+ "type": 24
848
+ },
849
+ "selector": "0x8e1d8d71"
1294
850
  },
1295
851
  {
1296
- "id": 12,
1297
- "type": {
1298
- "def": {
1299
- "composite": {
1300
- "fields": [
1301
- {
1302
- "type": 16
1303
- }
1304
- ]
852
+ "args": [
853
+ {
854
+ "label": "token_id",
855
+ "type": {
856
+ "displayName": [
857
+ "psp34traits_external",
858
+ "GetAttributesInput1"
859
+ ],
860
+ "type": 26
1305
861
  }
1306
862
  },
1307
- "params": [
1308
- {
1309
- "name": "K",
1310
- "type": 13
1311
- },
1312
- {
1313
- "name": "V",
1314
- "type": 15
863
+ {
864
+ "label": "attributes",
865
+ "type": {
866
+ "displayName": [
867
+ "psp34traits_external",
868
+ "GetAttributesInput2"
869
+ ],
870
+ "type": 41
1315
871
  }
872
+ }
873
+ ],
874
+ "docs": [
875
+ " This function returns all available attributes of each NFT"
876
+ ],
877
+ "label": "Psp34Traits::get_attributes",
878
+ "mutates": false,
879
+ "payable": false,
880
+ "returnType": {
881
+ "displayName": [
882
+ "ink",
883
+ "MessageResult"
1316
884
  ],
1317
- "path": [
1318
- "openbrush_lang",
1319
- "storage",
1320
- "mapping",
1321
- "Mapping"
1322
- ]
1323
- }
885
+ "type": 42
886
+ },
887
+ "selector": "0x18209102"
1324
888
  },
1325
889
  {
1326
- "id": 13,
1327
- "type": {
1328
- "def": {
1329
- "tuple": [
1330
- 8,
1331
- 8,
1332
- 14
1333
- ]
890
+ "args": [
891
+ {
892
+ "label": "token_id",
893
+ "type": {
894
+ "displayName": [
895
+ "psp34traits_external",
896
+ "IsLockedNftInput1"
897
+ ],
898
+ "type": 26
899
+ }
1334
900
  }
1335
- }
901
+ ],
902
+ "docs": [
903
+ " This function check if an NFT is locked or not"
904
+ ],
905
+ "label": "Psp34Traits::is_locked_nft",
906
+ "mutates": false,
907
+ "payable": false,
908
+ "returnType": {
909
+ "displayName": [
910
+ "ink",
911
+ "MessageResult"
912
+ ],
913
+ "type": 32
914
+ },
915
+ "selector": "0x59271420"
1336
916
  },
1337
917
  {
1338
- "id": 14,
1339
- "type": {
1340
- "def": {
1341
- "variant": {
1342
- "variants": [
1343
- {
1344
- "index": 0,
1345
- "name": "None"
1346
- },
1347
- {
1348
- "fields": [
1349
- {
1350
- "type": 1
1351
- }
1352
- ],
1353
- "index": 1,
1354
- "name": "Some"
1355
- }
1356
- ]
1357
- }
1358
- },
1359
- "params": [
1360
- {
1361
- "name": "T",
1362
- "type": 1
1363
- }
918
+ "args": [],
919
+ "docs": [
920
+ " This function return how many unique attributes in the contract"
921
+ ],
922
+ "label": "Psp34Traits::get_attribute_count",
923
+ "mutates": false,
924
+ "payable": false,
925
+ "returnType": {
926
+ "displayName": [
927
+ "ink",
928
+ "MessageResult"
1364
929
  ],
1365
- "path": [
1366
- "Option"
1367
- ]
1368
- }
930
+ "type": 34
931
+ },
932
+ "selector": "0x61c50d69"
1369
933
  },
1370
934
  {
1371
- "id": 15,
1372
- "type": {
1373
- "def": {
1374
- "tuple": []
1375
- }
1376
- }
935
+ "args": [],
936
+ "docs": [
937
+ " This function return the latest token ID, everytime new NFT is mint, last_token_id is increased by 1 in mint function. Note: This is not the same as the total supply return by the psp34 function as NFT can be burnt."
938
+ ],
939
+ "label": "Psp34Traits::get_last_token_id",
940
+ "mutates": false,
941
+ "payable": false,
942
+ "returnType": {
943
+ "displayName": [
944
+ "ink",
945
+ "MessageResult"
946
+ ],
947
+ "type": 39
948
+ },
949
+ "selector": "0x6f315836"
1377
950
  },
1378
951
  {
1379
- "id": 16,
1380
- "type": {
1381
- "def": {
1382
- "sequence": {
1383
- "type": 17
952
+ "args": [
953
+ {
954
+ "label": "nft_contract_address",
955
+ "type": {
956
+ "displayName": [
957
+ "admintrait_external",
958
+ "TranferNftInput1"
959
+ ],
960
+ "type": 0
1384
961
  }
1385
- }
1386
- }
1387
- },
1388
- {
1389
- "id": 17,
1390
- "type": {
1391
- "def": {
1392
- "tuple": [
1393
- 13,
1394
- 15
1395
- ]
1396
- }
1397
- }
1398
- },
1399
- {
1400
- "id": 18,
1401
- "type": {
1402
- "def": {
1403
- "composite": {
1404
- "fields": [
1405
- {
1406
- "type": 20
1407
- }
1408
- ]
962
+ },
963
+ {
964
+ "label": "token_id",
965
+ "type": {
966
+ "displayName": [
967
+ "admintrait_external",
968
+ "TranferNftInput2"
969
+ ],
970
+ "type": 26
1409
971
  }
1410
972
  },
1411
- "params": [
1412
- {
1413
- "name": "K",
1414
- "type": 19
1415
- },
1416
- {
1417
- "name": "V",
1418
- "type": 1
973
+ {
974
+ "label": "receiver",
975
+ "type": {
976
+ "displayName": [
977
+ "admintrait_external",
978
+ "TranferNftInput3"
979
+ ],
980
+ "type": 0
1419
981
  }
982
+ }
983
+ ],
984
+ "docs": [
985
+ " This function allow contract owner withdraw NFT to an account in case there is any NFT sent to contract by mistake"
986
+ ],
987
+ "label": "AdminTrait::tranfer_nft",
988
+ "mutates": true,
989
+ "payable": false,
990
+ "returnType": {
991
+ "displayName": [
992
+ "ink",
993
+ "MessageResult"
1420
994
  ],
1421
- "path": [
1422
- "openbrush_lang",
1423
- "storage",
1424
- "multi_mapping",
1425
- "MultiMapping"
1426
- ]
1427
- }
995
+ "type": 13
996
+ },
997
+ "selector": "0xed1e1dfa"
1428
998
  },
1429
999
  {
1430
- "id": 19,
1431
- "type": {
1432
- "def": {
1433
- "variant": {
1434
- "variants": [
1435
- {
1436
- "index": 0,
1437
- "name": "None"
1438
- },
1439
- {
1440
- "fields": [
1441
- {
1442
- "type": 8
1443
- }
1444
- ],
1445
- "index": 1,
1446
- "name": "Some"
1447
- }
1448
- ]
1000
+ "args": [
1001
+ {
1002
+ "label": "value",
1003
+ "type": {
1004
+ "displayName": [
1005
+ "admintrait_external",
1006
+ "WithdrawFeeInput1"
1007
+ ],
1008
+ "type": 7
1449
1009
  }
1450
1010
  },
1451
- "params": [
1452
- {
1453
- "name": "T",
1454
- "type": 8
1011
+ {
1012
+ "label": "receiver",
1013
+ "type": {
1014
+ "displayName": [
1015
+ "admintrait_external",
1016
+ "WithdrawFeeInput2"
1017
+ ],
1018
+ "type": 0
1455
1019
  }
1020
+ }
1021
+ ],
1022
+ "docs": [
1023
+ " This function allows contract owner to withdraw contract balance to his account."
1024
+ ],
1025
+ "label": "AdminTrait::withdraw_fee",
1026
+ "mutates": true,
1027
+ "payable": false,
1028
+ "returnType": {
1029
+ "displayName": [
1030
+ "ink",
1031
+ "MessageResult"
1456
1032
  ],
1457
- "path": [
1458
- "Option"
1459
- ]
1460
- }
1033
+ "type": 13
1034
+ },
1035
+ "selector": "0x07573e99"
1461
1036
  },
1462
1037
  {
1463
- "id": 20,
1464
- "type": {
1465
- "def": {
1466
- "sequence": {
1467
- "type": 21
1038
+ "args": [
1039
+ {
1040
+ "label": "psp22_contract_address",
1041
+ "type": {
1042
+ "displayName": [
1043
+ "admintrait_external",
1044
+ "TranferPsp22Input1"
1045
+ ],
1046
+ "type": 0
1047
+ }
1048
+ },
1049
+ {
1050
+ "label": "amount",
1051
+ "type": {
1052
+ "displayName": [
1053
+ "admintrait_external",
1054
+ "TranferPsp22Input2"
1055
+ ],
1056
+ "type": 7
1057
+ }
1058
+ },
1059
+ {
1060
+ "label": "receiver",
1061
+ "type": {
1062
+ "displayName": [
1063
+ "admintrait_external",
1064
+ "TranferPsp22Input3"
1065
+ ],
1066
+ "type": 0
1468
1067
  }
1469
1068
  }
1470
- }
1069
+ ],
1070
+ "docs": [
1071
+ " This function allow contract owner withdraw PSP22 to an account in case there is any token sent to contract by mistake"
1072
+ ],
1073
+ "label": "AdminTrait::tranfer_psp22",
1074
+ "mutates": true,
1075
+ "payable": false,
1076
+ "returnType": {
1077
+ "displayName": [
1078
+ "ink",
1079
+ "MessageResult"
1080
+ ],
1081
+ "type": 13
1082
+ },
1083
+ "selector": "0xd9aad284"
1471
1084
  },
1472
1085
  {
1473
- "id": 21,
1474
- "type": {
1475
- "def": {
1476
- "tuple": [
1477
- 19,
1478
- 1
1479
- ]
1086
+ "args": [
1087
+ {
1088
+ "label": "account",
1089
+ "type": {
1090
+ "displayName": [
1091
+ "psp34burnable_external",
1092
+ "BurnInput1"
1093
+ ],
1094
+ "type": 0
1095
+ }
1096
+ },
1097
+ {
1098
+ "label": "id",
1099
+ "type": {
1100
+ "displayName": [
1101
+ "psp34burnable_external",
1102
+ "BurnInput2"
1103
+ ],
1104
+ "type": 26
1105
+ }
1480
1106
  }
1481
- }
1482
- },
1483
- {
1484
- "id": 22,
1485
- "type": {
1486
- "def": {
1487
- "composite": {
1488
- "fields": [
1489
- {
1490
- "type": 24
1491
- }
1492
- ]
1493
- }
1494
- },
1495
- "params": [
1496
- {
1497
- "name": "K",
1498
- "type": 23
1499
- },
1500
- {
1501
- "name": "V",
1502
- "type": 7
1503
- }
1504
- ],
1505
- "path": [
1506
- "openbrush_lang",
1507
- "storage",
1508
- "mapping",
1509
- "Mapping"
1510
- ]
1511
- }
1512
- },
1513
- {
1514
- "id": 23,
1515
- "type": {
1516
- "def": {
1517
- "tuple": [
1518
- 1,
1519
- 7
1520
- ]
1521
- }
1522
- }
1523
- },
1524
- {
1525
- "id": 24,
1526
- "type": {
1527
- "def": {
1528
- "sequence": {
1529
- "type": 25
1530
- }
1531
- }
1532
- }
1533
- },
1534
- {
1535
- "id": 25,
1536
- "type": {
1537
- "def": {
1538
- "tuple": [
1539
- 23,
1540
- 7
1541
- ]
1542
- }
1543
- }
1544
- },
1545
- {
1546
- "id": 26,
1547
- "type": {
1548
- "def": {
1549
- "composite": {
1550
- "fields": [
1551
- {
1552
- "name": "offset_key",
1553
- "type": 27,
1554
- "typeName": "Key"
1555
- }
1556
- ]
1557
- }
1558
- },
1559
- "params": [
1560
- {
1561
- "name": "K",
1562
- "type": 4
1563
- },
1564
- {
1565
- "name": "V",
1566
- "type": 7
1567
- }
1107
+ ],
1108
+ "docs": [],
1109
+ "label": "PSP34Burnable::burn",
1110
+ "mutates": true,
1111
+ "payable": false,
1112
+ "returnType": {
1113
+ "displayName": [
1114
+ "ink",
1115
+ "MessageResult"
1568
1116
  ],
1569
- "path": [
1570
- "ink_storage",
1571
- "lazy",
1572
- "mapping",
1573
- "Mapping"
1574
- ]
1575
- }
1576
- },
1577
- {
1578
- "id": 27,
1579
- "type": {
1580
- "def": {
1581
- "composite": {
1582
- "fields": [
1583
- {
1584
- "type": 9,
1585
- "typeName": "[u8; 32]"
1586
- }
1587
- ]
1588
- }
1589
- },
1590
- "path": [
1591
- "ink_primitives",
1592
- "Key"
1593
- ]
1594
- }
1595
- },
1596
- {
1597
- "id": 28,
1598
- "type": {
1599
- "def": {
1600
- "composite": {
1601
- "fields": [
1602
- {
1603
- "name": "offset_key",
1604
- "type": 27,
1605
- "typeName": "Key"
1606
- }
1607
- ]
1608
- }
1609
- },
1610
- "params": [
1611
- {
1612
- "name": "K",
1613
- "type": 1
1614
- },
1117
+ "type": 27
1118
+ },
1119
+ "selector": "0x63c9877a"
1120
+ }
1121
+ ]
1122
+ },
1123
+ "storage": {
1124
+ "root": {
1125
+ "layout": {
1126
+ "struct": {
1127
+ "fields": [
1615
1128
  {
1616
- "name": "V",
1617
- "type": 2
1618
- }
1619
- ],
1620
- "path": [
1621
- "ink_storage",
1622
- "lazy",
1623
- "mapping",
1624
- "Mapping"
1625
- ]
1626
- }
1627
- },
1628
- {
1629
- "id": 29,
1630
- "type": {
1631
- "def": {
1632
- "primitive": "str"
1633
- }
1634
- }
1635
- },
1636
- {
1637
- "id": 30,
1638
- "type": {
1639
- "def": {
1640
- "variant": {
1641
- "variants": [
1642
- {
1129
+ "layout": {
1130
+ "struct": {
1643
1131
  "fields": [
1644
1132
  {
1645
- "type": 15
1646
- }
1647
- ],
1648
- "index": 0,
1649
- "name": "Ok"
1650
- },
1651
- {
1652
- "fields": [
1133
+ "layout": {
1134
+ "root": {
1135
+ "layout": {
1136
+ "leaf": {
1137
+ "key": "0x1cc80634",
1138
+ "ty": 0
1139
+ }
1140
+ },
1141
+ "root_key": "0x1cc80634"
1142
+ }
1143
+ },
1144
+ "name": "token_owner"
1145
+ },
1146
+ {
1147
+ "layout": {
1148
+ "root": {
1149
+ "layout": {
1150
+ "leaf": {
1151
+ "key": "0x7e3fae6b",
1152
+ "ty": 3
1153
+ }
1154
+ },
1155
+ "root_key": "0x7e3fae6b"
1156
+ }
1157
+ },
1158
+ "name": "operator_approvals"
1159
+ },
1653
1160
  {
1654
- "type": 31
1161
+ "layout": {
1162
+ "struct": {
1163
+ "fields": [
1164
+ {
1165
+ "layout": {
1166
+ "root": {
1167
+ "layout": {
1168
+ "enum": {
1169
+ "dispatchKey": "0xca32a240",
1170
+ "name": "Id",
1171
+ "variants": {
1172
+ "0": {
1173
+ "fields": [
1174
+ {
1175
+ "layout": {
1176
+ "leaf": {
1177
+ "key": "0xca32a240",
1178
+ "ty": 2
1179
+ }
1180
+ },
1181
+ "name": "0"
1182
+ }
1183
+ ],
1184
+ "name": "U8"
1185
+ },
1186
+ "1": {
1187
+ "fields": [
1188
+ {
1189
+ "layout": {
1190
+ "leaf": {
1191
+ "key": "0xca32a240",
1192
+ "ty": 4
1193
+ }
1194
+ },
1195
+ "name": "0"
1196
+ }
1197
+ ],
1198
+ "name": "U16"
1199
+ },
1200
+ "2": {
1201
+ "fields": [
1202
+ {
1203
+ "layout": {
1204
+ "leaf": {
1205
+ "key": "0xca32a240",
1206
+ "ty": 5
1207
+ }
1208
+ },
1209
+ "name": "0"
1210
+ }
1211
+ ],
1212
+ "name": "U32"
1213
+ },
1214
+ "3": {
1215
+ "fields": [
1216
+ {
1217
+ "layout": {
1218
+ "leaf": {
1219
+ "key": "0xca32a240",
1220
+ "ty": 6
1221
+ }
1222
+ },
1223
+ "name": "0"
1224
+ }
1225
+ ],
1226
+ "name": "U64"
1227
+ },
1228
+ "4": {
1229
+ "fields": [
1230
+ {
1231
+ "layout": {
1232
+ "leaf": {
1233
+ "key": "0xca32a240",
1234
+ "ty": 7
1235
+ }
1236
+ },
1237
+ "name": "0"
1238
+ }
1239
+ ],
1240
+ "name": "U128"
1241
+ },
1242
+ "5": {
1243
+ "fields": [
1244
+ {
1245
+ "layout": {
1246
+ "leaf": {
1247
+ "key": "0xca32a240",
1248
+ "ty": 8
1249
+ }
1250
+ },
1251
+ "name": "0"
1252
+ }
1253
+ ],
1254
+ "name": "Bytes"
1255
+ }
1256
+ }
1257
+ }
1258
+ },
1259
+ "root_key": "0xca32a240"
1260
+ }
1261
+ },
1262
+ "name": "enumerable"
1263
+ },
1264
+ {
1265
+ "layout": {
1266
+ "enum": {
1267
+ "dispatchKey": "0x00000000",
1268
+ "name": "Option",
1269
+ "variants": {
1270
+ "0": {
1271
+ "fields": [],
1272
+ "name": "None"
1273
+ },
1274
+ "1": {
1275
+ "fields": [
1276
+ {
1277
+ "layout": {
1278
+ "leaf": {
1279
+ "key": "0x00000000",
1280
+ "ty": 3
1281
+ }
1282
+ },
1283
+ "name": "0"
1284
+ }
1285
+ ],
1286
+ "name": "Some"
1287
+ }
1288
+ }
1289
+ }
1290
+ },
1291
+ "name": "_reserved"
1292
+ }
1293
+ ],
1294
+ "name": "Balances"
1295
+ }
1296
+ },
1297
+ "name": "balances"
1298
+ },
1299
+ {
1300
+ "layout": {
1301
+ "enum": {
1302
+ "dispatchKey": "0x00000000",
1303
+ "name": "Option",
1304
+ "variants": {
1305
+ "0": {
1306
+ "fields": [],
1307
+ "name": "None"
1308
+ },
1309
+ "1": {
1310
+ "fields": [
1311
+ {
1312
+ "layout": {
1313
+ "leaf": {
1314
+ "key": "0x00000000",
1315
+ "ty": 3
1316
+ }
1317
+ },
1318
+ "name": "0"
1319
+ }
1320
+ ],
1321
+ "name": "Some"
1322
+ }
1323
+ }
1324
+ }
1325
+ },
1326
+ "name": "_reserved"
1655
1327
  }
1656
1328
  ],
1657
- "index": 1,
1658
- "name": "Err"
1329
+ "name": "Data"
1659
1330
  }
1660
- ]
1661
- }
1662
- },
1663
- "params": [
1664
- {
1665
- "name": "T",
1666
- "type": 15
1331
+ },
1332
+ "name": "psp34"
1667
1333
  },
1668
1334
  {
1669
- "name": "E",
1670
- "type": 31
1671
- }
1672
- ],
1673
- "path": [
1674
- "Result"
1675
- ]
1676
- }
1677
- },
1678
- {
1679
- "id": 31,
1680
- "type": {
1681
- "def": {
1682
- "variant": {
1683
- "variants": [
1684
- {
1335
+ "layout": {
1336
+ "struct": {
1685
1337
  "fields": [
1686
1338
  {
1687
- "type": 29,
1688
- "typeName": "String"
1339
+ "layout": {
1340
+ "root": {
1341
+ "layout": {
1342
+ "leaf": {
1343
+ "key": "0x9b2d2382",
1344
+ "ty": 8
1345
+ }
1346
+ },
1347
+ "root_key": "0x9b2d2382"
1348
+ }
1349
+ },
1350
+ "name": "attributes"
1351
+ },
1352
+ {
1353
+ "layout": {
1354
+ "enum": {
1355
+ "dispatchKey": "0x00000000",
1356
+ "name": "Option",
1357
+ "variants": {
1358
+ "0": {
1359
+ "fields": [],
1360
+ "name": "None"
1361
+ },
1362
+ "1": {
1363
+ "fields": [
1364
+ {
1365
+ "layout": {
1366
+ "leaf": {
1367
+ "key": "0x00000000",
1368
+ "ty": 3
1369
+ }
1370
+ },
1371
+ "name": "0"
1372
+ }
1373
+ ],
1374
+ "name": "Some"
1375
+ }
1376
+ }
1377
+ }
1378
+ },
1379
+ "name": "_reserved"
1689
1380
  }
1690
1381
  ],
1691
- "index": 0,
1692
- "name": "Custom"
1693
- },
1694
- {
1695
- "index": 1,
1696
- "name": "NotOwner"
1382
+ "name": "Data"
1697
1383
  }
1698
- ]
1699
- }
1700
- },
1701
- "path": [
1702
- "psp34_nft",
1703
- "psp34_nft",
1704
- "Error"
1705
- ]
1706
- }
1707
- },
1708
- {
1709
- "id": 32,
1710
- "type": {
1711
- "def": {
1712
- "sequence": {
1713
- "type": 33
1714
- }
1715
- }
1716
- }
1717
- },
1718
- {
1719
- "id": 33,
1720
- "type": {
1721
- "def": {
1722
- "tuple": [
1723
- 29,
1724
- 29
1725
- ]
1726
- }
1727
- }
1728
- },
1729
- {
1730
- "id": 34,
1731
- "type": {
1732
- "def": {
1733
- "variant": {
1734
- "variants": [
1735
- {
1384
+ },
1385
+ "name": "metadata"
1386
+ },
1387
+ {
1388
+ "layout": {
1389
+ "struct": {
1736
1390
  "fields": [
1737
1391
  {
1738
- "type": 15
1739
- }
1740
- ],
1741
- "index": 0,
1742
- "name": "Ok"
1743
- },
1744
- {
1745
- "fields": [
1392
+ "layout": {
1393
+ "leaf": {
1394
+ "key": "0x00000000",
1395
+ "ty": 0
1396
+ }
1397
+ },
1398
+ "name": "owner"
1399
+ },
1746
1400
  {
1747
- "type": 35
1401
+ "layout": {
1402
+ "enum": {
1403
+ "dispatchKey": "0x00000000",
1404
+ "name": "Option",
1405
+ "variants": {
1406
+ "0": {
1407
+ "fields": [],
1408
+ "name": "None"
1409
+ },
1410
+ "1": {
1411
+ "fields": [
1412
+ {
1413
+ "layout": {
1414
+ "leaf": {
1415
+ "key": "0x00000000",
1416
+ "ty": 3
1417
+ }
1418
+ },
1419
+ "name": "0"
1420
+ }
1421
+ ],
1422
+ "name": "Some"
1423
+ }
1424
+ }
1425
+ }
1426
+ },
1427
+ "name": "_reserved"
1748
1428
  }
1749
1429
  ],
1750
- "index": 1,
1751
- "name": "Err"
1430
+ "name": "Data"
1752
1431
  }
1753
- ]
1754
- }
1755
- },
1756
- "params": [
1757
- {
1758
- "name": "T",
1759
- "type": 15
1432
+ },
1433
+ "name": "ownable"
1760
1434
  },
1761
1435
  {
1762
- "name": "E",
1763
- "type": 35
1764
- }
1765
- ],
1766
- "path": [
1767
- "Result"
1768
- ]
1769
- }
1770
- },
1771
- {
1772
- "id": 35,
1773
- "type": {
1774
- "def": {
1775
- "variant": {
1776
- "variants": [
1777
- {
1436
+ "layout": {
1437
+ "struct": {
1778
1438
  "fields": [
1779
1439
  {
1780
- "type": 29,
1781
- "typeName": "String"
1782
- }
1783
- ],
1784
- "index": 0,
1785
- "name": "Custom"
1786
- },
1787
- {
1788
- "index": 1,
1789
- "name": "SelfApprove"
1790
- },
1791
- {
1792
- "index": 2,
1793
- "name": "NotApproved"
1794
- },
1795
- {
1796
- "index": 3,
1797
- "name": "TokenExists"
1798
- },
1799
- {
1800
- "index": 4,
1801
- "name": "TokenNotExists"
1802
- },
1803
- {
1804
- "fields": [
1440
+ "layout": {
1441
+ "leaf": {
1442
+ "key": "0x00000000",
1443
+ "ty": 6
1444
+ }
1445
+ },
1446
+ "name": "last_token_id"
1447
+ },
1805
1448
  {
1806
- "type": 29,
1807
- "typeName": "String"
1808
- }
1809
- ],
1810
- "index": 5,
1811
- "name": "SafeTransferCheckFailed"
1812
- }
1813
- ]
1814
- }
1815
- },
1816
- "path": [
1817
- "openbrush_contracts",
1818
- "traits",
1819
- "errors",
1820
- "psp34",
1821
- "PSP34Error"
1822
- ]
1823
- }
1824
- },
1825
- {
1826
- "id": 36,
1827
- "type": {
1828
- "def": {
1829
- "primitive": "bool"
1830
- }
1831
- }
1832
- },
1833
- {
1834
- "id": 37,
1835
- "type": {
1836
- "def": {
1837
- "variant": {
1838
- "variants": [
1839
- {
1840
- "fields": [
1449
+ "layout": {
1450
+ "leaf": {
1451
+ "key": "0x00000000",
1452
+ "ty": 5
1453
+ }
1454
+ },
1455
+ "name": "attribute_count"
1456
+ },
1841
1457
  {
1842
- "type": 15
1843
- }
1844
- ],
1845
- "index": 0,
1846
- "name": "Ok"
1847
- },
1848
- {
1849
- "fields": [
1458
+ "layout": {
1459
+ "root": {
1460
+ "layout": {
1461
+ "leaf": {
1462
+ "key": "0x90fe8c00",
1463
+ "ty": 8
1464
+ }
1465
+ },
1466
+ "root_key": "0x90fe8c00"
1467
+ }
1468
+ },
1469
+ "name": "attribute_names"
1470
+ },
1850
1471
  {
1851
- "type": 38
1852
- }
1853
- ],
1854
- "index": 1,
1855
- "name": "Err"
1856
- }
1857
- ]
1858
- }
1859
- },
1860
- "params": [
1861
- {
1862
- "name": "T",
1863
- "type": 15
1864
- },
1865
- {
1866
- "name": "E",
1867
- "type": 38
1868
- }
1869
- ],
1870
- "path": [
1871
- "Result"
1872
- ]
1873
- }
1874
- },
1875
- {
1876
- "id": 38,
1877
- "type": {
1878
- "def": {
1879
- "variant": {
1880
- "variants": [
1881
- {
1882
- "index": 0,
1883
- "name": "CallerIsNotOwner"
1884
- },
1885
- {
1886
- "index": 1,
1887
- "name": "NewOwnerIsZero"
1888
- }
1889
- ]
1890
- }
1891
- },
1892
- "path": [
1893
- "openbrush_contracts",
1894
- "traits",
1895
- "errors",
1896
- "ownable",
1897
- "OwnableError"
1898
- ]
1899
- }
1900
- },
1901
- {
1902
- "id": 39,
1903
- "type": {
1904
- "def": {
1905
- "variant": {
1906
- "variants": [
1907
- {
1908
- "index": 0,
1909
- "name": "None"
1910
- },
1911
- {
1912
- "fields": [
1472
+ "layout": {
1473
+ "root": {
1474
+ "layout": {
1475
+ "leaf": {
1476
+ "key": "0x385e99c1",
1477
+ "ty": 9
1478
+ }
1479
+ },
1480
+ "root_key": "0x385e99c1"
1481
+ }
1482
+ },
1483
+ "name": "is_attribute"
1484
+ },
1485
+ {
1486
+ "layout": {
1487
+ "root": {
1488
+ "layout": {
1489
+ "leaf": {
1490
+ "key": "0x89dbb226",
1491
+ "ty": 9
1492
+ }
1493
+ },
1494
+ "root_key": "0x89dbb226"
1495
+ }
1496
+ },
1497
+ "name": "locked_tokens"
1498
+ },
1499
+ {
1500
+ "layout": {
1501
+ "leaf": {
1502
+ "key": "0x00000000",
1503
+ "ty": 6
1504
+ }
1505
+ },
1506
+ "name": "locked_token_count"
1507
+ },
1913
1508
  {
1914
- "type": 7
1509
+ "layout": {
1510
+ "enum": {
1511
+ "dispatchKey": "0x00000000",
1512
+ "name": "Option",
1513
+ "variants": {
1514
+ "0": {
1515
+ "fields": [],
1516
+ "name": "None"
1517
+ },
1518
+ "1": {
1519
+ "fields": [
1520
+ {
1521
+ "layout": {
1522
+ "leaf": {
1523
+ "key": "0x00000000",
1524
+ "ty": 3
1525
+ }
1526
+ },
1527
+ "name": "0"
1528
+ }
1529
+ ],
1530
+ "name": "Some"
1531
+ }
1532
+ }
1533
+ }
1534
+ },
1535
+ "name": "_reserved"
1915
1536
  }
1916
1537
  ],
1917
- "index": 1,
1918
- "name": "Some"
1538
+ "name": "Manager"
1919
1539
  }
1920
- ]
1921
- }
1922
- },
1923
- "params": [
1540
+ },
1541
+ "name": "manager"
1542
+ },
1924
1543
  {
1925
- "name": "T",
1926
- "type": 7
1927
- }
1928
- ],
1929
- "path": [
1930
- "Option"
1931
- ]
1932
- }
1933
- },
1934
- {
1935
- "id": 40,
1936
- "type": {
1937
- "def": {
1938
- "variant": {
1939
- "variants": [
1940
- {
1941
- "fields": [
1942
- {
1943
- "type": 1
1944
- }
1945
- ],
1946
- "index": 0,
1947
- "name": "Ok"
1948
- },
1949
- {
1544
+ "layout": {
1545
+ "struct": {
1950
1546
  "fields": [
1951
1547
  {
1952
- "type": 35
1548
+ "layout": {
1549
+ "enum": {
1550
+ "dispatchKey": "0x00000000",
1551
+ "name": "Option",
1552
+ "variants": {
1553
+ "0": {
1554
+ "fields": [],
1555
+ "name": "None"
1556
+ },
1557
+ "1": {
1558
+ "fields": [
1559
+ {
1560
+ "layout": {
1561
+ "leaf": {
1562
+ "key": "0x00000000",
1563
+ "ty": 3
1564
+ }
1565
+ },
1566
+ "name": "0"
1567
+ }
1568
+ ],
1569
+ "name": "Some"
1570
+ }
1571
+ }
1572
+ }
1573
+ },
1574
+ "name": "_reserved"
1953
1575
  }
1954
1576
  ],
1955
- "index": 1,
1956
- "name": "Err"
1577
+ "name": "Data"
1957
1578
  }
1958
- ]
1959
- }
1960
- },
1961
- "params": [
1962
- {
1963
- "name": "T",
1964
- "type": 1
1965
- },
1966
- {
1967
- "name": "E",
1968
- "type": 35
1579
+ },
1580
+ "name": "admin_data"
1969
1581
  }
1970
1582
  ],
1971
- "path": [
1972
- "Result"
1973
- ]
1583
+ "name": "Psp34Nft"
1974
1584
  }
1975
1585
  },
1976
- {
1977
- "id": 41,
1978
- "type": {
1979
- "def": {
1980
- "sequence": {
1981
- "type": 29
1982
- }
1586
+ "root_key": "0x00000000"
1587
+ }
1588
+ },
1589
+ "types": [
1590
+ {
1591
+ "id": 0,
1592
+ "type": {
1593
+ "def": {
1594
+ "composite": {
1595
+ "fields": [
1596
+ {
1597
+ "type": 1,
1598
+ "typeName": "[u8; 32]"
1599
+ }
1600
+ ]
1601
+ }
1602
+ },
1603
+ "path": [
1604
+ "ink_primitives",
1605
+ "types",
1606
+ "AccountId"
1607
+ ]
1608
+ }
1609
+ },
1610
+ {
1611
+ "id": 1,
1612
+ "type": {
1613
+ "def": {
1614
+ "array": {
1615
+ "len": 32,
1616
+ "type": 2
1983
1617
  }
1984
1618
  }
1985
1619
  }
1986
- ]
1987
- }
1988
- }
1620
+ },
1621
+ {
1622
+ "id": 2,
1623
+ "type": {
1624
+ "def": {
1625
+ "primitive": "u8"
1626
+ }
1627
+ }
1628
+ },
1629
+ {
1630
+ "id": 3,
1631
+ "type": {
1632
+ "def": {
1633
+ "tuple": []
1634
+ }
1635
+ }
1636
+ },
1637
+ {
1638
+ "id": 4,
1639
+ "type": {
1640
+ "def": {
1641
+ "primitive": "u16"
1642
+ }
1643
+ }
1644
+ },
1645
+ {
1646
+ "id": 5,
1647
+ "type": {
1648
+ "def": {
1649
+ "primitive": "u32"
1650
+ }
1651
+ }
1652
+ },
1653
+ {
1654
+ "id": 6,
1655
+ "type": {
1656
+ "def": {
1657
+ "primitive": "u64"
1658
+ }
1659
+ }
1660
+ },
1661
+ {
1662
+ "id": 7,
1663
+ "type": {
1664
+ "def": {
1665
+ "primitive": "u128"
1666
+ }
1667
+ }
1668
+ },
1669
+ {
1670
+ "id": 8,
1671
+ "type": {
1672
+ "def": {
1673
+ "sequence": {
1674
+ "type": 2
1675
+ }
1676
+ }
1677
+ }
1678
+ },
1679
+ {
1680
+ "id": 9,
1681
+ "type": {
1682
+ "def": {
1683
+ "primitive": "bool"
1684
+ }
1685
+ }
1686
+ },
1687
+ {
1688
+ "id": 10,
1689
+ "type": {
1690
+ "def": {
1691
+ "primitive": "str"
1692
+ }
1693
+ }
1694
+ },
1695
+ {
1696
+ "id": 11,
1697
+ "type": {
1698
+ "def": {
1699
+ "variant": {
1700
+ "variants": [
1701
+ {
1702
+ "fields": [
1703
+ {
1704
+ "type": 3
1705
+ }
1706
+ ],
1707
+ "index": 0,
1708
+ "name": "Ok"
1709
+ },
1710
+ {
1711
+ "fields": [
1712
+ {
1713
+ "type": 12
1714
+ }
1715
+ ],
1716
+ "index": 1,
1717
+ "name": "Err"
1718
+ }
1719
+ ]
1720
+ }
1721
+ },
1722
+ "params": [
1723
+ {
1724
+ "name": "T",
1725
+ "type": 3
1726
+ },
1727
+ {
1728
+ "name": "E",
1729
+ "type": 12
1730
+ }
1731
+ ],
1732
+ "path": [
1733
+ "Result"
1734
+ ]
1735
+ }
1736
+ },
1737
+ {
1738
+ "id": 12,
1739
+ "type": {
1740
+ "def": {
1741
+ "variant": {
1742
+ "variants": [
1743
+ {
1744
+ "index": 1,
1745
+ "name": "CouldNotReadInput"
1746
+ }
1747
+ ]
1748
+ }
1749
+ },
1750
+ "path": [
1751
+ "ink_primitives",
1752
+ "LangError"
1753
+ ]
1754
+ }
1755
+ },
1756
+ {
1757
+ "id": 13,
1758
+ "type": {
1759
+ "def": {
1760
+ "variant": {
1761
+ "variants": [
1762
+ {
1763
+ "fields": [
1764
+ {
1765
+ "type": 14
1766
+ }
1767
+ ],
1768
+ "index": 0,
1769
+ "name": "Ok"
1770
+ },
1771
+ {
1772
+ "fields": [
1773
+ {
1774
+ "type": 12
1775
+ }
1776
+ ],
1777
+ "index": 1,
1778
+ "name": "Err"
1779
+ }
1780
+ ]
1781
+ }
1782
+ },
1783
+ "params": [
1784
+ {
1785
+ "name": "T",
1786
+ "type": 14
1787
+ },
1788
+ {
1789
+ "name": "E",
1790
+ "type": 12
1791
+ }
1792
+ ],
1793
+ "path": [
1794
+ "Result"
1795
+ ]
1796
+ }
1797
+ },
1798
+ {
1799
+ "id": 14,
1800
+ "type": {
1801
+ "def": {
1802
+ "variant": {
1803
+ "variants": [
1804
+ {
1805
+ "fields": [
1806
+ {
1807
+ "type": 3
1808
+ }
1809
+ ],
1810
+ "index": 0,
1811
+ "name": "Ok"
1812
+ },
1813
+ {
1814
+ "fields": [
1815
+ {
1816
+ "type": 15
1817
+ }
1818
+ ],
1819
+ "index": 1,
1820
+ "name": "Err"
1821
+ }
1822
+ ]
1823
+ }
1824
+ },
1825
+ "params": [
1826
+ {
1827
+ "name": "T",
1828
+ "type": 3
1829
+ },
1830
+ {
1831
+ "name": "E",
1832
+ "type": 15
1833
+ }
1834
+ ],
1835
+ "path": [
1836
+ "Result"
1837
+ ]
1838
+ }
1839
+ },
1840
+ {
1841
+ "id": 15,
1842
+ "type": {
1843
+ "def": {
1844
+ "variant": {
1845
+ "variants": [
1846
+ {
1847
+ "fields": [
1848
+ {
1849
+ "type": 10,
1850
+ "typeName": "String"
1851
+ }
1852
+ ],
1853
+ "index": 0,
1854
+ "name": "Custom"
1855
+ },
1856
+ {
1857
+ "index": 1,
1858
+ "name": "OnlyOwner"
1859
+ },
1860
+ {
1861
+ "index": 2,
1862
+ "name": "OnlyAdmin"
1863
+ },
1864
+ {
1865
+ "index": 3,
1866
+ "name": "InvalidCaller"
1867
+ },
1868
+ {
1869
+ "index": 4,
1870
+ "name": "InvalidFee"
1871
+ },
1872
+ {
1873
+ "index": 5,
1874
+ "name": "TokenOwnerNotMatch"
1875
+ },
1876
+ {
1877
+ "index": 6,
1878
+ "name": "NotApproved"
1879
+ },
1880
+ {
1881
+ "index": 7,
1882
+ "name": "CannotTransfer"
1883
+ },
1884
+ {
1885
+ "index": 8,
1886
+ "name": "CannotMint"
1887
+ },
1888
+ {
1889
+ "index": 9,
1890
+ "name": "NotPublicMint"
1891
+ },
1892
+ {
1893
+ "index": 10,
1894
+ "name": "NotEnoughBalance"
1895
+ },
1896
+ {
1897
+ "index": 11,
1898
+ "name": "MaxSupply"
1899
+ },
1900
+ {
1901
+ "index": 12,
1902
+ "name": "AlreadyInit"
1903
+ },
1904
+ {
1905
+ "index": 13,
1906
+ "name": "NotOwner"
1907
+ },
1908
+ {
1909
+ "index": 14,
1910
+ "name": "NotTokenOwner"
1911
+ },
1912
+ {
1913
+ "index": 15,
1914
+ "name": "ProjectNotExist"
1915
+ },
1916
+ {
1917
+ "index": 16,
1918
+ "name": "ProjectOwnerAndAdmin"
1919
+ },
1920
+ {
1921
+ "index": 17,
1922
+ "name": "InvalidStartTimeAndEndTime"
1923
+ },
1924
+ {
1925
+ "index": 18,
1926
+ "name": "InvalidPhaseCount"
1927
+ },
1928
+ {
1929
+ "index": 19,
1930
+ "name": "CollectionOwnerAndAdmin"
1931
+ },
1932
+ {
1933
+ "index": 20,
1934
+ "name": "CollectionNotActive"
1935
+ },
1936
+ {
1937
+ "index": 21,
1938
+ "name": "CollectionNotExist"
1939
+ },
1940
+ {
1941
+ "index": 22,
1942
+ "name": "InvalidInput"
1943
+ },
1944
+ {
1945
+ "index": 23,
1946
+ "name": "InvalidType"
1947
+ },
1948
+ {
1949
+ "index": 24,
1950
+ "name": "ClaimedAll"
1951
+ },
1952
+ {
1953
+ "index": 25,
1954
+ "name": "TokenLimitReached"
1955
+ },
1956
+ {
1957
+ "index": 26,
1958
+ "name": "UpdatePhase"
1959
+ },
1960
+ {
1961
+ "index": 27,
1962
+ "name": "PhaseNotExist"
1963
+ },
1964
+ {
1965
+ "index": 28,
1966
+ "name": "PhaseExpired"
1967
+ },
1968
+ {
1969
+ "index": 29,
1970
+ "name": "PhaseDeactivate"
1971
+ },
1972
+ {
1973
+ "index": 30,
1974
+ "name": "WhitelistNotExist"
1975
+ },
1976
+ {
1977
+ "index": 31,
1978
+ "name": "WithdrawFeeError"
1979
+ },
1980
+ {
1981
+ "index": 32,
1982
+ "name": "WithdrawNFTError"
1983
+ },
1984
+ {
1985
+ "index": 33,
1986
+ "name": "WithdrawPSP22Error"
1987
+ },
1988
+ {
1989
+ "index": 34,
1990
+ "name": "NotListed"
1991
+ },
1992
+ {
1993
+ "index": 35,
1994
+ "name": "BidAlreadyExist"
1995
+ },
1996
+ {
1997
+ "index": 36,
1998
+ "name": "BidNotExist"
1999
+ },
2000
+ {
2001
+ "index": 37,
2002
+ "name": "NotInMarket"
2003
+ },
2004
+ {
2005
+ "index": 38,
2006
+ "name": "NotForSale"
2007
+ },
2008
+ {
2009
+ "index": 39,
2010
+ "name": "NotInSaleList"
2011
+ },
2012
+ {
2013
+ "index": 40,
2014
+ "name": "InvalidBidLength"
2015
+ },
2016
+ {
2017
+ "index": 41,
2018
+ "name": "InvalidCollectionOwner"
2019
+ },
2020
+ {
2021
+ "index": 42,
2022
+ "name": "InvalidTime"
2023
+ },
2024
+ {
2025
+ "index": 43,
2026
+ "name": "RewardStarted"
2027
+ },
2028
+ {
2029
+ "index": 44,
2030
+ "name": "RewardNotStarted"
2031
+ },
2032
+ {
2033
+ "index": 45,
2034
+ "name": "RewardNotAdded"
2035
+ },
2036
+ {
2037
+ "index": 46,
2038
+ "name": "ClaimMustBeFalse"
2039
+ },
2040
+ {
2041
+ "index": 47,
2042
+ "name": "HoldAmountBidderNotExist"
2043
+ },
2044
+ {
2045
+ "fields": [
2046
+ {
2047
+ "type": 16,
2048
+ "typeName": "OwnableError"
2049
+ }
2050
+ ],
2051
+ "index": 48,
2052
+ "name": "OwnableError"
2053
+ },
2054
+ {
2055
+ "fields": [
2056
+ {
2057
+ "type": 17,
2058
+ "typeName": "AccessControlError"
2059
+ }
2060
+ ],
2061
+ "index": 49,
2062
+ "name": "AccessControlError"
2063
+ },
2064
+ {
2065
+ "fields": [
2066
+ {
2067
+ "type": 18,
2068
+ "typeName": "PSP22Error"
2069
+ }
2070
+ ],
2071
+ "index": 50,
2072
+ "name": "PSP22Error"
2073
+ },
2074
+ {
2075
+ "fields": [
2076
+ {
2077
+ "type": 19,
2078
+ "typeName": "PSP34Error"
2079
+ }
2080
+ ],
2081
+ "index": 51,
2082
+ "name": "PSP34Error"
2083
+ },
2084
+ {
2085
+ "index": 52,
2086
+ "name": "CheckedOperations"
2087
+ }
2088
+ ]
2089
+ }
2090
+ },
2091
+ "path": [
2092
+ "artzero_project",
2093
+ "traits",
2094
+ "error",
2095
+ "Error"
2096
+ ]
2097
+ }
2098
+ },
2099
+ {
2100
+ "id": 16,
2101
+ "type": {
2102
+ "def": {
2103
+ "variant": {
2104
+ "variants": [
2105
+ {
2106
+ "index": 0,
2107
+ "name": "CallerIsNotOwner"
2108
+ },
2109
+ {
2110
+ "index": 1,
2111
+ "name": "NewOwnerIsZero"
2112
+ }
2113
+ ]
2114
+ }
2115
+ },
2116
+ "path": [
2117
+ "openbrush_contracts",
2118
+ "traits",
2119
+ "errors",
2120
+ "ownable",
2121
+ "OwnableError"
2122
+ ]
2123
+ }
2124
+ },
2125
+ {
2126
+ "id": 17,
2127
+ "type": {
2128
+ "def": {
2129
+ "variant": {
2130
+ "variants": [
2131
+ {
2132
+ "index": 0,
2133
+ "name": "InvalidCaller"
2134
+ },
2135
+ {
2136
+ "index": 1,
2137
+ "name": "MissingRole"
2138
+ },
2139
+ {
2140
+ "index": 2,
2141
+ "name": "RoleRedundant"
2142
+ }
2143
+ ]
2144
+ }
2145
+ },
2146
+ "path": [
2147
+ "openbrush_contracts",
2148
+ "traits",
2149
+ "errors",
2150
+ "access_control",
2151
+ "AccessControlError"
2152
+ ]
2153
+ }
2154
+ },
2155
+ {
2156
+ "id": 18,
2157
+ "type": {
2158
+ "def": {
2159
+ "variant": {
2160
+ "variants": [
2161
+ {
2162
+ "fields": [
2163
+ {
2164
+ "type": 8,
2165
+ "typeName": "String"
2166
+ }
2167
+ ],
2168
+ "index": 0,
2169
+ "name": "Custom"
2170
+ },
2171
+ {
2172
+ "index": 1,
2173
+ "name": "InsufficientBalance"
2174
+ },
2175
+ {
2176
+ "index": 2,
2177
+ "name": "InsufficientAllowance"
2178
+ },
2179
+ {
2180
+ "index": 3,
2181
+ "name": "ZeroRecipientAddress"
2182
+ },
2183
+ {
2184
+ "index": 4,
2185
+ "name": "ZeroSenderAddress"
2186
+ },
2187
+ {
2188
+ "fields": [
2189
+ {
2190
+ "type": 8,
2191
+ "typeName": "String"
2192
+ }
2193
+ ],
2194
+ "index": 5,
2195
+ "name": "SafeTransferCheckFailed"
2196
+ }
2197
+ ]
2198
+ }
2199
+ },
2200
+ "path": [
2201
+ "openbrush_contracts",
2202
+ "traits",
2203
+ "errors",
2204
+ "psp22",
2205
+ "PSP22Error"
2206
+ ]
2207
+ }
2208
+ },
2209
+ {
2210
+ "id": 19,
2211
+ "type": {
2212
+ "def": {
2213
+ "variant": {
2214
+ "variants": [
2215
+ {
2216
+ "fields": [
2217
+ {
2218
+ "type": 8,
2219
+ "typeName": "String"
2220
+ }
2221
+ ],
2222
+ "index": 0,
2223
+ "name": "Custom"
2224
+ },
2225
+ {
2226
+ "index": 1,
2227
+ "name": "SelfApprove"
2228
+ },
2229
+ {
2230
+ "index": 2,
2231
+ "name": "NotApproved"
2232
+ },
2233
+ {
2234
+ "index": 3,
2235
+ "name": "TokenExists"
2236
+ },
2237
+ {
2238
+ "index": 4,
2239
+ "name": "TokenNotExists"
2240
+ },
2241
+ {
2242
+ "fields": [
2243
+ {
2244
+ "type": 8,
2245
+ "typeName": "String"
2246
+ }
2247
+ ],
2248
+ "index": 5,
2249
+ "name": "SafeTransferCheckFailed"
2250
+ }
2251
+ ]
2252
+ }
2253
+ },
2254
+ "path": [
2255
+ "openbrush_contracts",
2256
+ "traits",
2257
+ "errors",
2258
+ "psp34",
2259
+ "PSP34Error"
2260
+ ]
2261
+ }
2262
+ },
2263
+ {
2264
+ "id": 20,
2265
+ "type": {
2266
+ "def": {
2267
+ "sequence": {
2268
+ "type": 21
2269
+ }
2270
+ }
2271
+ }
2272
+ },
2273
+ {
2274
+ "id": 21,
2275
+ "type": {
2276
+ "def": {
2277
+ "tuple": [
2278
+ 10,
2279
+ 10
2280
+ ]
2281
+ }
2282
+ }
2283
+ },
2284
+ {
2285
+ "id": 22,
2286
+ "type": {
2287
+ "def": {
2288
+ "variant": {
2289
+ "variants": [
2290
+ {
2291
+ "fields": [
2292
+ {
2293
+ "type": 23
2294
+ }
2295
+ ],
2296
+ "index": 0,
2297
+ "name": "Ok"
2298
+ },
2299
+ {
2300
+ "fields": [
2301
+ {
2302
+ "type": 12
2303
+ }
2304
+ ],
2305
+ "index": 1,
2306
+ "name": "Err"
2307
+ }
2308
+ ]
2309
+ }
2310
+ },
2311
+ "params": [
2312
+ {
2313
+ "name": "T",
2314
+ "type": 23
2315
+ },
2316
+ {
2317
+ "name": "E",
2318
+ "type": 12
2319
+ }
2320
+ ],
2321
+ "path": [
2322
+ "Result"
2323
+ ]
2324
+ }
2325
+ },
2326
+ {
2327
+ "id": 23,
2328
+ "type": {
2329
+ "def": {
2330
+ "variant": {
2331
+ "variants": [
2332
+ {
2333
+ "fields": [
2334
+ {
2335
+ "type": 3
2336
+ }
2337
+ ],
2338
+ "index": 0,
2339
+ "name": "Ok"
2340
+ },
2341
+ {
2342
+ "fields": [
2343
+ {
2344
+ "type": 16
2345
+ }
2346
+ ],
2347
+ "index": 1,
2348
+ "name": "Err"
2349
+ }
2350
+ ]
2351
+ }
2352
+ },
2353
+ "params": [
2354
+ {
2355
+ "name": "T",
2356
+ "type": 3
2357
+ },
2358
+ {
2359
+ "name": "E",
2360
+ "type": 16
2361
+ }
2362
+ ],
2363
+ "path": [
2364
+ "Result"
2365
+ ]
2366
+ }
2367
+ },
2368
+ {
2369
+ "id": 24,
2370
+ "type": {
2371
+ "def": {
2372
+ "variant": {
2373
+ "variants": [
2374
+ {
2375
+ "fields": [
2376
+ {
2377
+ "type": 0
2378
+ }
2379
+ ],
2380
+ "index": 0,
2381
+ "name": "Ok"
2382
+ },
2383
+ {
2384
+ "fields": [
2385
+ {
2386
+ "type": 12
2387
+ }
2388
+ ],
2389
+ "index": 1,
2390
+ "name": "Err"
2391
+ }
2392
+ ]
2393
+ }
2394
+ },
2395
+ "params": [
2396
+ {
2397
+ "name": "T",
2398
+ "type": 0
2399
+ },
2400
+ {
2401
+ "name": "E",
2402
+ "type": 12
2403
+ }
2404
+ ],
2405
+ "path": [
2406
+ "Result"
2407
+ ]
2408
+ }
2409
+ },
2410
+ {
2411
+ "id": 25,
2412
+ "type": {
2413
+ "def": {
2414
+ "variant": {
2415
+ "variants": [
2416
+ {
2417
+ "fields": [
2418
+ {
2419
+ "type": 26
2420
+ }
2421
+ ],
2422
+ "index": 0,
2423
+ "name": "Ok"
2424
+ },
2425
+ {
2426
+ "fields": [
2427
+ {
2428
+ "type": 12
2429
+ }
2430
+ ],
2431
+ "index": 1,
2432
+ "name": "Err"
2433
+ }
2434
+ ]
2435
+ }
2436
+ },
2437
+ "params": [
2438
+ {
2439
+ "name": "T",
2440
+ "type": 26
2441
+ },
2442
+ {
2443
+ "name": "E",
2444
+ "type": 12
2445
+ }
2446
+ ],
2447
+ "path": [
2448
+ "Result"
2449
+ ]
2450
+ }
2451
+ },
2452
+ {
2453
+ "id": 26,
2454
+ "type": {
2455
+ "def": {
2456
+ "variant": {
2457
+ "variants": [
2458
+ {
2459
+ "fields": [
2460
+ {
2461
+ "type": 2,
2462
+ "typeName": "u8"
2463
+ }
2464
+ ],
2465
+ "index": 0,
2466
+ "name": "U8"
2467
+ },
2468
+ {
2469
+ "fields": [
2470
+ {
2471
+ "type": 4,
2472
+ "typeName": "u16"
2473
+ }
2474
+ ],
2475
+ "index": 1,
2476
+ "name": "U16"
2477
+ },
2478
+ {
2479
+ "fields": [
2480
+ {
2481
+ "type": 5,
2482
+ "typeName": "u32"
2483
+ }
2484
+ ],
2485
+ "index": 2,
2486
+ "name": "U32"
2487
+ },
2488
+ {
2489
+ "fields": [
2490
+ {
2491
+ "type": 6,
2492
+ "typeName": "u64"
2493
+ }
2494
+ ],
2495
+ "index": 3,
2496
+ "name": "U64"
2497
+ },
2498
+ {
2499
+ "fields": [
2500
+ {
2501
+ "type": 7,
2502
+ "typeName": "u128"
2503
+ }
2504
+ ],
2505
+ "index": 4,
2506
+ "name": "U128"
2507
+ },
2508
+ {
2509
+ "fields": [
2510
+ {
2511
+ "type": 8,
2512
+ "typeName": "Vec<u8>"
2513
+ }
2514
+ ],
2515
+ "index": 5,
2516
+ "name": "Bytes"
2517
+ }
2518
+ ]
2519
+ }
2520
+ },
2521
+ "path": [
2522
+ "openbrush_contracts",
2523
+ "traits",
2524
+ "types",
2525
+ "Id"
2526
+ ]
2527
+ }
2528
+ },
2529
+ {
2530
+ "id": 27,
2531
+ "type": {
2532
+ "def": {
2533
+ "variant": {
2534
+ "variants": [
2535
+ {
2536
+ "fields": [
2537
+ {
2538
+ "type": 28
2539
+ }
2540
+ ],
2541
+ "index": 0,
2542
+ "name": "Ok"
2543
+ },
2544
+ {
2545
+ "fields": [
2546
+ {
2547
+ "type": 12
2548
+ }
2549
+ ],
2550
+ "index": 1,
2551
+ "name": "Err"
2552
+ }
2553
+ ]
2554
+ }
2555
+ },
2556
+ "params": [
2557
+ {
2558
+ "name": "T",
2559
+ "type": 28
2560
+ },
2561
+ {
2562
+ "name": "E",
2563
+ "type": 12
2564
+ }
2565
+ ],
2566
+ "path": [
2567
+ "Result"
2568
+ ]
2569
+ }
2570
+ },
2571
+ {
2572
+ "id": 28,
2573
+ "type": {
2574
+ "def": {
2575
+ "variant": {
2576
+ "variants": [
2577
+ {
2578
+ "fields": [
2579
+ {
2580
+ "type": 3
2581
+ }
2582
+ ],
2583
+ "index": 0,
2584
+ "name": "Ok"
2585
+ },
2586
+ {
2587
+ "fields": [
2588
+ {
2589
+ "type": 19
2590
+ }
2591
+ ],
2592
+ "index": 1,
2593
+ "name": "Err"
2594
+ }
2595
+ ]
2596
+ }
2597
+ },
2598
+ "params": [
2599
+ {
2600
+ "name": "T",
2601
+ "type": 3
2602
+ },
2603
+ {
2604
+ "name": "E",
2605
+ "type": 19
2606
+ }
2607
+ ],
2608
+ "path": [
2609
+ "Result"
2610
+ ]
2611
+ }
2612
+ },
2613
+ {
2614
+ "id": 29,
2615
+ "type": {
2616
+ "def": {
2617
+ "variant": {
2618
+ "variants": [
2619
+ {
2620
+ "index": 0,
2621
+ "name": "None"
2622
+ },
2623
+ {
2624
+ "fields": [
2625
+ {
2626
+ "type": 26
2627
+ }
2628
+ ],
2629
+ "index": 1,
2630
+ "name": "Some"
2631
+ }
2632
+ ]
2633
+ }
2634
+ },
2635
+ "params": [
2636
+ {
2637
+ "name": "T",
2638
+ "type": 26
2639
+ }
2640
+ ],
2641
+ "path": [
2642
+ "Option"
2643
+ ]
2644
+ }
2645
+ },
2646
+ {
2647
+ "id": 30,
2648
+ "type": {
2649
+ "def": {
2650
+ "variant": {
2651
+ "variants": [
2652
+ {
2653
+ "fields": [
2654
+ {
2655
+ "type": 31
2656
+ }
2657
+ ],
2658
+ "index": 0,
2659
+ "name": "Ok"
2660
+ },
2661
+ {
2662
+ "fields": [
2663
+ {
2664
+ "type": 12
2665
+ }
2666
+ ],
2667
+ "index": 1,
2668
+ "name": "Err"
2669
+ }
2670
+ ]
2671
+ }
2672
+ },
2673
+ "params": [
2674
+ {
2675
+ "name": "T",
2676
+ "type": 31
2677
+ },
2678
+ {
2679
+ "name": "E",
2680
+ "type": 12
2681
+ }
2682
+ ],
2683
+ "path": [
2684
+ "Result"
2685
+ ]
2686
+ }
2687
+ },
2688
+ {
2689
+ "id": 31,
2690
+ "type": {
2691
+ "def": {
2692
+ "variant": {
2693
+ "variants": [
2694
+ {
2695
+ "index": 0,
2696
+ "name": "None"
2697
+ },
2698
+ {
2699
+ "fields": [
2700
+ {
2701
+ "type": 0
2702
+ }
2703
+ ],
2704
+ "index": 1,
2705
+ "name": "Some"
2706
+ }
2707
+ ]
2708
+ }
2709
+ },
2710
+ "params": [
2711
+ {
2712
+ "name": "T",
2713
+ "type": 0
2714
+ }
2715
+ ],
2716
+ "path": [
2717
+ "Option"
2718
+ ]
2719
+ }
2720
+ },
2721
+ {
2722
+ "id": 32,
2723
+ "type": {
2724
+ "def": {
2725
+ "variant": {
2726
+ "variants": [
2727
+ {
2728
+ "fields": [
2729
+ {
2730
+ "type": 9
2731
+ }
2732
+ ],
2733
+ "index": 0,
2734
+ "name": "Ok"
2735
+ },
2736
+ {
2737
+ "fields": [
2738
+ {
2739
+ "type": 12
2740
+ }
2741
+ ],
2742
+ "index": 1,
2743
+ "name": "Err"
2744
+ }
2745
+ ]
2746
+ }
2747
+ },
2748
+ "params": [
2749
+ {
2750
+ "name": "T",
2751
+ "type": 9
2752
+ },
2753
+ {
2754
+ "name": "E",
2755
+ "type": 12
2756
+ }
2757
+ ],
2758
+ "path": [
2759
+ "Result"
2760
+ ]
2761
+ }
2762
+ },
2763
+ {
2764
+ "id": 33,
2765
+ "type": {
2766
+ "def": {
2767
+ "variant": {
2768
+ "variants": [
2769
+ {
2770
+ "fields": [
2771
+ {
2772
+ "type": 7
2773
+ }
2774
+ ],
2775
+ "index": 0,
2776
+ "name": "Ok"
2777
+ },
2778
+ {
2779
+ "fields": [
2780
+ {
2781
+ "type": 12
2782
+ }
2783
+ ],
2784
+ "index": 1,
2785
+ "name": "Err"
2786
+ }
2787
+ ]
2788
+ }
2789
+ },
2790
+ "params": [
2791
+ {
2792
+ "name": "T",
2793
+ "type": 7
2794
+ },
2795
+ {
2796
+ "name": "E",
2797
+ "type": 12
2798
+ }
2799
+ ],
2800
+ "path": [
2801
+ "Result"
2802
+ ]
2803
+ }
2804
+ },
2805
+ {
2806
+ "id": 34,
2807
+ "type": {
2808
+ "def": {
2809
+ "variant": {
2810
+ "variants": [
2811
+ {
2812
+ "fields": [
2813
+ {
2814
+ "type": 5
2815
+ }
2816
+ ],
2817
+ "index": 0,
2818
+ "name": "Ok"
2819
+ },
2820
+ {
2821
+ "fields": [
2822
+ {
2823
+ "type": 12
2824
+ }
2825
+ ],
2826
+ "index": 1,
2827
+ "name": "Err"
2828
+ }
2829
+ ]
2830
+ }
2831
+ },
2832
+ "params": [
2833
+ {
2834
+ "name": "T",
2835
+ "type": 5
2836
+ },
2837
+ {
2838
+ "name": "E",
2839
+ "type": 12
2840
+ }
2841
+ ],
2842
+ "path": [
2843
+ "Result"
2844
+ ]
2845
+ }
2846
+ },
2847
+ {
2848
+ "id": 35,
2849
+ "type": {
2850
+ "def": {
2851
+ "variant": {
2852
+ "variants": [
2853
+ {
2854
+ "fields": [
2855
+ {
2856
+ "type": 36
2857
+ }
2858
+ ],
2859
+ "index": 0,
2860
+ "name": "Ok"
2861
+ },
2862
+ {
2863
+ "fields": [
2864
+ {
2865
+ "type": 12
2866
+ }
2867
+ ],
2868
+ "index": 1,
2869
+ "name": "Err"
2870
+ }
2871
+ ]
2872
+ }
2873
+ },
2874
+ "params": [
2875
+ {
2876
+ "name": "T",
2877
+ "type": 36
2878
+ },
2879
+ {
2880
+ "name": "E",
2881
+ "type": 12
2882
+ }
2883
+ ],
2884
+ "path": [
2885
+ "Result"
2886
+ ]
2887
+ }
2888
+ },
2889
+ {
2890
+ "id": 36,
2891
+ "type": {
2892
+ "def": {
2893
+ "variant": {
2894
+ "variants": [
2895
+ {
2896
+ "index": 0,
2897
+ "name": "None"
2898
+ },
2899
+ {
2900
+ "fields": [
2901
+ {
2902
+ "type": 8
2903
+ }
2904
+ ],
2905
+ "index": 1,
2906
+ "name": "Some"
2907
+ }
2908
+ ]
2909
+ }
2910
+ },
2911
+ "params": [
2912
+ {
2913
+ "name": "T",
2914
+ "type": 8
2915
+ }
2916
+ ],
2917
+ "path": [
2918
+ "Option"
2919
+ ]
2920
+ }
2921
+ },
2922
+ {
2923
+ "id": 37,
2924
+ "type": {
2925
+ "def": {
2926
+ "variant": {
2927
+ "variants": [
2928
+ {
2929
+ "fields": [
2930
+ {
2931
+ "type": 38
2932
+ }
2933
+ ],
2934
+ "index": 0,
2935
+ "name": "Ok"
2936
+ },
2937
+ {
2938
+ "fields": [
2939
+ {
2940
+ "type": 12
2941
+ }
2942
+ ],
2943
+ "index": 1,
2944
+ "name": "Err"
2945
+ }
2946
+ ]
2947
+ }
2948
+ },
2949
+ "params": [
2950
+ {
2951
+ "name": "T",
2952
+ "type": 38
2953
+ },
2954
+ {
2955
+ "name": "E",
2956
+ "type": 12
2957
+ }
2958
+ ],
2959
+ "path": [
2960
+ "Result"
2961
+ ]
2962
+ }
2963
+ },
2964
+ {
2965
+ "id": 38,
2966
+ "type": {
2967
+ "def": {
2968
+ "variant": {
2969
+ "variants": [
2970
+ {
2971
+ "fields": [
2972
+ {
2973
+ "type": 26
2974
+ }
2975
+ ],
2976
+ "index": 0,
2977
+ "name": "Ok"
2978
+ },
2979
+ {
2980
+ "fields": [
2981
+ {
2982
+ "type": 19
2983
+ }
2984
+ ],
2985
+ "index": 1,
2986
+ "name": "Err"
2987
+ }
2988
+ ]
2989
+ }
2990
+ },
2991
+ "params": [
2992
+ {
2993
+ "name": "T",
2994
+ "type": 26
2995
+ },
2996
+ {
2997
+ "name": "E",
2998
+ "type": 19
2999
+ }
3000
+ ],
3001
+ "path": [
3002
+ "Result"
3003
+ ]
3004
+ }
3005
+ },
3006
+ {
3007
+ "id": 39,
3008
+ "type": {
3009
+ "def": {
3010
+ "variant": {
3011
+ "variants": [
3012
+ {
3013
+ "fields": [
3014
+ {
3015
+ "type": 6
3016
+ }
3017
+ ],
3018
+ "index": 0,
3019
+ "name": "Ok"
3020
+ },
3021
+ {
3022
+ "fields": [
3023
+ {
3024
+ "type": 12
3025
+ }
3026
+ ],
3027
+ "index": 1,
3028
+ "name": "Err"
3029
+ }
3030
+ ]
3031
+ }
3032
+ },
3033
+ "params": [
3034
+ {
3035
+ "name": "T",
3036
+ "type": 6
3037
+ },
3038
+ {
3039
+ "name": "E",
3040
+ "type": 12
3041
+ }
3042
+ ],
3043
+ "path": [
3044
+ "Result"
3045
+ ]
3046
+ }
3047
+ },
3048
+ {
3049
+ "id": 40,
3050
+ "type": {
3051
+ "def": {
3052
+ "variant": {
3053
+ "variants": [
3054
+ {
3055
+ "fields": [
3056
+ {
3057
+ "type": 10
3058
+ }
3059
+ ],
3060
+ "index": 0,
3061
+ "name": "Ok"
3062
+ },
3063
+ {
3064
+ "fields": [
3065
+ {
3066
+ "type": 12
3067
+ }
3068
+ ],
3069
+ "index": 1,
3070
+ "name": "Err"
3071
+ }
3072
+ ]
3073
+ }
3074
+ },
3075
+ "params": [
3076
+ {
3077
+ "name": "T",
3078
+ "type": 10
3079
+ },
3080
+ {
3081
+ "name": "E",
3082
+ "type": 12
3083
+ }
3084
+ ],
3085
+ "path": [
3086
+ "Result"
3087
+ ]
3088
+ }
3089
+ },
3090
+ {
3091
+ "id": 41,
3092
+ "type": {
3093
+ "def": {
3094
+ "sequence": {
3095
+ "type": 10
3096
+ }
3097
+ }
3098
+ }
3099
+ },
3100
+ {
3101
+ "id": 42,
3102
+ "type": {
3103
+ "def": {
3104
+ "variant": {
3105
+ "variants": [
3106
+ {
3107
+ "fields": [
3108
+ {
3109
+ "type": 41
3110
+ }
3111
+ ],
3112
+ "index": 0,
3113
+ "name": "Ok"
3114
+ },
3115
+ {
3116
+ "fields": [
3117
+ {
3118
+ "type": 12
3119
+ }
3120
+ ],
3121
+ "index": 1,
3122
+ "name": "Err"
3123
+ }
3124
+ ]
3125
+ }
3126
+ },
3127
+ "params": [
3128
+ {
3129
+ "name": "T",
3130
+ "type": 41
3131
+ },
3132
+ {
3133
+ "name": "E",
3134
+ "type": 12
3135
+ }
3136
+ ],
3137
+ "path": [
3138
+ "Result"
3139
+ ]
3140
+ }
3141
+ }
3142
+ ],
3143
+ "version": "4"
3144
+ }