-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathaugment-api-tx.ts
More file actions
3418 lines (3414 loc) · 135 KB
/
Copy pathaugment-api-tx.ts
File metadata and controls
3418 lines (3414 loc) · 135 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */
// import type lookup before we augment - in some environments
// this is required to allow for ambient/previous definitions
import "@polkadot/api-base/types/submittable";
import type {
ApiTypes,
AugmentedSubmittable,
SubmittableExtrinsic,
SubmittableExtrinsicFunction
} from "@polkadot/api-base/types";
import type { Bytes, Compact, Option, Vec, bool, u128, u32, u64 } from "@polkadot/types-codec";
import type { AnyNumber, IMethod, ITuple } from "@polkadot/types-codec/types";
import type { AccountId32, Call, H256, MultiAddress } from "@polkadot/types/interfaces/runtime";
import type {
CumulusPrimitivesCoreAggregateMessageOrigin,
CumulusPrimitivesParachainInherentParachainInherentData,
PalletBalancesAdjustmentDirection,
PalletFileSystemBucketMoveRequestResponse,
PalletFileSystemMspStorageRequestResponse,
PalletNftsAttributeNamespace,
PalletNftsCancelAttributesApprovalWitness,
PalletNftsCollectionConfig,
PalletNftsDestroyWitness,
PalletNftsItemConfig,
PalletNftsItemTip,
PalletNftsMintSettings,
PalletNftsMintWitness,
PalletNftsPreSignedAttributes,
PalletNftsPreSignedMint,
PalletNftsPriceWithDirection,
PalletProofsDealerProof,
PalletStorageProvidersValueProposition,
ShpFileKeyVerifierFileKeyProof,
SpRuntimeMultiSignature,
SpTrieStorageProofCompactProof,
SpWeightsWeightV2Weight,
StagingXcmExecutorAssetTransferTransferType,
StagingXcmV4Location,
StorageHubRuntimeConfigsRuntimeParamsRuntimeParameters,
StorageHubRuntimeSessionKeys,
XcmV3WeightLimit,
XcmVersionedAssetId,
XcmVersionedAssets,
XcmVersionedLocation,
XcmVersionedXcm
} from "@polkadot/types/lookup";
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> =
SubmittableExtrinsicFunction<ApiType>;
declare module "@polkadot/api-base/types/submittable" {
interface AugmentedSubmittables<ApiType extends ApiTypes> {
balances: {
/**
* Burn the specified liquid free balance from the origin account.
*
* If the origin's account ends up below the existential deposit as a result
* of the burn and `keep_alive` is false, the account will be reaped.
*
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
* this `burn` operation will reduce total issuance by the amount _burned_.
**/
burn: AugmentedSubmittable<
(
value: Compact<u128> | AnyNumber | Uint8Array,
keepAlive: bool | boolean | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[Compact<u128>, bool]
>;
/**
* Adjust the total issuance in a saturating way.
*
* Can only be called by root and always needs a positive `delta`.
*
* # Example
**/
forceAdjustTotalIssuance: AugmentedSubmittable<
(
direction:
| PalletBalancesAdjustmentDirection
| "Increase"
| "Decrease"
| number
| Uint8Array,
delta: Compact<u128> | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[PalletBalancesAdjustmentDirection, Compact<u128>]
>;
/**
* Set the regular balance of a given account.
*
* The dispatch origin for this call is `root`.
**/
forceSetBalance: AugmentedSubmittable<
(
who:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
newFree: Compact<u128> | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, Compact<u128>]
>;
/**
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
* may be specified.
**/
forceTransfer: AugmentedSubmittable<
(
source:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
dest:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
value: Compact<u128> | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, MultiAddress, Compact<u128>]
>;
/**
* Unreserve some balance from a user by force.
*
* Can only be called by ROOT.
**/
forceUnreserve: AugmentedSubmittable<
(
who:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
amount: u128 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, u128]
>;
/**
* Transfer the entire transferable balance from the caller account.
*
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
* transferred by this function. To ensure that this function results in a killed account,
* you might need to prepare the account by removing any reference counters, storage
* deposits, etc...
*
* The dispatch origin of this call must be Signed.
*
* - `dest`: The recipient of the transfer.
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
* of the funds the account has, causing the sender account to be killed (false), or
* transfer everything except at least the existential deposit, which will guarantee to
* keep the sender account alive (true).
**/
transferAll: AugmentedSubmittable<
(
dest:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
keepAlive: bool | boolean | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, bool]
>;
/**
* Transfer some liquid free balance to another account.
*
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
* If the sender's account is below the existential deposit as a result
* of the transfer, the account will be reaped.
*
* The dispatch origin for this call must be `Signed` by the transactor.
**/
transferAllowDeath: AugmentedSubmittable<
(
dest:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
value: Compact<u128> | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, Compact<u128>]
>;
/**
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
* kill the origin account.
*
* 99% of the time you want [`transfer_allow_death`] instead.
*
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
**/
transferKeepAlive: AugmentedSubmittable<
(
dest:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
value: Compact<u128> | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, Compact<u128>]
>;
/**
* Upgrade a specified account.
*
* - `origin`: Must be `Signed`.
* - `who`: The account to be upgraded.
*
* This will waive the transaction fee if at least all but 10% of the accounts needed to
* be upgraded. (We let some not have to be upgraded just in order to allow for the
* possibility of churn).
**/
upgradeAccounts: AugmentedSubmittable<
(
who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]
) => SubmittableExtrinsic<ApiType>,
[Vec<AccountId32>]
>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
bucketNfts: {
/**
* Share access to files within a bucket with another account.
*
* The `read_access_regex` parameter is optional and when set to `None` it means that the recipient will be denied access for any read request within the bucket.
**/
shareAccess: AugmentedSubmittable<
(
recipient:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
bucket: H256 | string | Uint8Array,
itemId: u32 | AnyNumber | Uint8Array,
readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string
) => SubmittableExtrinsic<ApiType>,
[MultiAddress, H256, u32, Option<Bytes>]
>;
/**
* Update read access for an item.
**/
updateReadAccess: AugmentedSubmittable<
(
bucket: H256 | string | Uint8Array,
itemId: u32 | AnyNumber | Uint8Array,
readAccessRegex: Option<Bytes> | null | Uint8Array | Bytes | string
) => SubmittableExtrinsic<ApiType>,
[H256, u32, Option<Bytes>]
>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
collatorSelection: {
/**
* Add a new account `who` to the list of `Invulnerables` collators. `who` must have
* registered session keys. If `who` is a candidate, they will be removed.
*
* The origin for this call must be the `UpdateOrigin`.
**/
addInvulnerable: AugmentedSubmittable<
(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[AccountId32]
>;
/**
* Deregister `origin` as a collator candidate. Note that the collator can only leave on
* session change. The `CandidacyBond` will be unreserved immediately.
*
* This call will fail if the total number of candidates would drop below
* `MinEligibleCollators`.
**/
leaveIntent: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Register this account as a collator candidate. The account must (a) already have
* registered session keys and (b) be able to reserve the `CandidacyBond`.
*
* This call is not available to `Invulnerable` collators.
**/
registerAsCandidate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
/**
* Remove an account `who` from the list of `Invulnerables` collators. `Invulnerables` must
* be sorted.
*
* The origin for this call must be the `UpdateOrigin`.
**/
removeInvulnerable: AugmentedSubmittable<
(who: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[AccountId32]
>;
/**
* Set the candidacy bond amount.
*
* If the candidacy bond is increased by this call, all current candidates which have a
* deposit lower than the new bond will be kicked from the list and get their deposits
* back.
*
* The origin for this call must be the `UpdateOrigin`.
**/
setCandidacyBond: AugmentedSubmittable<
(bond: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
[u128]
>;
/**
* Set the ideal number of non-invulnerable collators. If lowering this number, then the
* number of running collators could be higher than this figure. Aside from that edge case,
* there should be no other way to have more candidates than the desired number.
*
* The origin for this call must be the `UpdateOrigin`.
**/
setDesiredCandidates: AugmentedSubmittable<
(max: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
[u32]
>;
/**
* Set the list of invulnerable (fixed) collators. These collators must do some
* preparation, namely to have registered session keys.
*
* The call will remove any accounts that have not registered keys from the set. That is,
* it is non-atomic; the caller accepts all `AccountId`s passed in `new` _individually_ as
* acceptable Invulnerables, and is not proposing a _set_ of new Invulnerables.
*
* This call does not maintain mutual exclusivity of `Invulnerables` and `Candidates`. It
* is recommended to use a batch of `add_invulnerable` and `remove_invulnerable` instead. A
* `batch_all` can also be used to enforce atomicity. If any candidates are included in
* `new`, they should be removed with `remove_invulnerable_candidate` after execution.
*
* Must be called by the `UpdateOrigin`.
**/
setInvulnerables: AugmentedSubmittable<
(
updated: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]
) => SubmittableExtrinsic<ApiType>,
[Vec<AccountId32>]
>;
/**
* The caller `origin` replaces a candidate `target` in the collator candidate list by
* reserving `deposit`. The amount `deposit` reserved by the caller must be greater than
* the existing bond of the target it is trying to replace.
*
* This call will fail if the caller is already a collator candidate or invulnerable, the
* caller does not have registered session keys, the target is not a collator candidate,
* and/or the `deposit` amount cannot be reserved.
**/
takeCandidateSlot: AugmentedSubmittable<
(
deposit: u128 | AnyNumber | Uint8Array,
target: AccountId32 | string | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u128, AccountId32]
>;
/**
* Update the candidacy bond of collator candidate `origin` to a new amount `new_deposit`.
*
* Setting a `new_deposit` that is lower than the current deposit while `origin` is
* occupying a top-`DesiredCandidates` slot is not allowed.
*
* This call will fail if `origin` is not a collator candidate, the updated bond is lower
* than the minimum candidacy bond, and/or the amount cannot be reserved.
**/
updateBond: AugmentedSubmittable<
(newDeposit: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
[u128]
>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
cumulusXcm: {
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
fileSystem: {
/**
* Add yourself as a data server for providing the files of the bucket requested to be moved.
**/
bspAddDataServerForMoveBucketRequest: AugmentedSubmittable<
(bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[H256]
>;
/**
* Executed by a BSP to confirm to stop storing a file.
*
* It has to have previously opened a pending stop storing request using the `bsp_request_stop_storing` extrinsic.
* The minimum amount of blocks between the request and the confirmation is defined by the runtime, such that the
* BSP can't immediately stop storing a file it has previously lost when receiving a challenge for it.
**/
bspConfirmStopStoring: AugmentedSubmittable<
(
fileKey: H256 | string | Uint8Array,
inclusionForestProof:
| SpTrieStorageProofCompactProof
| { encodedNodes?: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, SpTrieStorageProofCompactProof]
>;
/**
* Used by a BSP to confirm they are storing data of a storage request.
**/
bspConfirmStoring: AugmentedSubmittable<
(
nonInclusionForestProof:
| SpTrieStorageProofCompactProof
| { encodedNodes?: any }
| string
| Uint8Array,
fileKeysAndProofs:
| Vec<ITuple<[H256, ShpFileKeyVerifierFileKeyProof]>>
| [
H256 | string | Uint8Array,
(
| ShpFileKeyVerifierFileKeyProof
| { fileMetadata?: any; proof?: any }
| string
| Uint8Array
)
][]
) => SubmittableExtrinsic<ApiType>,
[SpTrieStorageProofCompactProof, Vec<ITuple<[H256, ShpFileKeyVerifierFileKeyProof]>>]
>;
/**
* Executed by a BSP to request to stop storing a file.
*
* In the event when a storage request no longer exists for the data the BSP no longer stores,
* it is required that the BSP still has access to the metadata of the initial storage request.
* If they do not, they will at least need that metadata to reconstruct the File ID and from wherever
* the BSP gets that data is up to it. One example could be from the assigned MSP.
* This metadata is necessary since it is needed to reconstruct the leaf node key in the storage
* provider's Merkle Forest.
**/
bspRequestStopStoring: AugmentedSubmittable<
(
fileKey: H256 | string | Uint8Array,
bucketId: H256 | string | Uint8Array,
location: Bytes | string | Uint8Array,
owner: AccountId32 | string | Uint8Array,
fingerprint: H256 | string | Uint8Array,
size: u64 | AnyNumber | Uint8Array,
canServe: bool | boolean | Uint8Array,
inclusionForestProof:
| SpTrieStorageProofCompactProof
| { encodedNodes?: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, H256, Bytes, AccountId32, H256, u64, bool, SpTrieStorageProofCompactProof]
>;
/**
* Used by a BSP to volunteer for storing a file.
*
* The transaction will fail if the XOR between the file ID and the BSP ID is not below the threshold,
* so a BSP is strongly advised to check beforehand. Another reason for failure is
* if the maximum number of BSPs has been reached. A successful assignment as BSP means
* that some of the collateral tokens of that MSP are frozen.
**/
bspVolunteer: AugmentedSubmittable<
(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[H256]
>;
/**
* Create and associate a collection with a bucket.
**/
createAndAssociateCollectionWithBucket: AugmentedSubmittable<
(bucketId: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[H256]
>;
createBucket: AugmentedSubmittable<
(
mspId: H256 | string | Uint8Array,
name: Bytes | string | Uint8Array,
private: bool | boolean | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, Bytes, bool]
>;
deleteFile: AugmentedSubmittable<
(
bucketId: H256 | string | Uint8Array,
fileKey: H256 | string | Uint8Array,
location: Bytes | string | Uint8Array,
size: u64 | AnyNumber | Uint8Array,
fingerprint: H256 | string | Uint8Array,
maybeInclusionForestProof:
| Option<SpTrieStorageProofCompactProof>
| null
| Uint8Array
| SpTrieStorageProofCompactProof
| { encodedNodes?: any }
| string
) => SubmittableExtrinsic<ApiType>,
[H256, H256, Bytes, u64, H256, Option<SpTrieStorageProofCompactProof>]
>;
/**
* Issue a new storage request for a file
**/
issueStorageRequest: AugmentedSubmittable<
(
bucketId: H256 | string | Uint8Array,
location: Bytes | string | Uint8Array,
fingerprint: H256 | string | Uint8Array,
size: u64 | AnyNumber | Uint8Array,
mspId: H256 | string | Uint8Array,
peerIds: Vec<Bytes> | (Bytes | string | Uint8Array)[]
) => SubmittableExtrinsic<ApiType>,
[H256, Bytes, H256, u64, H256, Vec<Bytes>]
>;
mspRespondMoveBucketRequest: AugmentedSubmittable<
(
bucketId: H256 | string | Uint8Array,
response:
| PalletFileSystemBucketMoveRequestResponse
| "Accepted"
| "Rejected"
| number
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, PalletFileSystemBucketMoveRequestResponse]
>;
/**
* Used by a MSP to accept or decline storage requests in batches, grouped by bucket.
*
* This follows a best-effort strategy, meaning that all file keys will be processed and declared to have successfully be
* accepted, rejected or have failed to be processed in the results of the event emitted.
*
* The MSP has to provide a file proof for all the file keys that are being accepted and a non-inclusion proof for the file keys
* in the bucket's Merkle Patricia Forest. The file proofs for the file keys is necessary to verify that
* the MSP actually has the files, while the non-inclusion proof is necessary to verify that the MSP
* wasn't storing it before.
**/
mspRespondStorageRequestsMultipleBuckets: AugmentedSubmittable<
(
fileKeyResponsesInput:
| Vec<ITuple<[H256, PalletFileSystemMspStorageRequestResponse]>>
| [
H256 | string | Uint8Array,
(
| PalletFileSystemMspStorageRequestResponse
| { accept?: any; reject?: any }
| string
| Uint8Array
)
][]
) => SubmittableExtrinsic<ApiType>,
[Vec<ITuple<[H256, PalletFileSystemMspStorageRequestResponse]>>]
>;
pendingFileDeletionRequestSubmitProof: AugmentedSubmittable<
(
user: AccountId32 | string | Uint8Array,
fileKey: H256 | string | Uint8Array,
bucketId: H256 | string | Uint8Array,
forestProof: SpTrieStorageProofCompactProof | { encodedNodes?: any } | string | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[AccountId32, H256, H256, SpTrieStorageProofCompactProof]
>;
requestMoveBucket: AugmentedSubmittable<
(
bucketId: H256 | string | Uint8Array,
newMspId: H256 | string | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, H256]
>;
/**
* Revoke storage request
**/
revokeStorageRequest: AugmentedSubmittable<
(fileKey: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
[H256]
>;
setGlobalParameters: AugmentedSubmittable<
(
replicationTarget: Option<u32> | null | Uint8Array | u32 | AnyNumber,
tickRangeToMaximumThreshold: Option<u32> | null | Uint8Array | u32 | AnyNumber
) => SubmittableExtrinsic<ApiType>,
[Option<u32>, Option<u32>]
>;
/**
* Executed by a SP to stop storing a file from an insolvent user.
*
* This is used when a user has become insolvent and the SP needs to stop storing the files of that user, since
* it won't be getting paid for it anymore.
* The validations are similar to the ones in the `bsp_request_stop_storing` and `bsp_confirm_stop_storing` extrinsics, but the SP doesn't need to
* wait for a minimum amount of blocks to confirm to stop storing the file nor it has to be a BSP.
**/
stopStoringForInsolventUser: AugmentedSubmittable<
(
fileKey: H256 | string | Uint8Array,
bucketId: H256 | string | Uint8Array,
location: Bytes | string | Uint8Array,
owner: AccountId32 | string | Uint8Array,
fingerprint: H256 | string | Uint8Array,
size: u64 | AnyNumber | Uint8Array,
inclusionForestProof:
| SpTrieStorageProofCompactProof
| { encodedNodes?: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, H256, Bytes, AccountId32, H256, u64, SpTrieStorageProofCompactProof]
>;
updateBucketPrivacy: AugmentedSubmittable<
(
bucketId: H256 | string | Uint8Array,
private: bool | boolean | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[H256, bool]
>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
messageQueue: {
/**
* Execute an overweight message.
*
* Temporary processing errors will be propagated whereas permanent errors are treated
* as success condition.
*
* - `origin`: Must be `Signed`.
* - `message_origin`: The origin from which the message to be executed arrived.
* - `page`: The page in the queue in which the message to be executed is sitting.
* - `index`: The index into the queue of the message to be executed.
* - `weight_limit`: The maximum amount of weight allowed to be consumed in the execution
* of the message.
*
* Benchmark complexity considerations: O(index + weight_limit).
**/
executeOverweight: AugmentedSubmittable<
(
messageOrigin:
| CumulusPrimitivesCoreAggregateMessageOrigin
| { Here: any }
| { Parent: any }
| { Sibling: any }
| string
| Uint8Array,
page: u32 | AnyNumber | Uint8Array,
index: u32 | AnyNumber | Uint8Array,
weightLimit:
| SpWeightsWeightV2Weight
| { refTime?: any; proofSize?: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[CumulusPrimitivesCoreAggregateMessageOrigin, u32, u32, SpWeightsWeightV2Weight]
>;
/**
* Remove a page which has no more messages remaining to be processed or is stale.
**/
reapPage: AugmentedSubmittable<
(
messageOrigin:
| CumulusPrimitivesCoreAggregateMessageOrigin
| { Here: any }
| { Parent: any }
| { Sibling: any }
| string
| Uint8Array,
pageIndex: u32 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[CumulusPrimitivesCoreAggregateMessageOrigin, u32]
>;
/**
* Generic tx
**/
[key: string]: SubmittableExtrinsicFunction<ApiType>;
};
nfts: {
/**
* Approve item's attributes to be changed by a delegated third-party account.
*
* Origin must be Signed and must be an owner of the `item`.
*
* - `collection`: A collection of the item.
* - `item`: The item that holds attributes.
* - `delegate`: The account to delegate permission to change attributes of the item.
*
* Emits `ItemAttributesApprovalAdded` on success.
**/
approveItemAttributes: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array,
delegate:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32, MultiAddress]
>;
/**
* Approve an item to be transferred by a delegated third-party account.
*
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
* `item`.
*
* - `collection`: The collection of the item to be approved for delegated transfer.
* - `item`: The item to be approved for delegated transfer.
* - `delegate`: The account to delegate permission to transfer the item.
* - `maybe_deadline`: Optional deadline for the approval. Specified by providing the
* number of blocks after which the approval will expire
*
* Emits `TransferApproved` on success.
*
* Weight: `O(1)`
**/
approveTransfer: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array,
delegate:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
maybeDeadline: Option<u32> | null | Uint8Array | u32 | AnyNumber
) => SubmittableExtrinsic<ApiType>,
[u32, u32, MultiAddress, Option<u32>]
>;
/**
* Destroy a single item.
*
* The origin must conform to `ForceOrigin` or must be Signed and the signing account must
* be the owner of the `item`.
*
* - `collection`: The collection of the item to be burned.
* - `item`: The item to be burned.
*
* Emits `Burned`.
*
* Weight: `O(1)`
**/
burn: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32]
>;
/**
* Allows to buy an item if it's up for sale.
*
* Origin must be Signed and must not be the owner of the `item`.
*
* - `collection`: The collection of the item.
* - `item`: The item the sender wants to buy.
* - `bid_price`: The price the sender is willing to pay.
*
* Emits `ItemBought` on success.
**/
buyItem: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array,
bidPrice: u128 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32, u128]
>;
/**
* Cancel one of the transfer approvals for a specific item.
*
* Origin must be either:
* - the `Force` origin;
* - `Signed` with the signer being the Owner of the `item`;
*
* Arguments:
* - `collection`: The collection of the item of whose approval will be cancelled.
* - `item`: The item of the collection of whose approval will be cancelled.
* - `delegate`: The account that is going to loose their approval.
*
* Emits `ApprovalCancelled` on success.
*
* Weight: `O(1)`
**/
cancelApproval: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array,
delegate:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32, MultiAddress]
>;
/**
* Cancel the previously provided approval to change item's attributes.
* All the previously set attributes by the `delegate` will be removed.
*
* Origin must be Signed and must be an owner of the `item`.
*
* - `collection`: Collection that the item is contained within.
* - `item`: The item that holds attributes.
* - `delegate`: The previously approved account to remove.
*
* Emits `ItemAttributesApprovalRemoved` on success.
**/
cancelItemAttributesApproval: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array,
delegate:
| MultiAddress
| { Id: any }
| { Index: any }
| { Raw: any }
| { Address32: any }
| { Address20: any }
| string
| Uint8Array,
witness:
| PalletNftsCancelAttributesApprovalWitness
| { accountAttributes?: any }
| string
| Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32, MultiAddress, PalletNftsCancelAttributesApprovalWitness]
>;
/**
* Cancel an atomic swap.
*
* Origin must be Signed.
* Origin must be an owner of the `item` if the deadline hasn't expired.
*
* - `collection`: The collection of the item.
* - `item`: The item an owner wants to give.
*
* Emits `SwapCancelled` on success.
**/
cancelSwap: AugmentedSubmittable<
(
offeredCollection: u32 | AnyNumber | Uint8Array,
offeredItem: u32 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32]
>;
/**
* Claim an atomic swap.
* This method executes a pending swap, that was created by a counterpart before.
*
* Origin must be Signed and must be an owner of the `item`.
*
* - `send_collection`: The collection of the item to be sent.
* - `send_item`: The item to be sent.
* - `receive_collection`: The collection of the item to be received.
* - `receive_item`: The item to be received.
* - `witness_price`: A price that was previously agreed on.
*
* Emits `SwapClaimed` on success.
**/
claimSwap: AugmentedSubmittable<
(
sendCollection: u32 | AnyNumber | Uint8Array,
sendItem: u32 | AnyNumber | Uint8Array,
receiveCollection: u32 | AnyNumber | Uint8Array,
receiveItem: u32 | AnyNumber | Uint8Array,
witnessPrice:
| Option<PalletNftsPriceWithDirection>
| null
| Uint8Array
| PalletNftsPriceWithDirection
| { amount?: any; direction?: any }
| string
) => SubmittableExtrinsic<ApiType>,
[u32, u32, u32, u32, Option<PalletNftsPriceWithDirection>]
>;
/**
* Cancel all the approvals of a specific item.
*
* Origin must be either:
* - the `Force` origin;
* - `Signed` with the signer being the Owner of the `item`;
*
* Arguments:
* - `collection`: The collection of the item of whose approvals will be cleared.
* - `item`: The item of the collection of whose approvals will be cleared.
*
* Emits `AllApprovalsCancelled` on success.
*
* Weight: `O(1)`
**/
clearAllTransferApprovals: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
item: u32 | AnyNumber | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, u32]
>;
/**
* Clear an attribute for a collection or item.
*
* Origin must be either `ForceOrigin` or Signed and the sender should be the Owner of the
* attribute.
*
* Any deposit is freed for the collection's owner.
*
* - `collection`: The identifier of the collection whose item's metadata to clear.
* - `maybe_item`: The identifier of the item whose metadata to clear.
* - `namespace`: Attribute's namespace.
* - `key`: The key of the attribute.
*
* Emits `AttributeCleared`.
*
* Weight: `O(1)`
**/
clearAttribute: AugmentedSubmittable<
(
collection: u32 | AnyNumber | Uint8Array,
maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber,
namespace:
| PalletNftsAttributeNamespace
| { Pallet: any }
| { CollectionOwner: any }
| { ItemOwner: any }
| { Account: any }
| string
| Uint8Array,
key: Bytes | string | Uint8Array
) => SubmittableExtrinsic<ApiType>,
[u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]
>;
/**
* Clear the metadata for a collection.
*
* Origin must be either `ForceOrigin` or `Signed` and the sender should be the Admin of
* the `collection`.
*
* Any deposit is freed for the collection's owner.
*
* - `collection`: The identifier of the collection whose metadata to clear.
*
* Emits `CollectionMetadataCleared`.
*
* Weight: `O(1)`
**/
clearCollectionMetadata: AugmentedSubmittable<