@argonprotocol/mainchain 1.4.12-dev.ece9349b → 1.4.13-dev.6ac99b65
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/browser/index.d.ts +293 -270
- package/browser/index.js +2 -7
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +2 -7
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +293 -270
- package/lib/index.d.ts +293 -270
- package/lib/index.js +2 -7
- package/lib/index.js.map +1 -1
- package/package.json +12 -10
- package/src/interfaces/augment-api-consts.ts +1 -0
- package/src/interfaces/augment-api-errors.ts +1 -1
- package/src/interfaces/augment-api-events.ts +19 -7
- package/src/interfaces/augment-api-query.ts +1 -0
- package/src/interfaces/augment-api-rpc.ts +22 -2
- package/src/interfaces/augment-api-runtime.ts +1 -0
- package/src/interfaces/augment-api.ts +1 -0
- package/src/interfaces/augment-types.ts +9 -1
- package/src/interfaces/lookup.ts +267 -256
- package/src/interfaces/registry.ts +3 -0
- package/src/interfaces/types-lookup.ts +274 -258
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13-dev.6ac99b65",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@ethereumjs/block": "^10.1.1",
|
|
54
54
|
"@ethereumjs/mpt": "^10.1.1",
|
|
55
|
-
"@polkadot/api": "^
|
|
56
|
-
"@polkadot/api-base": "^
|
|
55
|
+
"@polkadot/api": "^17.0.1",
|
|
56
|
+
"@polkadot/api-base": "^17.0.1",
|
|
57
57
|
"@polkadot/keyring": "^14.0.3",
|
|
58
|
-
"@polkadot/rpc-core": "^
|
|
59
|
-
"@polkadot/rpc-provider": "^
|
|
60
|
-
"@polkadot/types": "^
|
|
61
|
-
"@polkadot/types-codec": "^
|
|
58
|
+
"@polkadot/rpc-core": "^17.0.1",
|
|
59
|
+
"@polkadot/rpc-provider": "^17.0.1",
|
|
60
|
+
"@polkadot/types": "^17.0.1",
|
|
61
|
+
"@polkadot/types-codec": "^17.0.1",
|
|
62
62
|
"@polkadot/util": "^14.0.3",
|
|
63
63
|
"@polkadot/util-crypto": "^14.0.3",
|
|
64
64
|
"bignumber.js": "^9.3.1",
|
|
@@ -67,15 +67,17 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
70
|
-
"@argonprotocol/testing": "1.4.
|
|
71
|
-
"@polkadot/typegen": "^
|
|
70
|
+
"@argonprotocol/testing": "1.4.13-dev.6ac99b65",
|
|
71
|
+
"@polkadot/typegen": "^17.0.1",
|
|
72
72
|
"@substrate/ss58-registry": "^1.51.0",
|
|
73
73
|
"@types/node": "^20",
|
|
74
|
+
"@types/ws": "^8.18.1",
|
|
74
75
|
"shx": "^0.4.0",
|
|
75
76
|
"tsup": "^8.5.0",
|
|
76
77
|
"tsx": "^4.20.4",
|
|
77
78
|
"typescript": "^5.9.2",
|
|
78
|
-
"vitest": "^5.0.0"
|
|
79
|
+
"vitest": "^5.0.0",
|
|
80
|
+
"ws": "^8.18.0"
|
|
79
81
|
},
|
|
80
82
|
"packageManager": "yarn@4.1.0"
|
|
81
83
|
}
|
|
@@ -161,7 +161,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
161
161
|
**/
|
|
162
162
|
BitcoinPubkeyUnableToBeDecoded: AugmentedError<ApiType>;
|
|
163
163
|
/**
|
|
164
|
-
* A
|
|
164
|
+
* A configured or requested Lock amount is below the required minimum.
|
|
165
165
|
**/
|
|
166
166
|
BitcoinReleaseChangeBelowMinimum: AugmentedError<ApiType>;
|
|
167
167
|
/**
|
|
@@ -395,11 +395,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
395
395
|
compensatedAccountId: AccountId32;
|
|
396
396
|
}
|
|
397
397
|
>;
|
|
398
|
-
BitcoinLockBurned: AugmentedEvent<
|
|
399
|
-
ApiType,
|
|
400
|
-
[lockId: u64, vaultId: u32, wasUtxoSpent: bool],
|
|
401
|
-
{ lockId: u64; vaultId: u32; wasUtxoSpent: bool }
|
|
402
|
-
>;
|
|
403
398
|
BitcoinLockCreated: AugmentedEvent<
|
|
404
399
|
ApiType,
|
|
405
400
|
[
|
|
@@ -439,6 +434,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
439
434
|
accountId: AccountId32;
|
|
440
435
|
}
|
|
441
436
|
>;
|
|
437
|
+
BitcoinLockTerminated: AugmentedEvent<
|
|
438
|
+
ApiType,
|
|
439
|
+
[lockId: u64, vaultId: u32, wasUtxoSpent: bool, burnedArgons: u128],
|
|
440
|
+
{ lockId: u64; vaultId: u32; wasUtxoSpent: bool; burnedArgons: u128 }
|
|
441
|
+
>;
|
|
442
442
|
BitcoinSpentAfterRelease: AugmentedEvent<
|
|
443
443
|
ApiType,
|
|
444
444
|
[lockId: u64, vaultId: u32, releaseNumber: u32, bitcoinHeight: u64],
|
|
@@ -2192,8 +2192,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2192
2192
|
>;
|
|
2193
2193
|
LostBitcoinCompensated: AugmentedEvent<
|
|
2194
2194
|
ApiType,
|
|
2195
|
-
[
|
|
2196
|
-
|
|
2195
|
+
[
|
|
2196
|
+
vaultId: u32,
|
|
2197
|
+
beneficiary: AccountId32,
|
|
2198
|
+
toBeneficiary: u128,
|
|
2199
|
+
shortfall: u128,
|
|
2200
|
+
burned: u128,
|
|
2201
|
+
],
|
|
2202
|
+
{
|
|
2203
|
+
vaultId: u32;
|
|
2204
|
+
beneficiary: AccountId32;
|
|
2205
|
+
toBeneficiary: u128;
|
|
2206
|
+
shortfall: u128;
|
|
2207
|
+
burned: u128;
|
|
2208
|
+
}
|
|
2197
2209
|
>;
|
|
2198
2210
|
ReservedSecuritizationSpaceChanged: AugmentedEvent<
|
|
2199
2211
|
ApiType,
|
|
@@ -23,7 +23,11 @@ import type {
|
|
|
23
23
|
u64,
|
|
24
24
|
} from '@polkadot/types-codec';
|
|
25
25
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
26
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
ExtrinsicOrHash,
|
|
28
|
+
ExtrinsicStatus,
|
|
29
|
+
GeneratedSessionKeys,
|
|
30
|
+
} from '@polkadot/types/interfaces/author';
|
|
27
31
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
28
32
|
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
|
29
33
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -61,7 +65,7 @@ import type {
|
|
|
61
65
|
JustificationNotification,
|
|
62
66
|
ReportedRoundStates,
|
|
63
67
|
} from '@polkadot/types/interfaces/grandpa';
|
|
64
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
68
|
+
import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
65
69
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
66
70
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
67
71
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -140,6 +144,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
140
144
|
* Generate new session keys and returns the corresponding public keys
|
|
141
145
|
**/
|
|
142
146
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
147
|
+
/**
|
|
148
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
149
|
+
**/
|
|
150
|
+
rotateKeysWithOwner: AugmentedRpc<
|
|
151
|
+
(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>
|
|
152
|
+
>;
|
|
143
153
|
/**
|
|
144
154
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
145
155
|
**/
|
|
@@ -721,6 +731,16 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
721
731
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
722
732
|
};
|
|
723
733
|
mmr: {
|
|
734
|
+
/**
|
|
735
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
736
|
+
**/
|
|
737
|
+
generateAncestryProof: AugmentedRpc<
|
|
738
|
+
(
|
|
739
|
+
prevBlockNumber: u64 | AnyNumber | Uint8Array,
|
|
740
|
+
bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array,
|
|
741
|
+
at?: BlockHash | string | Uint8Array,
|
|
742
|
+
) => Observable<MmrAncestryProof>
|
|
743
|
+
>;
|
|
724
744
|
/**
|
|
725
745
|
* Generate MMR proof for the given block numbers.
|
|
726
746
|
**/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
2
3
|
|
|
3
4
|
// import type lookup before we augment - in some environments
|
|
4
5
|
// this is required to allow for ambient/previous definitions
|
|
@@ -66,7 +67,11 @@ import type {
|
|
|
66
67
|
MoreAttestations,
|
|
67
68
|
} from '@polkadot/types/interfaces/attestations';
|
|
68
69
|
import type { RawAuraPreDigest } from '@polkadot/types/interfaces/aura';
|
|
69
|
-
import type {
|
|
70
|
+
import type {
|
|
71
|
+
ExtrinsicOrHash,
|
|
72
|
+
ExtrinsicStatus,
|
|
73
|
+
GeneratedSessionKeys,
|
|
74
|
+
} from '@polkadot/types/interfaces/author';
|
|
70
75
|
import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
|
|
71
76
|
import type {
|
|
72
77
|
AllowedSlots,
|
|
@@ -650,6 +655,7 @@ import type {
|
|
|
650
655
|
SessionStatus,
|
|
651
656
|
} from '@polkadot/types/interfaces/mixnet';
|
|
652
657
|
import type {
|
|
658
|
+
MmrAncestryProof,
|
|
653
659
|
MmrBatchProof,
|
|
654
660
|
MmrEncodableOpaqueLeaf,
|
|
655
661
|
MmrError,
|
|
@@ -1867,6 +1873,7 @@ declare module '@polkadot/types/types/registry' {
|
|
|
1867
1873
|
FungibilityV5: FungibilityV5;
|
|
1868
1874
|
FungiblesAccessError: FungiblesAccessError;
|
|
1869
1875
|
Gas: Gas;
|
|
1876
|
+
GeneratedSessionKeys: GeneratedSessionKeys;
|
|
1870
1877
|
GenesisBuildErr: GenesisBuildErr;
|
|
1871
1878
|
GiltBid: GiltBid;
|
|
1872
1879
|
GlobalValidationData: GlobalValidationData;
|
|
@@ -2033,6 +2040,7 @@ declare module '@polkadot/types/types/registry' {
|
|
|
2033
2040
|
MigrationStatusResult: MigrationStatusResult;
|
|
2034
2041
|
Mixnode: Mixnode;
|
|
2035
2042
|
MixnodesErr: MixnodesErr;
|
|
2043
|
+
MmrAncestryProof: MmrAncestryProof;
|
|
2036
2044
|
MmrBatchProof: MmrBatchProof;
|
|
2037
2045
|
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
|
|
2038
2046
|
MmrError: MmrError;
|