@argonprotocol/mainchain 0.0.16 → 0.0.18
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/README.md +46 -0
- package/lib/cjs/WageProtector.d.ts +37 -0
- package/lib/cjs/WageProtector.js +63 -0
- package/lib/cjs/WageProtector.js.map +1 -0
- package/lib/cjs/__test__/WageProtector.test.d.ts +1 -0
- package/lib/cjs/__test__/WageProtector.test.js +28 -0
- package/lib/cjs/__test__/WageProtector.test.js.map +1 -0
- package/lib/cjs/index.d.ts +16 -1
- package/lib/cjs/index.js +22 -7
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interfaces/augment-api-consts.d.ts +34 -7
- package/lib/cjs/interfaces/augment-api-errors.d.ts +115 -4
- package/lib/cjs/interfaces/augment-api-events.d.ts +172 -14
- package/lib/cjs/interfaces/augment-api-query.d.ts +160 -29
- package/lib/cjs/interfaces/augment-api-tx.d.ts +140 -13
- package/lib/cjs/interfaces/augment-types.d.ts +4 -1
- package/lib/cjs/interfaces/lookup.d.ts +809 -307
- package/lib/cjs/interfaces/lookup.js +840 -338
- package/lib/cjs/interfaces/lookup.js.map +1 -1
- package/lib/cjs/interfaces/registry.d.ts +55 -9
- package/lib/cjs/interfaces/types-lookup.d.ts +792 -328
- package/lib/esm/WageProtector.d.ts +37 -0
- package/lib/esm/WageProtector.js +59 -0
- package/lib/esm/WageProtector.js.map +1 -0
- package/lib/esm/__test__/WageProtector.test.d.ts +1 -0
- package/lib/esm/__test__/WageProtector.test.js +26 -0
- package/lib/esm/__test__/WageProtector.test.js.map +1 -0
- package/lib/esm/index.d.ts +16 -1
- package/lib/esm/index.js +16 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interfaces/augment-api-consts.d.ts +34 -7
- package/lib/esm/interfaces/augment-api-errors.d.ts +115 -4
- package/lib/esm/interfaces/augment-api-events.d.ts +172 -14
- package/lib/esm/interfaces/augment-api-query.d.ts +160 -29
- package/lib/esm/interfaces/augment-api-tx.d.ts +140 -13
- package/lib/esm/interfaces/augment-types.d.ts +4 -1
- package/lib/esm/interfaces/lookup.d.ts +809 -307
- package/lib/esm/interfaces/lookup.js +840 -338
- package/lib/esm/interfaces/lookup.js.map +1 -1
- package/lib/esm/interfaces/registry.d.ts +55 -9
- package/lib/esm/interfaces/types-lookup.d.ts +792 -328
- package/lib/tsconfig-cjs.tsbuildinfo +1 -1
- package/lib/tsconfig-types.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/WageProtector.d.ts +37 -0
- package/lib/types/__test__/WageProtector.test.d.ts +1 -0
- package/lib/types/index.d.ts +16 -1
- package/lib/types/interfaces/augment-api-consts.d.ts +34 -7
- package/lib/types/interfaces/augment-api-errors.d.ts +115 -4
- package/lib/types/interfaces/augment-api-events.d.ts +172 -14
- package/lib/types/interfaces/augment-api-query.d.ts +160 -29
- package/lib/types/interfaces/augment-api-tx.d.ts +140 -13
- package/lib/types/interfaces/augment-types.d.ts +4 -1
- package/lib/types/interfaces/lookup.d.ts +809 -307
- package/lib/types/interfaces/registry.d.ts +55 -9
- package/lib/types/interfaces/types-lookup.d.ts +792 -328
- package/package.json +28 -7
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ArgonClient } from "./index";
|
|
2
|
+
export interface IArgonCpiSnapshot {
|
|
3
|
+
argonUsdTargetPrice: bigint;
|
|
4
|
+
argonUsdPrice: bigint;
|
|
5
|
+
finalizedBlock: Uint8Array;
|
|
6
|
+
tick: bigint;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The WageProtector class is used to protect wages from inflation by using the current Argon Price Index to adjust the
|
|
10
|
+
* baseAmount to current conditions. This ensures that the wage is always stable and does not lose or gain value based on
|
|
11
|
+
* demand for the argon or fiat monetary supply changes.
|
|
12
|
+
*/
|
|
13
|
+
export declare class WageProtector {
|
|
14
|
+
latestCpi: IArgonCpiSnapshot;
|
|
15
|
+
constructor(latestCpi: IArgonCpiSnapshot);
|
|
16
|
+
/**
|
|
17
|
+
* Converts the base wage to the current wage using the latest CPI snapshot
|
|
18
|
+
*
|
|
19
|
+
* @param baseWage The base wage to convert
|
|
20
|
+
* @returns The protected wage
|
|
21
|
+
*/
|
|
22
|
+
getProtectedWage(baseWage: bigint): bigint;
|
|
23
|
+
/**
|
|
24
|
+
* Subscribes to the current CPI and calls the callback function whenever the CPI changes
|
|
25
|
+
* @param client The ArgonClient to use
|
|
26
|
+
* @param callback The callback function to call when the CPI changes
|
|
27
|
+
* @returns An object with an unsubscribe function that can be called to stop the subscription
|
|
28
|
+
*/
|
|
29
|
+
static subscribe(client: ArgonClient, callback: (cpi: WageProtector) => void): Promise<{
|
|
30
|
+
unsubscribe: () => void;
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new WageProtector instance by subscribing to the current CPI and waiting for the first value
|
|
34
|
+
* @param client The ArgonClient to use
|
|
35
|
+
*/
|
|
36
|
+
static create(client: ArgonClient): Promise<WageProtector>;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,15 +3,30 @@ import "./interfaces/augment-types.js";
|
|
|
3
3
|
import "./interfaces/types-lookup.js";
|
|
4
4
|
import { KeyringPair, KeyringPair$Json } from "@polkadot/keyring/types";
|
|
5
5
|
import { ApiPromise, Keyring } from '@polkadot/api';
|
|
6
|
-
import {
|
|
6
|
+
import { decodeAddress, mnemonicGenerate } from '@polkadot/util-crypto';
|
|
7
7
|
import { EventRecord } from "@polkadot/types/interfaces/system";
|
|
8
8
|
import { InterfaceTypes } from '@polkadot/types/types/registry';
|
|
9
9
|
import { KeypairType } from "@polkadot/util-crypto/types";
|
|
10
|
+
export { WageProtector } from "./WageProtector";
|
|
10
11
|
export { Keyring, KeyringPair, KeyringPair$Json, KeypairType, mnemonicGenerate, decodeAddress };
|
|
11
12
|
export * from "@polkadot/types";
|
|
12
13
|
export * from '@polkadot/types/lookup';
|
|
13
14
|
export { InterfaceTypes as interfaces };
|
|
14
15
|
export type ArgonClient = ApiPromise;
|
|
16
|
+
/**
|
|
17
|
+
* Wait for the crypto library to be ready (requires wasm, which needs async loading in commonjs)
|
|
18
|
+
*/
|
|
15
19
|
export declare function waitForLoad(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Get a client for the given host
|
|
22
|
+
* @param host The host to connect to
|
|
23
|
+
* @returns The client
|
|
24
|
+
*/
|
|
16
25
|
export declare function getClient(host: string): Promise<ArgonClient>;
|
|
26
|
+
/**
|
|
27
|
+
* Check for an extrinsic success event in the given events. Helpful to validate the result of an extrinsic inclusion in a block (it will be included even if it fails)
|
|
28
|
+
* @param events The events to check
|
|
29
|
+
* @param client The client to use
|
|
30
|
+
* @returns A promise that resolves if the extrinsic was successful, and rejects if it failed
|
|
31
|
+
*/
|
|
17
32
|
export declare function checkForExtrinsicSuccess(events: EventRecord[], client: ArgonClient): Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/consts';
|
|
2
2
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
3
3
|
import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
|
+
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
5
|
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
|
|
5
6
|
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
|
6
7
|
declare module '@polkadot/api-base/types/consts' {
|
|
@@ -47,13 +48,17 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
47
48
|
};
|
|
48
49
|
blockRewards: {
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* The block number at which the halving begins for ownership shares
|
|
51
52
|
**/
|
|
52
|
-
|
|
53
|
+
halvingBeginBlock: u32 & AugmentedConst<ApiType>;
|
|
53
54
|
/**
|
|
54
55
|
* Number of blocks for halving of ownership share rewards
|
|
55
56
|
**/
|
|
56
57
|
halvingBlocks: u32 & AugmentedConst<ApiType>;
|
|
58
|
+
/**
|
|
59
|
+
* The growth path for both ownership and argons before halving
|
|
60
|
+
**/
|
|
61
|
+
incrementalGrowth: ITuple<[u128, u32, u128]> & AugmentedConst<ApiType>;
|
|
57
62
|
/**
|
|
58
63
|
* Blocks until a block reward is mature
|
|
59
64
|
**/
|
|
@@ -62,17 +67,29 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
62
67
|
* Percent as a number out of 100 of the block reward that goes to the miner.
|
|
63
68
|
**/
|
|
64
69
|
minerPayoutPercent: u128 & AugmentedConst<ApiType>;
|
|
70
|
+
/**
|
|
71
|
+
* Number of argons minted per block
|
|
72
|
+
**/
|
|
73
|
+
startingArgonsPerBlock: u128 & AugmentedConst<ApiType>;
|
|
65
74
|
/**
|
|
66
75
|
* Number of ownership tokens minted per block
|
|
67
76
|
**/
|
|
68
77
|
startingOwnershipTokensPerBlock: u128 & AugmentedConst<ApiType>;
|
|
69
78
|
};
|
|
70
79
|
blockSealSpec: {
|
|
80
|
+
/**
|
|
81
|
+
* The frequency we should update the compute difficulty
|
|
82
|
+
**/
|
|
83
|
+
computeDifficultyChangePeriod: u32 & AugmentedConst<ApiType>;
|
|
71
84
|
/**
|
|
72
85
|
* The number of historical compute times to use to calculate the rolling compute average
|
|
73
86
|
* (for adjustment)
|
|
74
87
|
**/
|
|
75
|
-
|
|
88
|
+
historicalComputeBlocksForAverage: u32 & AugmentedConst<ApiType>;
|
|
89
|
+
/**
|
|
90
|
+
* The number of historical vote blocks to use to calculate the rolling vote average
|
|
91
|
+
**/
|
|
92
|
+
historicalVoteBlocksForAverage: u32 & AugmentedConst<ApiType>;
|
|
76
93
|
/**
|
|
77
94
|
* The maximum active notaries allowed
|
|
78
95
|
**/
|
|
@@ -124,7 +141,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
124
141
|
* How long a transfer should remain in storage before returning. NOTE: there is a 2 tick
|
|
125
142
|
* grace period where we will still allow a transfer
|
|
126
143
|
**/
|
|
127
|
-
transferExpirationTicks:
|
|
144
|
+
transferExpirationTicks: u64 & AugmentedConst<ApiType>;
|
|
128
145
|
};
|
|
129
146
|
grandpa: {
|
|
130
147
|
/**
|
|
@@ -154,6 +171,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
154
171
|
* The maximum number of Miners that the pallet can hold.
|
|
155
172
|
**/
|
|
156
173
|
maxMiners: u32 & AugmentedConst<ApiType>;
|
|
174
|
+
/**
|
|
175
|
+
* The minimum bond amount possible
|
|
176
|
+
**/
|
|
177
|
+
minimumBondAmount: u128 & AugmentedConst<ApiType>;
|
|
157
178
|
/**
|
|
158
179
|
* The max percent swing for the ownership bond amount per slot (from the last percent
|
|
159
180
|
**/
|
|
@@ -214,7 +235,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
214
235
|
* Number of ticks to delay changing a notaries' meta (this is to allow a window for
|
|
215
236
|
* notaries to switch to new keys after a new key is finalized)
|
|
216
237
|
**/
|
|
217
|
-
metaChangesTickDelay:
|
|
238
|
+
metaChangesTickDelay: u64 & AugmentedConst<ApiType>;
|
|
218
239
|
};
|
|
219
240
|
ownership: {
|
|
220
241
|
/**
|
|
@@ -256,11 +277,11 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
256
277
|
/**
|
|
257
278
|
* The maximum number of ticks to preserve a price index
|
|
258
279
|
**/
|
|
259
|
-
maxDowntimeTicksBeforeReset:
|
|
280
|
+
maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
|
|
260
281
|
/**
|
|
261
282
|
* The oldest history to keep
|
|
262
283
|
**/
|
|
263
|
-
maxPriceAgeInTicks:
|
|
284
|
+
maxPriceAgeInTicks: u64 & AugmentedConst<ApiType>;
|
|
264
285
|
};
|
|
265
286
|
proxy: {
|
|
266
287
|
/**
|
|
@@ -342,6 +363,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
342
363
|
**/
|
|
343
364
|
minimumPeriod: u64 & AugmentedConst<ApiType>;
|
|
344
365
|
};
|
|
366
|
+
tokenGateway: {
|
|
367
|
+
/**
|
|
368
|
+
* The decimals of the native currency
|
|
369
|
+
**/
|
|
370
|
+
decimals: u8 & AugmentedConst<ApiType>;
|
|
371
|
+
};
|
|
345
372
|
transactionPayment: {
|
|
346
373
|
/**
|
|
347
374
|
* A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
|
|
@@ -121,14 +121,14 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
121
121
|
* The block vote did not reach the minimum voting power at time of the grandparent block
|
|
122
122
|
**/
|
|
123
123
|
InsufficientVotingPower: AugmentedError<ApiType>;
|
|
124
|
-
/**
|
|
125
|
-
* Message was not signed by a registered miner
|
|
126
|
-
**/
|
|
127
|
-
InvalidAuthoritySignature: AugmentedError<ApiType>;
|
|
128
124
|
/**
|
|
129
125
|
* The merkle proof of vote inclusion in the notebook is invalid
|
|
130
126
|
**/
|
|
131
127
|
InvalidBlockVoteProof: AugmentedError<ApiType>;
|
|
128
|
+
/**
|
|
129
|
+
* Invalid fork power parent
|
|
130
|
+
**/
|
|
131
|
+
InvalidForkPowerParent: AugmentedError<ApiType>;
|
|
132
132
|
/**
|
|
133
133
|
* Vote not submitted by the right miner
|
|
134
134
|
**/
|
|
@@ -269,6 +269,56 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
269
269
|
**/
|
|
270
270
|
NotebookIncludesExpiredLocalchainTransfer: AugmentedError<ApiType>;
|
|
271
271
|
};
|
|
272
|
+
digests: {
|
|
273
|
+
/**
|
|
274
|
+
* Failed to decode digests
|
|
275
|
+
**/
|
|
276
|
+
CouldNotDecodeDigest: AugmentedError<ApiType>;
|
|
277
|
+
/**
|
|
278
|
+
* Duplicate AuthorDigest found
|
|
279
|
+
**/
|
|
280
|
+
DuplicateAuthorDigest: AugmentedError<ApiType>;
|
|
281
|
+
/**
|
|
282
|
+
* Duplicate BlockVoteDigest found
|
|
283
|
+
**/
|
|
284
|
+
DuplicateBlockVoteDigest: AugmentedError<ApiType>;
|
|
285
|
+
/**
|
|
286
|
+
* Duplicate ForkPowerDigest found
|
|
287
|
+
**/
|
|
288
|
+
DuplicateForkPowerDigest: AugmentedError<ApiType>;
|
|
289
|
+
/**
|
|
290
|
+
* Duplicate NotebookDigest found
|
|
291
|
+
**/
|
|
292
|
+
DuplicateNotebookDigest: AugmentedError<ApiType>;
|
|
293
|
+
/**
|
|
294
|
+
* Duplicate ParentVotingKeyDigest found
|
|
295
|
+
**/
|
|
296
|
+
DuplicateParentVotingKeyDigest: AugmentedError<ApiType>;
|
|
297
|
+
/**
|
|
298
|
+
* Duplicate TickDigest found
|
|
299
|
+
**/
|
|
300
|
+
DuplicateTickDigest: AugmentedError<ApiType>;
|
|
301
|
+
/**
|
|
302
|
+
* Missing AuthorDigest
|
|
303
|
+
**/
|
|
304
|
+
MissingAuthorDigest: AugmentedError<ApiType>;
|
|
305
|
+
/**
|
|
306
|
+
* Missing BlockVoteDigest
|
|
307
|
+
**/
|
|
308
|
+
MissingBlockVoteDigest: AugmentedError<ApiType>;
|
|
309
|
+
/**
|
|
310
|
+
* Missing NotebookDigest
|
|
311
|
+
**/
|
|
312
|
+
MissingNotebookDigest: AugmentedError<ApiType>;
|
|
313
|
+
/**
|
|
314
|
+
* Missing ParentVotingKeyDigest
|
|
315
|
+
**/
|
|
316
|
+
MissingParentVotingKeyDigest: AugmentedError<ApiType>;
|
|
317
|
+
/**
|
|
318
|
+
* Missing TickDigest
|
|
319
|
+
**/
|
|
320
|
+
MissingTickDigest: AugmentedError<ApiType>;
|
|
321
|
+
};
|
|
272
322
|
domains: {
|
|
273
323
|
/**
|
|
274
324
|
* Error decoding account from notary
|
|
@@ -323,6 +373,29 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
323
373
|
**/
|
|
324
374
|
TooSoon: AugmentedError<ApiType>;
|
|
325
375
|
};
|
|
376
|
+
hyperbridge: {};
|
|
377
|
+
ismp: {
|
|
378
|
+
/**
|
|
379
|
+
* Couldn't update challenge period
|
|
380
|
+
**/
|
|
381
|
+
ChallengePeriodUpdateFailed: AugmentedError<ApiType>;
|
|
382
|
+
/**
|
|
383
|
+
* Encountered an error while creating the consensus client.
|
|
384
|
+
**/
|
|
385
|
+
ConsensusClientCreationFailed: AugmentedError<ApiType>;
|
|
386
|
+
/**
|
|
387
|
+
* Invalid ISMP message
|
|
388
|
+
**/
|
|
389
|
+
InvalidMessage: AugmentedError<ApiType>;
|
|
390
|
+
/**
|
|
391
|
+
* Requested message was not found
|
|
392
|
+
**/
|
|
393
|
+
MessageNotFound: AugmentedError<ApiType>;
|
|
394
|
+
/**
|
|
395
|
+
* Couldn't update unbonding period
|
|
396
|
+
**/
|
|
397
|
+
UnbondingPeriodUpdateFailed: AugmentedError<ApiType>;
|
|
398
|
+
};
|
|
326
399
|
miningSlot: {
|
|
327
400
|
AccountWouldBeBelowMinimum: AugmentedError<ApiType>;
|
|
328
401
|
BidTooLow: AugmentedError<ApiType>;
|
|
@@ -663,6 +736,44 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
663
736
|
Unauthorized: AugmentedError<ApiType>;
|
|
664
737
|
};
|
|
665
738
|
ticks: {};
|
|
739
|
+
tokenGateway: {
|
|
740
|
+
/**
|
|
741
|
+
* Asset Id creation failed
|
|
742
|
+
**/
|
|
743
|
+
AssetCreationError: AugmentedError<ApiType>;
|
|
744
|
+
/**
|
|
745
|
+
* Asset decimals not found
|
|
746
|
+
**/
|
|
747
|
+
AssetDecimalsNotFound: AugmentedError<ApiType>;
|
|
748
|
+
/**
|
|
749
|
+
* Error while teleporting asset
|
|
750
|
+
**/
|
|
751
|
+
AssetTeleportError: AugmentedError<ApiType>;
|
|
752
|
+
/**
|
|
753
|
+
* Coprocessor was not configured in the runtime
|
|
754
|
+
**/
|
|
755
|
+
CoprocessorNotConfigured: AugmentedError<ApiType>;
|
|
756
|
+
/**
|
|
757
|
+
* Asset or update Dispatch Error
|
|
758
|
+
**/
|
|
759
|
+
DispatchError: AugmentedError<ApiType>;
|
|
760
|
+
/**
|
|
761
|
+
* Only root or asset owner can update asset
|
|
762
|
+
**/
|
|
763
|
+
NotAssetOwner: AugmentedError<ApiType>;
|
|
764
|
+
/**
|
|
765
|
+
* Protocol Params have not been initialized
|
|
766
|
+
**/
|
|
767
|
+
NotInitialized: AugmentedError<ApiType>;
|
|
768
|
+
/**
|
|
769
|
+
* Unknown Asset
|
|
770
|
+
**/
|
|
771
|
+
UnknownAsset: AugmentedError<ApiType>;
|
|
772
|
+
/**
|
|
773
|
+
* A asset that has not been registered
|
|
774
|
+
**/
|
|
775
|
+
UnregisteredAsset: AugmentedError<ApiType>;
|
|
776
|
+
};
|
|
666
777
|
txPause: {
|
|
667
778
|
/**
|
|
668
779
|
* The call is paused.
|
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinRejectedReason, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBondBondExpiration, ArgonPrimitivesBondBondType, ArgonPrimitivesDomainZoneRecord, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryRecord, ArgonRuntimeConfigsProxyType, FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, IsmpConsensusStateMachineHeight, IsmpConsensusStateMachineId, IsmpEventsRequestResponseHandled, IsmpEventsTimeoutHandled, IsmpHostStateMachine, PalletDomainsDomainRegistration, PalletHyperbridgeVersionedHostParams, PalletIsmpErrorsHandlingError, PalletMintMintType, PalletMultisigTimepoint, SpConsensusGrandpaAppPublic, SpRuntimeDispatchError } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -300,7 +300,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
300
300
|
* A localchain transfer could not be cleaned up properly. Possible invalid transfer
|
|
301
301
|
* needing investigation.
|
|
302
302
|
**/
|
|
303
|
-
|
|
303
|
+
PossibleInvalidLocalchainTransferAllowed: AugmentedEvent<ApiType, [transferId: u32, notaryId: u32, notebookNumber: u32], {
|
|
304
304
|
transferId: u32;
|
|
305
305
|
notaryId: u32;
|
|
306
306
|
notebookNumber: u32;
|
|
@@ -314,7 +314,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
314
314
|
tax: u128;
|
|
315
315
|
error: SpRuntimeDispatchError;
|
|
316
316
|
}>;
|
|
317
|
-
|
|
317
|
+
/**
|
|
318
|
+
* Transfer from Localchain to Mainchain
|
|
319
|
+
**/
|
|
320
|
+
TransferFromLocalchain: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32], {
|
|
318
321
|
accountId: AccountId32;
|
|
319
322
|
amount: u128;
|
|
320
323
|
notaryId: u32;
|
|
@@ -322,20 +325,26 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
322
325
|
/**
|
|
323
326
|
* A transfer into the mainchain failed
|
|
324
327
|
**/
|
|
325
|
-
|
|
328
|
+
TransferFromLocalchainError: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, notaryId: u32, notebookNumber: u32, error: SpRuntimeDispatchError], {
|
|
326
329
|
accountId: AccountId32;
|
|
327
330
|
amount: u128;
|
|
328
331
|
notaryId: u32;
|
|
329
332
|
notebookNumber: u32;
|
|
330
333
|
error: SpRuntimeDispatchError;
|
|
331
334
|
}>;
|
|
332
|
-
|
|
335
|
+
/**
|
|
336
|
+
* Funds sent to a localchain
|
|
337
|
+
**/
|
|
338
|
+
TransferToLocalchain: AugmentedEvent<ApiType, [accountId: AccountId32, amount: u128, transferId: u32, notaryId: u32, expirationTick: u64], {
|
|
333
339
|
accountId: AccountId32;
|
|
334
340
|
amount: u128;
|
|
335
341
|
transferId: u32;
|
|
336
342
|
notaryId: u32;
|
|
337
|
-
expirationTick:
|
|
343
|
+
expirationTick: u64;
|
|
338
344
|
}>;
|
|
345
|
+
/**
|
|
346
|
+
* Transfer to localchain expired and rolled back
|
|
347
|
+
**/
|
|
339
348
|
TransferToLocalchainExpired: AugmentedEvent<ApiType, [accountId: AccountId32, transferId: u32, notaryId: u32], {
|
|
340
349
|
accountId: AccountId32;
|
|
341
350
|
transferId: u32;
|
|
@@ -352,6 +361,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
352
361
|
error: SpRuntimeDispatchError;
|
|
353
362
|
}>;
|
|
354
363
|
};
|
|
364
|
+
digests: {};
|
|
355
365
|
domains: {
|
|
356
366
|
/**
|
|
357
367
|
* A domain was expired
|
|
@@ -412,6 +422,120 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
412
422
|
**/
|
|
413
423
|
Resumed: AugmentedEvent<ApiType, []>;
|
|
414
424
|
};
|
|
425
|
+
hyperbridge: {
|
|
426
|
+
/**
|
|
427
|
+
* Hyperbridge governance has now updated it's host params on this chain.
|
|
428
|
+
**/
|
|
429
|
+
HostParamsUpdated: AugmentedEvent<ApiType, [old: PalletHyperbridgeVersionedHostParams, new_: PalletHyperbridgeVersionedHostParams], {
|
|
430
|
+
old: PalletHyperbridgeVersionedHostParams;
|
|
431
|
+
new_: PalletHyperbridgeVersionedHostParams;
|
|
432
|
+
}>;
|
|
433
|
+
/**
|
|
434
|
+
* Hyperbridge has withdrawn it's protocol revenue
|
|
435
|
+
**/
|
|
436
|
+
ProtocolRevenueWithdrawn: AugmentedEvent<ApiType, [amount: u128, account: AccountId32], {
|
|
437
|
+
amount: u128;
|
|
438
|
+
account: AccountId32;
|
|
439
|
+
}>;
|
|
440
|
+
/**
|
|
441
|
+
* A relayer has withdrawn some fees
|
|
442
|
+
**/
|
|
443
|
+
RelayerFeeWithdrawn: AugmentedEvent<ApiType, [amount: u128, account: AccountId32], {
|
|
444
|
+
amount: u128;
|
|
445
|
+
account: AccountId32;
|
|
446
|
+
}>;
|
|
447
|
+
};
|
|
448
|
+
ismp: {
|
|
449
|
+
/**
|
|
450
|
+
* Indicates that a consensus client has been created
|
|
451
|
+
**/
|
|
452
|
+
ConsensusClientCreated: AugmentedEvent<ApiType, [consensusClientId: U8aFixed], {
|
|
453
|
+
consensusClientId: U8aFixed;
|
|
454
|
+
}>;
|
|
455
|
+
/**
|
|
456
|
+
* Indicates that a consensus client has been created
|
|
457
|
+
**/
|
|
458
|
+
ConsensusClientFrozen: AugmentedEvent<ApiType, [consensusClientId: U8aFixed], {
|
|
459
|
+
consensusClientId: U8aFixed;
|
|
460
|
+
}>;
|
|
461
|
+
/**
|
|
462
|
+
* Some errors handling some ismp messages
|
|
463
|
+
**/
|
|
464
|
+
Errors: AugmentedEvent<ApiType, [errors: Vec<PalletIsmpErrorsHandlingError>], {
|
|
465
|
+
errors: Vec<PalletIsmpErrorsHandlingError>;
|
|
466
|
+
}>;
|
|
467
|
+
/**
|
|
468
|
+
* Get Response Handled
|
|
469
|
+
**/
|
|
470
|
+
GetRequestHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
|
|
471
|
+
/**
|
|
472
|
+
* Get request timeout handled
|
|
473
|
+
**/
|
|
474
|
+
GetRequestTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
|
|
475
|
+
/**
|
|
476
|
+
* Post Request Handled
|
|
477
|
+
**/
|
|
478
|
+
PostRequestHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
|
|
479
|
+
/**
|
|
480
|
+
* Post request timeout handled
|
|
481
|
+
**/
|
|
482
|
+
PostRequestTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
|
|
483
|
+
/**
|
|
484
|
+
* Post Response Handled
|
|
485
|
+
**/
|
|
486
|
+
PostResponseHandled: AugmentedEvent<ApiType, [IsmpEventsRequestResponseHandled]>;
|
|
487
|
+
/**
|
|
488
|
+
* Post response timeout handled
|
|
489
|
+
**/
|
|
490
|
+
PostResponseTimeoutHandled: AugmentedEvent<ApiType, [IsmpEventsTimeoutHandled]>;
|
|
491
|
+
/**
|
|
492
|
+
* An Outgoing Request has been deposited
|
|
493
|
+
**/
|
|
494
|
+
Request: AugmentedEvent<ApiType, [destChain: IsmpHostStateMachine, sourceChain: IsmpHostStateMachine, requestNonce: u64, commitment: H256], {
|
|
495
|
+
destChain: IsmpHostStateMachine;
|
|
496
|
+
sourceChain: IsmpHostStateMachine;
|
|
497
|
+
requestNonce: u64;
|
|
498
|
+
commitment: H256;
|
|
499
|
+
}>;
|
|
500
|
+
/**
|
|
501
|
+
* An Outgoing Response has been deposited
|
|
502
|
+
**/
|
|
503
|
+
Response: AugmentedEvent<ApiType, [destChain: IsmpHostStateMachine, sourceChain: IsmpHostStateMachine, requestNonce: u64, commitment: H256, reqCommitment: H256], {
|
|
504
|
+
destChain: IsmpHostStateMachine;
|
|
505
|
+
sourceChain: IsmpHostStateMachine;
|
|
506
|
+
requestNonce: u64;
|
|
507
|
+
commitment: H256;
|
|
508
|
+
reqCommitment: H256;
|
|
509
|
+
}>;
|
|
510
|
+
/**
|
|
511
|
+
* Emitted when a state commitment is vetoed by a fisherman
|
|
512
|
+
**/
|
|
513
|
+
StateCommitmentVetoed: AugmentedEvent<ApiType, [height: IsmpConsensusStateMachineHeight, fisherman: Bytes], {
|
|
514
|
+
height: IsmpConsensusStateMachineHeight;
|
|
515
|
+
fisherman: Bytes;
|
|
516
|
+
}>;
|
|
517
|
+
/**
|
|
518
|
+
* Emitted when a state machine is successfully updated to a new height
|
|
519
|
+
**/
|
|
520
|
+
StateMachineUpdated: AugmentedEvent<ApiType, [stateMachineId: IsmpConsensusStateMachineId, latestHeight: u64], {
|
|
521
|
+
stateMachineId: IsmpConsensusStateMachineId;
|
|
522
|
+
latestHeight: u64;
|
|
523
|
+
}>;
|
|
524
|
+
};
|
|
525
|
+
ismpGrandpa: {
|
|
526
|
+
/**
|
|
527
|
+
* State machines have been added to whitelist
|
|
528
|
+
**/
|
|
529
|
+
StateMachineAdded: AugmentedEvent<ApiType, [stateMachines: Vec<IsmpHostStateMachine>], {
|
|
530
|
+
stateMachines: Vec<IsmpHostStateMachine>;
|
|
531
|
+
}>;
|
|
532
|
+
/**
|
|
533
|
+
* State machines have been removed from the whitelist
|
|
534
|
+
**/
|
|
535
|
+
StateMachineRemoved: AugmentedEvent<ApiType, [stateMachines: Vec<IsmpHostStateMachine>], {
|
|
536
|
+
stateMachines: Vec<IsmpHostStateMachine>;
|
|
537
|
+
}>;
|
|
538
|
+
};
|
|
415
539
|
miningSlot: {
|
|
416
540
|
NewMiners: AugmentedEvent<ApiType, [startIndex: u32, newMiners: Vec<ArgonPrimitivesBlockSealMiningRegistration>], {
|
|
417
541
|
startIndex: u32;
|
|
@@ -516,10 +640,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
516
640
|
/**
|
|
517
641
|
* Notary metadata queued for update
|
|
518
642
|
**/
|
|
519
|
-
NotaryMetaUpdateQueued: AugmentedEvent<ApiType, [notaryId: u32, meta: ArgonPrimitivesNotaryNotaryMeta, effectiveTick:
|
|
643
|
+
NotaryMetaUpdateQueued: AugmentedEvent<ApiType, [notaryId: u32, meta: ArgonPrimitivesNotaryNotaryMeta, effectiveTick: u64], {
|
|
520
644
|
notaryId: u32;
|
|
521
645
|
meta: ArgonPrimitivesNotaryNotaryMeta;
|
|
522
|
-
effectiveTick:
|
|
646
|
+
effectiveTick: u64;
|
|
523
647
|
}>;
|
|
524
648
|
/**
|
|
525
649
|
* A user has proposed operating as a notary
|
|
@@ -725,10 +849,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
725
849
|
/**
|
|
726
850
|
* A proxy was added.
|
|
727
851
|
**/
|
|
728
|
-
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType:
|
|
852
|
+
ProxyAdded: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
|
|
729
853
|
delegator: AccountId32;
|
|
730
854
|
delegatee: AccountId32;
|
|
731
|
-
proxyType:
|
|
855
|
+
proxyType: ArgonRuntimeConfigsProxyType;
|
|
732
856
|
delay: u32;
|
|
733
857
|
}>;
|
|
734
858
|
/**
|
|
@@ -740,20 +864,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
740
864
|
/**
|
|
741
865
|
* A proxy was removed.
|
|
742
866
|
**/
|
|
743
|
-
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType:
|
|
867
|
+
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, delay: u32], {
|
|
744
868
|
delegator: AccountId32;
|
|
745
869
|
delegatee: AccountId32;
|
|
746
|
-
proxyType:
|
|
870
|
+
proxyType: ArgonRuntimeConfigsProxyType;
|
|
747
871
|
delay: u32;
|
|
748
872
|
}>;
|
|
749
873
|
/**
|
|
750
874
|
* A pure account has been created by new proxy with given
|
|
751
875
|
* disambiguation index and proxy type.
|
|
752
876
|
**/
|
|
753
|
-
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType:
|
|
877
|
+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: ArgonRuntimeConfigsProxyType, disambiguationIndex: u16], {
|
|
754
878
|
pure: AccountId32;
|
|
755
879
|
who: AccountId32;
|
|
756
|
-
proxyType:
|
|
880
|
+
proxyType: ArgonRuntimeConfigsProxyType;
|
|
757
881
|
disambiguationIndex: u16;
|
|
758
882
|
}>;
|
|
759
883
|
};
|
|
@@ -827,6 +951,40 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
827
951
|
checkVersion: bool;
|
|
828
952
|
}>;
|
|
829
953
|
};
|
|
954
|
+
tokenGateway: {
|
|
955
|
+
/**
|
|
956
|
+
* An asset has been received and transferred to the beneficiary's account
|
|
957
|
+
**/
|
|
958
|
+
AssetReceived: AugmentedEvent<ApiType, [beneficiary: AccountId32, amount: u128, source: IsmpHostStateMachine], {
|
|
959
|
+
beneficiary: AccountId32;
|
|
960
|
+
amount: u128;
|
|
961
|
+
source: IsmpHostStateMachine;
|
|
962
|
+
}>;
|
|
963
|
+
/**
|
|
964
|
+
* An asset has been refunded and transferred to the beneficiary's account
|
|
965
|
+
**/
|
|
966
|
+
AssetRefunded: AugmentedEvent<ApiType, [beneficiary: AccountId32, amount: u128, source: IsmpHostStateMachine], {
|
|
967
|
+
beneficiary: AccountId32;
|
|
968
|
+
amount: u128;
|
|
969
|
+
source: IsmpHostStateMachine;
|
|
970
|
+
}>;
|
|
971
|
+
/**
|
|
972
|
+
* An asset has been teleported
|
|
973
|
+
**/
|
|
974
|
+
AssetTeleported: AugmentedEvent<ApiType, [from: AccountId32, to: H256, amount: u128, dest: IsmpHostStateMachine, commitment: H256], {
|
|
975
|
+
from: AccountId32;
|
|
976
|
+
to: H256;
|
|
977
|
+
amount: u128;
|
|
978
|
+
dest: IsmpHostStateMachine;
|
|
979
|
+
commitment: H256;
|
|
980
|
+
}>;
|
|
981
|
+
/**
|
|
982
|
+
* ERC6160 asset creation request dispatched to hyperbridge
|
|
983
|
+
**/
|
|
984
|
+
ERC6160AssetRegistrationDispatched: AugmentedEvent<ApiType, [commitment: H256], {
|
|
985
|
+
commitment: H256;
|
|
986
|
+
}>;
|
|
987
|
+
};
|
|
830
988
|
transactionPayment: {
|
|
831
989
|
/**
|
|
832
990
|
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|