@argonprotocol/mainchain 0.0.2 → 0.0.3
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.
- package/lib/cjs/interfaces/augment-api-consts.d.ts +39 -33
- package/lib/cjs/interfaces/augment-api-errors.d.ts +57 -51
- package/lib/cjs/interfaces/augment-api-events.d.ts +102 -68
- package/lib/cjs/interfaces/augment-api-query.d.ts +65 -65
- package/lib/cjs/interfaces/augment-api-tx.d.ts +253 -157
- package/lib/cjs/interfaces/lookup.d.ts +217 -140
- package/lib/cjs/interfaces/lookup.js +217 -140
- package/lib/cjs/interfaces/lookup.js.map +1 -1
- package/lib/cjs/interfaces/registry.d.ts +7 -1
- package/lib/cjs/interfaces/types-lookup.d.ts +213 -140
- package/lib/cjs/package.json +3 -0
- package/lib/esm/interfaces/augment-api-consts.d.ts +39 -33
- package/lib/esm/interfaces/augment-api-errors.d.ts +57 -51
- package/lib/esm/interfaces/augment-api-events.d.ts +102 -68
- package/lib/esm/interfaces/augment-api-query.d.ts +65 -65
- package/lib/esm/interfaces/augment-api-tx.d.ts +253 -157
- package/lib/esm/interfaces/lookup.d.ts +217 -140
- package/lib/esm/interfaces/lookup.js +217 -140
- package/lib/esm/interfaces/lookup.js.map +1 -1
- package/lib/esm/interfaces/registry.d.ts +7 -1
- package/lib/esm/interfaces/types-lookup.d.ts +213 -140
- package/lib/tsconfig-cjs.tsbuildinfo +1 -1
- package/lib/tsconfig-types.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/interfaces/augment-api-consts.d.ts +39 -33
- package/lib/types/interfaces/augment-api-errors.d.ts +57 -51
- package/lib/types/interfaces/augment-api-events.d.ts +102 -68
- package/lib/types/interfaces/augment-api-query.d.ts +65 -65
- package/lib/types/interfaces/augment-api-tx.d.ts +253 -157
- package/lib/types/interfaces/lookup.d.ts +217 -140
- package/lib/types/interfaces/registry.d.ts +7 -1
- package/lib/types/interfaces/types-lookup.d.ts +213 -140
- package/package.json +3 -2
|
@@ -3,13 +3,13 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { ArgonNodeRuntimeOpaqueSessionKeys, ArgonNodeRuntimeProxyType, ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesBondVaultTerms, ArgonPrimitivesDataDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, PalletBalancesAdjustmentDirection, PalletMiningSlotMiningSlotBid, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
6
|
+
import type { ArgonNodeRuntimeOpaqueSessionKeys, ArgonNodeRuntimeOriginCaller, ArgonNodeRuntimeProxyType, ArgonPrimitivesBitcoinCompressedBitcoinPubkey, ArgonPrimitivesBitcoinH256Le, ArgonPrimitivesBitcoinOpaqueBitcoinXpub, ArgonPrimitivesBlockSealRewardDestination, ArgonPrimitivesBondVaultTerms, ArgonPrimitivesDataDomainZoneRecord, ArgonPrimitivesInherentsBitcoinUtxoSync, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotebookSignedNotebookHeader, PalletBalancesAdjustmentDirection, PalletMiningSlotMiningSlotBid, PalletMultisigTimepoint, PalletPriceIndexPriceIndex, PalletVaultsVaultConfig, SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
8
8
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
9
9
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
10
10
|
declare module '@polkadot/api-base/types/submittable' {
|
|
11
11
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
12
|
-
|
|
12
|
+
balances: {
|
|
13
13
|
/**
|
|
14
14
|
* Burn the specified liquid free balance from the origin account.
|
|
15
15
|
*
|
|
@@ -483,6 +483,161 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
483
483
|
signature?: any;
|
|
484
484
|
} | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<ArgonPrimitivesNotebookSignedNotebookHeader>]>;
|
|
485
485
|
};
|
|
486
|
+
ownership: {
|
|
487
|
+
/**
|
|
488
|
+
* Burn the specified liquid free balance from the origin account.
|
|
489
|
+
*
|
|
490
|
+
* If the origin's account ends up below the existential deposit as a result
|
|
491
|
+
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
492
|
+
*
|
|
493
|
+
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
494
|
+
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
495
|
+
**/
|
|
496
|
+
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
|
|
497
|
+
/**
|
|
498
|
+
* Adjust the total issuance in a saturating way.
|
|
499
|
+
*
|
|
500
|
+
* Can only be called by root and always needs a positive `delta`.
|
|
501
|
+
*
|
|
502
|
+
* # Example
|
|
503
|
+
**/
|
|
504
|
+
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
|
|
505
|
+
/**
|
|
506
|
+
* Set the regular balance of a given account.
|
|
507
|
+
*
|
|
508
|
+
* The dispatch origin for this call is `root`.
|
|
509
|
+
**/
|
|
510
|
+
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
|
|
511
|
+
Id: any;
|
|
512
|
+
} | {
|
|
513
|
+
Index: any;
|
|
514
|
+
} | {
|
|
515
|
+
Raw: any;
|
|
516
|
+
} | {
|
|
517
|
+
Address32: any;
|
|
518
|
+
} | {
|
|
519
|
+
Address20: any;
|
|
520
|
+
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
521
|
+
/**
|
|
522
|
+
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
523
|
+
* may be specified.
|
|
524
|
+
**/
|
|
525
|
+
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
526
|
+
Id: any;
|
|
527
|
+
} | {
|
|
528
|
+
Index: any;
|
|
529
|
+
} | {
|
|
530
|
+
Raw: any;
|
|
531
|
+
} | {
|
|
532
|
+
Address32: any;
|
|
533
|
+
} | {
|
|
534
|
+
Address20: any;
|
|
535
|
+
} | string | Uint8Array, dest: MultiAddress | {
|
|
536
|
+
Id: any;
|
|
537
|
+
} | {
|
|
538
|
+
Index: any;
|
|
539
|
+
} | {
|
|
540
|
+
Raw: any;
|
|
541
|
+
} | {
|
|
542
|
+
Address32: any;
|
|
543
|
+
} | {
|
|
544
|
+
Address20: any;
|
|
545
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
|
546
|
+
/**
|
|
547
|
+
* Unreserve some balance from a user by force.
|
|
548
|
+
*
|
|
549
|
+
* Can only be called by ROOT.
|
|
550
|
+
**/
|
|
551
|
+
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
|
|
552
|
+
Id: any;
|
|
553
|
+
} | {
|
|
554
|
+
Index: any;
|
|
555
|
+
} | {
|
|
556
|
+
Raw: any;
|
|
557
|
+
} | {
|
|
558
|
+
Address32: any;
|
|
559
|
+
} | {
|
|
560
|
+
Address20: any;
|
|
561
|
+
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
562
|
+
/**
|
|
563
|
+
* Transfer the entire transferable balance from the caller account.
|
|
564
|
+
*
|
|
565
|
+
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
566
|
+
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
567
|
+
* transferred by this function. To ensure that this function results in a killed account,
|
|
568
|
+
* you might need to prepare the account by removing any reference counters, storage
|
|
569
|
+
* deposits, etc...
|
|
570
|
+
*
|
|
571
|
+
* The dispatch origin of this call must be Signed.
|
|
572
|
+
*
|
|
573
|
+
* - `dest`: The recipient of the transfer.
|
|
574
|
+
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
575
|
+
* of the funds the account has, causing the sender account to be killed (false), or
|
|
576
|
+
* transfer everything except at least the existential deposit, which will guarantee to
|
|
577
|
+
* keep the sender account alive (true).
|
|
578
|
+
**/
|
|
579
|
+
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
580
|
+
Id: any;
|
|
581
|
+
} | {
|
|
582
|
+
Index: any;
|
|
583
|
+
} | {
|
|
584
|
+
Raw: any;
|
|
585
|
+
} | {
|
|
586
|
+
Address32: any;
|
|
587
|
+
} | {
|
|
588
|
+
Address20: any;
|
|
589
|
+
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
590
|
+
/**
|
|
591
|
+
* Transfer some liquid free balance to another account.
|
|
592
|
+
*
|
|
593
|
+
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
594
|
+
* If the sender's account is below the existential deposit as a result
|
|
595
|
+
* of the transfer, the account will be reaped.
|
|
596
|
+
*
|
|
597
|
+
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
598
|
+
**/
|
|
599
|
+
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
|
|
600
|
+
Id: any;
|
|
601
|
+
} | {
|
|
602
|
+
Index: any;
|
|
603
|
+
} | {
|
|
604
|
+
Raw: any;
|
|
605
|
+
} | {
|
|
606
|
+
Address32: any;
|
|
607
|
+
} | {
|
|
608
|
+
Address20: any;
|
|
609
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
610
|
+
/**
|
|
611
|
+
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
612
|
+
* kill the origin account.
|
|
613
|
+
*
|
|
614
|
+
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
615
|
+
*
|
|
616
|
+
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
617
|
+
**/
|
|
618
|
+
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
|
|
619
|
+
Id: any;
|
|
620
|
+
} | {
|
|
621
|
+
Index: any;
|
|
622
|
+
} | {
|
|
623
|
+
Raw: any;
|
|
624
|
+
} | {
|
|
625
|
+
Address32: any;
|
|
626
|
+
} | {
|
|
627
|
+
Address20: any;
|
|
628
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
629
|
+
/**
|
|
630
|
+
* Upgrade a specified account.
|
|
631
|
+
*
|
|
632
|
+
* - `origin`: Must be `Signed`.
|
|
633
|
+
* - `who`: The account to be upgraded.
|
|
634
|
+
*
|
|
635
|
+
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
636
|
+
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
637
|
+
* possibility of churn).
|
|
638
|
+
**/
|
|
639
|
+
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
640
|
+
};
|
|
486
641
|
priceIndex: {
|
|
487
642
|
/**
|
|
488
643
|
* Sets the operator account id (only executable by the Root account)
|
|
@@ -766,161 +921,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
766
921
|
blockSealAuthority?: any;
|
|
767
922
|
} | string | Uint8Array, proof: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonNodeRuntimeOpaqueSessionKeys, Bytes]>;
|
|
768
923
|
};
|
|
769
|
-
shareBalances: {
|
|
770
|
-
/**
|
|
771
|
-
* Burn the specified liquid free balance from the origin account.
|
|
772
|
-
*
|
|
773
|
-
* If the origin's account ends up below the existential deposit as a result
|
|
774
|
-
* of the burn and `keep_alive` is false, the account will be reaped.
|
|
775
|
-
*
|
|
776
|
-
* Unlike sending funds to a _burn_ address, which merely makes the funds inaccessible,
|
|
777
|
-
* this `burn` operation will reduce total issuance by the amount _burned_.
|
|
778
|
-
**/
|
|
779
|
-
burn: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, bool]>;
|
|
780
|
-
/**
|
|
781
|
-
* Adjust the total issuance in a saturating way.
|
|
782
|
-
*
|
|
783
|
-
* Can only be called by root and always needs a positive `delta`.
|
|
784
|
-
*
|
|
785
|
-
* # Example
|
|
786
|
-
**/
|
|
787
|
-
forceAdjustTotalIssuance: AugmentedSubmittable<(direction: PalletBalancesAdjustmentDirection | 'Increase' | 'Decrease' | number | Uint8Array, delta: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBalancesAdjustmentDirection, Compact<u128>]>;
|
|
788
|
-
/**
|
|
789
|
-
* Set the regular balance of a given account.
|
|
790
|
-
*
|
|
791
|
-
* The dispatch origin for this call is `root`.
|
|
792
|
-
**/
|
|
793
|
-
forceSetBalance: AugmentedSubmittable<(who: MultiAddress | {
|
|
794
|
-
Id: any;
|
|
795
|
-
} | {
|
|
796
|
-
Index: any;
|
|
797
|
-
} | {
|
|
798
|
-
Raw: any;
|
|
799
|
-
} | {
|
|
800
|
-
Address32: any;
|
|
801
|
-
} | {
|
|
802
|
-
Address20: any;
|
|
803
|
-
} | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
804
|
-
/**
|
|
805
|
-
* Exactly as `transfer_allow_death`, except the origin must be root and the source account
|
|
806
|
-
* may be specified.
|
|
807
|
-
**/
|
|
808
|
-
forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
|
|
809
|
-
Id: any;
|
|
810
|
-
} | {
|
|
811
|
-
Index: any;
|
|
812
|
-
} | {
|
|
813
|
-
Raw: any;
|
|
814
|
-
} | {
|
|
815
|
-
Address32: any;
|
|
816
|
-
} | {
|
|
817
|
-
Address20: any;
|
|
818
|
-
} | string | Uint8Array, dest: MultiAddress | {
|
|
819
|
-
Id: any;
|
|
820
|
-
} | {
|
|
821
|
-
Index: any;
|
|
822
|
-
} | {
|
|
823
|
-
Raw: any;
|
|
824
|
-
} | {
|
|
825
|
-
Address32: any;
|
|
826
|
-
} | {
|
|
827
|
-
Address20: any;
|
|
828
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
|
|
829
|
-
/**
|
|
830
|
-
* Unreserve some balance from a user by force.
|
|
831
|
-
*
|
|
832
|
-
* Can only be called by ROOT.
|
|
833
|
-
**/
|
|
834
|
-
forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
|
|
835
|
-
Id: any;
|
|
836
|
-
} | {
|
|
837
|
-
Index: any;
|
|
838
|
-
} | {
|
|
839
|
-
Raw: any;
|
|
840
|
-
} | {
|
|
841
|
-
Address32: any;
|
|
842
|
-
} | {
|
|
843
|
-
Address20: any;
|
|
844
|
-
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
|
|
845
|
-
/**
|
|
846
|
-
* Transfer the entire transferable balance from the caller account.
|
|
847
|
-
*
|
|
848
|
-
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
|
849
|
-
* any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
|
|
850
|
-
* transferred by this function. To ensure that this function results in a killed account,
|
|
851
|
-
* you might need to prepare the account by removing any reference counters, storage
|
|
852
|
-
* deposits, etc...
|
|
853
|
-
*
|
|
854
|
-
* The dispatch origin of this call must be Signed.
|
|
855
|
-
*
|
|
856
|
-
* - `dest`: The recipient of the transfer.
|
|
857
|
-
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
|
858
|
-
* of the funds the account has, causing the sender account to be killed (false), or
|
|
859
|
-
* transfer everything except at least the existential deposit, which will guarantee to
|
|
860
|
-
* keep the sender account alive (true).
|
|
861
|
-
**/
|
|
862
|
-
transferAll: AugmentedSubmittable<(dest: MultiAddress | {
|
|
863
|
-
Id: any;
|
|
864
|
-
} | {
|
|
865
|
-
Index: any;
|
|
866
|
-
} | {
|
|
867
|
-
Raw: any;
|
|
868
|
-
} | {
|
|
869
|
-
Address32: any;
|
|
870
|
-
} | {
|
|
871
|
-
Address20: any;
|
|
872
|
-
} | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
|
|
873
|
-
/**
|
|
874
|
-
* Transfer some liquid free balance to another account.
|
|
875
|
-
*
|
|
876
|
-
* `transfer_allow_death` will set the `FreeBalance` of the sender and receiver.
|
|
877
|
-
* If the sender's account is below the existential deposit as a result
|
|
878
|
-
* of the transfer, the account will be reaped.
|
|
879
|
-
*
|
|
880
|
-
* The dispatch origin for this call must be `Signed` by the transactor.
|
|
881
|
-
**/
|
|
882
|
-
transferAllowDeath: AugmentedSubmittable<(dest: MultiAddress | {
|
|
883
|
-
Id: any;
|
|
884
|
-
} | {
|
|
885
|
-
Index: any;
|
|
886
|
-
} | {
|
|
887
|
-
Raw: any;
|
|
888
|
-
} | {
|
|
889
|
-
Address32: any;
|
|
890
|
-
} | {
|
|
891
|
-
Address20: any;
|
|
892
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
893
|
-
/**
|
|
894
|
-
* Same as the [`transfer_allow_death`] call, but with a check that the transfer will not
|
|
895
|
-
* kill the origin account.
|
|
896
|
-
*
|
|
897
|
-
* 99% of the time you want [`transfer_allow_death`] instead.
|
|
898
|
-
*
|
|
899
|
-
* [`transfer_allow_death`]: struct.Pallet.html#method.transfer
|
|
900
|
-
**/
|
|
901
|
-
transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
|
|
902
|
-
Id: any;
|
|
903
|
-
} | {
|
|
904
|
-
Index: any;
|
|
905
|
-
} | {
|
|
906
|
-
Raw: any;
|
|
907
|
-
} | {
|
|
908
|
-
Address32: any;
|
|
909
|
-
} | {
|
|
910
|
-
Address20: any;
|
|
911
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
|
|
912
|
-
/**
|
|
913
|
-
* Upgrade a specified account.
|
|
914
|
-
*
|
|
915
|
-
* - `origin`: Must be `Signed`.
|
|
916
|
-
* - `who`: The account to be upgraded.
|
|
917
|
-
*
|
|
918
|
-
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
919
|
-
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
920
|
-
* possibility of churn).
|
|
921
|
-
**/
|
|
922
|
-
upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
|
|
923
|
-
};
|
|
924
924
|
sudo: {
|
|
925
925
|
/**
|
|
926
926
|
* Permanently removes the sudo key.
|
|
@@ -1089,6 +1089,102 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1089
1089
|
**/
|
|
1090
1090
|
unpause: AugmentedSubmittable<(ident: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => SubmittableExtrinsic<ApiType>, [ITuple<[Bytes, Bytes]>]>;
|
|
1091
1091
|
};
|
|
1092
|
+
utility: {
|
|
1093
|
+
/**
|
|
1094
|
+
* Send a call through an indexed pseudonym of the sender.
|
|
1095
|
+
*
|
|
1096
|
+
* Filter from origin are passed along. The call will be dispatched with an origin which
|
|
1097
|
+
* use the same filter as the origin of this call.
|
|
1098
|
+
*
|
|
1099
|
+
* NOTE: If you need to ensure that any account-based filtering is not honored (i.e.
|
|
1100
|
+
* because you expect `proxy` to have been used prior in the call stack and you do not want
|
|
1101
|
+
* the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`
|
|
1102
|
+
* in the Multisig pallet instead.
|
|
1103
|
+
*
|
|
1104
|
+
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
1105
|
+
*
|
|
1106
|
+
* The dispatch origin for this call must be _Signed_.
|
|
1107
|
+
**/
|
|
1108
|
+
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, Call]>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Send a batch of dispatch calls.
|
|
1111
|
+
*
|
|
1112
|
+
* May be called from any origin except `None`.
|
|
1113
|
+
*
|
|
1114
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
1115
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
1116
|
+
*
|
|
1117
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
1118
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
1119
|
+
*
|
|
1120
|
+
* ## Complexity
|
|
1121
|
+
* - O(C) where C is the number of calls to be batched.
|
|
1122
|
+
*
|
|
1123
|
+
* This will return `Ok` in all circumstances. To determine the success of the batch, an
|
|
1124
|
+
* event is deposited. If a call failed and the batch was interrupted, then the
|
|
1125
|
+
* `BatchInterrupted` event is deposited, along with the number of successful calls made
|
|
1126
|
+
* and the error of the failed call. If all were successful, then the `BatchCompleted`
|
|
1127
|
+
* event is deposited.
|
|
1128
|
+
**/
|
|
1129
|
+
batch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
1130
|
+
/**
|
|
1131
|
+
* Send a batch of dispatch calls and atomically execute them.
|
|
1132
|
+
* The whole transaction will rollback and fail if any of the calls failed.
|
|
1133
|
+
*
|
|
1134
|
+
* May be called from any origin except `None`.
|
|
1135
|
+
*
|
|
1136
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
1137
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
1138
|
+
*
|
|
1139
|
+
* If origin is root then the calls are dispatched without checking origin filter. (This
|
|
1140
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
1141
|
+
*
|
|
1142
|
+
* ## Complexity
|
|
1143
|
+
* - O(C) where C is the number of calls to be batched.
|
|
1144
|
+
**/
|
|
1145
|
+
batchAll: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Dispatches a function call with a provided origin.
|
|
1148
|
+
*
|
|
1149
|
+
* The dispatch origin for this call must be _Root_.
|
|
1150
|
+
*
|
|
1151
|
+
* ## Complexity
|
|
1152
|
+
* - O(1).
|
|
1153
|
+
**/
|
|
1154
|
+
dispatchAs: AugmentedSubmittable<(asOrigin: ArgonNodeRuntimeOriginCaller | {
|
|
1155
|
+
system: any;
|
|
1156
|
+
} | {
|
|
1157
|
+
Void: any;
|
|
1158
|
+
} | string | Uint8Array, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [ArgonNodeRuntimeOriginCaller, Call]>;
|
|
1159
|
+
/**
|
|
1160
|
+
* Send a batch of dispatch calls.
|
|
1161
|
+
* Unlike `batch`, it allows errors and won't interrupt.
|
|
1162
|
+
*
|
|
1163
|
+
* May be called from any origin except `None`.
|
|
1164
|
+
*
|
|
1165
|
+
* - `calls`: The calls to be dispatched from the same origin. The number of call must not
|
|
1166
|
+
* exceed the constant: `batched_calls_limit` (available in constant metadata).
|
|
1167
|
+
*
|
|
1168
|
+
* If origin is root then the calls are dispatch without checking origin filter. (This
|
|
1169
|
+
* includes bypassing `frame_system::Config::BaseCallFilter`).
|
|
1170
|
+
*
|
|
1171
|
+
* ## Complexity
|
|
1172
|
+
* - O(C) where C is the number of calls to be batched.
|
|
1173
|
+
**/
|
|
1174
|
+
forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
|
|
1175
|
+
/**
|
|
1176
|
+
* Dispatch a function call with a specified weight.
|
|
1177
|
+
*
|
|
1178
|
+
* This function does not check the weight of the call, and instead allows the
|
|
1179
|
+
* Root origin to specify the weight of the call.
|
|
1180
|
+
*
|
|
1181
|
+
* The dispatch origin for this call must be _Root_.
|
|
1182
|
+
**/
|
|
1183
|
+
withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
|
|
1184
|
+
refTime?: any;
|
|
1185
|
+
proofSize?: any;
|
|
1186
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
|
|
1187
|
+
};
|
|
1092
1188
|
vaults: {
|
|
1093
1189
|
/**
|
|
1094
1190
|
* Stop offering additional bonds from this vault. Will not affect existing bond.
|