@dedot/chaintypes 0.131.0 → 0.133.0
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/aleph/index.d.ts +2 -0
- package/aleph/view-functions.d.ts +5 -0
- package/astar/index.d.ts +2 -0
- package/astar/view-functions.d.ts +5 -0
- package/basilisk/index.d.ts +2 -0
- package/basilisk/view-functions.d.ts +5 -0
- package/hydration/index.d.ts +2 -0
- package/hydration/view-functions.d.ts +5 -0
- package/kusama/index.d.ts +2 -0
- package/kusama/view-functions.d.ts +5 -0
- package/kusama-asset-hub/index.d.ts +2 -0
- package/kusama-asset-hub/view-functions.d.ts +5 -0
- package/kusama-people/index.d.ts +2 -0
- package/kusama-people/view-functions.d.ts +5 -0
- package/moonbeam/index.d.ts +2 -0
- package/moonbeam/view-functions.d.ts +5 -0
- package/package.json +3 -3
- package/paseo/index.d.ts +2 -0
- package/paseo/view-functions.d.ts +5 -0
- package/paseo-asset-hub/index.d.ts +2 -0
- package/paseo-asset-hub/view-functions.d.ts +5 -0
- package/paseo-hydration/consts.d.ts +49 -133
- package/paseo-hydration/errors.d.ts +209 -212
- package/paseo-hydration/events.d.ts +141 -158
- package/paseo-hydration/index.d.ts +3 -1
- package/paseo-hydration/query.d.ts +101 -143
- package/paseo-hydration/runtime.d.ts +25 -0
- package/paseo-hydration/tx.d.ts +596 -682
- package/paseo-hydration/types.d.ts +945 -683
- package/paseo-hydration/view-functions.d.ts +5 -0
- package/paseo-people/index.d.ts +2 -0
- package/paseo-people/view-functions.d.ts +5 -0
- package/polkadot/index.d.ts +2 -0
- package/polkadot/view-functions.d.ts +5 -0
- package/polkadot-asset-hub/index.d.ts +2 -0
- package/polkadot-asset-hub/view-functions.d.ts +5 -0
- package/polkadot-people/index.d.ts +2 -0
- package/polkadot-people/view-functions.d.ts +5 -0
- package/substrate/index.d.ts +2 -0
- package/substrate/runtime.d.ts +11 -11
- package/substrate/types.d.ts +8 -1
- package/substrate/view-functions.d.ts +5 -0
- package/vara/index.d.ts +2 -0
- package/vara/view-functions.d.ts +5 -0
- package/westend/errors.d.ts +2 -0
- package/westend/index.d.ts +2 -0
- package/westend/query.d.ts +2 -0
- package/westend/tx.d.ts +12 -0
- package/westend/types.d.ts +11 -11
- package/westend/view-functions.d.ts +84 -0
- package/westend-asset-hub/errors.d.ts +2 -0
- package/westend-asset-hub/index.d.ts +2 -0
- package/westend-asset-hub/query.d.ts +2 -0
- package/westend-asset-hub/tx.d.ts +8 -0
- package/westend-asset-hub/types.d.ts +42 -44
- package/westend-asset-hub/view-functions.d.ts +82 -0
- package/westend-people/index.d.ts +2 -0
- package/westend-people/view-functions.d.ts +5 -0
|
@@ -62,10 +62,7 @@ export type HydradxRuntimeRuntimeEvent =
|
|
|
62
62
|
| { pallet: 'Preimage'; palletEvent: PalletPreimageEvent }
|
|
63
63
|
| { pallet: 'Identity'; palletEvent: PalletIdentityEvent }
|
|
64
64
|
| { pallet: 'Democracy'; palletEvent: PalletDemocracyEvent }
|
|
65
|
-
| { pallet: 'Elections'; palletEvent: PalletElectionsPhragmenEvent }
|
|
66
|
-
| { pallet: 'Council'; palletEvent: PalletCollectiveEvent }
|
|
67
65
|
| { pallet: 'TechnicalCommittee'; palletEvent: PalletCollectiveEvent }
|
|
68
|
-
| { pallet: 'Tips'; palletEvent: PalletTipsEvent }
|
|
69
66
|
| { pallet: 'Proxy'; palletEvent: PalletProxyEvent }
|
|
70
67
|
| { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
|
|
71
68
|
| { pallet: 'Uniques'; palletEvent: PalletUniquesEvent }
|
|
@@ -94,6 +91,7 @@ export type HydradxRuntimeRuntimeEvent =
|
|
|
94
91
|
| { pallet: 'Xyk'; palletEvent: PalletXykEvent }
|
|
95
92
|
| { pallet: 'Referrals'; palletEvent: PalletReferralsEvent }
|
|
96
93
|
| { pallet: 'Liquidation'; palletEvent: PalletLiquidationEvent }
|
|
94
|
+
| { pallet: 'Hsm'; palletEvent: PalletHsmEvent }
|
|
97
95
|
| { pallet: 'Tokens'; palletEvent: OrmlTokensModuleEvent }
|
|
98
96
|
| { pallet: 'Currencies'; palletEvent: PalletCurrenciesModuleEvent }
|
|
99
97
|
| { pallet: 'Vesting'; palletEvent: OrmlVestingModuleEvent }
|
|
@@ -620,48 +618,6 @@ export type PalletDemocracyMetadataOwner =
|
|
|
620
618
|
| { type: 'Proposal'; value: number }
|
|
621
619
|
| { type: 'Referendum'; value: number };
|
|
622
620
|
|
|
623
|
-
/**
|
|
624
|
-
* The `Event` enum of this pallet
|
|
625
|
-
**/
|
|
626
|
-
export type PalletElectionsPhragmenEvent =
|
|
627
|
-
/**
|
|
628
|
-
* A new term with new_members. This indicates that enough candidates existed to run
|
|
629
|
-
* the election, not that enough have has been elected. The inner value must be examined
|
|
630
|
-
* for this purpose. A `NewTerm(\[\])` indicates that some candidates got their bond
|
|
631
|
-
* slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to
|
|
632
|
-
* begin with.
|
|
633
|
-
**/
|
|
634
|
-
| { name: 'NewTerm'; data: { newMembers: Array<[AccountId32, bigint]> } }
|
|
635
|
-
/**
|
|
636
|
-
* No (or not enough) candidates existed for this round. This is different from
|
|
637
|
-
* `NewTerm(\[\])`. See the description of `NewTerm`.
|
|
638
|
-
**/
|
|
639
|
-
| { name: 'EmptyTerm' }
|
|
640
|
-
/**
|
|
641
|
-
* Internal error happened while trying to perform election.
|
|
642
|
-
**/
|
|
643
|
-
| { name: 'ElectionError' }
|
|
644
|
-
/**
|
|
645
|
-
* A member has been removed. This should always be followed by either `NewTerm` or
|
|
646
|
-
* `EmptyTerm`.
|
|
647
|
-
**/
|
|
648
|
-
| { name: 'MemberKicked'; data: { member: AccountId32 } }
|
|
649
|
-
/**
|
|
650
|
-
* Someone has renounced their candidacy.
|
|
651
|
-
**/
|
|
652
|
-
| { name: 'Renounced'; data: { candidate: AccountId32 } }
|
|
653
|
-
/**
|
|
654
|
-
* A candidate was slashed by amount due to failing to obtain a seat as member or
|
|
655
|
-
* runner-up.
|
|
656
|
-
*
|
|
657
|
-
* Note that old members and runners-up are also candidates.
|
|
658
|
-
**/
|
|
659
|
-
| { name: 'CandidateSlashed'; data: { candidate: AccountId32; amount: bigint } }
|
|
660
|
-
/**
|
|
661
|
-
* A seat holder was slashed by amount by being forcefully removed from the set.
|
|
662
|
-
**/
|
|
663
|
-
| { name: 'SeatHolderSlashed'; data: { seatHolder: AccountId32; amount: bigint } };
|
|
664
|
-
|
|
665
621
|
/**
|
|
666
622
|
* The `Event` enum of this pallet
|
|
667
623
|
**/
|
|
@@ -697,31 +653,6 @@ export type PalletCollectiveEvent =
|
|
|
697
653
|
**/
|
|
698
654
|
| { name: 'Closed'; data: { proposalHash: H256; yes: number; no: number } };
|
|
699
655
|
|
|
700
|
-
/**
|
|
701
|
-
* The `Event` enum of this pallet
|
|
702
|
-
**/
|
|
703
|
-
export type PalletTipsEvent =
|
|
704
|
-
/**
|
|
705
|
-
* A new tip suggestion has been opened.
|
|
706
|
-
**/
|
|
707
|
-
| { name: 'NewTip'; data: { tipHash: H256 } }
|
|
708
|
-
/**
|
|
709
|
-
* A tip suggestion has reached threshold and is closing.
|
|
710
|
-
**/
|
|
711
|
-
| { name: 'TipClosing'; data: { tipHash: H256 } }
|
|
712
|
-
/**
|
|
713
|
-
* A tip suggestion has been closed.
|
|
714
|
-
**/
|
|
715
|
-
| { name: 'TipClosed'; data: { tipHash: H256; who: AccountId32; payout: bigint } }
|
|
716
|
-
/**
|
|
717
|
-
* A tip suggestion has been retracted.
|
|
718
|
-
**/
|
|
719
|
-
| { name: 'TipRetracted'; data: { tipHash: H256 } }
|
|
720
|
-
/**
|
|
721
|
-
* A tip suggestion has been slashed.
|
|
722
|
-
**/
|
|
723
|
-
| { name: 'TipSlashed'; data: { tipHash: H256; finder: AccountId32; deposit: bigint } };
|
|
724
|
-
|
|
725
656
|
/**
|
|
726
657
|
* The `Event` enum of this pallet
|
|
727
658
|
**/
|
|
@@ -1327,10 +1258,7 @@ export type HydradxRuntimeRuntimeCall =
|
|
|
1327
1258
|
| { pallet: 'Preimage'; palletCall: PalletPreimageCall }
|
|
1328
1259
|
| { pallet: 'Identity'; palletCall: PalletIdentityCall }
|
|
1329
1260
|
| { pallet: 'Democracy'; palletCall: PalletDemocracyCall }
|
|
1330
|
-
| { pallet: 'Elections'; palletCall: PalletElectionsPhragmenCall }
|
|
1331
|
-
| { pallet: 'Council'; palletCall: PalletCollectiveCall }
|
|
1332
1261
|
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCall }
|
|
1333
|
-
| { pallet: 'Tips'; palletCall: PalletTipsCall }
|
|
1334
1262
|
| { pallet: 'Proxy'; palletCall: PalletProxyCall }
|
|
1335
1263
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCall }
|
|
1336
1264
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCall }
|
|
@@ -1359,6 +1287,7 @@ export type HydradxRuntimeRuntimeCall =
|
|
|
1359
1287
|
| { pallet: 'Xyk'; palletCall: PalletXykCall }
|
|
1360
1288
|
| { pallet: 'Referrals'; palletCall: PalletReferralsCall }
|
|
1361
1289
|
| { pallet: 'Liquidation'; palletCall: PalletLiquidationCall }
|
|
1290
|
+
| { pallet: 'Hsm'; palletCall: PalletHsmCall }
|
|
1362
1291
|
| { pallet: 'Tokens'; palletCall: OrmlTokensModuleCall }
|
|
1363
1292
|
| { pallet: 'Currencies'; palletCall: PalletCurrenciesModuleCall }
|
|
1364
1293
|
| { pallet: 'Vesting'; palletCall: OrmlVestingModuleCall }
|
|
@@ -1392,10 +1321,7 @@ export type HydradxRuntimeRuntimeCallLike =
|
|
|
1392
1321
|
| { pallet: 'Preimage'; palletCall: PalletPreimageCallLike }
|
|
1393
1322
|
| { pallet: 'Identity'; palletCall: PalletIdentityCallLike }
|
|
1394
1323
|
| { pallet: 'Democracy'; palletCall: PalletDemocracyCallLike }
|
|
1395
|
-
| { pallet: 'Elections'; palletCall: PalletElectionsPhragmenCallLike }
|
|
1396
|
-
| { pallet: 'Council'; palletCall: PalletCollectiveCallLike }
|
|
1397
1324
|
| { pallet: 'TechnicalCommittee'; palletCall: PalletCollectiveCallLike }
|
|
1398
|
-
| { pallet: 'Tips'; palletCall: PalletTipsCallLike }
|
|
1399
1325
|
| { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
|
|
1400
1326
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
|
|
1401
1327
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCallLike }
|
|
@@ -1424,6 +1350,7 @@ export type HydradxRuntimeRuntimeCallLike =
|
|
|
1424
1350
|
| { pallet: 'Xyk'; palletCall: PalletXykCallLike }
|
|
1425
1351
|
| { pallet: 'Referrals'; palletCall: PalletReferralsCallLike }
|
|
1426
1352
|
| { pallet: 'Liquidation'; palletCall: PalletLiquidationCallLike }
|
|
1353
|
+
| { pallet: 'Hsm'; palletCall: PalletHsmCallLike }
|
|
1427
1354
|
| { pallet: 'Tokens'; palletCall: OrmlTokensModuleCallLike }
|
|
1428
1355
|
| { pallet: 'Currencies'; palletCall: PalletCurrenciesModuleCallLike }
|
|
1429
1356
|
| { pallet: 'Vesting'; palletCall: OrmlVestingModuleCallLike }
|
|
@@ -2421,7 +2348,6 @@ export type PalletUtilityCallLike =
|
|
|
2421
2348
|
|
|
2422
2349
|
export type HydradxRuntimeOriginCaller =
|
|
2423
2350
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
2424
|
-
| { type: 'Council'; value: PalletCollectiveRawOrigin }
|
|
2425
2351
|
| { type: 'TechnicalCommittee'; value: PalletCollectiveRawOrigin }
|
|
2426
2352
|
| { type: 'Origins'; value: HydradxRuntimeGovernanceOriginsPalletCustomOriginsOrigin }
|
|
2427
2353
|
| { type: 'Ethereum'; value: PalletEthereumRawOrigin }
|
|
@@ -3683,222 +3609,6 @@ export type PalletDemocracyConviction =
|
|
|
3683
3609
|
| 'Locked5x'
|
|
3684
3610
|
| 'Locked6x';
|
|
3685
3611
|
|
|
3686
|
-
/**
|
|
3687
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3688
|
-
**/
|
|
3689
|
-
export type PalletElectionsPhragmenCall =
|
|
3690
|
-
/**
|
|
3691
|
-
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
3692
|
-
* set the initial votes, or update already existing votes.
|
|
3693
|
-
*
|
|
3694
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
3695
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
3696
|
-
*
|
|
3697
|
-
* The `votes` should:
|
|
3698
|
-
* - not be empty.
|
|
3699
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
3700
|
-
* runners-up are also automatically candidates for the next round.
|
|
3701
|
-
*
|
|
3702
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
3703
|
-
*
|
|
3704
|
-
* The dispatch origin of this call must be signed.
|
|
3705
|
-
*
|
|
3706
|
-
* ### Warning
|
|
3707
|
-
*
|
|
3708
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3709
|
-
* lock and keep some for further operations.
|
|
3710
|
-
**/
|
|
3711
|
-
| { name: 'Vote'; params: { votes: Array<AccountId32>; value: bigint } }
|
|
3712
|
-
/**
|
|
3713
|
-
* Remove `origin` as a voter.
|
|
3714
|
-
*
|
|
3715
|
-
* This removes the lock and returns the deposit.
|
|
3716
|
-
*
|
|
3717
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
3718
|
-
**/
|
|
3719
|
-
| { name: 'RemoveVoter' }
|
|
3720
|
-
/**
|
|
3721
|
-
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
3722
|
-
*
|
|
3723
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
3724
|
-
* or leave the system while their deposit is slashed.
|
|
3725
|
-
*
|
|
3726
|
-
* The dispatch origin of this call must be signed.
|
|
3727
|
-
*
|
|
3728
|
-
* ### Warning
|
|
3729
|
-
*
|
|
3730
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3731
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3732
|
-
*
|
|
3733
|
-
* The number of current candidates must be provided as witness data.
|
|
3734
|
-
* ## Complexity
|
|
3735
|
-
* O(C + log(C)) where C is candidate_count.
|
|
3736
|
-
**/
|
|
3737
|
-
| { name: 'SubmitCandidacy'; params: { candidateCount: number } }
|
|
3738
|
-
/**
|
|
3739
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
3740
|
-
* outcomes exist:
|
|
3741
|
-
*
|
|
3742
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
3743
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
3744
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
3745
|
-
* origin is removed as a runner-up.
|
|
3746
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
3747
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
3748
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
3749
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
3750
|
-
* next round.
|
|
3751
|
-
*
|
|
3752
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3753
|
-
* The type of renouncing must be provided as witness data.
|
|
3754
|
-
*
|
|
3755
|
-
* ## Complexity
|
|
3756
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3757
|
-
* - Renouncing::Member: O(1)
|
|
3758
|
-
* - Renouncing::RunnerUp: O(1)
|
|
3759
|
-
**/
|
|
3760
|
-
| { name: 'RenounceCandidacy'; params: { renouncing: PalletElectionsPhragmenRenouncing } }
|
|
3761
|
-
/**
|
|
3762
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
3763
|
-
* the outgoing member is slashed.
|
|
3764
|
-
*
|
|
3765
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
3766
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
3767
|
-
* started, else, nothing happens.
|
|
3768
|
-
*
|
|
3769
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
3770
|
-
* it is returned.
|
|
3771
|
-
*
|
|
3772
|
-
* The dispatch origin of this call must be root.
|
|
3773
|
-
*
|
|
3774
|
-
* Note that this does not affect the designated block number of the next election.
|
|
3775
|
-
*
|
|
3776
|
-
* ## Complexity
|
|
3777
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3778
|
-
**/
|
|
3779
|
-
| { name: 'RemoveMember'; params: { who: AccountId32; slashBond: boolean; rerunElection: boolean } }
|
|
3780
|
-
/**
|
|
3781
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
3782
|
-
* deposit of the removed voters are returned.
|
|
3783
|
-
*
|
|
3784
|
-
* This is an root function to be used only for cleaning the state.
|
|
3785
|
-
*
|
|
3786
|
-
* The dispatch origin of this call must be root.
|
|
3787
|
-
*
|
|
3788
|
-
* ## Complexity
|
|
3789
|
-
* - Check is_defunct_voter() details.
|
|
3790
|
-
**/
|
|
3791
|
-
| { name: 'CleanDefunctVoters'; params: { numVoters: number; numDefunct: number } };
|
|
3792
|
-
|
|
3793
|
-
export type PalletElectionsPhragmenCallLike =
|
|
3794
|
-
/**
|
|
3795
|
-
* Vote for a set of candidates for the upcoming round of election. This can be called to
|
|
3796
|
-
* set the initial votes, or update already existing votes.
|
|
3797
|
-
*
|
|
3798
|
-
* Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is
|
|
3799
|
-
* reserved. The deposit is based on the number of votes and can be updated over time.
|
|
3800
|
-
*
|
|
3801
|
-
* The `votes` should:
|
|
3802
|
-
* - not be empty.
|
|
3803
|
-
* - be less than the number of possible candidates. Note that all current members and
|
|
3804
|
-
* runners-up are also automatically candidates for the next round.
|
|
3805
|
-
*
|
|
3806
|
-
* If `value` is more than `who`'s free balance, then the maximum of the two is used.
|
|
3807
|
-
*
|
|
3808
|
-
* The dispatch origin of this call must be signed.
|
|
3809
|
-
*
|
|
3810
|
-
* ### Warning
|
|
3811
|
-
*
|
|
3812
|
-
* It is the responsibility of the caller to **NOT** place all of their balance into the
|
|
3813
|
-
* lock and keep some for further operations.
|
|
3814
|
-
**/
|
|
3815
|
-
| { name: 'Vote'; params: { votes: Array<AccountId32Like>; value: bigint } }
|
|
3816
|
-
/**
|
|
3817
|
-
* Remove `origin` as a voter.
|
|
3818
|
-
*
|
|
3819
|
-
* This removes the lock and returns the deposit.
|
|
3820
|
-
*
|
|
3821
|
-
* The dispatch origin of this call must be signed and be a voter.
|
|
3822
|
-
**/
|
|
3823
|
-
| { name: 'RemoveVoter' }
|
|
3824
|
-
/**
|
|
3825
|
-
* Submit oneself for candidacy. A fixed amount of deposit is recorded.
|
|
3826
|
-
*
|
|
3827
|
-
* All candidates are wiped at the end of the term. They either become a member/runner-up,
|
|
3828
|
-
* or leave the system while their deposit is slashed.
|
|
3829
|
-
*
|
|
3830
|
-
* The dispatch origin of this call must be signed.
|
|
3831
|
-
*
|
|
3832
|
-
* ### Warning
|
|
3833
|
-
*
|
|
3834
|
-
* Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]
|
|
3835
|
-
* to get their deposit back. Losing the spot in an election will always lead to a slash.
|
|
3836
|
-
*
|
|
3837
|
-
* The number of current candidates must be provided as witness data.
|
|
3838
|
-
* ## Complexity
|
|
3839
|
-
* O(C + log(C)) where C is candidate_count.
|
|
3840
|
-
**/
|
|
3841
|
-
| { name: 'SubmitCandidacy'; params: { candidateCount: number } }
|
|
3842
|
-
/**
|
|
3843
|
-
* Renounce one's intention to be a candidate for the next election round. 3 potential
|
|
3844
|
-
* outcomes exist:
|
|
3845
|
-
*
|
|
3846
|
-
* - `origin` is a candidate and not elected in any set. In this case, the deposit is
|
|
3847
|
-
* unreserved, returned and origin is removed as a candidate.
|
|
3848
|
-
* - `origin` is a current runner-up. In this case, the deposit is unreserved, returned and
|
|
3849
|
-
* origin is removed as a runner-up.
|
|
3850
|
-
* - `origin` is a current member. In this case, the deposit is unreserved and origin is
|
|
3851
|
-
* removed as a member, consequently not being a candidate for the next round anymore.
|
|
3852
|
-
* Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they
|
|
3853
|
-
* are immediately used. If the prime is renouncing, then no prime will exist until the
|
|
3854
|
-
* next round.
|
|
3855
|
-
*
|
|
3856
|
-
* The dispatch origin of this call must be signed, and have one of the above roles.
|
|
3857
|
-
* The type of renouncing must be provided as witness data.
|
|
3858
|
-
*
|
|
3859
|
-
* ## Complexity
|
|
3860
|
-
* - Renouncing::Candidate(count): O(count + log(count))
|
|
3861
|
-
* - Renouncing::Member: O(1)
|
|
3862
|
-
* - Renouncing::RunnerUp: O(1)
|
|
3863
|
-
**/
|
|
3864
|
-
| { name: 'RenounceCandidacy'; params: { renouncing: PalletElectionsPhragmenRenouncing } }
|
|
3865
|
-
/**
|
|
3866
|
-
* Remove a particular member from the set. This is effective immediately and the bond of
|
|
3867
|
-
* the outgoing member is slashed.
|
|
3868
|
-
*
|
|
3869
|
-
* If a runner-up is available, then the best runner-up will be removed and replaces the
|
|
3870
|
-
* outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is
|
|
3871
|
-
* started, else, nothing happens.
|
|
3872
|
-
*
|
|
3873
|
-
* If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,
|
|
3874
|
-
* it is returned.
|
|
3875
|
-
*
|
|
3876
|
-
* The dispatch origin of this call must be root.
|
|
3877
|
-
*
|
|
3878
|
-
* Note that this does not affect the designated block number of the next election.
|
|
3879
|
-
*
|
|
3880
|
-
* ## Complexity
|
|
3881
|
-
* - Check details of remove_and_replace_member() and do_phragmen().
|
|
3882
|
-
**/
|
|
3883
|
-
| { name: 'RemoveMember'; params: { who: AccountId32Like; slashBond: boolean; rerunElection: boolean } }
|
|
3884
|
-
/**
|
|
3885
|
-
* Clean all voters who are defunct (i.e. they do not serve any purpose at all). The
|
|
3886
|
-
* deposit of the removed voters are returned.
|
|
3887
|
-
*
|
|
3888
|
-
* This is an root function to be used only for cleaning the state.
|
|
3889
|
-
*
|
|
3890
|
-
* The dispatch origin of this call must be root.
|
|
3891
|
-
*
|
|
3892
|
-
* ## Complexity
|
|
3893
|
-
* - Check is_defunct_voter() details.
|
|
3894
|
-
**/
|
|
3895
|
-
| { name: 'CleanDefunctVoters'; params: { numVoters: number; numDefunct: number } };
|
|
3896
|
-
|
|
3897
|
-
export type PalletElectionsPhragmenRenouncing =
|
|
3898
|
-
| { type: 'Member' }
|
|
3899
|
-
| { type: 'RunnerUp' }
|
|
3900
|
-
| { type: 'Candidate'; value: number };
|
|
3901
|
-
|
|
3902
3612
|
/**
|
|
3903
3613
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
3904
3614
|
**/
|
|
@@ -4134,239 +3844,6 @@ export type PalletCollectiveCallLike =
|
|
|
4134
3844
|
params: { proposalHash: H256; index: number; proposalWeightBound: SpWeightsWeightV2Weight; lengthBound: number };
|
|
4135
3845
|
};
|
|
4136
3846
|
|
|
4137
|
-
/**
|
|
4138
|
-
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4139
|
-
**/
|
|
4140
|
-
export type PalletTipsCall =
|
|
4141
|
-
/**
|
|
4142
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
4143
|
-
*
|
|
4144
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4145
|
-
*
|
|
4146
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
4147
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
4148
|
-
*
|
|
4149
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4150
|
-
* a UTF-8-encoded URL.
|
|
4151
|
-
* - `who`: The account which should be credited for the tip.
|
|
4152
|
-
*
|
|
4153
|
-
* Emits `NewTip` if successful.
|
|
4154
|
-
*
|
|
4155
|
-
* ## Complexity
|
|
4156
|
-
* - `O(R)` where `R` length of `reason`.
|
|
4157
|
-
* - encoding and hashing of 'reason'
|
|
4158
|
-
**/
|
|
4159
|
-
| { name: 'ReportAwesome'; params: { reason: Bytes; who: AccountId32 } }
|
|
4160
|
-
/**
|
|
4161
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
4162
|
-
*
|
|
4163
|
-
* If successful, the original deposit will be unreserved.
|
|
4164
|
-
*
|
|
4165
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
4166
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
4167
|
-
* through `tip_new`).
|
|
4168
|
-
*
|
|
4169
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4170
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4171
|
-
*
|
|
4172
|
-
* Emits `TipRetracted` if successful.
|
|
4173
|
-
*
|
|
4174
|
-
* ## Complexity
|
|
4175
|
-
* - `O(1)`
|
|
4176
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
4177
|
-
**/
|
|
4178
|
-
| { name: 'RetractTip'; params: { hash: H256 } }
|
|
4179
|
-
/**
|
|
4180
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
4181
|
-
*
|
|
4182
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4183
|
-
* member of the `Tippers` set.
|
|
4184
|
-
*
|
|
4185
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4186
|
-
* a UTF-8-encoded URL.
|
|
4187
|
-
* - `who`: The account which should be credited for the tip.
|
|
4188
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4189
|
-
* value of active tippers will be given to the `who`.
|
|
4190
|
-
*
|
|
4191
|
-
* Emits `NewTip` if successful.
|
|
4192
|
-
*
|
|
4193
|
-
* ## Complexity
|
|
4194
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
4195
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
4196
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
4197
|
-
* `T::Tippers`.
|
|
4198
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
4199
|
-
**/
|
|
4200
|
-
| { name: 'TipNew'; params: { reason: Bytes; who: AccountId32; tipValue: bigint } }
|
|
4201
|
-
/**
|
|
4202
|
-
* Declare a tip value for an already-open tip.
|
|
4203
|
-
*
|
|
4204
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4205
|
-
* member of the `Tippers` set.
|
|
4206
|
-
*
|
|
4207
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4208
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
4209
|
-
* account ID.
|
|
4210
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4211
|
-
* value of active tippers will be given to the `who`.
|
|
4212
|
-
*
|
|
4213
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
4214
|
-
* has started.
|
|
4215
|
-
*
|
|
4216
|
-
* ## Complexity
|
|
4217
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
4218
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
4219
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4220
|
-
*
|
|
4221
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
4222
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
4223
|
-
**/
|
|
4224
|
-
| { name: 'Tip'; params: { hash: H256; tipValue: bigint } }
|
|
4225
|
-
/**
|
|
4226
|
-
* Close and payout a tip.
|
|
4227
|
-
*
|
|
4228
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4229
|
-
*
|
|
4230
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
4231
|
-
*
|
|
4232
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4233
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4234
|
-
*
|
|
4235
|
-
* ## Complexity
|
|
4236
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
4237
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
4238
|
-
* the implementation of `T::Tippers`.
|
|
4239
|
-
**/
|
|
4240
|
-
| { name: 'CloseTip'; params: { hash: H256 } }
|
|
4241
|
-
/**
|
|
4242
|
-
* Remove and slash an already-open tip.
|
|
4243
|
-
*
|
|
4244
|
-
* May only be called from `T::RejectOrigin`.
|
|
4245
|
-
*
|
|
4246
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
4247
|
-
*
|
|
4248
|
-
* Emits `TipSlashed` if successful.
|
|
4249
|
-
*
|
|
4250
|
-
* ## Complexity
|
|
4251
|
-
* - O(1).
|
|
4252
|
-
**/
|
|
4253
|
-
| { name: 'SlashTip'; params: { hash: H256 } };
|
|
4254
|
-
|
|
4255
|
-
export type PalletTipsCallLike =
|
|
4256
|
-
/**
|
|
4257
|
-
* Report something `reason` that deserves a tip and claim any eventual the finder's fee.
|
|
4258
|
-
*
|
|
4259
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4260
|
-
*
|
|
4261
|
-
* Payment: `TipReportDepositBase` will be reserved from the origin account, as well as
|
|
4262
|
-
* `DataDepositPerByte` for each byte in `reason`.
|
|
4263
|
-
*
|
|
4264
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4265
|
-
* a UTF-8-encoded URL.
|
|
4266
|
-
* - `who`: The account which should be credited for the tip.
|
|
4267
|
-
*
|
|
4268
|
-
* Emits `NewTip` if successful.
|
|
4269
|
-
*
|
|
4270
|
-
* ## Complexity
|
|
4271
|
-
* - `O(R)` where `R` length of `reason`.
|
|
4272
|
-
* - encoding and hashing of 'reason'
|
|
4273
|
-
**/
|
|
4274
|
-
| { name: 'ReportAwesome'; params: { reason: BytesLike; who: AccountId32Like } }
|
|
4275
|
-
/**
|
|
4276
|
-
* Retract a prior tip-report from `report_awesome`, and cancel the process of tipping.
|
|
4277
|
-
*
|
|
4278
|
-
* If successful, the original deposit will be unreserved.
|
|
4279
|
-
*
|
|
4280
|
-
* The dispatch origin for this call must be _Signed_ and the tip identified by `hash`
|
|
4281
|
-
* must have been reported by the signing account through `report_awesome` (and not
|
|
4282
|
-
* through `tip_new`).
|
|
4283
|
-
*
|
|
4284
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4285
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4286
|
-
*
|
|
4287
|
-
* Emits `TipRetracted` if successful.
|
|
4288
|
-
*
|
|
4289
|
-
* ## Complexity
|
|
4290
|
-
* - `O(1)`
|
|
4291
|
-
* - Depends on the length of `T::Hash` which is fixed.
|
|
4292
|
-
**/
|
|
4293
|
-
| { name: 'RetractTip'; params: { hash: H256 } }
|
|
4294
|
-
/**
|
|
4295
|
-
* Give a tip for something new; no finder's fee will be taken.
|
|
4296
|
-
*
|
|
4297
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4298
|
-
* member of the `Tippers` set.
|
|
4299
|
-
*
|
|
4300
|
-
* - `reason`: The reason for, or the thing that deserves, the tip; generally this will be
|
|
4301
|
-
* a UTF-8-encoded URL.
|
|
4302
|
-
* - `who`: The account which should be credited for the tip.
|
|
4303
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4304
|
-
* value of active tippers will be given to the `who`.
|
|
4305
|
-
*
|
|
4306
|
-
* Emits `NewTip` if successful.
|
|
4307
|
-
*
|
|
4308
|
-
* ## Complexity
|
|
4309
|
-
* - `O(R + T)` where `R` length of `reason`, `T` is the number of tippers.
|
|
4310
|
-
* - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by
|
|
4311
|
-
* `ContainsLengthBound`. The actual cost depends on the implementation of
|
|
4312
|
-
* `T::Tippers`.
|
|
4313
|
-
* - `O(R)`: hashing and encoding of reason of length `R`
|
|
4314
|
-
**/
|
|
4315
|
-
| { name: 'TipNew'; params: { reason: BytesLike; who: AccountId32Like; tipValue: bigint } }
|
|
4316
|
-
/**
|
|
4317
|
-
* Declare a tip value for an already-open tip.
|
|
4318
|
-
*
|
|
4319
|
-
* The dispatch origin for this call must be _Signed_ and the signing account must be a
|
|
4320
|
-
* member of the `Tippers` set.
|
|
4321
|
-
*
|
|
4322
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4323
|
-
* as the hash of the tuple of the hash of the original tip `reason` and the beneficiary
|
|
4324
|
-
* account ID.
|
|
4325
|
-
* - `tip_value`: The amount of tip that the sender would like to give. The median tip
|
|
4326
|
-
* value of active tippers will be given to the `who`.
|
|
4327
|
-
*
|
|
4328
|
-
* Emits `TipClosing` if the threshold of tippers has been reached and the countdown period
|
|
4329
|
-
* has started.
|
|
4330
|
-
*
|
|
4331
|
-
* ## Complexity
|
|
4332
|
-
* - `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`, insert
|
|
4333
|
-
* tip and check closing, `T` is charged as upper bound given by `ContainsLengthBound`.
|
|
4334
|
-
* The actual cost depends on the implementation of `T::Tippers`.
|
|
4335
|
-
*
|
|
4336
|
-
* Actually weight could be lower as it depends on how many tips are in `OpenTip` but it
|
|
4337
|
-
* is weighted as if almost full i.e of length `T-1`.
|
|
4338
|
-
**/
|
|
4339
|
-
| { name: 'Tip'; params: { hash: H256; tipValue: bigint } }
|
|
4340
|
-
/**
|
|
4341
|
-
* Close and payout a tip.
|
|
4342
|
-
*
|
|
4343
|
-
* The dispatch origin for this call must be _Signed_.
|
|
4344
|
-
*
|
|
4345
|
-
* The tip identified by `hash` must have finished its countdown period.
|
|
4346
|
-
*
|
|
4347
|
-
* - `hash`: The identity of the open tip for which a tip value is declared. This is formed
|
|
4348
|
-
* as the hash of the tuple of the original tip `reason` and the beneficiary account ID.
|
|
4349
|
-
*
|
|
4350
|
-
* ## Complexity
|
|
4351
|
-
* - : `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length `T`. `T`
|
|
4352
|
-
* is charged as upper bound given by `ContainsLengthBound`. The actual cost depends on
|
|
4353
|
-
* the implementation of `T::Tippers`.
|
|
4354
|
-
**/
|
|
4355
|
-
| { name: 'CloseTip'; params: { hash: H256 } }
|
|
4356
|
-
/**
|
|
4357
|
-
* Remove and slash an already-open tip.
|
|
4358
|
-
*
|
|
4359
|
-
* May only be called from `T::RejectOrigin`.
|
|
4360
|
-
*
|
|
4361
|
-
* As a result, the finder is slashed and the deposits are lost.
|
|
4362
|
-
*
|
|
4363
|
-
* Emits `TipSlashed` if successful.
|
|
4364
|
-
*
|
|
4365
|
-
* ## Complexity
|
|
4366
|
-
* - O(1).
|
|
4367
|
-
**/
|
|
4368
|
-
| { name: 'SlashTip'; params: { hash: H256 } };
|
|
4369
|
-
|
|
4370
3847
|
/**
|
|
4371
3848
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
4372
3849
|
**/
|
|
@@ -8240,7 +7717,50 @@ export type PalletCircuitBreakerCall =
|
|
|
8240
7717
|
* Emits `RemoveLiquidityLimitChanged` event when successful.
|
|
8241
7718
|
*
|
|
8242
7719
|
**/
|
|
8243
|
-
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7720
|
+
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7721
|
+
/**
|
|
7722
|
+
* Lockdown an asset for minting
|
|
7723
|
+
*
|
|
7724
|
+
* Can be called only by an authority origin
|
|
7725
|
+
*
|
|
7726
|
+
* Parameters:
|
|
7727
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7728
|
+
* - `asset_id`: The identifier of an asset
|
|
7729
|
+
* - `until`: The block number until which the asset is locked
|
|
7730
|
+
*
|
|
7731
|
+
* /// Emits `AssetLockdowned` event when successful.
|
|
7732
|
+
**/
|
|
7733
|
+
| { name: 'LockdownAsset'; params: { assetId: number; until: number } }
|
|
7734
|
+
/**
|
|
7735
|
+
* Remove asset lockdown regardless of the state.
|
|
7736
|
+
*
|
|
7737
|
+
* Can be called only by an authority origin
|
|
7738
|
+
*
|
|
7739
|
+
* Parameters:
|
|
7740
|
+
*
|
|
7741
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7742
|
+
* - `asset_id`: The identifier of an asset
|
|
7743
|
+
*
|
|
7744
|
+
* Emits `AssetLockdownRemoved` event when successful.
|
|
7745
|
+
**/
|
|
7746
|
+
| { name: 'ForceLiftLockdown'; params: { assetId: number } }
|
|
7747
|
+
/**
|
|
7748
|
+
* Release deposit of an asset.
|
|
7749
|
+
*
|
|
7750
|
+
* It releases all the pallet reserved balance of the asset for the given account
|
|
7751
|
+
*
|
|
7752
|
+
* Can be called by any origin, but only if the asset is not in active lockdown.
|
|
7753
|
+
*
|
|
7754
|
+
* The caller does not pay for this call if successful.
|
|
7755
|
+
*
|
|
7756
|
+
* Parameters:
|
|
7757
|
+
* - `origin`: The dispatch origin for this call. Can be signed or root.
|
|
7758
|
+
* - `who`: The account that is saving the deposit.
|
|
7759
|
+
* - `asset_id`: The identifier of the asset.
|
|
7760
|
+
*
|
|
7761
|
+
* Emits `DepositReleased` event when successful.
|
|
7762
|
+
**/
|
|
7763
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32; assetId: number } };
|
|
8244
7764
|
|
|
8245
7765
|
export type PalletCircuitBreakerCallLike =
|
|
8246
7766
|
/**
|
|
@@ -8278,7 +7798,50 @@ export type PalletCircuitBreakerCallLike =
|
|
|
8278
7798
|
* Emits `RemoveLiquidityLimitChanged` event when successful.
|
|
8279
7799
|
*
|
|
8280
7800
|
**/
|
|
8281
|
-
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7801
|
+
| { name: 'SetRemoveLiquidityLimit'; params: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
7802
|
+
/**
|
|
7803
|
+
* Lockdown an asset for minting
|
|
7804
|
+
*
|
|
7805
|
+
* Can be called only by an authority origin
|
|
7806
|
+
*
|
|
7807
|
+
* Parameters:
|
|
7808
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7809
|
+
* - `asset_id`: The identifier of an asset
|
|
7810
|
+
* - `until`: The block number until which the asset is locked
|
|
7811
|
+
*
|
|
7812
|
+
* /// Emits `AssetLockdowned` event when successful.
|
|
7813
|
+
**/
|
|
7814
|
+
| { name: 'LockdownAsset'; params: { assetId: number; until: number } }
|
|
7815
|
+
/**
|
|
7816
|
+
* Remove asset lockdown regardless of the state.
|
|
7817
|
+
*
|
|
7818
|
+
* Can be called only by an authority origin
|
|
7819
|
+
*
|
|
7820
|
+
* Parameters:
|
|
7821
|
+
*
|
|
7822
|
+
* - `origin`: The dispatch origin for this call. Must be `AuthorityOrigin`
|
|
7823
|
+
* - `asset_id`: The identifier of an asset
|
|
7824
|
+
*
|
|
7825
|
+
* Emits `AssetLockdownRemoved` event when successful.
|
|
7826
|
+
**/
|
|
7827
|
+
| { name: 'ForceLiftLockdown'; params: { assetId: number } }
|
|
7828
|
+
/**
|
|
7829
|
+
* Release deposit of an asset.
|
|
7830
|
+
*
|
|
7831
|
+
* It releases all the pallet reserved balance of the asset for the given account
|
|
7832
|
+
*
|
|
7833
|
+
* Can be called by any origin, but only if the asset is not in active lockdown.
|
|
7834
|
+
*
|
|
7835
|
+
* The caller does not pay for this call if successful.
|
|
7836
|
+
*
|
|
7837
|
+
* Parameters:
|
|
7838
|
+
* - `origin`: The dispatch origin for this call. Can be signed or root.
|
|
7839
|
+
* - `who`: The account that is saving the deposit.
|
|
7840
|
+
* - `asset_id`: The identifier of the asset.
|
|
7841
|
+
*
|
|
7842
|
+
* Emits `DepositReleased` event when successful.
|
|
7843
|
+
**/
|
|
7844
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32Like; assetId: number } };
|
|
8282
7845
|
|
|
8283
7846
|
/**
|
|
8284
7847
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8522,16 +8085,75 @@ export type HydradxTraitsRouterPoolType =
|
|
|
8522
8085
|
| { type: 'Lbp' }
|
|
8523
8086
|
| { type: 'Stableswap'; value: number }
|
|
8524
8087
|
| { type: 'Omnipool' }
|
|
8525
|
-
| { type: 'Aave' }
|
|
8088
|
+
| { type: 'Aave' }
|
|
8089
|
+
| { type: 'Hsm' };
|
|
8526
8090
|
|
|
8527
8091
|
export type HydradxTraitsRouterAssetPair = { assetIn: number; assetOut: number };
|
|
8528
8092
|
|
|
8529
8093
|
/**
|
|
8530
8094
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
8531
8095
|
**/
|
|
8532
|
-
export type PalletDynamicFeesCall =
|
|
8096
|
+
export type PalletDynamicFeesCall =
|
|
8097
|
+
/**
|
|
8098
|
+
* Set fee configuration for an asset
|
|
8099
|
+
*
|
|
8100
|
+
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8101
|
+
*
|
|
8102
|
+
* # Arguments
|
|
8103
|
+
* * `origin` - Root origin required
|
|
8104
|
+
* * `asset_id` - The asset ID to configure
|
|
8105
|
+
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8106
|
+
**/
|
|
8107
|
+
| { name: 'SetAssetFee'; params: { assetId: number; config: PalletDynamicFeesAssetFeeConfig } }
|
|
8108
|
+
/**
|
|
8109
|
+
* Remove fee configuration for an asset (will use default parameters)
|
|
8110
|
+
*
|
|
8111
|
+
* This function removes any custom fee configuration for the specified asset.
|
|
8112
|
+
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8113
|
+
*
|
|
8114
|
+
* # Arguments
|
|
8115
|
+
* * `origin` - Root origin required
|
|
8116
|
+
* * `asset_id` - The asset ID to remove configuration for
|
|
8117
|
+
**/
|
|
8118
|
+
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
8533
8119
|
|
|
8534
|
-
export type PalletDynamicFeesCallLike =
|
|
8120
|
+
export type PalletDynamicFeesCallLike =
|
|
8121
|
+
/**
|
|
8122
|
+
* Set fee configuration for an asset
|
|
8123
|
+
*
|
|
8124
|
+
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8125
|
+
*
|
|
8126
|
+
* # Arguments
|
|
8127
|
+
* * `origin` - Root origin required
|
|
8128
|
+
* * `asset_id` - The asset ID to configure
|
|
8129
|
+
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8130
|
+
**/
|
|
8131
|
+
| { name: 'SetAssetFee'; params: { assetId: number; config: PalletDynamicFeesAssetFeeConfig } }
|
|
8132
|
+
/**
|
|
8133
|
+
* Remove fee configuration for an asset (will use default parameters)
|
|
8134
|
+
*
|
|
8135
|
+
* This function removes any custom fee configuration for the specified asset.
|
|
8136
|
+
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8137
|
+
*
|
|
8138
|
+
* # Arguments
|
|
8139
|
+
* * `origin` - Root origin required
|
|
8140
|
+
* * `asset_id` - The asset ID to remove configuration for
|
|
8141
|
+
**/
|
|
8142
|
+
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
8143
|
+
|
|
8144
|
+
export type PalletDynamicFeesAssetFeeConfig =
|
|
8145
|
+
| { type: 'Fixed'; value: { assetFee: Permill; protocolFee: Permill } }
|
|
8146
|
+
| {
|
|
8147
|
+
type: 'Dynamic';
|
|
8148
|
+
value: { assetFeeParams: PalletDynamicFeesFeeParams; protocolFeeParams: PalletDynamicFeesFeeParams };
|
|
8149
|
+
};
|
|
8150
|
+
|
|
8151
|
+
export type PalletDynamicFeesFeeParams = {
|
|
8152
|
+
minFee: Permill;
|
|
8153
|
+
maxFee: Permill;
|
|
8154
|
+
decay: FixedU128;
|
|
8155
|
+
amplification: FixedU128;
|
|
8156
|
+
};
|
|
8535
8157
|
|
|
8536
8158
|
/**
|
|
8537
8159
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8981,7 +8603,48 @@ export type PalletStableswapCall =
|
|
|
8981
8603
|
| {
|
|
8982
8604
|
name: 'AddAssetsLiquidity';
|
|
8983
8605
|
params: { poolId: number; assets: Array<HydradxTraitsStableswapAssetAmount>; minShares: bigint };
|
|
8984
|
-
}
|
|
8606
|
+
}
|
|
8607
|
+
/**
|
|
8608
|
+
* Update the peg source for a specific asset in a pool.
|
|
8609
|
+
*
|
|
8610
|
+
* This function allows updating the peg source for an asset within a pool.
|
|
8611
|
+
* The pool must exist and have pegs configured. The asset must be part of the pool.
|
|
8612
|
+
* The current price is always preserved when updating the peg source.
|
|
8613
|
+
*
|
|
8614
|
+
* Parameters:
|
|
8615
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8616
|
+
* - `pool_id`: The ID of the pool containing the asset.
|
|
8617
|
+
* - `asset_id`: The ID of the asset whose peg source is to be updated.
|
|
8618
|
+
* - `peg_source`: The new peg source for the asset.
|
|
8619
|
+
*
|
|
8620
|
+
* Emits `PoolPegSourceUpdated` event when successful.
|
|
8621
|
+
*
|
|
8622
|
+
* # Errors
|
|
8623
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8624
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8625
|
+
* - `AssetNotInPool`: If the specified asset is not part of the pool.
|
|
8626
|
+
*
|
|
8627
|
+
**/
|
|
8628
|
+
| { name: 'UpdateAssetPegSource'; params: { poolId: number; assetId: number; pegSource: PalletStableswapPegSource } }
|
|
8629
|
+
/**
|
|
8630
|
+
* Update the maximum peg update percentage for a pool.
|
|
8631
|
+
*
|
|
8632
|
+
* This function allows updating the maximum percentage by which peg values
|
|
8633
|
+
* can change in a pool with pegs configured.
|
|
8634
|
+
*
|
|
8635
|
+
* Parameters:
|
|
8636
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8637
|
+
* - `pool_id`: The ID of the pool to update.
|
|
8638
|
+
* - `max_peg_update`: The new maximum peg update percentage.
|
|
8639
|
+
*
|
|
8640
|
+
* Emits `PoolMaxPegUpdateUpdated` event when successful.
|
|
8641
|
+
*
|
|
8642
|
+
* # Errors
|
|
8643
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8644
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8645
|
+
*
|
|
8646
|
+
**/
|
|
8647
|
+
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate: Permill } };
|
|
8985
8648
|
|
|
8986
8649
|
export type PalletStableswapCallLike =
|
|
8987
8650
|
/**
|
|
@@ -9265,13 +8928,55 @@ export type PalletStableswapCallLike =
|
|
|
9265
8928
|
| {
|
|
9266
8929
|
name: 'AddAssetsLiquidity';
|
|
9267
8930
|
params: { poolId: number; assets: Array<HydradxTraitsStableswapAssetAmount>; minShares: bigint };
|
|
9268
|
-
}
|
|
8931
|
+
}
|
|
8932
|
+
/**
|
|
8933
|
+
* Update the peg source for a specific asset in a pool.
|
|
8934
|
+
*
|
|
8935
|
+
* This function allows updating the peg source for an asset within a pool.
|
|
8936
|
+
* The pool must exist and have pegs configured. The asset must be part of the pool.
|
|
8937
|
+
* The current price is always preserved when updating the peg source.
|
|
8938
|
+
*
|
|
8939
|
+
* Parameters:
|
|
8940
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8941
|
+
* - `pool_id`: The ID of the pool containing the asset.
|
|
8942
|
+
* - `asset_id`: The ID of the asset whose peg source is to be updated.
|
|
8943
|
+
* - `peg_source`: The new peg source for the asset.
|
|
8944
|
+
*
|
|
8945
|
+
* Emits `PoolPegSourceUpdated` event when successful.
|
|
8946
|
+
*
|
|
8947
|
+
* # Errors
|
|
8948
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8949
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8950
|
+
* - `AssetNotInPool`: If the specified asset is not part of the pool.
|
|
8951
|
+
*
|
|
8952
|
+
**/
|
|
8953
|
+
| { name: 'UpdateAssetPegSource'; params: { poolId: number; assetId: number; pegSource: PalletStableswapPegSource } }
|
|
8954
|
+
/**
|
|
8955
|
+
* Update the maximum peg update percentage for a pool.
|
|
8956
|
+
*
|
|
8957
|
+
* This function allows updating the maximum percentage by which peg values
|
|
8958
|
+
* can change in a pool with pegs configured.
|
|
8959
|
+
*
|
|
8960
|
+
* Parameters:
|
|
8961
|
+
* - `origin`: Must be `T::AuthorityOrigin`.
|
|
8962
|
+
* - `pool_id`: The ID of the pool to update.
|
|
8963
|
+
* - `max_peg_update`: The new maximum peg update percentage.
|
|
8964
|
+
*
|
|
8965
|
+
* Emits `PoolMaxPegUpdateUpdated` event when successful.
|
|
8966
|
+
*
|
|
8967
|
+
* # Errors
|
|
8968
|
+
* - `PoolNotFound`: If the specified pool does not exist.
|
|
8969
|
+
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8970
|
+
*
|
|
8971
|
+
**/
|
|
8972
|
+
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate: Permill } };
|
|
9269
8973
|
|
|
9270
8974
|
export type PalletStableswapTradability = { bits: number };
|
|
9271
8975
|
|
|
9272
8976
|
export type PalletStableswapPegSource =
|
|
9273
8977
|
| { type: 'Value'; value: [bigint, bigint] }
|
|
9274
|
-
| { type: 'Oracle'; value: [FixedBytes<8>, HydradxTraitsOracleOraclePeriod, number] }
|
|
8978
|
+
| { type: 'Oracle'; value: [FixedBytes<8>, HydradxTraitsOracleOraclePeriod, number] }
|
|
8979
|
+
| { type: 'MmOracle'; value: H160 };
|
|
9275
8980
|
|
|
9276
8981
|
export type HydradxTraitsOracleOraclePeriod = 'LastBlock' | 'Short' | 'TenMinutes' | 'Hour' | 'Day' | 'Week';
|
|
9277
8982
|
|
|
@@ -10049,9 +9754,364 @@ export type PalletLiquidationCallLike =
|
|
|
10049
9754
|
};
|
|
10050
9755
|
}
|
|
10051
9756
|
/**
|
|
10052
|
-
* Set the borrowing market contract address.
|
|
9757
|
+
* Set the borrowing market contract address.
|
|
9758
|
+
**/
|
|
9759
|
+
| { name: 'SetBorrowingContract'; params: { contract: H160 } };
|
|
9760
|
+
|
|
9761
|
+
/**
|
|
9762
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
9763
|
+
**/
|
|
9764
|
+
export type PalletHsmCall =
|
|
9765
|
+
/**
|
|
9766
|
+
* Add a new collateral asset
|
|
9767
|
+
*
|
|
9768
|
+
* This function adds a new asset as an approved collateral for Hollar. Only callable by
|
|
9769
|
+
* the governance (root origin).
|
|
9770
|
+
*
|
|
9771
|
+
* Parameters:
|
|
9772
|
+
* - `origin`: Must be Root
|
|
9773
|
+
* - `asset_id`: Asset ID to be added as collateral
|
|
9774
|
+
* - `pool_id`: StableSwap pool ID where this asset and Hollar are paired
|
|
9775
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset (added to purchase price)
|
|
9776
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
9777
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar (subtracted from buy price)
|
|
9778
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
9779
|
+
* - `max_in_holding`: Optional maximum amount of collateral HSM can hold
|
|
9780
|
+
*
|
|
9781
|
+
* Emits:
|
|
9782
|
+
* - `CollateralAdded` when the collateral is successfully added
|
|
9783
|
+
*
|
|
9784
|
+
* Errors:
|
|
9785
|
+
* - `AssetAlreadyApproved` if the asset is already registered as a collateral
|
|
9786
|
+
* - `PoolAlreadyHasCollateral` if another asset from the same pool is already approved
|
|
9787
|
+
* - `HollarNotInPool` if Hollar is not found in the specified pool
|
|
9788
|
+
* - `AssetNotInPool` if the collateral asset is not found in the specified pool
|
|
9789
|
+
* - Other errors from underlying calls
|
|
9790
|
+
**/
|
|
9791
|
+
| {
|
|
9792
|
+
name: 'AddCollateralAsset';
|
|
9793
|
+
params: {
|
|
9794
|
+
assetId: number;
|
|
9795
|
+
poolId: number;
|
|
9796
|
+
purchaseFee: Permill;
|
|
9797
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
9798
|
+
buyBackFee: Permill;
|
|
9799
|
+
buybackRate: Perbill;
|
|
9800
|
+
maxInHolding?: bigint | undefined;
|
|
9801
|
+
};
|
|
9802
|
+
}
|
|
9803
|
+
/**
|
|
9804
|
+
* Remove a collateral asset
|
|
9805
|
+
*
|
|
9806
|
+
* Removes an asset from the approved collaterals list. Only callable by the governance (root origin).
|
|
9807
|
+
* The collateral must have a zero balance in the HSM account before it can be removed.
|
|
9808
|
+
*
|
|
9809
|
+
* Parameters:
|
|
9810
|
+
* - `origin`: Must be Root
|
|
9811
|
+
* - `asset_id`: Asset ID to remove from collaterals
|
|
9812
|
+
*
|
|
9813
|
+
* Emits:
|
|
9814
|
+
* - `CollateralRemoved` when the collateral is successfully removed
|
|
9815
|
+
*
|
|
9816
|
+
* Errors:
|
|
9817
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9818
|
+
* - `CollateralNotEmpty` if the HSM account still holds some of this asset
|
|
9819
|
+
**/
|
|
9820
|
+
| { name: 'RemoveCollateralAsset'; params: { assetId: number } }
|
|
9821
|
+
/**
|
|
9822
|
+
* Update collateral asset parameters
|
|
9823
|
+
*
|
|
9824
|
+
* Updates the parameters for an existing collateral asset. Only callable by the governance (root origin).
|
|
9825
|
+
* Each parameter is optional and only provided parameters will be updated.
|
|
9826
|
+
*
|
|
9827
|
+
* Parameters:
|
|
9828
|
+
* - `origin`: Must be Root
|
|
9829
|
+
* - `asset_id`: Asset ID to update
|
|
9830
|
+
* - `purchase_fee`: New purchase fee (optional)
|
|
9831
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient (optional)
|
|
9832
|
+
* - `buy_back_fee`: New buy back fee (optional)
|
|
9833
|
+
* - `buyback_rate`: New buyback rate parameter (optional)
|
|
9834
|
+
* - `max_in_holding`: New maximum holding amount (optional)
|
|
9835
|
+
*
|
|
9836
|
+
* Emits:
|
|
9837
|
+
* - `CollateralUpdated` when the collateral is successfully updated
|
|
9838
|
+
*
|
|
9839
|
+
* Errors:
|
|
9840
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9841
|
+
**/
|
|
9842
|
+
| {
|
|
9843
|
+
name: 'UpdateCollateralAsset';
|
|
9844
|
+
params: {
|
|
9845
|
+
assetId: number;
|
|
9846
|
+
purchaseFee?: Permill | undefined;
|
|
9847
|
+
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
9848
|
+
buyBackFee?: Permill | undefined;
|
|
9849
|
+
buybackRate?: Perbill | undefined;
|
|
9850
|
+
maxInHolding?: bigint | undefined | undefined;
|
|
9851
|
+
};
|
|
9852
|
+
}
|
|
9853
|
+
/**
|
|
9854
|
+
* Sell asset to HSM
|
|
9855
|
+
*
|
|
9856
|
+
* This function allows users to:
|
|
9857
|
+
* 1. Sell Hollar back to HSM in exchange for collateral assets
|
|
9858
|
+
* 2. Sell collateral assets to HSM in exchange for newly minted Hollar
|
|
9859
|
+
*
|
|
9860
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9861
|
+
*
|
|
9862
|
+
* Parameters:
|
|
9863
|
+
* - `origin`: Account selling the asset
|
|
9864
|
+
* - `asset_in`: Asset ID being sold
|
|
9865
|
+
* - `asset_out`: Asset ID being bought
|
|
9866
|
+
* - `amount_in`: Amount of asset_in to sell
|
|
9867
|
+
* - `slippage_limit`: Minimum amount out for slippage protection
|
|
9868
|
+
*
|
|
9869
|
+
* Emits:
|
|
9870
|
+
* - `Swapped3` when the sell is successful
|
|
9871
|
+
*
|
|
9872
|
+
* Errors:
|
|
9873
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9874
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9875
|
+
* - `SlippageLimitExceeded` if the amount received is less than the slippage limit
|
|
9876
|
+
* - `MaxBuyBackExceeded` if the sell would exceed the maximum buy back rate
|
|
9877
|
+
* - `MaxBuyPriceExceeded` if the sell would exceed the maximum buy price
|
|
9878
|
+
* - `InsufficientCollateralBalance` if HSM doesn't have enough collateral
|
|
9879
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9880
|
+
* - Other errors from underlying calls
|
|
9881
|
+
**/
|
|
9882
|
+
| { name: 'Sell'; params: { assetIn: number; assetOut: number; amountIn: bigint; slippageLimit: bigint } }
|
|
9883
|
+
/**
|
|
9884
|
+
* Buy asset from HSM
|
|
9885
|
+
*
|
|
9886
|
+
* This function allows users to:
|
|
9887
|
+
* 1. Buy Hollar from HSM using collateral assets
|
|
9888
|
+
* 2. Buy collateral assets from HSM using Hollar
|
|
9889
|
+
*
|
|
9890
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
9891
|
+
*
|
|
9892
|
+
* Parameters:
|
|
9893
|
+
* - `origin`: Account buying the asset
|
|
9894
|
+
* - `asset_in`: Asset ID being sold by the user
|
|
9895
|
+
* - `asset_out`: Asset ID being bought by the user
|
|
9896
|
+
* - `amount_out`: Amount of asset_out to buy
|
|
9897
|
+
* - `slippage_limit`: Maximum amount in for slippage protection
|
|
9898
|
+
*
|
|
9899
|
+
* Emits:
|
|
9900
|
+
* - `Swapped3` when the buy is successful
|
|
9901
|
+
*
|
|
9902
|
+
* Errors:
|
|
9903
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
9904
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
9905
|
+
* - `SlippageLimitExceeded` if the amount input exceeds the slippage limit
|
|
9906
|
+
* - `MaxHoldingExceeded` if the buy would cause HSM to exceed its maximum holding
|
|
9907
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9908
|
+
* - Other errors from underlying calls
|
|
9909
|
+
**/
|
|
9910
|
+
| { name: 'Buy'; params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint } }
|
|
9911
|
+
/**
|
|
9912
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
9913
|
+
*
|
|
9914
|
+
* This call is designed to be triggered automatically by offchain workers. It:
|
|
9915
|
+
* 1. Detects price imbalances between HSM and a stable pool for a collateral
|
|
9916
|
+
* 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
|
|
9917
|
+
* 3. Swaps that collateral for Hollar on the stable pool
|
|
9918
|
+
* 4. Burns the Hollar received from the arbitrage
|
|
9919
|
+
*
|
|
9920
|
+
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
9921
|
+
* The call is unsigned and should only be executed by offchain workers.
|
|
9922
|
+
*
|
|
9923
|
+
* Parameters:
|
|
9924
|
+
* - `origin`: Must be None (unsigned)
|
|
9925
|
+
* - `collateral_asset_id`: The ID of the collateral asset to check for arbitrage
|
|
9926
|
+
*
|
|
9927
|
+
* Emits:
|
|
9928
|
+
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
9929
|
+
*
|
|
9930
|
+
* Errors:
|
|
9931
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9932
|
+
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
9933
|
+
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
9934
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9935
|
+
* - Other errors from underlying calls
|
|
9936
|
+
**/
|
|
9937
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
9938
|
+
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
9939
|
+
|
|
9940
|
+
export type PalletHsmCallLike =
|
|
9941
|
+
/**
|
|
9942
|
+
* Add a new collateral asset
|
|
9943
|
+
*
|
|
9944
|
+
* This function adds a new asset as an approved collateral for Hollar. Only callable by
|
|
9945
|
+
* the governance (root origin).
|
|
9946
|
+
*
|
|
9947
|
+
* Parameters:
|
|
9948
|
+
* - `origin`: Must be Root
|
|
9949
|
+
* - `asset_id`: Asset ID to be added as collateral
|
|
9950
|
+
* - `pool_id`: StableSwap pool ID where this asset and Hollar are paired
|
|
9951
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset (added to purchase price)
|
|
9952
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
9953
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar (subtracted from buy price)
|
|
9954
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
9955
|
+
* - `max_in_holding`: Optional maximum amount of collateral HSM can hold
|
|
9956
|
+
*
|
|
9957
|
+
* Emits:
|
|
9958
|
+
* - `CollateralAdded` when the collateral is successfully added
|
|
9959
|
+
*
|
|
9960
|
+
* Errors:
|
|
9961
|
+
* - `AssetAlreadyApproved` if the asset is already registered as a collateral
|
|
9962
|
+
* - `PoolAlreadyHasCollateral` if another asset from the same pool is already approved
|
|
9963
|
+
* - `HollarNotInPool` if Hollar is not found in the specified pool
|
|
9964
|
+
* - `AssetNotInPool` if the collateral asset is not found in the specified pool
|
|
9965
|
+
* - Other errors from underlying calls
|
|
9966
|
+
**/
|
|
9967
|
+
| {
|
|
9968
|
+
name: 'AddCollateralAsset';
|
|
9969
|
+
params: {
|
|
9970
|
+
assetId: number;
|
|
9971
|
+
poolId: number;
|
|
9972
|
+
purchaseFee: Permill;
|
|
9973
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
9974
|
+
buyBackFee: Permill;
|
|
9975
|
+
buybackRate: Perbill;
|
|
9976
|
+
maxInHolding?: bigint | undefined;
|
|
9977
|
+
};
|
|
9978
|
+
}
|
|
9979
|
+
/**
|
|
9980
|
+
* Remove a collateral asset
|
|
9981
|
+
*
|
|
9982
|
+
* Removes an asset from the approved collaterals list. Only callable by the governance (root origin).
|
|
9983
|
+
* The collateral must have a zero balance in the HSM account before it can be removed.
|
|
9984
|
+
*
|
|
9985
|
+
* Parameters:
|
|
9986
|
+
* - `origin`: Must be Root
|
|
9987
|
+
* - `asset_id`: Asset ID to remove from collaterals
|
|
9988
|
+
*
|
|
9989
|
+
* Emits:
|
|
9990
|
+
* - `CollateralRemoved` when the collateral is successfully removed
|
|
9991
|
+
*
|
|
9992
|
+
* Errors:
|
|
9993
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
9994
|
+
* - `CollateralNotEmpty` if the HSM account still holds some of this asset
|
|
9995
|
+
**/
|
|
9996
|
+
| { name: 'RemoveCollateralAsset'; params: { assetId: number } }
|
|
9997
|
+
/**
|
|
9998
|
+
* Update collateral asset parameters
|
|
9999
|
+
*
|
|
10000
|
+
* Updates the parameters for an existing collateral asset. Only callable by the governance (root origin).
|
|
10001
|
+
* Each parameter is optional and only provided parameters will be updated.
|
|
10002
|
+
*
|
|
10003
|
+
* Parameters:
|
|
10004
|
+
* - `origin`: Must be Root
|
|
10005
|
+
* - `asset_id`: Asset ID to update
|
|
10006
|
+
* - `purchase_fee`: New purchase fee (optional)
|
|
10007
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient (optional)
|
|
10008
|
+
* - `buy_back_fee`: New buy back fee (optional)
|
|
10009
|
+
* - `buyback_rate`: New buyback rate parameter (optional)
|
|
10010
|
+
* - `max_in_holding`: New maximum holding amount (optional)
|
|
10011
|
+
*
|
|
10012
|
+
* Emits:
|
|
10013
|
+
* - `CollateralUpdated` when the collateral is successfully updated
|
|
10014
|
+
*
|
|
10015
|
+
* Errors:
|
|
10016
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
10017
|
+
**/
|
|
10018
|
+
| {
|
|
10019
|
+
name: 'UpdateCollateralAsset';
|
|
10020
|
+
params: {
|
|
10021
|
+
assetId: number;
|
|
10022
|
+
purchaseFee?: Permill | undefined;
|
|
10023
|
+
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
10024
|
+
buyBackFee?: Permill | undefined;
|
|
10025
|
+
buybackRate?: Perbill | undefined;
|
|
10026
|
+
maxInHolding?: bigint | undefined | undefined;
|
|
10027
|
+
};
|
|
10028
|
+
}
|
|
10029
|
+
/**
|
|
10030
|
+
* Sell asset to HSM
|
|
10031
|
+
*
|
|
10032
|
+
* This function allows users to:
|
|
10033
|
+
* 1. Sell Hollar back to HSM in exchange for collateral assets
|
|
10034
|
+
* 2. Sell collateral assets to HSM in exchange for newly minted Hollar
|
|
10035
|
+
*
|
|
10036
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
10037
|
+
*
|
|
10038
|
+
* Parameters:
|
|
10039
|
+
* - `origin`: Account selling the asset
|
|
10040
|
+
* - `asset_in`: Asset ID being sold
|
|
10041
|
+
* - `asset_out`: Asset ID being bought
|
|
10042
|
+
* - `amount_in`: Amount of asset_in to sell
|
|
10043
|
+
* - `slippage_limit`: Minimum amount out for slippage protection
|
|
10044
|
+
*
|
|
10045
|
+
* Emits:
|
|
10046
|
+
* - `Swapped3` when the sell is successful
|
|
10047
|
+
*
|
|
10048
|
+
* Errors:
|
|
10049
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
10050
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
10051
|
+
* - `SlippageLimitExceeded` if the amount received is less than the slippage limit
|
|
10052
|
+
* - `MaxBuyBackExceeded` if the sell would exceed the maximum buy back rate
|
|
10053
|
+
* - `MaxBuyPriceExceeded` if the sell would exceed the maximum buy price
|
|
10054
|
+
* - `InsufficientCollateralBalance` if HSM doesn't have enough collateral
|
|
10055
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10056
|
+
* - Other errors from underlying calls
|
|
10057
|
+
**/
|
|
10058
|
+
| { name: 'Sell'; params: { assetIn: number; assetOut: number; amountIn: bigint; slippageLimit: bigint } }
|
|
10059
|
+
/**
|
|
10060
|
+
* Buy asset from HSM
|
|
10061
|
+
*
|
|
10062
|
+
* This function allows users to:
|
|
10063
|
+
* 1. Buy Hollar from HSM using collateral assets
|
|
10064
|
+
* 2. Buy collateral assets from HSM using Hollar
|
|
10065
|
+
*
|
|
10066
|
+
* The valid pairs must include Hollar as one side and an approved collateral as the other side.
|
|
10067
|
+
*
|
|
10068
|
+
* Parameters:
|
|
10069
|
+
* - `origin`: Account buying the asset
|
|
10070
|
+
* - `asset_in`: Asset ID being sold by the user
|
|
10071
|
+
* - `asset_out`: Asset ID being bought by the user
|
|
10072
|
+
* - `amount_out`: Amount of asset_out to buy
|
|
10073
|
+
* - `slippage_limit`: Maximum amount in for slippage protection
|
|
10074
|
+
*
|
|
10075
|
+
* Emits:
|
|
10076
|
+
* - `Swapped3` when the buy is successful
|
|
10077
|
+
*
|
|
10078
|
+
* Errors:
|
|
10079
|
+
* - `InvalidAssetPair` if the pair is not Hollar and an approved collateral
|
|
10080
|
+
* - `AssetNotApproved` if the collateral asset isn't registered
|
|
10081
|
+
* - `SlippageLimitExceeded` if the amount input exceeds the slippage limit
|
|
10082
|
+
* - `MaxHoldingExceeded` if the buy would cause HSM to exceed its maximum holding
|
|
10083
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10084
|
+
* - Other errors from underlying calls
|
|
10085
|
+
**/
|
|
10086
|
+
| { name: 'Buy'; params: { assetIn: number; assetOut: number; amountOut: bigint; slippageLimit: bigint } }
|
|
10087
|
+
/**
|
|
10088
|
+
* Execute arbitrage opportunity between HSM and collateral stable pool
|
|
10089
|
+
*
|
|
10090
|
+
* This call is designed to be triggered automatically by offchain workers. It:
|
|
10091
|
+
* 1. Detects price imbalances between HSM and a stable pool for a collateral
|
|
10092
|
+
* 2. If an opportunity exists, mints Hollar, swaps it for collateral on HSM
|
|
10093
|
+
* 3. Swaps that collateral for Hollar on the stable pool
|
|
10094
|
+
* 4. Burns the Hollar received from the arbitrage
|
|
10095
|
+
*
|
|
10096
|
+
* This helps maintain the peg of Hollar by profiting from and correcting price imbalances.
|
|
10097
|
+
* The call is unsigned and should only be executed by offchain workers.
|
|
10098
|
+
*
|
|
10099
|
+
* Parameters:
|
|
10100
|
+
* - `origin`: Must be None (unsigned)
|
|
10101
|
+
* - `collateral_asset_id`: The ID of the collateral asset to check for arbitrage
|
|
10102
|
+
*
|
|
10103
|
+
* Emits:
|
|
10104
|
+
* - `ArbitrageExecuted` when the arbitrage is successful
|
|
10105
|
+
*
|
|
10106
|
+
* Errors:
|
|
10107
|
+
* - `AssetNotApproved` if the asset is not a registered collateral
|
|
10108
|
+
* - `NoArbitrageOpportunity` if there's no profitable arbitrage opportunity
|
|
10109
|
+
* - `MaxBuyPriceExceeded` if the arbitrage would exceed the maximum buy price
|
|
10110
|
+
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10111
|
+
* - Other errors from underlying calls
|
|
10053
10112
|
**/
|
|
10054
|
-
| { name: '
|
|
10113
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
10114
|
+
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
10055
10115
|
|
|
10056
10116
|
/**
|
|
10057
10117
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -11313,7 +11373,23 @@ export type PalletDcaCall =
|
|
|
11313
11373
|
* Emits `Terminated` event when successful.
|
|
11314
11374
|
*
|
|
11315
11375
|
**/
|
|
11316
|
-
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11376
|
+
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11377
|
+
/**
|
|
11378
|
+
* Unlocks DCA reserves of provided asset for the caller if they have no active schedules.
|
|
11379
|
+
*
|
|
11380
|
+
* This is a utility function to help users recover their reserved funds in case
|
|
11381
|
+
* a DCA schedule was terminated but left some reserved amounts.
|
|
11382
|
+
*
|
|
11383
|
+
* This can only be called when the user has no active DCA schedules.
|
|
11384
|
+
*
|
|
11385
|
+
* Parameters:
|
|
11386
|
+
* - `origin`: The account to unlock reserves for (must be signed)
|
|
11387
|
+
* - `asset_id`: The asset ID for which reserves should be unlocked.
|
|
11388
|
+
*
|
|
11389
|
+
* Emits `ReserveUnlocked` event when successful.
|
|
11390
|
+
*
|
|
11391
|
+
**/
|
|
11392
|
+
| { name: 'UnlockReserves'; params: { who: AccountId32; assetId: number } };
|
|
11317
11393
|
|
|
11318
11394
|
export type PalletDcaCallLike =
|
|
11319
11395
|
/**
|
|
@@ -11357,7 +11433,23 @@ export type PalletDcaCallLike =
|
|
|
11357
11433
|
* Emits `Terminated` event when successful.
|
|
11358
11434
|
*
|
|
11359
11435
|
**/
|
|
11360
|
-
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11436
|
+
| { name: 'Terminate'; params: { scheduleId: number; nextExecutionBlock?: number | undefined } }
|
|
11437
|
+
/**
|
|
11438
|
+
* Unlocks DCA reserves of provided asset for the caller if they have no active schedules.
|
|
11439
|
+
*
|
|
11440
|
+
* This is a utility function to help users recover their reserved funds in case
|
|
11441
|
+
* a DCA schedule was terminated but left some reserved amounts.
|
|
11442
|
+
*
|
|
11443
|
+
* This can only be called when the user has no active DCA schedules.
|
|
11444
|
+
*
|
|
11445
|
+
* Parameters:
|
|
11446
|
+
* - `origin`: The account to unlock reserves for (must be signed)
|
|
11447
|
+
* - `asset_id`: The asset ID for which reserves should be unlocked.
|
|
11448
|
+
*
|
|
11449
|
+
* Emits `ReserveUnlocked` event when successful.
|
|
11450
|
+
*
|
|
11451
|
+
**/
|
|
11452
|
+
| { name: 'UnlockReserves'; params: { who: AccountId32Like; assetId: number } };
|
|
11361
11453
|
|
|
11362
11454
|
export type PalletDcaSchedule = {
|
|
11363
11455
|
owner: AccountId32;
|
|
@@ -13981,7 +14073,19 @@ export type PalletCircuitBreakerEvent =
|
|
|
13981
14073
|
/**
|
|
13982
14074
|
* Remove liquidity limit of an asset was changed.
|
|
13983
14075
|
**/
|
|
13984
|
-
| { name: 'RemoveLiquidityLimitChanged'; data: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
14076
|
+
| { name: 'RemoveLiquidityLimitChanged'; data: { assetId: number; liquidityLimit?: [number, number] | undefined } }
|
|
14077
|
+
/**
|
|
14078
|
+
* Asset went to lockdown
|
|
14079
|
+
**/
|
|
14080
|
+
| { name: 'AssetLockdown'; data: { assetId: number; until: number } }
|
|
14081
|
+
/**
|
|
14082
|
+
* Asset lockdown was removed
|
|
14083
|
+
**/
|
|
14084
|
+
| { name: 'AssetLockdownRemoved'; data: { assetId: number } }
|
|
14085
|
+
/**
|
|
14086
|
+
* All reserved amount of deposit was released
|
|
14087
|
+
**/
|
|
14088
|
+
| { name: 'DepositReleased'; data: { who: AccountId32; assetId: number } };
|
|
13985
14089
|
|
|
13986
14090
|
/**
|
|
13987
14091
|
* The `Event` enum of this pallet
|
|
@@ -14002,7 +14106,15 @@ export type PalletRouteExecutorEvent =
|
|
|
14002
14106
|
/**
|
|
14003
14107
|
* The `Event` enum of this pallet
|
|
14004
14108
|
**/
|
|
14005
|
-
export type PalletDynamicFeesEvent =
|
|
14109
|
+
export type PalletDynamicFeesEvent =
|
|
14110
|
+
/**
|
|
14111
|
+
* Asset fee configuration has been set
|
|
14112
|
+
**/
|
|
14113
|
+
| { name: 'AssetFeeConfigSet'; data: { assetId: number; params: PalletDynamicFeesAssetFeeConfig } }
|
|
14114
|
+
/**
|
|
14115
|
+
* Asset fee configuration has been removed
|
|
14116
|
+
**/
|
|
14117
|
+
| { name: 'AssetFeeConfigRemoved'; data: { assetId: number } };
|
|
14006
14118
|
|
|
14007
14119
|
/**
|
|
14008
14120
|
* The `Event` enum of this pallet
|
|
@@ -14148,7 +14260,15 @@ export type PalletStableswapEvent =
|
|
|
14148
14260
|
/**
|
|
14149
14261
|
* A pool has been destroyed.
|
|
14150
14262
|
**/
|
|
14151
|
-
| { name: 'PoolDestroyed'; data: { poolId: number } }
|
|
14263
|
+
| { name: 'PoolDestroyed'; data: { poolId: number } }
|
|
14264
|
+
/**
|
|
14265
|
+
* Pool peg source has been updated.
|
|
14266
|
+
**/
|
|
14267
|
+
| { name: 'PoolPegSourceUpdated'; data: { poolId: number; assetId: number; pegSource: PalletStableswapPegSource } }
|
|
14268
|
+
/**
|
|
14269
|
+
* Pool max peg update has been updated.
|
|
14270
|
+
**/
|
|
14271
|
+
| { name: 'PoolMaxPegUpdateUpdated'; data: { poolId: number; maxPegUpdate: Permill } };
|
|
14152
14272
|
|
|
14153
14273
|
export type NonZeroU16 = number;
|
|
14154
14274
|
|
|
@@ -14373,6 +14493,76 @@ export type PalletLiquidationEvent =
|
|
|
14373
14493
|
data: { user: H160; collateralAsset: number; debtAsset: number; debtToCover: bigint; profit: bigint };
|
|
14374
14494
|
};
|
|
14375
14495
|
|
|
14496
|
+
/**
|
|
14497
|
+
* The `Event` enum of this pallet
|
|
14498
|
+
**/
|
|
14499
|
+
export type PalletHsmEvent =
|
|
14500
|
+
/**
|
|
14501
|
+
* A new collateral asset was added
|
|
14502
|
+
*
|
|
14503
|
+
* Parameters:
|
|
14504
|
+
* - `asset_id`: The ID of the asset added as collateral
|
|
14505
|
+
* - `pool_id`: The StableSwap pool ID where this asset belongs
|
|
14506
|
+
* - `purchase_fee`: Fee applied when buying Hollar with this asset
|
|
14507
|
+
* - `max_buy_price_coefficient`: Maximum buy price coefficient for HSM to buy back Hollar
|
|
14508
|
+
* - `buy_back_fee`: Fee applied when buying back Hollar
|
|
14509
|
+
* - `buyback_rate`: Parameter that controls how quickly HSM can buy Hollar with this asset
|
|
14510
|
+
**/
|
|
14511
|
+
| {
|
|
14512
|
+
name: 'CollateralAdded';
|
|
14513
|
+
data: {
|
|
14514
|
+
assetId: number;
|
|
14515
|
+
poolId: number;
|
|
14516
|
+
purchaseFee: Permill;
|
|
14517
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
14518
|
+
buyBackFee: Permill;
|
|
14519
|
+
buybackRate: Perbill;
|
|
14520
|
+
};
|
|
14521
|
+
}
|
|
14522
|
+
/**
|
|
14523
|
+
* A collateral asset was removed
|
|
14524
|
+
*
|
|
14525
|
+
* Parameters:
|
|
14526
|
+
* - `asset_id`: The ID of the asset removed from collaterals
|
|
14527
|
+
* - `amount`: The amount of the asset that was returned (should be zero)
|
|
14528
|
+
**/
|
|
14529
|
+
| { name: 'CollateralRemoved'; data: { assetId: number; amount: bigint } }
|
|
14530
|
+
/**
|
|
14531
|
+
* A collateral asset was updated
|
|
14532
|
+
*
|
|
14533
|
+
* Parameters:
|
|
14534
|
+
* - `asset_id`: The ID of the updated collateral asset
|
|
14535
|
+
* - `purchase_fee`: New purchase fee if updated (None if not changed)
|
|
14536
|
+
* - `max_buy_price_coefficient`: New max buy price coefficient if updated (None if not changed)
|
|
14537
|
+
* - `buy_back_fee`: New buy back fee if updated (None if not changed)
|
|
14538
|
+
* - `buyback_rate`: New buyback rate if updated (None if not changed)
|
|
14539
|
+
**/
|
|
14540
|
+
| {
|
|
14541
|
+
name: 'CollateralUpdated';
|
|
14542
|
+
data: {
|
|
14543
|
+
assetId: number;
|
|
14544
|
+
purchaseFee?: Permill | undefined;
|
|
14545
|
+
maxBuyPriceCoefficient?: FixedU128 | undefined;
|
|
14546
|
+
buyBackFee?: Permill | undefined;
|
|
14547
|
+
buybackRate?: Perbill | undefined;
|
|
14548
|
+
};
|
|
14549
|
+
}
|
|
14550
|
+
/**
|
|
14551
|
+
* Arbitrage executed successfully
|
|
14552
|
+
*
|
|
14553
|
+
* Parameters:
|
|
14554
|
+
* - `asset_id`: The collateral asset used in the arbitrage
|
|
14555
|
+
* - `hollar_amount`: Amount of Hollar that was included in the arbitrage operation
|
|
14556
|
+
**/
|
|
14557
|
+
| { name: 'ArbitrageExecuted'; data: { assetId: number; hollarAmount: bigint } }
|
|
14558
|
+
/**
|
|
14559
|
+
* Flash minter address set
|
|
14560
|
+
*
|
|
14561
|
+
* Parameters:
|
|
14562
|
+
* - `flash_minter`: The EVM address of the flash minter contract
|
|
14563
|
+
**/
|
|
14564
|
+
| { name: 'FlashMinterSet'; data: { flashMinter: H160 } };
|
|
14565
|
+
|
|
14376
14566
|
/**
|
|
14377
14567
|
* The `Event` enum of this pallet
|
|
14378
14568
|
**/
|
|
@@ -14788,7 +14978,11 @@ export type PalletDcaEvent =
|
|
|
14788
14978
|
/**
|
|
14789
14979
|
* Randomness generation failed possibly coming from missing data about relay chain
|
|
14790
14980
|
**/
|
|
14791
|
-
| { name: 'RandomnessGenerationFailed'; data: { block: number; error: DispatchError } }
|
|
14981
|
+
| { name: 'RandomnessGenerationFailed'; data: { block: number; error: DispatchError } }
|
|
14982
|
+
/**
|
|
14983
|
+
* DCA reserve for the given asset have been unlocked for a user
|
|
14984
|
+
**/
|
|
14985
|
+
| { name: 'ReserveUnlocked'; data: { who: AccountId32; assetId: number } };
|
|
14792
14986
|
|
|
14793
14987
|
/**
|
|
14794
14988
|
* Events type.
|
|
@@ -15330,7 +15524,8 @@ export type PalletBroadcastFiller =
|
|
|
15330
15524
|
| { type: 'Xyk'; value: number }
|
|
15331
15525
|
| { type: 'Lbp' }
|
|
15332
15526
|
| { type: 'Otc'; value: number }
|
|
15333
|
-
| { type: 'Aave' }
|
|
15527
|
+
| { type: 'Aave' }
|
|
15528
|
+
| { type: 'Hsm' };
|
|
15334
15529
|
|
|
15335
15530
|
export type PalletBroadcastTradeOperation = 'ExactIn' | 'ExactOut' | 'Limit' | 'LiquidityAdd' | 'LiquidityRemove';
|
|
15336
15531
|
|
|
@@ -15941,83 +16136,6 @@ export type PalletDemocracyError =
|
|
|
15941
16136
|
**/
|
|
15942
16137
|
| 'PreimageNotExist';
|
|
15943
16138
|
|
|
15944
|
-
export type PalletElectionsPhragmenSeatHolder = { who: AccountId32; stake: bigint; deposit: bigint };
|
|
15945
|
-
|
|
15946
|
-
export type PalletElectionsPhragmenVoter = { votes: Array<AccountId32>; stake: bigint; deposit: bigint };
|
|
15947
|
-
|
|
15948
|
-
/**
|
|
15949
|
-
* The `Error` enum of this pallet.
|
|
15950
|
-
**/
|
|
15951
|
-
export type PalletElectionsPhragmenError =
|
|
15952
|
-
/**
|
|
15953
|
-
* Cannot vote when no candidates or members exist.
|
|
15954
|
-
**/
|
|
15955
|
-
| 'UnableToVote'
|
|
15956
|
-
/**
|
|
15957
|
-
* Must vote for at least one candidate.
|
|
15958
|
-
**/
|
|
15959
|
-
| 'NoVotes'
|
|
15960
|
-
/**
|
|
15961
|
-
* Cannot vote more than candidates.
|
|
15962
|
-
**/
|
|
15963
|
-
| 'TooManyVotes'
|
|
15964
|
-
/**
|
|
15965
|
-
* Cannot vote more than maximum allowed.
|
|
15966
|
-
**/
|
|
15967
|
-
| 'MaximumVotesExceeded'
|
|
15968
|
-
/**
|
|
15969
|
-
* Cannot vote with stake less than minimum balance.
|
|
15970
|
-
**/
|
|
15971
|
-
| 'LowBalance'
|
|
15972
|
-
/**
|
|
15973
|
-
* Voter can not pay voting bond.
|
|
15974
|
-
**/
|
|
15975
|
-
| 'UnableToPayBond'
|
|
15976
|
-
/**
|
|
15977
|
-
* Must be a voter.
|
|
15978
|
-
**/
|
|
15979
|
-
| 'MustBeVoter'
|
|
15980
|
-
/**
|
|
15981
|
-
* Duplicated candidate submission.
|
|
15982
|
-
**/
|
|
15983
|
-
| 'DuplicatedCandidate'
|
|
15984
|
-
/**
|
|
15985
|
-
* Too many candidates have been created.
|
|
15986
|
-
**/
|
|
15987
|
-
| 'TooManyCandidates'
|
|
15988
|
-
/**
|
|
15989
|
-
* Member cannot re-submit candidacy.
|
|
15990
|
-
**/
|
|
15991
|
-
| 'MemberSubmit'
|
|
15992
|
-
/**
|
|
15993
|
-
* Runner cannot re-submit candidacy.
|
|
15994
|
-
**/
|
|
15995
|
-
| 'RunnerUpSubmit'
|
|
15996
|
-
/**
|
|
15997
|
-
* Candidate does not have enough funds.
|
|
15998
|
-
**/
|
|
15999
|
-
| 'InsufficientCandidateFunds'
|
|
16000
|
-
/**
|
|
16001
|
-
* Not a member.
|
|
16002
|
-
**/
|
|
16003
|
-
| 'NotMember'
|
|
16004
|
-
/**
|
|
16005
|
-
* The provided count of number of candidates is incorrect.
|
|
16006
|
-
**/
|
|
16007
|
-
| 'InvalidWitnessData'
|
|
16008
|
-
/**
|
|
16009
|
-
* The provided count of number of votes is incorrect.
|
|
16010
|
-
**/
|
|
16011
|
-
| 'InvalidVoteCount'
|
|
16012
|
-
/**
|
|
16013
|
-
* The renouncing origin presented a wrong `Renouncing` parameter.
|
|
16014
|
-
**/
|
|
16015
|
-
| 'InvalidRenouncing'
|
|
16016
|
-
/**
|
|
16017
|
-
* Prediction regarding replacement after member removal is wrong.
|
|
16018
|
-
**/
|
|
16019
|
-
| 'InvalidReplacement';
|
|
16020
|
-
|
|
16021
16139
|
export type PalletCollectiveVotes = {
|
|
16022
16140
|
index: number;
|
|
16023
16141
|
threshold: number;
|
|
@@ -16075,49 +16193,6 @@ export type PalletCollectiveError =
|
|
|
16075
16193
|
**/
|
|
16076
16194
|
| 'PrimeAccountNotMember';
|
|
16077
16195
|
|
|
16078
|
-
export type PalletTipsOpenTip = {
|
|
16079
|
-
reason: H256;
|
|
16080
|
-
who: AccountId32;
|
|
16081
|
-
finder: AccountId32;
|
|
16082
|
-
deposit: bigint;
|
|
16083
|
-
closes?: number | undefined;
|
|
16084
|
-
tips: Array<[AccountId32, bigint]>;
|
|
16085
|
-
findersFee: boolean;
|
|
16086
|
-
};
|
|
16087
|
-
|
|
16088
|
-
/**
|
|
16089
|
-
* The `Error` enum of this pallet.
|
|
16090
|
-
**/
|
|
16091
|
-
export type PalletTipsError =
|
|
16092
|
-
/**
|
|
16093
|
-
* The reason given is just too big.
|
|
16094
|
-
**/
|
|
16095
|
-
| 'ReasonTooBig'
|
|
16096
|
-
/**
|
|
16097
|
-
* The tip was already found/started.
|
|
16098
|
-
**/
|
|
16099
|
-
| 'AlreadyKnown'
|
|
16100
|
-
/**
|
|
16101
|
-
* The tip hash is unknown.
|
|
16102
|
-
**/
|
|
16103
|
-
| 'UnknownTip'
|
|
16104
|
-
/**
|
|
16105
|
-
* The tip given was too generous.
|
|
16106
|
-
**/
|
|
16107
|
-
| 'MaxTipAmountExceeded'
|
|
16108
|
-
/**
|
|
16109
|
-
* The account attempting to retract the tip is not the finder of the tip.
|
|
16110
|
-
**/
|
|
16111
|
-
| 'NotFinder'
|
|
16112
|
-
/**
|
|
16113
|
-
* The tip cannot be claimed/closed because there are not enough tippers yet.
|
|
16114
|
-
**/
|
|
16115
|
-
| 'StillOpen'
|
|
16116
|
-
/**
|
|
16117
|
-
* The tip cannot be claimed/closed because it's still in the countdown period.
|
|
16118
|
-
**/
|
|
16119
|
-
| 'Premature';
|
|
16120
|
-
|
|
16121
16196
|
export type PalletProxyProxyDefinition = {
|
|
16122
16197
|
delegate: AccountId32;
|
|
16123
16198
|
proxyType: HydradxRuntimeSystemProxyType;
|
|
@@ -16908,10 +16983,6 @@ export type PalletLiquidityMiningError =
|
|
|
16908
16983
|
* Liquidity mining is in `active` or `terminated` state and action cannot be completed.
|
|
16909
16984
|
**/
|
|
16910
16985
|
| { name: 'LiquidityMiningIsNotStopped' }
|
|
16911
|
-
/**
|
|
16912
|
-
* LP shares amount is not valid.
|
|
16913
|
-
**/
|
|
16914
|
-
| { name: 'InvalidDepositAmount' }
|
|
16915
16986
|
/**
|
|
16916
16987
|
* Account is not allowed to perform action.
|
|
16917
16988
|
**/
|
|
@@ -17110,6 +17181,10 @@ export type PalletCircuitBreakerTradeVolumeLimit = { volumeIn: bigint; volumeOut
|
|
|
17110
17181
|
|
|
17111
17182
|
export type PalletCircuitBreakerLiquidityLimit = { liquidity: bigint; limit: bigint };
|
|
17112
17183
|
|
|
17184
|
+
export type PalletCircuitBreakerLockdownStatus =
|
|
17185
|
+
| { type: 'Locked'; value: number }
|
|
17186
|
+
| { type: 'Unlocked'; value: [number, bigint] };
|
|
17187
|
+
|
|
17113
17188
|
/**
|
|
17114
17189
|
* The `Error` enum of this pallet.
|
|
17115
17190
|
**/
|
|
@@ -17137,7 +17212,21 @@ export type PalletCircuitBreakerError =
|
|
|
17137
17212
|
/**
|
|
17138
17213
|
* Asset is not allowed to have a limit
|
|
17139
17214
|
**/
|
|
17140
|
-
| 'NotAllowed'
|
|
17215
|
+
| 'NotAllowed'
|
|
17216
|
+
/**
|
|
17217
|
+
* Asset still in lockdown as it reached the allowed deposit limit for the period
|
|
17218
|
+
* Query the `asset_lockdown_state` storage to determine until which block the asset is locked,
|
|
17219
|
+
* so that the deposit can be released afterward.
|
|
17220
|
+
**/
|
|
17221
|
+
| 'AssetInLockdown'
|
|
17222
|
+
/**
|
|
17223
|
+
* Asset is not in a lockdown
|
|
17224
|
+
**/
|
|
17225
|
+
| 'AssetNotInLockdown'
|
|
17226
|
+
/**
|
|
17227
|
+
* Invalid amount to save deposit
|
|
17228
|
+
**/
|
|
17229
|
+
| 'InvalidAmount';
|
|
17141
17230
|
|
|
17142
17231
|
/**
|
|
17143
17232
|
* The `Error` enum of this pallet.
|
|
@@ -17186,17 +17275,14 @@ export type PalletRouteExecutorError =
|
|
|
17186
17275
|
|
|
17187
17276
|
export type PalletDynamicFeesFeeEntry = { assetFee: Permill; protocolFee: Permill; timestamp: number };
|
|
17188
17277
|
|
|
17189
|
-
export type PalletDynamicFeesFeeParams = {
|
|
17190
|
-
minFee: Permill;
|
|
17191
|
-
maxFee: Permill;
|
|
17192
|
-
decay: FixedU128;
|
|
17193
|
-
amplification: FixedU128;
|
|
17194
|
-
};
|
|
17195
|
-
|
|
17196
17278
|
/**
|
|
17197
17279
|
* The `Error` enum of this pallet.
|
|
17198
17280
|
**/
|
|
17199
|
-
export type PalletDynamicFeesError =
|
|
17281
|
+
export type PalletDynamicFeesError =
|
|
17282
|
+
/**
|
|
17283
|
+
* Invalid fee parameters provided
|
|
17284
|
+
**/
|
|
17285
|
+
'InvalidFeeParameters';
|
|
17200
17286
|
|
|
17201
17287
|
export type PalletStakingStakingData = {
|
|
17202
17288
|
totalStake: bigint;
|
|
@@ -17301,6 +17387,17 @@ export type PalletStableswapPoolInfo = {
|
|
|
17301
17387
|
fee: Permill;
|
|
17302
17388
|
};
|
|
17303
17389
|
|
|
17390
|
+
export type PalletStableswapPoolSnapshot = {
|
|
17391
|
+
assets: Array<number>;
|
|
17392
|
+
reserves: Array<HydraDxMathStableswapTypesAssetReserve>;
|
|
17393
|
+
amplification: bigint;
|
|
17394
|
+
fee: Permill;
|
|
17395
|
+
pegs: Array<[bigint, bigint]>;
|
|
17396
|
+
shareIssuance: bigint;
|
|
17397
|
+
};
|
|
17398
|
+
|
|
17399
|
+
export type HydraDxMathStableswapTypesAssetReserve = { amount: bigint; decimals: number };
|
|
17400
|
+
|
|
17304
17401
|
/**
|
|
17305
17402
|
* The `Error` enum of this pallet.
|
|
17306
17403
|
**/
|
|
@@ -17412,7 +17509,11 @@ export type PalletStableswapError =
|
|
|
17412
17509
|
/**
|
|
17413
17510
|
* Creating pool with pegs is not allowed for asset with different decimals.
|
|
17414
17511
|
**/
|
|
17415
|
-
| 'IncorrectAssetDecimals'
|
|
17512
|
+
| 'IncorrectAssetDecimals'
|
|
17513
|
+
/**
|
|
17514
|
+
* Pool does not have pegs configured.
|
|
17515
|
+
**/
|
|
17516
|
+
| 'NoPegSource';
|
|
17416
17517
|
|
|
17417
17518
|
/**
|
|
17418
17519
|
* The `Error` enum of this pallet.
|
|
@@ -17768,7 +17869,155 @@ export type PalletLiquidationError =
|
|
|
17768
17869
|
/**
|
|
17769
17870
|
* Liquidation was not profitable enough to repay flash loan
|
|
17770
17871
|
**/
|
|
17771
|
-
| 'NotProfitable'
|
|
17872
|
+
| 'NotProfitable'
|
|
17873
|
+
/**
|
|
17874
|
+
* Flash minter contract address not set. It is required for Hollar liquidations.
|
|
17875
|
+
**/
|
|
17876
|
+
| 'FlashMinterNotSet'
|
|
17877
|
+
/**
|
|
17878
|
+
* Invalid liquidation data provided
|
|
17879
|
+
**/
|
|
17880
|
+
| 'InvalidLiquidationData';
|
|
17881
|
+
|
|
17882
|
+
export type PalletHsmCollateralInfo = {
|
|
17883
|
+
poolId: number;
|
|
17884
|
+
purchaseFee: Permill;
|
|
17885
|
+
maxBuyPriceCoefficient: FixedU128;
|
|
17886
|
+
buybackRate: Perbill;
|
|
17887
|
+
buyBackFee: Permill;
|
|
17888
|
+
maxInHolding?: bigint | undefined;
|
|
17889
|
+
};
|
|
17890
|
+
|
|
17891
|
+
/**
|
|
17892
|
+
* The `Error` enum of this pallet.
|
|
17893
|
+
**/
|
|
17894
|
+
export type PalletHsmError =
|
|
17895
|
+
/**
|
|
17896
|
+
* Asset is not approved as collateral
|
|
17897
|
+
*
|
|
17898
|
+
* The operation attempted to use an asset that is not registered as an approved collateral.
|
|
17899
|
+
**/
|
|
17900
|
+
| 'AssetNotApproved'
|
|
17901
|
+
/**
|
|
17902
|
+
* Asset is already approved as collateral
|
|
17903
|
+
*
|
|
17904
|
+
* Attempted to add an asset that is already registered as a collateral.
|
|
17905
|
+
**/
|
|
17906
|
+
| 'AssetAlreadyApproved'
|
|
17907
|
+
/**
|
|
17908
|
+
* Another asset from the same pool is already approved
|
|
17909
|
+
*
|
|
17910
|
+
* Only one asset from each StableSwap pool can be used as collateral.
|
|
17911
|
+
**/
|
|
17912
|
+
| 'PoolAlreadyHasCollateral'
|
|
17913
|
+
/**
|
|
17914
|
+
* Invalid asset pair, must be Hollar and approved collateral
|
|
17915
|
+
*
|
|
17916
|
+
* The asset pair for buy/sell operations must include Hollar as one side and an approved collateral as the other.
|
|
17917
|
+
**/
|
|
17918
|
+
| 'InvalidAssetPair'
|
|
17919
|
+
/**
|
|
17920
|
+
* Max buy price exceeded
|
|
17921
|
+
*
|
|
17922
|
+
* The calculated buy price exceeds the maximum allowed buy price for the collateral.
|
|
17923
|
+
**/
|
|
17924
|
+
| 'MaxBuyPriceExceeded'
|
|
17925
|
+
/**
|
|
17926
|
+
* Max buy back amount in single block exceeded
|
|
17927
|
+
*
|
|
17928
|
+
* The amount of Hollar being sold to HSM exceeds the maximum allowed in a single block for this collateral.
|
|
17929
|
+
**/
|
|
17930
|
+
| 'MaxBuyBackExceeded'
|
|
17931
|
+
/**
|
|
17932
|
+
* Max holding amount for collateral exceeded
|
|
17933
|
+
*
|
|
17934
|
+
* The operation would cause the HSM to hold more of the collateral than the configured maximum.
|
|
17935
|
+
**/
|
|
17936
|
+
| 'MaxHoldingExceeded'
|
|
17937
|
+
/**
|
|
17938
|
+
* Slippage limit exceeded
|
|
17939
|
+
*
|
|
17940
|
+
* The calculated amount is worse than the provided slippage limit.
|
|
17941
|
+
**/
|
|
17942
|
+
| 'SlippageLimitExceeded'
|
|
17943
|
+
/**
|
|
17944
|
+
* Invalid EVM contract interaction
|
|
17945
|
+
*
|
|
17946
|
+
* The call to the EVM contract (GHO Hollar token) failed.
|
|
17947
|
+
**/
|
|
17948
|
+
| 'InvalidEVMInteraction'
|
|
17949
|
+
/**
|
|
17950
|
+
* Decimal retrieval failed
|
|
17951
|
+
*
|
|
17952
|
+
* Failed to retrieve the decimal information for an asset.
|
|
17953
|
+
**/
|
|
17954
|
+
| 'DecimalRetrievalFailed'
|
|
17955
|
+
/**
|
|
17956
|
+
* No arbitrage opportunity
|
|
17957
|
+
*
|
|
17958
|
+
* There is no profitable arbitrage opportunity for the specified collateral.
|
|
17959
|
+
**/
|
|
17960
|
+
| 'NoArbitrageOpportunity'
|
|
17961
|
+
/**
|
|
17962
|
+
* Offchain lock error
|
|
17963
|
+
*
|
|
17964
|
+
* Failed to acquire the lock for offchain workers, likely because another operation is in progress.
|
|
17965
|
+
**/
|
|
17966
|
+
| 'OffchainLockError'
|
|
17967
|
+
/**
|
|
17968
|
+
* Asset not in the pool
|
|
17969
|
+
*
|
|
17970
|
+
* The specified asset was not found in the pool.
|
|
17971
|
+
**/
|
|
17972
|
+
| 'AssetNotFound'
|
|
17973
|
+
/**
|
|
17974
|
+
* Provided pool state is invalid
|
|
17975
|
+
*
|
|
17976
|
+
* The retrieved pool state has inconsistent or invalid data.
|
|
17977
|
+
**/
|
|
17978
|
+
| 'InvalidPoolState'
|
|
17979
|
+
/**
|
|
17980
|
+
* Collateral is not empty
|
|
17981
|
+
*
|
|
17982
|
+
* Cannot remove a collateral asset that still has a non-zero balance in the HSM account.
|
|
17983
|
+
**/
|
|
17984
|
+
| 'CollateralNotEmpty'
|
|
17985
|
+
/**
|
|
17986
|
+
* Asset not in the pool
|
|
17987
|
+
*
|
|
17988
|
+
* The collateral asset is not present in the specified pool.
|
|
17989
|
+
**/
|
|
17990
|
+
| 'AssetNotInPool'
|
|
17991
|
+
/**
|
|
17992
|
+
* Hollar is not in the pool
|
|
17993
|
+
*
|
|
17994
|
+
* The Hollar asset is not present in the specified pool.
|
|
17995
|
+
**/
|
|
17996
|
+
| 'HollarNotInPool'
|
|
17997
|
+
/**
|
|
17998
|
+
* Insufficient collateral balance
|
|
17999
|
+
*
|
|
18000
|
+
* The HSM does not have enough of the collateral asset to complete the operation.
|
|
18001
|
+
**/
|
|
18002
|
+
| 'InsufficientCollateralBalance'
|
|
18003
|
+
/**
|
|
18004
|
+
* GHO Contract address not found
|
|
18005
|
+
*
|
|
18006
|
+
* The EVM address for the GHO (Hollar) token contract was not found.
|
|
18007
|
+
**/
|
|
18008
|
+
| 'HollarContractAddressNotFound'
|
|
18009
|
+
/**
|
|
18010
|
+
* HSM contains maximum number of allowed collateral assets.
|
|
18011
|
+
**/
|
|
18012
|
+
| 'MaxNumberOfCollateralsReached'
|
|
18013
|
+
/**
|
|
18014
|
+
* Flash minter address not set
|
|
18015
|
+
**/
|
|
18016
|
+
| 'FlashMinterNotSet'
|
|
18017
|
+
/**
|
|
18018
|
+
* Provided arbitrage data is invalid
|
|
18019
|
+
**/
|
|
18020
|
+
| 'InvalidArbitrageData';
|
|
17772
18021
|
|
|
17773
18022
|
export type OrmlTokensBalanceLock = { id: FixedBytes<8>; amount: bigint };
|
|
17774
18023
|
|
|
@@ -18054,7 +18303,11 @@ export type PalletXykLiquidityMiningError =
|
|
|
18054
18303
|
/**
|
|
18055
18304
|
* No global farm - yield farm pairs specified to join
|
|
18056
18305
|
**/
|
|
18057
|
-
| 'NoFarmsSpecified'
|
|
18306
|
+
| 'NoFarmsSpecified'
|
|
18307
|
+
/**
|
|
18308
|
+
* Failed to calculate value of xyk shares
|
|
18309
|
+
**/
|
|
18310
|
+
| 'FailedToValueShares';
|
|
18058
18311
|
|
|
18059
18312
|
export type PalletLiquidityMiningDepositData002 = {
|
|
18060
18313
|
shares: bigint;
|
|
@@ -18142,7 +18395,15 @@ export type PalletDcaError =
|
|
|
18142
18395
|
/**
|
|
18143
18396
|
* Stability threshold cannot be higher than `MaxConfigurablePriceDifferenceBetweenBlock`
|
|
18144
18397
|
**/
|
|
18145
|
-
| 'StabilityThresholdTooHigh'
|
|
18398
|
+
| 'StabilityThresholdTooHigh'
|
|
18399
|
+
/**
|
|
18400
|
+
* User still has active DCA schedules and cannot unlock reserves
|
|
18401
|
+
**/
|
|
18402
|
+
| 'HasActiveSchedules'
|
|
18403
|
+
/**
|
|
18404
|
+
* No reserves are locked for the user for the given asset
|
|
18405
|
+
**/
|
|
18406
|
+
| 'NoReservesLocked';
|
|
18146
18407
|
|
|
18147
18408
|
export type PalletSchedulerScheduled = {
|
|
18148
18409
|
maybeId?: FixedBytes<32> | undefined;
|
|
@@ -18768,6 +19029,7 @@ export type PalletEmaOracleOracleEntry = {
|
|
|
18768
19029
|
price: HydraDxMathRatio;
|
|
18769
19030
|
volume: HydradxTraitsOracleVolume;
|
|
18770
19031
|
liquidity: HydradxTraitsOracleLiquidity;
|
|
19032
|
+
sharesIssuance?: bigint | undefined;
|
|
18771
19033
|
updatedAt: number;
|
|
18772
19034
|
};
|
|
18773
19035
|
|
|
@@ -18828,6 +19090,8 @@ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataH
|
|
|
18828
19090
|
|
|
18829
19091
|
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
18830
19092
|
|
|
19093
|
+
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
19094
|
+
|
|
18831
19095
|
export type HydradxRuntimeRuntime = {};
|
|
18832
19096
|
|
|
18833
19097
|
export type SpRuntimeBlock = { header: Header; extrinsics: Array<FpSelfContainedUncheckedExtrinsic> };
|
|
@@ -18970,10 +19234,7 @@ export type HydradxRuntimeRuntimeError =
|
|
|
18970
19234
|
| { pallet: 'Preimage'; palletError: PalletPreimageError }
|
|
18971
19235
|
| { pallet: 'Identity'; palletError: PalletIdentityError }
|
|
18972
19236
|
| { pallet: 'Democracy'; palletError: PalletDemocracyError }
|
|
18973
|
-
| { pallet: 'Elections'; palletError: PalletElectionsPhragmenError }
|
|
18974
|
-
| { pallet: 'Council'; palletError: PalletCollectiveError }
|
|
18975
19237
|
| { pallet: 'TechnicalCommittee'; palletError: PalletCollectiveError }
|
|
18976
|
-
| { pallet: 'Tips'; palletError: PalletTipsError }
|
|
18977
19238
|
| { pallet: 'Proxy'; palletError: PalletProxyError }
|
|
18978
19239
|
| { pallet: 'Multisig'; palletError: PalletMultisigError }
|
|
18979
19240
|
| { pallet: 'Uniques'; palletError: PalletUniquesError }
|
|
@@ -19001,6 +19262,7 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19001
19262
|
| { pallet: 'Xyk'; palletError: PalletXykError }
|
|
19002
19263
|
| { pallet: 'Referrals'; palletError: PalletReferralsError }
|
|
19003
19264
|
| { pallet: 'Liquidation'; palletError: PalletLiquidationError }
|
|
19265
|
+
| { pallet: 'Hsm'; palletError: PalletHsmError }
|
|
19004
19266
|
| { pallet: 'Tokens'; palletError: OrmlTokensModuleError }
|
|
19005
19267
|
| { pallet: 'Currencies'; palletError: PalletCurrenciesModuleError }
|
|
19006
19268
|
| { pallet: 'Vesting'; palletError: OrmlVestingModuleError }
|