@dedot/chaintypes 0.265.0 → 0.267.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/kusama-asset-hub/consts.d.ts +26 -36
- package/kusama-asset-hub/errors.d.ts +50 -105
- package/kusama-asset-hub/events.d.ts +93 -229
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +114 -112
- package/kusama-asset-hub/runtime.d.ts +29 -2
- package/kusama-asset-hub/tx.d.ts +32 -683
- package/kusama-asset-hub/types.d.ts +592 -1490
- package/kusama-asset-hub/view-functions.d.ts +38 -2
- package/kusama-people/consts.d.ts +2 -1
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +45 -4
- package/kusama-people/runtime.d.ts +6 -2
- package/kusama-people/tx.d.ts +22 -13
- package/kusama-people/types.d.ts +84 -27
- package/kusama-people/view-functions.d.ts +42 -1
- package/package.json +2 -2
- package/paseo-hydration/consts.d.ts +0 -10
- package/paseo-hydration/errors.d.ts +57 -4
- package/paseo-hydration/events.d.ts +90 -14
- package/paseo-hydration/index.d.ts +1 -1
- package/paseo-hydration/query.d.ts +48 -0
- package/paseo-hydration/tx.d.ts +344 -1
- package/paseo-hydration/types.d.ts +11772 -11274
- package/paseo-hydration/view-functions.d.ts +32 -1
- package/polkadot/consts.d.ts +0 -9
- package/polkadot/errors.d.ts +25 -108
- package/polkadot/events.d.ts +0 -308
- package/polkadot/index.d.ts +3 -1
- package/polkadot/query.d.ts +82 -275
- package/polkadot/runtime.d.ts +73 -2
- package/polkadot/tx.d.ts +60 -375
- package/polkadot/types.d.ts +160 -908
- package/polkadot/view-functions.d.ts +0 -1
- package/polkadot-asset-hub/consts.d.ts +21 -31
- package/polkadot-asset-hub/errors.d.ts +50 -105
- package/polkadot-asset-hub/events.d.ts +93 -229
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +114 -112
- package/polkadot-asset-hub/runtime.d.ts +29 -2
- package/polkadot-asset-hub/tx.d.ts +32 -647
- package/polkadot-asset-hub/types.d.ts +575 -1377
- package/polkadot-asset-hub/view-functions.d.ts +38 -2
- package/polkadot-people/consts.d.ts +2 -1
- package/polkadot-people/events.d.ts +20 -0
- package/polkadot-people/index.d.ts +3 -1
- package/polkadot-people/query.d.ts +45 -4
- package/polkadot-people/runtime.d.ts +6 -2
- package/polkadot-people/tx.d.ts +22 -13
- package/polkadot-people/types.d.ts +104 -28
- package/polkadot-people/view-functions.d.ts +38 -1
package/paseo-hydration/tx.d.ts
CHANGED
|
@@ -946,6 +946,8 @@ export interface ChainTx<
|
|
|
946
946
|
* Emits [`Event::Paid`] if successful.
|
|
947
947
|
*
|
|
948
948
|
* @param {number} index
|
|
949
|
+
*
|
|
950
|
+
* @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
|
|
949
951
|
**/
|
|
950
952
|
payout: GenericTxCall<
|
|
951
953
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -982,6 +984,8 @@ export interface ChainTx<
|
|
|
982
984
|
* Emits [`Event::SpendProcessed`] if the spend payout has succeed.
|
|
983
985
|
*
|
|
984
986
|
* @param {number} index
|
|
987
|
+
*
|
|
988
|
+
* @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
|
|
985
989
|
**/
|
|
986
990
|
checkStatus: GenericTxCall<
|
|
987
991
|
(index: number) => ChainSubmittableExtrinsic<
|
|
@@ -3115,7 +3119,7 @@ export interface ChainTx<
|
|
|
3115
3119
|
* `pure` with corresponding parameters.
|
|
3116
3120
|
*
|
|
3117
3121
|
* - `spawner`: The account that originally called `pure` to create this account.
|
|
3118
|
-
* - `index`: The disambiguation index originally passed to `
|
|
3122
|
+
* - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
|
|
3119
3123
|
* - `proxy_type`: The proxy type originally passed to `pure`.
|
|
3120
3124
|
* - `height`: The height of the chain when the call to `pure` was processed.
|
|
3121
3125
|
* - `ext_index`: The extrinsic index in which the call to `pure` was processed.
|
|
@@ -5418,6 +5422,71 @@ export interface ChainTx<
|
|
|
5418
5422
|
>
|
|
5419
5423
|
>;
|
|
5420
5424
|
|
|
5425
|
+
/**
|
|
5426
|
+
* Dispatch a call as the emergency admin account.
|
|
5427
|
+
*
|
|
5428
|
+
* This is a fast path for the Technical Committee to react to emergencies
|
|
5429
|
+
* (e.g., pausing exploited markets) without waiting for a full referendum.
|
|
5430
|
+
* The inner call is dispatched as a Signed origin from the configured
|
|
5431
|
+
* emergency admin account.
|
|
5432
|
+
*
|
|
5433
|
+
* Parameters:
|
|
5434
|
+
* - `origin`: Must satisfy `EmergencyAdminOrigin` (TC majority or Root).
|
|
5435
|
+
* - `call`: The runtime call to dispatch as the emergency admin.
|
|
5436
|
+
*
|
|
5437
|
+
* Emits `EmergencyAdminCallDispatched` with the call hash and dispatch result.
|
|
5438
|
+
*
|
|
5439
|
+
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
5440
|
+
**/
|
|
5441
|
+
dispatchAsEmergencyAdmin: GenericTxCall<
|
|
5442
|
+
(call: HydradxRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
|
|
5443
|
+
{
|
|
5444
|
+
pallet: 'Dispatcher';
|
|
5445
|
+
palletCall: {
|
|
5446
|
+
name: 'DispatchAsEmergencyAdmin';
|
|
5447
|
+
params: { call: HydradxRuntimeRuntimeCallLike };
|
|
5448
|
+
};
|
|
5449
|
+
},
|
|
5450
|
+
ChainKnownTypes
|
|
5451
|
+
>
|
|
5452
|
+
>;
|
|
5453
|
+
|
|
5454
|
+
/**
|
|
5455
|
+
* Enable/pause the background ISMP storage cleanup. If enabled for the first time,
|
|
5456
|
+
* starting from the first stage.
|
|
5457
|
+
*
|
|
5458
|
+
* @param {boolean} doPause
|
|
5459
|
+
**/
|
|
5460
|
+
pauseHyperbridgeCleanup: GenericTxCall<
|
|
5461
|
+
(doPause: boolean) => ChainSubmittableExtrinsic<
|
|
5462
|
+
{
|
|
5463
|
+
pallet: 'Dispatcher';
|
|
5464
|
+
palletCall: {
|
|
5465
|
+
name: 'PauseHyperbridgeCleanup';
|
|
5466
|
+
params: { doPause: boolean };
|
|
5467
|
+
};
|
|
5468
|
+
},
|
|
5469
|
+
ChainKnownTypes
|
|
5470
|
+
>
|
|
5471
|
+
>;
|
|
5472
|
+
|
|
5473
|
+
/**
|
|
5474
|
+
*
|
|
5475
|
+
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
5476
|
+
**/
|
|
5477
|
+
dispatchWithFeePayer: GenericTxCall<
|
|
5478
|
+
(call: HydradxRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
|
|
5479
|
+
{
|
|
5480
|
+
pallet: 'Dispatcher';
|
|
5481
|
+
palletCall: {
|
|
5482
|
+
name: 'DispatchWithFeePayer';
|
|
5483
|
+
params: { call: HydradxRuntimeRuntimeCallLike };
|
|
5484
|
+
};
|
|
5485
|
+
},
|
|
5486
|
+
ChainKnownTypes
|
|
5487
|
+
>
|
|
5488
|
+
>;
|
|
5489
|
+
|
|
5421
5490
|
/**
|
|
5422
5491
|
* Generic pallet tx call
|
|
5423
5492
|
**/
|
|
@@ -5763,6 +5832,47 @@ export interface ChainTx<
|
|
|
5763
5832
|
>
|
|
5764
5833
|
>;
|
|
5765
5834
|
|
|
5835
|
+
/**
|
|
5836
|
+
* Add all available liquidity of asset `asset` to Omnipool.
|
|
5837
|
+
*
|
|
5838
|
+
* Deposits the caller's entire free balance of `asset`. Equivalent to calling
|
|
5839
|
+
* `do_add_liquidity` with `amount = free_balance(asset)`.
|
|
5840
|
+
*
|
|
5841
|
+
* Asset's tradable state must contain ADD_LIQUIDITY flag, otherwise `NotAllowed` error is returned.
|
|
5842
|
+
*
|
|
5843
|
+
* NFT is minted using NTFHandler which implements non-fungibles traits from frame_support.
|
|
5844
|
+
*
|
|
5845
|
+
* Asset weight cap must be respected, otherwise `AssetWeightExceeded` error is returned.
|
|
5846
|
+
* Asset weight is ratio between new HubAsset reserve and total reserve of Hub asset in Omnipool.
|
|
5847
|
+
*
|
|
5848
|
+
* Fails if price difference between spot price and oracle price is higher than allowed by `PriceBarrier`.
|
|
5849
|
+
*
|
|
5850
|
+
* Parameters:
|
|
5851
|
+
* - `asset`: The identifier of the asset to add. Must already be in the pool.
|
|
5852
|
+
* - `min_shares_limit`: The minimum amount of shares the caller expects to receive in the position.
|
|
5853
|
+
*
|
|
5854
|
+
* Emits `LiquidityAdded` event when successful.
|
|
5855
|
+
*
|
|
5856
|
+
*
|
|
5857
|
+
* @param {number} asset
|
|
5858
|
+
* @param {bigint} minSharesLimit
|
|
5859
|
+
**/
|
|
5860
|
+
addAllLiquidity: GenericTxCall<
|
|
5861
|
+
(
|
|
5862
|
+
asset: number,
|
|
5863
|
+
minSharesLimit: bigint,
|
|
5864
|
+
) => ChainSubmittableExtrinsic<
|
|
5865
|
+
{
|
|
5866
|
+
pallet: 'Omnipool';
|
|
5867
|
+
palletCall: {
|
|
5868
|
+
name: 'AddAllLiquidity';
|
|
5869
|
+
params: { asset: number; minSharesLimit: bigint };
|
|
5870
|
+
};
|
|
5871
|
+
},
|
|
5872
|
+
ChainKnownTypes
|
|
5873
|
+
>
|
|
5874
|
+
>;
|
|
5875
|
+
|
|
5766
5876
|
/**
|
|
5767
5877
|
* Remove liquidity of asset `asset` in quantity `amount` from Omnipool
|
|
5768
5878
|
*
|
|
@@ -11997,6 +12107,8 @@ export interface ChainTx<
|
|
|
11997
12107
|
* @param {XcmVersionedLocation} beneficiary
|
|
11998
12108
|
* @param {XcmVersionedAssets} assets
|
|
11999
12109
|
* @param {number} feeAssetItem
|
|
12110
|
+
*
|
|
12111
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
|
|
12000
12112
|
**/
|
|
12001
12113
|
teleportAssets: GenericTxCall<
|
|
12002
12114
|
(
|
|
@@ -12057,6 +12169,8 @@ export interface ChainTx<
|
|
|
12057
12169
|
* @param {XcmVersionedLocation} beneficiary
|
|
12058
12170
|
* @param {XcmVersionedAssets} assets
|
|
12059
12171
|
* @param {number} feeAssetItem
|
|
12172
|
+
*
|
|
12173
|
+
* @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
|
|
12060
12174
|
**/
|
|
12061
12175
|
reserveTransferAssets: GenericTxCall<
|
|
12062
12176
|
(
|
|
@@ -13376,6 +13490,14 @@ export interface ChainTx<
|
|
|
13376
13490
|
**/
|
|
13377
13491
|
emaOracle: {
|
|
13378
13492
|
/**
|
|
13493
|
+
* Add an oracle to the whitelist so it is tracked by the pallet.
|
|
13494
|
+
*
|
|
13495
|
+
* Parameters:
|
|
13496
|
+
* - `origin`: `AuthorityOrigin`
|
|
13497
|
+
* - `source`: data source identifier
|
|
13498
|
+
* - `assets`: the asset pair to track
|
|
13499
|
+
*
|
|
13500
|
+
* Emits `AddedToWhitelist` event when successful.
|
|
13379
13501
|
*
|
|
13380
13502
|
* @param {FixedBytes<8>} source
|
|
13381
13503
|
* @param {[number, number]} assets
|
|
@@ -13397,6 +13519,14 @@ export interface ChainTx<
|
|
|
13397
13519
|
>;
|
|
13398
13520
|
|
|
13399
13521
|
/**
|
|
13522
|
+
* Remove an oracle from the whitelist and delete all its stored entries.
|
|
13523
|
+
*
|
|
13524
|
+
* Parameters:
|
|
13525
|
+
* - `origin`: `AuthorityOrigin`
|
|
13526
|
+
* - `source`: data source identifier
|
|
13527
|
+
* - `assets`: the asset pair to stop tracking
|
|
13528
|
+
*
|
|
13529
|
+
* Emits `RemovedFromWhitelist` event when successful.
|
|
13400
13530
|
*
|
|
13401
13531
|
* @param {FixedBytes<8>} source
|
|
13402
13532
|
* @param {[number, number]} assets
|
|
@@ -13418,10 +13548,21 @@ export interface ChainTx<
|
|
|
13418
13548
|
>;
|
|
13419
13549
|
|
|
13420
13550
|
/**
|
|
13551
|
+
* Update an oracle entry for BIFROST_SOURCE. Thin wrapper around `set_external_oracle`.
|
|
13552
|
+
*
|
|
13553
|
+
* Parameters:
|
|
13554
|
+
* - `origin`: signed origin — must be authorized for the specific `(BIFROST_SOURCE, pair)`
|
|
13555
|
+
* - `asset_a`: XCM location of the first asset
|
|
13556
|
+
* - `asset_b`: XCM location of the second asset
|
|
13557
|
+
* - `price`: price as `(numerator, denominator)`
|
|
13558
|
+
*
|
|
13559
|
+
* Emits `OracleUpdated` event on the next `on_finalize`.
|
|
13421
13560
|
*
|
|
13422
13561
|
* @param {XcmVersionedLocation} assetA
|
|
13423
13562
|
* @param {XcmVersionedLocation} assetB
|
|
13424
13563
|
* @param {[bigint, bigint]} price
|
|
13564
|
+
*
|
|
13565
|
+
* @deprecated Use `set_external_oracle` instead. Kept only for backward compatibility with bifrost and will be removed in the future
|
|
13425
13566
|
**/
|
|
13426
13567
|
updateBifrostOracle: GenericTxCall<
|
|
13427
13568
|
(
|
|
@@ -13440,6 +13581,208 @@ export interface ChainTx<
|
|
|
13440
13581
|
>
|
|
13441
13582
|
>;
|
|
13442
13583
|
|
|
13584
|
+
/**
|
|
13585
|
+
* Submit an oracle price update for an external source.
|
|
13586
|
+
*
|
|
13587
|
+
* The call is feeless on success (`Pays::No`).
|
|
13588
|
+
*
|
|
13589
|
+
* Parameters:
|
|
13590
|
+
* - `origin`: signed origin — must be authorized for the specific `(source, pair)` via
|
|
13591
|
+
* `add_authorized_account`
|
|
13592
|
+
* - `source`: external source identifier (must be registered via `register_external_source`)
|
|
13593
|
+
* - `asset_a`: XCM location of the first asset
|
|
13594
|
+
* - `asset_b`: XCM location of the second asset
|
|
13595
|
+
* - `price`: price as `(numerator, denominator)` — both must be non-zero
|
|
13596
|
+
*
|
|
13597
|
+
* Emits `OracleUpdated` event on the next `on_finalize`.
|
|
13598
|
+
*
|
|
13599
|
+
* @param {FixedBytes<8>} source
|
|
13600
|
+
* @param {XcmVersionedLocation} assetA
|
|
13601
|
+
* @param {XcmVersionedLocation} assetB
|
|
13602
|
+
* @param {[bigint, bigint]} price
|
|
13603
|
+
**/
|
|
13604
|
+
setExternalOracle: GenericTxCall<
|
|
13605
|
+
(
|
|
13606
|
+
source: FixedBytes<8>,
|
|
13607
|
+
assetA: XcmVersionedLocation,
|
|
13608
|
+
assetB: XcmVersionedLocation,
|
|
13609
|
+
price: [bigint, bigint],
|
|
13610
|
+
) => ChainSubmittableExtrinsic<
|
|
13611
|
+
{
|
|
13612
|
+
pallet: 'EmaOracle';
|
|
13613
|
+
palletCall: {
|
|
13614
|
+
name: 'SetExternalOracle';
|
|
13615
|
+
params: {
|
|
13616
|
+
source: FixedBytes<8>;
|
|
13617
|
+
assetA: XcmVersionedLocation;
|
|
13618
|
+
assetB: XcmVersionedLocation;
|
|
13619
|
+
price: [bigint, bigint];
|
|
13620
|
+
};
|
|
13621
|
+
};
|
|
13622
|
+
},
|
|
13623
|
+
ChainKnownTypes
|
|
13624
|
+
>
|
|
13625
|
+
>;
|
|
13626
|
+
|
|
13627
|
+
/**
|
|
13628
|
+
* Update an external oracle entry using local `AssetId`s directly.
|
|
13629
|
+
*
|
|
13630
|
+
* Cheaper variant of `set_external_oracle` for callers that already know the local
|
|
13631
|
+
* AssetIds — skips the `VersionedLocation` → `AssetId` conversion and the
|
|
13632
|
+
* `AssetRegistry::LocationAssets` storage read. Authorization shares the same
|
|
13633
|
+
* `AuthorizedAccounts` storage as the location variant.
|
|
13634
|
+
*
|
|
13635
|
+
* Parameters:
|
|
13636
|
+
* - `origin`: signed origin — must be authorized for the specific `(source, pair)` via
|
|
13637
|
+
* `add_authorized_account`
|
|
13638
|
+
* - `source`: external source identifier (must be registered via `register_external_source`)
|
|
13639
|
+
* - `asset_a`: local AssetId of the first asset
|
|
13640
|
+
* - `asset_b`: local AssetId of the second asset
|
|
13641
|
+
* - `price`: price as `(numerator, denominator)` — both must be non-zero
|
|
13642
|
+
*
|
|
13643
|
+
* The call is feeless on success (`Pays::No`).
|
|
13644
|
+
*
|
|
13645
|
+
* Emits `OracleUpdated` event on the next `on_finalize`.
|
|
13646
|
+
*
|
|
13647
|
+
* @param {FixedBytes<8>} source
|
|
13648
|
+
* @param {number} assetA
|
|
13649
|
+
* @param {number} assetB
|
|
13650
|
+
* @param {[bigint, bigint]} price
|
|
13651
|
+
**/
|
|
13652
|
+
setExternalOracleByIds: GenericTxCall<
|
|
13653
|
+
(
|
|
13654
|
+
source: FixedBytes<8>,
|
|
13655
|
+
assetA: number,
|
|
13656
|
+
assetB: number,
|
|
13657
|
+
price: [bigint, bigint],
|
|
13658
|
+
) => ChainSubmittableExtrinsic<
|
|
13659
|
+
{
|
|
13660
|
+
pallet: 'EmaOracle';
|
|
13661
|
+
palletCall: {
|
|
13662
|
+
name: 'SetExternalOracleByIds';
|
|
13663
|
+
params: { source: FixedBytes<8>; assetA: number; assetB: number; price: [bigint, bigint] };
|
|
13664
|
+
};
|
|
13665
|
+
},
|
|
13666
|
+
ChainKnownTypes
|
|
13667
|
+
>
|
|
13668
|
+
>;
|
|
13669
|
+
|
|
13670
|
+
/**
|
|
13671
|
+
* Register a new external oracle source.
|
|
13672
|
+
*
|
|
13673
|
+
* Parameters:
|
|
13674
|
+
* - `origin`: `AuthorityOrigin`
|
|
13675
|
+
* - `source`: 8-byte source identifier to register
|
|
13676
|
+
*
|
|
13677
|
+
* Emits `ExternalSourceRegistered` event when successful.
|
|
13678
|
+
*
|
|
13679
|
+
* @param {FixedBytes<8>} source
|
|
13680
|
+
**/
|
|
13681
|
+
registerExternalSource: GenericTxCall<
|
|
13682
|
+
(source: FixedBytes<8>) => ChainSubmittableExtrinsic<
|
|
13683
|
+
{
|
|
13684
|
+
pallet: 'EmaOracle';
|
|
13685
|
+
palletCall: {
|
|
13686
|
+
name: 'RegisterExternalSource';
|
|
13687
|
+
params: { source: FixedBytes<8> };
|
|
13688
|
+
};
|
|
13689
|
+
},
|
|
13690
|
+
ChainKnownTypes
|
|
13691
|
+
>
|
|
13692
|
+
>;
|
|
13693
|
+
|
|
13694
|
+
/**
|
|
13695
|
+
* Remove an external oracle source, its per-pair authorizations, and ALL oracle data it
|
|
13696
|
+
* ever wrote (both committed `Oracles` rows and any in-flight `Accumulator` entries).
|
|
13697
|
+
*
|
|
13698
|
+
* Parameters:
|
|
13699
|
+
* - `origin`: `AuthorityOrigin`
|
|
13700
|
+
* - `source`: source identifier to remove
|
|
13701
|
+
*
|
|
13702
|
+
* Emits `ExternalSourceRemoved` event when successful.
|
|
13703
|
+
*
|
|
13704
|
+
* @param {FixedBytes<8>} source
|
|
13705
|
+
**/
|
|
13706
|
+
removeExternalSource: GenericTxCall<
|
|
13707
|
+
(source: FixedBytes<8>) => ChainSubmittableExtrinsic<
|
|
13708
|
+
{
|
|
13709
|
+
pallet: 'EmaOracle';
|
|
13710
|
+
palletCall: {
|
|
13711
|
+
name: 'RemoveExternalSource';
|
|
13712
|
+
params: { source: FixedBytes<8> };
|
|
13713
|
+
};
|
|
13714
|
+
},
|
|
13715
|
+
ChainKnownTypes
|
|
13716
|
+
>
|
|
13717
|
+
>;
|
|
13718
|
+
|
|
13719
|
+
/**
|
|
13720
|
+
* Authorize `account` to submit oracle updates for a specific `(source, pair)`.
|
|
13721
|
+
*
|
|
13722
|
+
* Authorization is scoped per-pair so a compromised account can only update the
|
|
13723
|
+
* pairs it was explicitly granted, limiting DDoS blast radius.
|
|
13724
|
+
*
|
|
13725
|
+
* Parameters:
|
|
13726
|
+
* - `origin`: `AuthorityOrigin`
|
|
13727
|
+
* - `source`: external source identifier (must already be registered)
|
|
13728
|
+
* - `assets`: the asset pair to authorize — stored in ordered form
|
|
13729
|
+
* - `account`: the account to authorize
|
|
13730
|
+
*
|
|
13731
|
+
* Emits `AuthorizedAccountAdded` event when successful.
|
|
13732
|
+
*
|
|
13733
|
+
* @param {FixedBytes<8>} source
|
|
13734
|
+
* @param {[number, number]} assets
|
|
13735
|
+
* @param {AccountId32Like} account
|
|
13736
|
+
**/
|
|
13737
|
+
addAuthorizedAccount: GenericTxCall<
|
|
13738
|
+
(
|
|
13739
|
+
source: FixedBytes<8>,
|
|
13740
|
+
assets: [number, number],
|
|
13741
|
+
account: AccountId32Like,
|
|
13742
|
+
) => ChainSubmittableExtrinsic<
|
|
13743
|
+
{
|
|
13744
|
+
pallet: 'EmaOracle';
|
|
13745
|
+
palletCall: {
|
|
13746
|
+
name: 'AddAuthorizedAccount';
|
|
13747
|
+
params: { source: FixedBytes<8>; assets: [number, number]; account: AccountId32Like };
|
|
13748
|
+
};
|
|
13749
|
+
},
|
|
13750
|
+
ChainKnownTypes
|
|
13751
|
+
>
|
|
13752
|
+
>;
|
|
13753
|
+
|
|
13754
|
+
/**
|
|
13755
|
+
* Revoke oracle-update authorization for `account` on a specific `(source, pair)`.
|
|
13756
|
+
*
|
|
13757
|
+
* Parameters:
|
|
13758
|
+
* - `origin`: `AuthorityOrigin`
|
|
13759
|
+
* - `source`: external source identifier (must already be registered)
|
|
13760
|
+
* - `assets`: the asset pair to revoke — matched in ordered form
|
|
13761
|
+
* - `account`: the account to revoke
|
|
13762
|
+
*
|
|
13763
|
+
* Emits `AuthorizedAccountRemoved` event when successful.
|
|
13764
|
+
*
|
|
13765
|
+
* @param {FixedBytes<8>} source
|
|
13766
|
+
* @param {[number, number]} assets
|
|
13767
|
+
* @param {AccountId32Like} account
|
|
13768
|
+
**/
|
|
13769
|
+
removeAuthorizedAccount: GenericTxCall<
|
|
13770
|
+
(
|
|
13771
|
+
source: FixedBytes<8>,
|
|
13772
|
+
assets: [number, number],
|
|
13773
|
+
account: AccountId32Like,
|
|
13774
|
+
) => ChainSubmittableExtrinsic<
|
|
13775
|
+
{
|
|
13776
|
+
pallet: 'EmaOracle';
|
|
13777
|
+
palletCall: {
|
|
13778
|
+
name: 'RemoveAuthorizedAccount';
|
|
13779
|
+
params: { source: FixedBytes<8>; assets: [number, number]; account: AccountId32Like };
|
|
13780
|
+
};
|
|
13781
|
+
},
|
|
13782
|
+
ChainKnownTypes
|
|
13783
|
+
>
|
|
13784
|
+
>;
|
|
13785
|
+
|
|
13443
13786
|
/**
|
|
13444
13787
|
* Generic pallet tx call
|
|
13445
13788
|
**/
|