@argonprotocol/mainchain 1.4.3-dev.4408f4ff → 1.4.3-dev.5e4d8d6a
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 +39 -29
- package/browser/index.js +115 -87
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +111 -97
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +39 -29
- package/lib/index.d.ts +39 -29
- package/lib/index.js +105 -91
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +1 -1
- package/src/interfaces/augment-api-errors.ts +1 -1
- package/src/interfaces/augment-api-events.ts +7 -7
- package/src/interfaces/augment-api-query.ts +2 -2
- package/src/interfaces/augment-api-rpc.ts +1 -1
- package/src/interfaces/augment-api-runtime.ts +1 -1
- package/src/interfaces/augment-api-tx.ts +1 -1
- package/src/interfaces/augment-types.ts +1 -1
- package/src/interfaces/lookup.ts +6 -6
- package/src/interfaces/types-lookup.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.3-dev.
|
|
3
|
+
"version": "1.4.3-dev.5e4d8d6a",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.3-dev.
|
|
68
|
+
"@argonprotocol/testing": "1.4.3-dev.5e4d8d6a",
|
|
69
69
|
"@polkadot/typegen": "^16.5.6",
|
|
70
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
71
|
"@types/node": "^20",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/consts';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/consts';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
|
|
9
9
|
import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/errors';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/errors';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedError } from '@polkadot/api-base/types';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/events';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/events';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
9
9
|
import type {
|
|
@@ -322,7 +322,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
322
322
|
vaultId: u32,
|
|
323
323
|
liquidityPromised: u128,
|
|
324
324
|
securitization: u128,
|
|
325
|
-
|
|
325
|
+
lockedTargetPrice: u128,
|
|
326
326
|
accountId: AccountId32,
|
|
327
327
|
securityFee: u128,
|
|
328
328
|
],
|
|
@@ -331,7 +331,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
331
331
|
vaultId: u32;
|
|
332
332
|
liquidityPromised: u128;
|
|
333
333
|
securitization: u128;
|
|
334
|
-
|
|
334
|
+
lockedTargetPrice: u128;
|
|
335
335
|
accountId: AccountId32;
|
|
336
336
|
securityFee: u128;
|
|
337
337
|
}
|
|
@@ -342,9 +342,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
342
342
|
utxoId: u64,
|
|
343
343
|
vaultId: u32,
|
|
344
344
|
liquidityPromised: u128,
|
|
345
|
-
|
|
345
|
+
oldTargetPrice: u128,
|
|
346
346
|
securityFee: u128,
|
|
347
|
-
|
|
347
|
+
newTargetPrice: u128,
|
|
348
348
|
amountBurned: u128,
|
|
349
349
|
accountId: AccountId32,
|
|
350
350
|
],
|
|
@@ -352,9 +352,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
352
352
|
utxoId: u64;
|
|
353
353
|
vaultId: u32;
|
|
354
354
|
liquidityPromised: u128;
|
|
355
|
-
|
|
355
|
+
oldTargetPrice: u128;
|
|
356
356
|
securityFee: u128;
|
|
357
|
-
|
|
357
|
+
newTargetPrice: u128;
|
|
358
358
|
amountBurned: u128;
|
|
359
359
|
accountId: AccountId32;
|
|
360
360
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/storage';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/storage';
|
|
7
7
|
|
|
8
8
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
9
9
|
import type {
|
|
@@ -235,7 +235,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
235
235
|
[u64]
|
|
236
236
|
>;
|
|
237
237
|
/**
|
|
238
|
-
* History of microgons per btc
|
|
238
|
+
* History of target microgons per btc.
|
|
239
239
|
**/
|
|
240
240
|
microgonPerBtcHistory: AugmentedQuery<
|
|
241
241
|
ApiType,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/rpc-core/types/jsonrpc';
|
|
6
|
+
import type {} from '@polkadot/rpc-core/types/jsonrpc';
|
|
7
7
|
|
|
8
8
|
import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
9
9
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/calls';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/calls';
|
|
7
7
|
|
|
8
8
|
import type { ArgonPrimitivesEthereumEthereumVerifyError } from '@argonprotocol/mainchain/interfaces/ethereum';
|
|
9
9
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/submittable';
|
|
6
|
+
import type {} from '@polkadot/api-base/types/submittable';
|
|
7
7
|
|
|
8
8
|
import type {
|
|
9
9
|
ApiTypes,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// import type lookup before we augment - in some environments
|
|
5
5
|
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/types/types/registry';
|
|
6
|
+
import type {} from '@polkadot/types/types/registry';
|
|
7
7
|
|
|
8
8
|
import type {
|
|
9
9
|
ArgonPrimitivesEthereumEthereumExecutionBlockProof,
|
package/src/interfaces/lookup.ts
CHANGED
|
@@ -527,7 +527,7 @@ export default {
|
|
|
527
527
|
vaultId: 'u32',
|
|
528
528
|
liquidityPromised: 'u128',
|
|
529
529
|
securitization: 'u128',
|
|
530
|
-
|
|
530
|
+
lockedTargetPrice: 'u128',
|
|
531
531
|
accountId: 'AccountId32',
|
|
532
532
|
securityFee: 'u128',
|
|
533
533
|
},
|
|
@@ -535,9 +535,9 @@ export default {
|
|
|
535
535
|
utxoId: 'u64',
|
|
536
536
|
vaultId: 'u32',
|
|
537
537
|
liquidityPromised: 'u128',
|
|
538
|
-
|
|
538
|
+
oldTargetPrice: 'u128',
|
|
539
539
|
securityFee: 'u128',
|
|
540
|
-
|
|
540
|
+
newTargetPrice: 'u128',
|
|
541
541
|
amountBurned: 'u128',
|
|
542
542
|
accountId: 'AccountId32',
|
|
543
543
|
},
|
|
@@ -2043,7 +2043,7 @@ export default {
|
|
|
2043
2043
|
PalletBitcoinLocksLockOptions: {
|
|
2044
2044
|
_enum: {
|
|
2045
2045
|
V1: {
|
|
2046
|
-
|
|
2046
|
+
microgonsAtTargetPerBtc: 'Option<u128>',
|
|
2047
2047
|
},
|
|
2048
2048
|
},
|
|
2049
2049
|
},
|
|
@@ -3050,7 +3050,7 @@ export default {
|
|
|
3050
3050
|
PalletBitcoinLocksLockedBitcoin: {
|
|
3051
3051
|
vaultId: 'Compact<u32>',
|
|
3052
3052
|
liquidityPromised: 'Compact<u128>',
|
|
3053
|
-
|
|
3053
|
+
lockedTargetPrice: 'Compact<u128>',
|
|
3054
3054
|
ownerAccount: 'AccountId32',
|
|
3055
3055
|
securitizationRatio: 'u128',
|
|
3056
3056
|
securityFees: 'Compact<u128>',
|
|
@@ -3078,7 +3078,7 @@ export default {
|
|
|
3078
3078
|
bitcoinNetworkFee: 'Compact<u64>',
|
|
3079
3079
|
cosignDueFrame: 'Compact<u64>',
|
|
3080
3080
|
toScriptPubkey: 'Bytes',
|
|
3081
|
-
|
|
3081
|
+
redemptionAmount: 'Compact<u128>',
|
|
3082
3082
|
},
|
|
3083
3083
|
/**
|
|
3084
3084
|
* Lookup399: pallet_bitcoin_locks::pallet::OrphanedUtxo<BlockNumber>
|
|
@@ -683,7 +683,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
683
683
|
readonly vaultId: u32;
|
|
684
684
|
readonly liquidityPromised: u128;
|
|
685
685
|
readonly securitization: u128;
|
|
686
|
-
readonly
|
|
686
|
+
readonly lockedTargetPrice: u128;
|
|
687
687
|
readonly accountId: AccountId32;
|
|
688
688
|
readonly securityFee: u128;
|
|
689
689
|
} & Struct;
|
|
@@ -692,9 +692,9 @@ declare module '@polkadot/types/lookup' {
|
|
|
692
692
|
readonly utxoId: u64;
|
|
693
693
|
readonly vaultId: u32;
|
|
694
694
|
readonly liquidityPromised: u128;
|
|
695
|
-
readonly
|
|
695
|
+
readonly oldTargetPrice: u128;
|
|
696
696
|
readonly securityFee: u128;
|
|
697
|
-
readonly
|
|
697
|
+
readonly newTargetPrice: u128;
|
|
698
698
|
readonly amountBurned: u128;
|
|
699
699
|
readonly accountId: AccountId32;
|
|
700
700
|
} & Struct;
|
|
@@ -2465,7 +2465,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
2465
2465
|
interface PalletBitcoinLocksLockOptions extends Enum {
|
|
2466
2466
|
readonly isV1: boolean;
|
|
2467
2467
|
readonly asV1: {
|
|
2468
|
-
readonly
|
|
2468
|
+
readonly microgonsAtTargetPerBtc: Option<u128>;
|
|
2469
2469
|
} & Struct;
|
|
2470
2470
|
readonly type: 'V1';
|
|
2471
2471
|
}
|
|
@@ -3525,7 +3525,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3525
3525
|
interface PalletBitcoinLocksLockedBitcoin extends Struct {
|
|
3526
3526
|
readonly vaultId: Compact<u32>;
|
|
3527
3527
|
readonly liquidityPromised: Compact<u128>;
|
|
3528
|
-
readonly
|
|
3528
|
+
readonly lockedTargetPrice: Compact<u128>;
|
|
3529
3529
|
readonly ownerAccount: AccountId32;
|
|
3530
3530
|
readonly securitizationRatio: u128;
|
|
3531
3531
|
readonly securityFees: Compact<u128>;
|
|
@@ -3552,7 +3552,7 @@ declare module '@polkadot/types/lookup' {
|
|
|
3552
3552
|
readonly bitcoinNetworkFee: Compact<u64>;
|
|
3553
3553
|
readonly cosignDueFrame: Compact<u64>;
|
|
3554
3554
|
readonly toScriptPubkey: Bytes;
|
|
3555
|
-
readonly
|
|
3555
|
+
readonly redemptionAmount: Compact<u128>;
|
|
3556
3556
|
}
|
|
3557
3557
|
|
|
3558
3558
|
/** @name PalletBitcoinLocksOrphanedUtxo (399) */
|