@pezkuwi/api-contract 16.5.5 → 16.5.6

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 (234) hide show
  1. package/Abi/index.js +359 -0
  2. package/Abi/toLatestCompatible.js +30 -0
  3. package/Abi/toV1.js +21 -0
  4. package/Abi/toV2.js +27 -0
  5. package/Abi/toV3.js +10 -0
  6. package/Abi/toV4.js +10 -0
  7. package/LICENSE +201 -0
  8. package/README.md +1 -1
  9. package/augment.js +1 -0
  10. package/base/Base.js +40 -0
  11. package/base/Blueprint.js +51 -0
  12. package/base/Code.js +74 -0
  13. package/base/Contract.js +127 -0
  14. package/{src/base/index.ts → base/index.js} +0 -3
  15. package/base/mock.js +38 -0
  16. package/{build/base → base}/util.d.ts +1 -1
  17. package/base/util.js +33 -0
  18. package/bundle-pezkuwi-api-contract.js +1238 -0
  19. package/{src/bundle.ts → bundle.js} +0 -6
  20. package/cjs/Abi/index.d.ts +31 -0
  21. package/cjs/Abi/index.js +363 -0
  22. package/cjs/Abi/toLatestCompatible.d.ts +15 -0
  23. package/cjs/Abi/toLatestCompatible.js +36 -0
  24. package/cjs/Abi/toV1.d.ts +3 -0
  25. package/cjs/Abi/toV1.js +24 -0
  26. package/cjs/Abi/toV2.d.ts +3 -0
  27. package/cjs/Abi/toV2.js +30 -0
  28. package/cjs/Abi/toV3.d.ts +3 -0
  29. package/cjs/Abi/toV3.js +13 -0
  30. package/cjs/Abi/toV4.d.ts +3 -0
  31. package/cjs/Abi/toV4.js +13 -0
  32. package/cjs/augment.d.ts +1 -0
  33. package/cjs/augment.js +3 -0
  34. package/cjs/base/Base.d.ts +13 -0
  35. package/cjs/base/Base.js +44 -0
  36. package/cjs/base/Blueprint.d.ts +24 -0
  37. package/cjs/base/Blueprint.js +57 -0
  38. package/cjs/base/Code.d.ts +22 -0
  39. package/cjs/base/Code.js +80 -0
  40. package/cjs/base/Contract.d.ts +25 -0
  41. package/cjs/base/Contract.js +133 -0
  42. package/cjs/base/index.d.ts +3 -0
  43. package/cjs/base/index.js +14 -0
  44. package/cjs/base/mock.d.ts +3 -0
  45. package/cjs/base/mock.js +41 -0
  46. package/{src/base/types.ts → cjs/base/types.d.ts} +6 -21
  47. package/cjs/base/types.js +2 -0
  48. package/cjs/base/util.d.ts +16 -0
  49. package/cjs/base/util.js +42 -0
  50. package/cjs/bundle.d.ts +4 -0
  51. package/cjs/bundle.js +10 -0
  52. package/cjs/index.js +5 -0
  53. package/cjs/package.json +3 -0
  54. package/cjs/packageDetect.d.ts +1 -0
  55. package/cjs/packageDetect.js +7 -0
  56. package/cjs/packageInfo.js +4 -0
  57. package/cjs/promise/index.js +23 -0
  58. package/cjs/promise/types.js +2 -0
  59. package/cjs/rx/index.js +23 -0
  60. package/cjs/rx/types.js +2 -0
  61. package/cjs/types.js +2 -0
  62. package/cjs/util.js +13 -0
  63. package/index.d.ts +2 -0
  64. package/index.js +2 -0
  65. package/package.json +384 -15
  66. package/packageDetect.d.ts +1 -0
  67. package/{src/packageDetect.ts → packageDetect.js} +0 -8
  68. package/packageInfo.d.ts +6 -0
  69. package/packageInfo.js +1 -0
  70. package/promise/index.d.ts +13 -0
  71. package/promise/index.js +17 -0
  72. package/{src/promise/types.ts → promise/types.d.ts} +0 -4
  73. package/promise/types.js +1 -0
  74. package/rx/index.d.ts +13 -0
  75. package/rx/index.js +17 -0
  76. package/{src/rx/types.ts → rx/types.d.ts} +0 -4
  77. package/rx/types.js +1 -0
  78. package/types.d.ts +79 -0
  79. package/types.js +1 -0
  80. package/util.d.ts +5 -0
  81. package/util.js +10 -0
  82. package/src/Abi/Abi.spec.ts +0 -235
  83. package/src/Abi/index.ts +0 -477
  84. package/src/Abi/toLatestCompatible.spec.ts +0 -219
  85. package/src/Abi/toLatestCompatible.ts +0 -52
  86. package/src/Abi/toV1.ts +0 -35
  87. package/src/Abi/toV2.ts +0 -58
  88. package/src/Abi/toV3.ts +0 -18
  89. package/src/Abi/toV4.ts +0 -21
  90. package/src/augment.ts +0 -4
  91. package/src/base/Base.ts +0 -52
  92. package/src/base/Blueprint.ts +0 -90
  93. package/src/base/Code.spec.ts +0 -47
  94. package/src/base/Code.ts +0 -142
  95. package/src/base/Contract.ts +0 -197
  96. package/src/base/mock.ts +0 -48
  97. package/src/base/util.ts +0 -56
  98. package/src/checkTypes.manual.ts +0 -45
  99. package/src/index.ts +0 -6
  100. package/src/mod.ts +0 -4
  101. package/src/packageInfo.ts +0 -6
  102. package/src/promise/index.ts +0 -28
  103. package/src/rx/index.ts +0 -28
  104. package/src/test/compare/ink_v0_delegator.test.json +0 -47
  105. package/src/test/compare/ink_v0_dns.test.json +0 -232
  106. package/src/test/compare/ink_v0_erc20.test.json +0 -253
  107. package/src/test/compare/ink_v0_erc721.test.json +0 -415
  108. package/src/test/compare/ink_v0_flipper.test.json +0 -9
  109. package/src/test/compare/ink_v0_flipperBundle.test.json +0 -9
  110. package/src/test/compare/ink_v0_incrementer.test.json +0 -9
  111. package/src/test/compare/ink_v0_multisigPlain.test.json +0 -562
  112. package/src/test/compare/ink_v1_flipper.test.json +0 -9
  113. package/src/test/compare/ink_v1_psp22.test.json +0 -531
  114. package/src/test/compare/ink_v2_erc20.test.json +0 -205
  115. package/src/test/compare/ink_v2_flipper.test.json +0 -9
  116. package/src/test/compare/ink_v3_flipper.test.json +0 -9
  117. package/src/test/compare/ink_v3_traitErc20.test.json +0 -205
  118. package/src/test/compare/ink_v4_erc20Contract.test.json +0 -253
  119. package/src/test/compare/ink_v4_erc20Metadata.test.json +0 -253
  120. package/src/test/compare/ink_v4_flipperContract.test.json +0 -155
  121. package/src/test/compare/ink_v4_flipperMetadata.test.json +0 -155
  122. package/src/test/compare/ink_v5_erc20.test.json +0 -370
  123. package/src/test/compare/ink_v5_erc20AnonymousTransferMetadata.test.json +0 -370
  124. package/src/test/compare/ink_v5_erc20Contract.test.json +0 -370
  125. package/src/test/compare/ink_v5_erc20Metadata.test.json +0 -370
  126. package/src/test/compare/ink_v5_flipperContract.test.json +0 -174
  127. package/src/test/compare/ink_v5_flipperMetadata.test.json +0 -174
  128. package/src/test/compare/ink_v6_erc20Contract.test.json +0 -418
  129. package/src/test/compare/ink_v6_erc20Metadata.test.json +0 -418
  130. package/src/test/compare/solang_v0_ints256.test.json +0 -9
  131. package/src/test/compare/user_v0_assetTransfer.test.json +0 -54
  132. package/src/test/compare/user_v0_enumExample.test.json +0 -303
  133. package/src/test/compare/user_v0_recursive.test.json +0 -27
  134. package/src/test/compare/user_v0_withString.test.json +0 -260
  135. package/src/test/compare/user_v3_ask.test.json +0 -71
  136. package/src/test/compare/user_v4_events.test.json +0 -1328
  137. package/src/test/contracts/index.ts +0 -20
  138. package/src/test/contracts/ink/index.ts +0 -13
  139. package/src/test/contracts/ink/v0/accumulator.wasm +0 -0
  140. package/src/test/contracts/ink/v0/adder.wasm +0 -0
  141. package/src/test/contracts/ink/v0/delegator.json +0 -252
  142. package/src/test/contracts/ink/v0/delegator.wasm +0 -0
  143. package/src/test/contracts/ink/v0/dns.json +0 -713
  144. package/src/test/contracts/ink/v0/dns.wasm +0 -0
  145. package/src/test/contracts/ink/v0/erc20.json +0 -704
  146. package/src/test/contracts/ink/v0/erc20.wasm +0 -0
  147. package/src/test/contracts/ink/v0/erc721.json +0 -1197
  148. package/src/test/contracts/ink/v0/erc721.wasm +0 -0
  149. package/src/test/contracts/ink/v0/flipper.contract.json +0 -107
  150. package/src/test/contracts/ink/v0/flipper.json +0 -106
  151. package/src/test/contracts/ink/v0/flipper.wasm +0 -0
  152. package/src/test/contracts/ink/v0/incrementer.json +0 -108
  153. package/src/test/contracts/ink/v0/incrementer.wasm +0 -0
  154. package/src/test/contracts/ink/v0/index.ts +0 -11
  155. package/src/test/contracts/ink/v0/multisig_plain.json +0 -1466
  156. package/src/test/contracts/ink/v0/multisig_plain.wasm +0 -0
  157. package/src/test/contracts/ink/v0/subber.wasm +0 -0
  158. package/src/test/contracts/ink/v0/trait-flipper.json +0 -103
  159. package/src/test/contracts/ink/v0/trait-flipper.wasm +0 -0
  160. package/src/test/contracts/ink/v1/flipper.contract.json +0 -111
  161. package/src/test/contracts/ink/v1/index.ts +0 -6
  162. package/src/test/contracts/ink/v1/psp22_minter_pauser.contract.json +0 -1722
  163. package/src/test/contracts/ink/v2/erc20.contract.json +0 -630
  164. package/src/test/contracts/ink/v2/flipper.contract.json +0 -103
  165. package/src/test/contracts/ink/v2/index.ts +0 -5
  166. package/src/test/contracts/ink/v3/flipper.contract.json +0 -105
  167. package/src/test/contracts/ink/v3/index.ts +0 -6
  168. package/src/test/contracts/ink/v3/trait_erc20.contract.json +0 -631
  169. package/src/test/contracts/ink/v4/erc20.contract.json +0 -1
  170. package/src/test/contracts/ink/v4/erc20.json +0 -821
  171. package/src/test/contracts/ink/v4/erc20.wasm +0 -0
  172. package/src/test/contracts/ink/v4/flipper.contract.json +0 -1
  173. package/src/test/contracts/ink/v4/flipper.json +0 -396
  174. package/src/test/contracts/ink/v4/flipper.wasm +0 -0
  175. package/src/test/contracts/ink/v4/index.ts +0 -7
  176. package/src/test/contracts/ink/v5/erc20.contract.json +0 -1
  177. package/src/test/contracts/ink/v5/erc20.json +0 -1025
  178. package/src/test/contracts/ink/v5/erc20.wasm +0 -0
  179. package/src/test/contracts/ink/v5/erc20_anonymous_transfer.json +0 -1025
  180. package/src/test/contracts/ink/v5/flipper.contract.json +0 -1
  181. package/src/test/contracts/ink/v5/flipper.json +0 -420
  182. package/src/test/contracts/ink/v5/flipper.wasm +0 -0
  183. package/src/test/contracts/ink/v5/index.ts +0 -8
  184. package/src/test/contracts/ink/v6/erc20.contract.json +0 -1
  185. package/src/test/contracts/ink/v6/erc20.json +0 -1081
  186. package/src/test/contracts/ink/v6/erc20.polkavm +0 -0
  187. package/src/test/contracts/ink/v6/index.ts +0 -5
  188. package/src/test/contracts/solang/index.ts +0 -7
  189. package/src/test/contracts/solang/v0/index.ts +0 -4
  190. package/src/test/contracts/solang/v0/ints256.json +0 -113
  191. package/src/test/contracts/solang/v0/ints256.sol +0 -13
  192. package/src/test/contracts/solang/v0/ints256.wasm +0 -0
  193. package/src/test/contracts/user/index.ts +0 -9
  194. package/src/test/contracts/user/v0/assetTransfer.json +0 -299
  195. package/src/test/contracts/user/v0/assetTransfer.wasm +0 -0
  196. package/src/test/contracts/user/v0/enumExample.json +0 -528
  197. package/src/test/contracts/user/v0/enumExample.wasm +0 -0
  198. package/src/test/contracts/user/v0/index.ts +0 -7
  199. package/src/test/contracts/user/v0/recursive.contract.json +0 -1
  200. package/src/test/contracts/user/v0/withString.json +0 -777
  201. package/src/test/contracts/user/v3/ask.json +0 -550
  202. package/src/test/contracts/user/v3/index.ts +0 -4
  203. package/src/test/contracts/user/v4/events.contract.json +0 -2990
  204. package/src/test/contracts/user/v4/index.ts +0 -4
  205. package/src/test/contracts/util.ts +0 -14
  206. package/src/types.ts +0 -98
  207. package/src/util.ts +0 -20
  208. package/tsconfig.build.json +0 -22
  209. package/tsconfig.build.tsbuildinfo +0 -1
  210. package/tsconfig.spec.json +0 -26
  211. /package/{build/Abi → Abi}/index.d.ts +0 -0
  212. /package/{build/Abi → Abi}/toLatestCompatible.d.ts +0 -0
  213. /package/{build/Abi → Abi}/toV1.d.ts +0 -0
  214. /package/{build/Abi → Abi}/toV2.d.ts +0 -0
  215. /package/{build/Abi → Abi}/toV3.d.ts +0 -0
  216. /package/{build/Abi → Abi}/toV4.d.ts +0 -0
  217. /package/{build/augment.d.ts → augment.d.ts} +0 -0
  218. /package/{build/base → base}/Base.d.ts +0 -0
  219. /package/{build/base → base}/Blueprint.d.ts +0 -0
  220. /package/{build/base → base}/Code.d.ts +0 -0
  221. /package/{build/base → base}/Contract.d.ts +0 -0
  222. /package/{build/base → base}/index.d.ts +0 -0
  223. /package/{build/base → base}/mock.d.ts +0 -0
  224. /package/{build/base → base}/types.d.ts +0 -0
  225. /package/{build/packageDetect.d.ts → base/types.js} +0 -0
  226. /package/{build/bundle.d.ts → bundle.d.ts} +0 -0
  227. /package/{build → cjs}/index.d.ts +0 -0
  228. /package/{build → cjs}/packageInfo.d.ts +0 -0
  229. /package/{build → cjs}/promise/index.d.ts +0 -0
  230. /package/{build → cjs}/promise/types.d.ts +0 -0
  231. /package/{build → cjs}/rx/index.d.ts +0 -0
  232. /package/{build → cjs}/rx/types.d.ts +0 -0
  233. /package/{build → cjs}/types.d.ts +0 -0
  234. /package/{build → cjs}/util.d.ts +0 -0
@@ -1,1466 +0,0 @@
1
- {
2
- "metadataVersion": "0.1.0",
3
- "source": {
4
- "hash": "0xfc0f0e88e25c5857c49f089ab8fb6a0ecdc37a69e10b9317ae71924c916cda12",
5
- "language": "ink! 3.0.0-rc1",
6
- "compiler": "rustc 1.48.0-nightly"
7
- },
8
- "contract": {
9
- "name": "multisig_plain",
10
- "version": "3.0.0-rc1",
11
- "authors": [
12
- "Parity Technologies <admin@parity.io>"
13
- ]
14
- },
15
- "spec": {
16
- "constructors": [
17
- {
18
- "args": [
19
- {
20
- "name": "requirement",
21
- "type": {
22
- "displayName": [
23
- "u32"
24
- ],
25
- "type": 2
26
- }
27
- },
28
- {
29
- "name": "owners",
30
- "type": {
31
- "displayName": [
32
- "Vec"
33
- ],
34
- "type": 20
35
- }
36
- }
37
- ],
38
- "docs": [
39
- " The only constructor of the contract.",
40
- "",
41
- " A list of owners must be supplied and a number of how many of them must",
42
- " confirm a transaction. Duplicate owners are silently dropped.",
43
- "",
44
- " # Panics",
45
- "",
46
- " If `requirement` violates our invariant."
47
- ],
48
- "name": [
49
- "new"
50
- ],
51
- "selector": "0xd183512b"
52
- }
53
- ],
54
- "docs": [],
55
- "events": [
56
- {
57
- "args": [
58
- {
59
- "docs": [
60
- " The transaction that was confirmed."
61
- ],
62
- "indexed": true,
63
- "name": "transaction",
64
- "type": {
65
- "displayName": [
66
- "TransactionId"
67
- ],
68
- "type": 2
69
- }
70
- },
71
- {
72
- "docs": [
73
- " The owner that sent the confirmation."
74
- ],
75
- "indexed": true,
76
- "name": "from",
77
- "type": {
78
- "displayName": [
79
- "AccountId"
80
- ],
81
- "type": 5
82
- }
83
- },
84
- {
85
- "docs": [
86
- " The confirmation status after this confirmation was applied."
87
- ],
88
- "indexed": true,
89
- "name": "status",
90
- "type": {
91
- "displayName": [
92
- "ConfirmationStatus"
93
- ],
94
- "type": 22
95
- }
96
- }
97
- ],
98
- "docs": [
99
- " Emitted when an owner confirms a transaction."
100
- ],
101
- "name": "Confirmation"
102
- },
103
- {
104
- "args": [
105
- {
106
- "docs": [
107
- " The transaction that was revoked."
108
- ],
109
- "indexed": true,
110
- "name": "transaction",
111
- "type": {
112
- "displayName": [
113
- "TransactionId"
114
- ],
115
- "type": 2
116
- }
117
- },
118
- {
119
- "docs": [
120
- " The owner that sent the revokation."
121
- ],
122
- "indexed": true,
123
- "name": "from",
124
- "type": {
125
- "displayName": [
126
- "AccountId"
127
- ],
128
- "type": 5
129
- }
130
- }
131
- ],
132
- "docs": [
133
- " Emitted when an owner revoked a confirmation."
134
- ],
135
- "name": "Revokation"
136
- },
137
- {
138
- "args": [
139
- {
140
- "docs": [
141
- " The transaction that was submitted."
142
- ],
143
- "indexed": true,
144
- "name": "transaction",
145
- "type": {
146
- "displayName": [
147
- "TransactionId"
148
- ],
149
- "type": 2
150
- }
151
- }
152
- ],
153
- "docs": [
154
- " Emitted when an owner submits a transaction."
155
- ],
156
- "name": "Submission"
157
- },
158
- {
159
- "args": [
160
- {
161
- "docs": [
162
- " The transaction that was canceled."
163
- ],
164
- "indexed": true,
165
- "name": "transaction",
166
- "type": {
167
- "displayName": [
168
- "TransactionId"
169
- ],
170
- "type": 2
171
- }
172
- }
173
- ],
174
- "docs": [
175
- " Emitted when a transaction was canceled."
176
- ],
177
- "name": "Cancelation"
178
- },
179
- {
180
- "args": [
181
- {
182
- "docs": [
183
- " The transaction that was executed."
184
- ],
185
- "indexed": true,
186
- "name": "transaction",
187
- "type": {
188
- "displayName": [
189
- "TransactionId"
190
- ],
191
- "type": 2
192
- }
193
- },
194
- {
195
- "docs": [
196
- " Indicates whether the transaction executed successfully. If so the `Ok` value holds",
197
- " the output in bytes. The Option is `None` when the transaction was executed through",
198
- " `invoke_transaction` rather than `evaluate_transaction`."
199
- ],
200
- "indexed": true,
201
- "name": "result",
202
- "type": {
203
- "displayName": [
204
- "Result"
205
- ],
206
- "type": 25
207
- }
208
- }
209
- ],
210
- "docs": [
211
- " Emitted when a transaction was executed."
212
- ],
213
- "name": "Execution"
214
- },
215
- {
216
- "args": [
217
- {
218
- "docs": [
219
- " The owner that was added."
220
- ],
221
- "indexed": true,
222
- "name": "owner",
223
- "type": {
224
- "displayName": [
225
- "AccountId"
226
- ],
227
- "type": 5
228
- }
229
- }
230
- ],
231
- "docs": [
232
- " Emitted when an owner is added to the wallet."
233
- ],
234
- "name": "OwnerAddition"
235
- },
236
- {
237
- "args": [
238
- {
239
- "docs": [
240
- " The owner that was removed."
241
- ],
242
- "indexed": true,
243
- "name": "owner",
244
- "type": {
245
- "displayName": [
246
- "AccountId"
247
- ],
248
- "type": 5
249
- }
250
- }
251
- ],
252
- "docs": [
253
- " Emitted when an owner is removed from the wallet."
254
- ],
255
- "name": "OwnerRemoval"
256
- },
257
- {
258
- "args": [
259
- {
260
- "docs": [
261
- " The new requirement value."
262
- ],
263
- "indexed": false,
264
- "name": "new_requirement",
265
- "type": {
266
- "displayName": [
267
- "u32"
268
- ],
269
- "type": 2
270
- }
271
- }
272
- ],
273
- "docs": [
274
- " Emitted when the requirement changed."
275
- ],
276
- "name": "RequirementChange"
277
- }
278
- ],
279
- "messages": [
280
- {
281
- "args": [
282
- {
283
- "name": "new_owner",
284
- "type": {
285
- "displayName": [
286
- "AccountId"
287
- ],
288
- "type": 5
289
- }
290
- }
291
- ],
292
- "docs": [
293
- " Add a new owner to the contract.",
294
- "",
295
- " Only callable by the wallet itself.",
296
- "",
297
- " # Panics",
298
- "",
299
- " If the owner already exists.",
300
- "",
301
- " # Examples",
302
- "",
303
- " Since this message must be send by the wallet itself it has to be build as a",
304
- " `Transaction` and dispatched through `submit_transaction` + `invoke_transaction`:",
305
- " ```no_run",
306
- " use ink_env::{DefaultEnvironment as Env, AccountId, call::{CallParams, Selector}, test::CallData};",
307
- " use multisig_plain::{Transaction, ConfirmationStatus};",
308
- "",
309
- " // address of an existing MultiSigPlain contract",
310
- " let wallet_id: AccountId = [7u8; 32].into();",
311
- "",
312
- " // first create the transaction that adds `alice` through `add_owner`",
313
- " let alice: AccountId = [1u8; 32].into();",
314
- " let mut call = CallData::new(Selector::new([166, 229, 27, 154])); // add_owner",
315
- " call.push_arg(&alice);",
316
- " let transaction = Transaction {",
317
- " callee: wallet_id,",
318
- " selector: call.selector().to_bytes(),",
319
- " input: call.params().to_owned(),",
320
- " transferred_value: 0,",
321
- " gas_limit: 0",
322
- " };",
323
- "",
324
- " // submit the transaction for confirmation",
325
- " let mut submit = CallParams::<Env, _, _>::eval(",
326
- " wallet_id,",
327
- " Selector::new([86, 244, 13, 223]) // submit_transaction",
328
- " );",
329
- " let (id, _): (u32, ConfirmationStatus) = submit.push_arg(&transaction)",
330
- " .fire()",
331
- " .expect(\"submit_transaction won't panic.\");",
332
- "",
333
- " // wait until all required owners have confirmed and then execute the transaction",
334
- " let mut invoke = CallParams::<Env, _, ()>::invoke(",
335
- " wallet_id,",
336
- " Selector::new([185, 50, 225, 236]) // invoke_transaction",
337
- " );",
338
- " invoke.push_arg(&id).fire();",
339
- " ```"
340
- ],
341
- "mutates": true,
342
- "name": [
343
- "add_owner"
344
- ],
345
- "payable": false,
346
- "returnType": null,
347
- "selector": "0xf3fcef36"
348
- },
349
- {
350
- "args": [
351
- {
352
- "name": "owner",
353
- "type": {
354
- "displayName": [
355
- "AccountId"
356
- ],
357
- "type": 5
358
- }
359
- }
360
- ],
361
- "docs": [
362
- " Remove an owner from the contract.",
363
- "",
364
- " Only callable by the wallet itself. If by doing this the amount of owners",
365
- " would be smaller than the requirement it is adjusted to be exactly the",
366
- " number of owners.",
367
- "",
368
- " # Panics",
369
- "",
370
- " If `owner` is no owner of the wallet."
371
- ],
372
- "mutates": true,
373
- "name": [
374
- "remove_owner"
375
- ],
376
- "payable": false,
377
- "returnType": null,
378
- "selector": "0xe397f829"
379
- },
380
- {
381
- "args": [
382
- {
383
- "name": "old_owner",
384
- "type": {
385
- "displayName": [
386
- "AccountId"
387
- ],
388
- "type": 5
389
- }
390
- },
391
- {
392
- "name": "new_owner",
393
- "type": {
394
- "displayName": [
395
- "AccountId"
396
- ],
397
- "type": 5
398
- }
399
- }
400
- ],
401
- "docs": [
402
- " Replace an owner from the contract with a new one.",
403
- "",
404
- " Only callable by the wallet itself.",
405
- "",
406
- " # Panics",
407
- "",
408
- " If `old_owner` is no owner or if `new_owner` already is one."
409
- ],
410
- "mutates": true,
411
- "name": [
412
- "replace_owner"
413
- ],
414
- "payable": false,
415
- "returnType": null,
416
- "selector": "0xab4bc64a"
417
- },
418
- {
419
- "args": [
420
- {
421
- "name": "new_requirement",
422
- "type": {
423
- "displayName": [
424
- "u32"
425
- ],
426
- "type": 2
427
- }
428
- }
429
- ],
430
- "docs": [
431
- " Change the requirement to a new value.",
432
- "",
433
- " Only callable by the wallet itself.",
434
- "",
435
- " # Panics",
436
- "",
437
- " If the `new_requirement` violates our invariant."
438
- ],
439
- "mutates": true,
440
- "name": [
441
- "change_requirement"
442
- ],
443
- "payable": false,
444
- "returnType": null,
445
- "selector": "0x7347595d"
446
- },
447
- {
448
- "args": [
449
- {
450
- "name": "transaction",
451
- "type": {
452
- "displayName": [
453
- "Transaction"
454
- ],
455
- "type": 14
456
- }
457
- }
458
- ],
459
- "docs": [
460
- " Add a new transaction candiate to the contract.",
461
- "",
462
- " This also confirms the transaction for the caller. This can be called by any owner."
463
- ],
464
- "mutates": true,
465
- "name": [
466
- "submit_transaction"
467
- ],
468
- "payable": false,
469
- "returnType": {
470
- "displayName": [],
471
- "type": 21
472
- },
473
- "selector": "0x349db9e8"
474
- },
475
- {
476
- "args": [
477
- {
478
- "name": "trans_id",
479
- "type": {
480
- "displayName": [
481
- "TransactionId"
482
- ],
483
- "type": 2
484
- }
485
- }
486
- ],
487
- "docs": [
488
- " Remove a transaction from the contract.",
489
- " Only callable by the wallet itself.",
490
- "",
491
- " # Panics",
492
- "",
493
- " If `trans_id` is no valid transaction id."
494
- ],
495
- "mutates": true,
496
- "name": [
497
- "cancel_transaction"
498
- ],
499
- "payable": false,
500
- "returnType": null,
501
- "selector": "0xd31b7656"
502
- },
503
- {
504
- "args": [
505
- {
506
- "name": "trans_id",
507
- "type": {
508
- "displayName": [
509
- "TransactionId"
510
- ],
511
- "type": 2
512
- }
513
- }
514
- ],
515
- "docs": [
516
- " Confirm a transaction for the sender that was submitted by any owner.",
517
- "",
518
- " This can be called by any owner.",
519
- "",
520
- " # Panics",
521
- "",
522
- " If `trans_id` is no valid transaction id."
523
- ],
524
- "mutates": true,
525
- "name": [
526
- "confirm_transaction"
527
- ],
528
- "payable": false,
529
- "returnType": {
530
- "displayName": [
531
- "ConfirmationStatus"
532
- ],
533
- "type": 22
534
- },
535
- "selector": "0xea923d30"
536
- },
537
- {
538
- "args": [
539
- {
540
- "name": "trans_id",
541
- "type": {
542
- "displayName": [
543
- "TransactionId"
544
- ],
545
- "type": 2
546
- }
547
- }
548
- ],
549
- "docs": [
550
- " Revoke the senders confirmation.",
551
- "",
552
- " This can be called by any owner.",
553
- "",
554
- " # Panics",
555
- "",
556
- " If `trans_id` is no valid transaction id."
557
- ],
558
- "mutates": true,
559
- "name": [
560
- "revoke_confirmation"
561
- ],
562
- "payable": false,
563
- "returnType": null,
564
- "selector": "0x13ee3e97"
565
- },
566
- {
567
- "args": [
568
- {
569
- "name": "trans_id",
570
- "type": {
571
- "displayName": [
572
- "TransactionId"
573
- ],
574
- "type": 2
575
- }
576
- }
577
- ],
578
- "docs": [
579
- " Invoke a confirmed execution without getting its output.",
580
- "",
581
- " Its return value indicates whether the called transaction was successful.",
582
- " This can be called by anyone."
583
- ],
584
- "mutates": true,
585
- "name": [
586
- "invoke_transaction"
587
- ],
588
- "payable": false,
589
- "returnType": {
590
- "displayName": [
591
- "Result"
592
- ],
593
- "type": 23
594
- },
595
- "selector": "0x6131abbb"
596
- },
597
- {
598
- "args": [
599
- {
600
- "name": "trans_id",
601
- "type": {
602
- "displayName": [
603
- "TransactionId"
604
- ],
605
- "type": 2
606
- }
607
- }
608
- ],
609
- "docs": [
610
- " Evaluate a confirmed execution and return its output as bytes.",
611
- "",
612
- " Its return value indicates whether the called transaction was successful and contains",
613
- " its output when sucesful.",
614
- " This can be called by anyone."
615
- ],
616
- "mutates": true,
617
- "name": [
618
- "eval_transaction"
619
- ],
620
- "payable": false,
621
- "returnType": {
622
- "displayName": [
623
- "Result"
624
- ],
625
- "type": 24
626
- },
627
- "selector": "0xe667c7ac"
628
- }
629
- ]
630
- },
631
- "storage": {
632
- "struct": {
633
- "fields": [
634
- {
635
- "layout": {
636
- "struct": {
637
- "fields": [
638
- {
639
- "layout": {
640
- "struct": {
641
- "fields": [
642
- {
643
- "layout": {
644
- "cell": {
645
- "key": "0x0000000000000000000000000000000000000000000000000000000000000000",
646
- "ty": 1
647
- }
648
- },
649
- "name": "header"
650
- },
651
- {
652
- "layout": {
653
- "struct": {
654
- "fields": [
655
- {
656
- "layout": {
657
- "cell": {
658
- "key": "0x0100000000000000000000000000000000000000000000000000000000000000",
659
- "ty": 2
660
- }
661
- },
662
- "name": "len"
663
- },
664
- {
665
- "layout": {
666
- "array": {
667
- "cellsPerElem": 1,
668
- "layout": {
669
- "cell": {
670
- "key": "0x0100000001000000000000000000000000000000000000000000000000000000",
671
- "ty": 3
672
- }
673
- },
674
- "len": 4294967295,
675
- "offset": "0x0200000000000000000000000000000000000000000000000000000000000000"
676
- }
677
- },
678
- "name": "elems"
679
- }
680
- ]
681
- }
682
- },
683
- "name": "entries"
684
- }
685
- ]
686
- }
687
- },
688
- "name": "keys"
689
- },
690
- {
691
- "layout": {
692
- "hash": {
693
- "layout": {
694
- "cell": {
695
- "key": "0x0200000001000000000000000000000000000000000000000000000000000000",
696
- "ty": 9
697
- }
698
- },
699
- "offset": "0x0100000001000000000000000000000000000000000000000000000000000000",
700
- "strategy": {
701
- "hasher": "Blake2x256",
702
- "postfix": "",
703
- "prefix": "0x696e6b20686173686d6170"
704
- }
705
- }
706
- },
707
- "name": "values"
708
- }
709
- ]
710
- }
711
- },
712
- "name": "confirmations"
713
- },
714
- {
715
- "layout": {
716
- "struct": {
717
- "fields": [
718
- {
719
- "layout": {
720
- "struct": {
721
- "fields": [
722
- {
723
- "layout": {
724
- "cell": {
725
- "key": "0x0200000001000000000000000000000000000000000000000000000000000000",
726
- "ty": 1
727
- }
728
- },
729
- "name": "header"
730
- },
731
- {
732
- "layout": {
733
- "struct": {
734
- "fields": [
735
- {
736
- "layout": {
737
- "cell": {
738
- "key": "0x0300000001000000000000000000000000000000000000000000000000000000",
739
- "ty": 2
740
- }
741
- },
742
- "name": "len"
743
- },
744
- {
745
- "layout": {
746
- "array": {
747
- "cellsPerElem": 1,
748
- "layout": {
749
- "cell": {
750
- "key": "0x0300000002000000000000000000000000000000000000000000000000000000",
751
- "ty": 11
752
- }
753
- },
754
- "len": 4294967295,
755
- "offset": "0x0400000001000000000000000000000000000000000000000000000000000000"
756
- }
757
- },
758
- "name": "elems"
759
- }
760
- ]
761
- }
762
- },
763
- "name": "entries"
764
- }
765
- ]
766
- }
767
- },
768
- "name": "keys"
769
- },
770
- {
771
- "layout": {
772
- "hash": {
773
- "layout": {
774
- "cell": {
775
- "key": "0x0400000002000000000000000000000000000000000000000000000000000000",
776
- "ty": 12
777
- }
778
- },
779
- "offset": "0x0300000002000000000000000000000000000000000000000000000000000000",
780
- "strategy": {
781
- "hasher": "Blake2x256",
782
- "postfix": "",
783
- "prefix": "0x696e6b20686173686d6170"
784
- }
785
- }
786
- },
787
- "name": "values"
788
- }
789
- ]
790
- }
791
- },
792
- "name": "confirmation_count"
793
- },
794
- {
795
- "layout": {
796
- "struct": {
797
- "fields": [
798
- {
799
- "layout": {
800
- "cell": {
801
- "key": "0x0400000002000000000000000000000000000000000000000000000000000000",
802
- "ty": 1
803
- }
804
- },
805
- "name": "header"
806
- },
807
- {
808
- "layout": {
809
- "struct": {
810
- "fields": [
811
- {
812
- "layout": {
813
- "cell": {
814
- "key": "0x0500000002000000000000000000000000000000000000000000000000000000",
815
- "ty": 2
816
- }
817
- },
818
- "name": "len"
819
- },
820
- {
821
- "layout": {
822
- "array": {
823
- "cellsPerElem": 1,
824
- "layout": {
825
- "cell": {
826
- "key": "0x0500000003000000000000000000000000000000000000000000000000000000",
827
- "ty": 13
828
- }
829
- },
830
- "len": 4294967295,
831
- "offset": "0x0600000002000000000000000000000000000000000000000000000000000000"
832
- }
833
- },
834
- "name": "elems"
835
- }
836
- ]
837
- }
838
- },
839
- "name": "entries"
840
- }
841
- ]
842
- }
843
- },
844
- "name": "transactions"
845
- },
846
- {
847
- "layout": {
848
- "struct": {
849
- "fields": [
850
- {
851
- "layout": {
852
- "cell": {
853
- "key": "0x0500000003000000000000000000000000000000000000000000000000000000",
854
- "ty": 2
855
- }
856
- },
857
- "name": "len"
858
- },
859
- {
860
- "layout": {
861
- "array": {
862
- "cellsPerElem": 1,
863
- "layout": {
864
- "cell": {
865
- "key": "0x0500000004000000000000000000000000000000000000000000000000000000",
866
- "ty": 5
867
- }
868
- },
869
- "len": 4294967295,
870
- "offset": "0x0600000003000000000000000000000000000000000000000000000000000000"
871
- }
872
- },
873
- "name": "elems"
874
- }
875
- ]
876
- }
877
- },
878
- "name": "owners"
879
- },
880
- {
881
- "layout": {
882
- "struct": {
883
- "fields": [
884
- {
885
- "layout": {
886
- "struct": {
887
- "fields": [
888
- {
889
- "layout": {
890
- "cell": {
891
- "key": "0x0500000004000000000000000000000000000000000000000000000000000000",
892
- "ty": 1
893
- }
894
- },
895
- "name": "header"
896
- },
897
- {
898
- "layout": {
899
- "struct": {
900
- "fields": [
901
- {
902
- "layout": {
903
- "cell": {
904
- "key": "0x0600000004000000000000000000000000000000000000000000000000000000",
905
- "ty": 2
906
- }
907
- },
908
- "name": "len"
909
- },
910
- {
911
- "layout": {
912
- "array": {
913
- "cellsPerElem": 1,
914
- "layout": {
915
- "cell": {
916
- "key": "0x0600000005000000000000000000000000000000000000000000000000000000",
917
- "ty": 19
918
- }
919
- },
920
- "len": 4294967295,
921
- "offset": "0x0700000004000000000000000000000000000000000000000000000000000000"
922
- }
923
- },
924
- "name": "elems"
925
- }
926
- ]
927
- }
928
- },
929
- "name": "entries"
930
- }
931
- ]
932
- }
933
- },
934
- "name": "keys"
935
- },
936
- {
937
- "layout": {
938
- "hash": {
939
- "layout": {
940
- "cell": {
941
- "key": "0x0700000005000000000000000000000000000000000000000000000000000000",
942
- "ty": 9
943
- }
944
- },
945
- "offset": "0x0600000005000000000000000000000000000000000000000000000000000000",
946
- "strategy": {
947
- "hasher": "Blake2x256",
948
- "postfix": "",
949
- "prefix": "0x696e6b20686173686d6170"
950
- }
951
- }
952
- },
953
- "name": "values"
954
- }
955
- ]
956
- }
957
- },
958
- "name": "is_owner"
959
- },
960
- {
961
- "layout": {
962
- "cell": {
963
- "key": "0x0700000005000000000000000000000000000000000000000000000000000000",
964
- "ty": 2
965
- }
966
- },
967
- "name": "requirement"
968
- }
969
- ]
970
- }
971
- },
972
- "types": [
973
- {
974
- "def": {
975
- "composite": {
976
- "fields": [
977
- {
978
- "name": "last_vacant",
979
- "type": 2
980
- },
981
- {
982
- "name": "len",
983
- "type": 2
984
- },
985
- {
986
- "name": "len_entries",
987
- "type": 2
988
- }
989
- ]
990
- }
991
- },
992
- "path": [
993
- "ink_storage",
994
- "collections",
995
- "stash",
996
- "Header"
997
- ]
998
- },
999
- {
1000
- "def": {
1001
- "primitive": "u32"
1002
- }
1003
- },
1004
- {
1005
- "def": {
1006
- "variant": {
1007
- "variants": [
1008
- {
1009
- "fields": [
1010
- {
1011
- "type": 8
1012
- }
1013
- ],
1014
- "name": "Vacant"
1015
- },
1016
- {
1017
- "fields": [
1018
- {
1019
- "type": 4
1020
- }
1021
- ],
1022
- "name": "Occupied"
1023
- }
1024
- ]
1025
- }
1026
- },
1027
- "params": [
1028
- 4
1029
- ],
1030
- "path": [
1031
- "ink_storage",
1032
- "collections",
1033
- "stash",
1034
- "Entry"
1035
- ]
1036
- },
1037
- {
1038
- "def": {
1039
- "tuple": [
1040
- 2,
1041
- 5
1042
- ]
1043
- }
1044
- },
1045
- {
1046
- "def": {
1047
- "composite": {
1048
- "fields": [
1049
- {
1050
- "type": 6
1051
- }
1052
- ]
1053
- }
1054
- },
1055
- "path": [
1056
- "ink_env",
1057
- "types",
1058
- "AccountId"
1059
- ]
1060
- },
1061
- {
1062
- "def": {
1063
- "array": {
1064
- "len": 32,
1065
- "type": 7
1066
- }
1067
- }
1068
- },
1069
- {
1070
- "def": {
1071
- "primitive": "u8"
1072
- }
1073
- },
1074
- {
1075
- "def": {
1076
- "composite": {
1077
- "fields": [
1078
- {
1079
- "name": "next",
1080
- "type": 2
1081
- },
1082
- {
1083
- "name": "prev",
1084
- "type": 2
1085
- }
1086
- ]
1087
- }
1088
- },
1089
- "path": [
1090
- "ink_storage",
1091
- "collections",
1092
- "stash",
1093
- "VacantEntry"
1094
- ]
1095
- },
1096
- {
1097
- "def": {
1098
- "composite": {
1099
- "fields": [
1100
- {
1101
- "name": "value",
1102
- "type": 10
1103
- },
1104
- {
1105
- "name": "key_index",
1106
- "type": 2
1107
- }
1108
- ]
1109
- }
1110
- },
1111
- "params": [
1112
- 10
1113
- ],
1114
- "path": [
1115
- "ink_storage",
1116
- "collections",
1117
- "hashmap",
1118
- "ValueEntry"
1119
- ]
1120
- },
1121
- {
1122
- "def": {
1123
- "tuple": []
1124
- }
1125
- },
1126
- {
1127
- "def": {
1128
- "variant": {
1129
- "variants": [
1130
- {
1131
- "fields": [
1132
- {
1133
- "type": 8
1134
- }
1135
- ],
1136
- "name": "Vacant"
1137
- },
1138
- {
1139
- "fields": [
1140
- {
1141
- "type": 2
1142
- }
1143
- ],
1144
- "name": "Occupied"
1145
- }
1146
- ]
1147
- }
1148
- },
1149
- "params": [
1150
- 2
1151
- ],
1152
- "path": [
1153
- "ink_storage",
1154
- "collections",
1155
- "stash",
1156
- "Entry"
1157
- ]
1158
- },
1159
- {
1160
- "def": {
1161
- "composite": {
1162
- "fields": [
1163
- {
1164
- "name": "value",
1165
- "type": 2
1166
- },
1167
- {
1168
- "name": "key_index",
1169
- "type": 2
1170
- }
1171
- ]
1172
- }
1173
- },
1174
- "params": [
1175
- 2
1176
- ],
1177
- "path": [
1178
- "ink_storage",
1179
- "collections",
1180
- "hashmap",
1181
- "ValueEntry"
1182
- ]
1183
- },
1184
- {
1185
- "def": {
1186
- "variant": {
1187
- "variants": [
1188
- {
1189
- "fields": [
1190
- {
1191
- "type": 8
1192
- }
1193
- ],
1194
- "name": "Vacant"
1195
- },
1196
- {
1197
- "fields": [
1198
- {
1199
- "type": 14
1200
- }
1201
- ],
1202
- "name": "Occupied"
1203
- }
1204
- ]
1205
- }
1206
- },
1207
- "params": [
1208
- 14
1209
- ],
1210
- "path": [
1211
- "ink_storage",
1212
- "collections",
1213
- "stash",
1214
- "Entry"
1215
- ]
1216
- },
1217
- {
1218
- "def": {
1219
- "composite": {
1220
- "fields": [
1221
- {
1222
- "name": "callee",
1223
- "type": 5
1224
- },
1225
- {
1226
- "name": "selector",
1227
- "type": 15
1228
- },
1229
- {
1230
- "name": "input",
1231
- "type": 16
1232
- },
1233
- {
1234
- "name": "transferred_value",
1235
- "type": 17
1236
- },
1237
- {
1238
- "name": "gas_limit",
1239
- "type": 18
1240
- }
1241
- ]
1242
- }
1243
- },
1244
- "path": [
1245
- "multisig_plain",
1246
- "multisig_plain",
1247
- "Transaction"
1248
- ]
1249
- },
1250
- {
1251
- "def": {
1252
- "array": {
1253
- "len": 4,
1254
- "type": 7
1255
- }
1256
- }
1257
- },
1258
- {
1259
- "def": {
1260
- "sequence": {
1261
- "type": 7
1262
- }
1263
- }
1264
- },
1265
- {
1266
- "def": {
1267
- "primitive": "u128"
1268
- }
1269
- },
1270
- {
1271
- "def": {
1272
- "primitive": "u64"
1273
- }
1274
- },
1275
- {
1276
- "def": {
1277
- "variant": {
1278
- "variants": [
1279
- {
1280
- "fields": [
1281
- {
1282
- "type": 8
1283
- }
1284
- ],
1285
- "name": "Vacant"
1286
- },
1287
- {
1288
- "fields": [
1289
- {
1290
- "type": 5
1291
- }
1292
- ],
1293
- "name": "Occupied"
1294
- }
1295
- ]
1296
- }
1297
- },
1298
- "params": [
1299
- 5
1300
- ],
1301
- "path": [
1302
- "ink_storage",
1303
- "collections",
1304
- "stash",
1305
- "Entry"
1306
- ]
1307
- },
1308
- {
1309
- "def": {
1310
- "sequence": {
1311
- "type": 5
1312
- }
1313
- }
1314
- },
1315
- {
1316
- "def": {
1317
- "tuple": [
1318
- 2,
1319
- 22
1320
- ]
1321
- }
1322
- },
1323
- {
1324
- "def": {
1325
- "variant": {
1326
- "variants": [
1327
- {
1328
- "name": "Confirmed"
1329
- },
1330
- {
1331
- "fields": [
1332
- {
1333
- "type": 2
1334
- }
1335
- ],
1336
- "name": "ConfirmationsNeeded"
1337
- }
1338
- ]
1339
- }
1340
- },
1341
- "path": [
1342
- "multisig_plain",
1343
- "multisig_plain",
1344
- "ConfirmationStatus"
1345
- ]
1346
- },
1347
- {
1348
- "def": {
1349
- "variant": {
1350
- "variants": [
1351
- {
1352
- "fields": [
1353
- {
1354
- "type": 10
1355
- }
1356
- ],
1357
- "name": "Ok"
1358
- },
1359
- {
1360
- "fields": [
1361
- {
1362
- "type": 10
1363
- }
1364
- ],
1365
- "name": "Err"
1366
- }
1367
- ]
1368
- }
1369
- },
1370
- "params": [
1371
- 10,
1372
- 10
1373
- ],
1374
- "path": [
1375
- "Result"
1376
- ]
1377
- },
1378
- {
1379
- "def": {
1380
- "variant": {
1381
- "variants": [
1382
- {
1383
- "fields": [
1384
- {
1385
- "type": 16
1386
- }
1387
- ],
1388
- "name": "Ok"
1389
- },
1390
- {
1391
- "fields": [
1392
- {
1393
- "type": 10
1394
- }
1395
- ],
1396
- "name": "Err"
1397
- }
1398
- ]
1399
- }
1400
- },
1401
- "params": [
1402
- 16,
1403
- 10
1404
- ],
1405
- "path": [
1406
- "Result"
1407
- ]
1408
- },
1409
- {
1410
- "def": {
1411
- "variant": {
1412
- "variants": [
1413
- {
1414
- "fields": [
1415
- {
1416
- "type": 26
1417
- }
1418
- ],
1419
- "name": "Ok"
1420
- },
1421
- {
1422
- "fields": [
1423
- {
1424
- "type": 10
1425
- }
1426
- ],
1427
- "name": "Err"
1428
- }
1429
- ]
1430
- }
1431
- },
1432
- "params": [
1433
- 26,
1434
- 10
1435
- ],
1436
- "path": [
1437
- "Result"
1438
- ]
1439
- },
1440
- {
1441
- "def": {
1442
- "variant": {
1443
- "variants": [
1444
- {
1445
- "name": "None"
1446
- },
1447
- {
1448
- "fields": [
1449
- {
1450
- "type": 16
1451
- }
1452
- ],
1453
- "name": "Some"
1454
- }
1455
- ]
1456
- }
1457
- },
1458
- "params": [
1459
- 16
1460
- ],
1461
- "path": [
1462
- "Option"
1463
- ]
1464
- }
1465
- ]
1466
- }