@argonprotocol/mainchain 1.5.2-dev.f0f0a03a → 1.5.2-dev.f931ed2c
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 +87 -0
- package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +439 -0
- package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +319 -16
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
- package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/browser/index.d.ts +5225 -606
- package/browser/index.js +4853 -1347
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +439 -0
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +319 -16
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +699 -0
- package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/lib/index.cjs +4431 -950
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +5225 -606
- package/lib/index.d.ts +5225 -606
- package/lib/index.js +4455 -974
- package/lib/index.js.map +1 -1
- package/package.json +8 -7
- package/src/interfaces/augment-api-consts.ts +70 -1
- package/src/interfaces/augment-api-errors.ts +148 -10
- package/src/interfaces/augment-api-events.ts +141 -28
- package/src/interfaces/augment-api-query.ts +254 -13
- package/src/interfaces/augment-api-rpc.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +182 -49
- package/src/interfaces/lookup.ts +765 -308
- package/src/interfaces/registry.ts +70 -6
- package/src/interfaces/types-lookup.ts +834 -328
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
|
|
4
3
|
// import type lookup before we augment - in some environments
|
|
5
4
|
// this is required to allow for ambient/previous definitions
|
|
@@ -8,9 +7,11 @@ import type {} from '@polkadot/api-base/types/events';
|
|
|
8
7
|
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
9
8
|
import type {
|
|
10
9
|
Bytes,
|
|
10
|
+
Compact,
|
|
11
11
|
Null,
|
|
12
12
|
Option,
|
|
13
13
|
Result,
|
|
14
|
+
U256,
|
|
14
15
|
U8aFixed,
|
|
15
16
|
Vec,
|
|
16
17
|
bool,
|
|
@@ -19,9 +20,10 @@ import type {
|
|
|
19
20
|
u16,
|
|
20
21
|
u32,
|
|
21
22
|
u64,
|
|
23
|
+
u8,
|
|
22
24
|
} from '@polkadot/types-codec';
|
|
23
25
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
24
|
-
import type { AccountId32, H160, H256, Percent } from '@polkadot/types/interfaces/runtime';
|
|
26
|
+
import type { AccountId32, H160, H256, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
25
27
|
import type {
|
|
26
28
|
ArgonNotaryAuditErrorVerifyError,
|
|
27
29
|
ArgonPrimitivesBitcoinUtxoRef,
|
|
@@ -45,14 +47,21 @@ import type {
|
|
|
45
47
|
PalletCrosschainTransferGatewayState,
|
|
46
48
|
PalletCrosschainTransferGatewaySyncPause,
|
|
47
49
|
PalletCrosschainTransferSourceChain,
|
|
50
|
+
PalletCrosschainTransferSwapPurchaseEvidence,
|
|
48
51
|
PalletCrosschainTransferTransferToArgonActivity,
|
|
49
52
|
PalletDomainsDomainRegistration,
|
|
50
53
|
PalletEthereumVerifierBasicOperatingMode,
|
|
51
54
|
PalletMintMintType,
|
|
52
55
|
PalletMultisigTimepoint,
|
|
53
56
|
PalletProxyDepositKind,
|
|
57
|
+
PalletStabilizerBuysIneligibleReason,
|
|
58
|
+
PalletStabilizerBuysUniswapPurchasePurchasePool,
|
|
59
|
+
PalletStabilizerPoolsCheckpointOutcome,
|
|
60
|
+
PalletStabilizerPoolsPoolConfig,
|
|
61
|
+
PalletStabilizerPoolsPositionCheckpoint,
|
|
54
62
|
PalletTreasuryBondProgramId,
|
|
55
63
|
PalletTreasuryBondReleaseReason,
|
|
64
|
+
PalletTreasuryRewardReserveBalances,
|
|
56
65
|
SpConsensusGrandpaAppPublic,
|
|
57
66
|
SpRuntimeDispatchError,
|
|
58
67
|
} from '@polkadot/types/lookup';
|
|
@@ -401,7 +410,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
401
410
|
lockId: u64,
|
|
402
411
|
vaultId: u32,
|
|
403
412
|
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis,
|
|
404
|
-
|
|
413
|
+
securitizationMicrogons: u128,
|
|
405
414
|
accountId: AccountId32,
|
|
406
415
|
securityFee: u128,
|
|
407
416
|
],
|
|
@@ -409,7 +418,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
409
418
|
lockId: u64;
|
|
410
419
|
vaultId: u32;
|
|
411
420
|
securitizationBasis: ArgonPrimitivesVaultBitcoinSecuritizationBasis;
|
|
412
|
-
|
|
421
|
+
securitizationMicrogons: u128;
|
|
413
422
|
accountId: AccountId32;
|
|
414
423
|
securityFee: u128;
|
|
415
424
|
}
|
|
@@ -419,7 +428,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
419
428
|
[lockId: u64, vaultId: u32, isFlexible: bool],
|
|
420
429
|
{ lockId: u64; vaultId: u32; isFlexible: bool }
|
|
421
430
|
>;
|
|
422
|
-
|
|
431
|
+
BitcoinLockGuaranteeSet: AugmentedEvent<
|
|
423
432
|
ApiType,
|
|
424
433
|
[
|
|
425
434
|
lockId: u64,
|
|
@@ -903,6 +912,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
903
912
|
mintingAuthorityTip: u128;
|
|
904
913
|
}
|
|
905
914
|
>;
|
|
915
|
+
/**
|
|
916
|
+
* A Uniswap purchase was credited without operational transfer credit.
|
|
917
|
+
**/
|
|
918
|
+
TransferToArgonFromSwapSettled: AugmentedEvent<
|
|
919
|
+
ApiType,
|
|
920
|
+
[
|
|
921
|
+
sourceChain: PalletCrosschainTransferSourceChain,
|
|
922
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity,
|
|
923
|
+
purchase: PalletCrosschainTransferSwapPurchaseEvidence,
|
|
924
|
+
purchaseTick: u64,
|
|
925
|
+
],
|
|
926
|
+
{
|
|
927
|
+
sourceChain: PalletCrosschainTransferSourceChain;
|
|
928
|
+
transfer: PalletCrosschainTransferTransferToArgonActivity;
|
|
929
|
+
purchase: PalletCrosschainTransferSwapPurchaseEvidence;
|
|
930
|
+
purchaseTick: u64;
|
|
931
|
+
}
|
|
932
|
+
>;
|
|
906
933
|
/**
|
|
907
934
|
* A `TransferToArgonStarted` activity was proven and settled locally.
|
|
908
935
|
**/
|
|
@@ -978,6 +1005,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
978
1005
|
[blockHash: H256, blockNumber: u64],
|
|
979
1006
|
{ blockHash: H256; blockNumber: u64 }
|
|
980
1007
|
>;
|
|
1008
|
+
GloasForkScheduled: AugmentedEvent<
|
|
1009
|
+
ApiType,
|
|
1010
|
+
[version: U8aFixed, epoch: Compact<u64>],
|
|
1011
|
+
{ version: U8aFixed; epoch: Compact<u64> }
|
|
1012
|
+
>;
|
|
981
1013
|
/**
|
|
982
1014
|
* Set OperatingMode
|
|
983
1015
|
**/
|
|
@@ -1114,6 +1146,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1114
1146
|
>;
|
|
1115
1147
|
};
|
|
1116
1148
|
miningSlot: {
|
|
1149
|
+
BidCommitted: AugmentedEvent<
|
|
1150
|
+
ApiType,
|
|
1151
|
+
[accountId: AccountId32, targetFrameId: u64],
|
|
1152
|
+
{ accountId: AccountId32; targetFrameId: u64 }
|
|
1153
|
+
>;
|
|
1154
|
+
BidLost: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1155
|
+
BidRejected: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1156
|
+
BidRevealed: AugmentedEvent<ApiType, [accountId: AccountId32], { accountId: AccountId32 }>;
|
|
1117
1157
|
/**
|
|
1118
1158
|
* Bids are closed due to the VRF randomized function triggering
|
|
1119
1159
|
**/
|
|
@@ -1164,6 +1204,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1164
1204
|
[accountId: AccountId32, preservedArgonotHold: bool],
|
|
1165
1205
|
{ accountId: AccountId32; preservedArgonotHold: bool }
|
|
1166
1206
|
>;
|
|
1207
|
+
WinningBidPriceChanged: AugmentedEvent<
|
|
1208
|
+
ApiType,
|
|
1209
|
+
[accountId: AccountId32, bidAmount: u128],
|
|
1210
|
+
{ accountId: AccountId32; bidAmount: u128 }
|
|
1211
|
+
>;
|
|
1167
1212
|
};
|
|
1168
1213
|
mint: {
|
|
1169
1214
|
/**
|
|
@@ -1820,6 +1865,86 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1820
1865
|
}
|
|
1821
1866
|
>;
|
|
1822
1867
|
};
|
|
1868
|
+
stabilizerBuys: {
|
|
1869
|
+
ApprovedPoolChanged: AugmentedEvent<
|
|
1870
|
+
ApiType,
|
|
1871
|
+
[pool: Option<PalletStabilizerBuysUniswapPurchasePurchasePool>],
|
|
1872
|
+
{ pool: Option<PalletStabilizerBuysUniswapPurchasePurchasePool> }
|
|
1873
|
+
>;
|
|
1874
|
+
AuctionAllocationFailed: AugmentedEvent<
|
|
1875
|
+
ApiType,
|
|
1876
|
+
[admissionFrame: u64, error: SpRuntimeDispatchError],
|
|
1877
|
+
{ admissionFrame: u64; error: SpRuntimeDispatchError }
|
|
1878
|
+
>;
|
|
1879
|
+
AuctionFundingFailed: AugmentedEvent<
|
|
1880
|
+
ApiType,
|
|
1881
|
+
[admissionFrame: u64, error: SpRuntimeDispatchError],
|
|
1882
|
+
{ admissionFrame: u64; error: SpRuntimeDispatchError }
|
|
1883
|
+
>;
|
|
1884
|
+
AuctionOpened: AugmentedEvent<
|
|
1885
|
+
ApiType,
|
|
1886
|
+
[admissionFrame: u64, budget: u128],
|
|
1887
|
+
{ admissionFrame: u64; budget: u128 }
|
|
1888
|
+
>;
|
|
1889
|
+
AuctionSettled: AugmentedEvent<
|
|
1890
|
+
ApiType,
|
|
1891
|
+
[admissionFrame: u64, awarded: u128, returned: u128],
|
|
1892
|
+
{ admissionFrame: u64; awarded: u128; returned: u128 }
|
|
1893
|
+
>;
|
|
1894
|
+
BidSubmitted: AugmentedEvent<
|
|
1895
|
+
ApiType,
|
|
1896
|
+
[account: AccountId32, admissionFrame: u64, rewardRate: Percent, positiveBidCount: u8],
|
|
1897
|
+
{ account: AccountId32; admissionFrame: u64; rewardRate: Percent; positiveBidCount: u8 }
|
|
1898
|
+
>;
|
|
1899
|
+
MatchingRateChanged: AugmentedEvent<ApiType, [rate: Permill], { rate: Permill }>;
|
|
1900
|
+
PayoutCompleted: AugmentedEvent<
|
|
1901
|
+
ApiType,
|
|
1902
|
+
[account: AccountId32, principal: u128, reward: u128],
|
|
1903
|
+
{ account: AccountId32; principal: u128; reward: u128 }
|
|
1904
|
+
>;
|
|
1905
|
+
PayoutFailed: AugmentedEvent<
|
|
1906
|
+
ApiType,
|
|
1907
|
+
[account: AccountId32, error: SpRuntimeDispatchError],
|
|
1908
|
+
{ account: AccountId32; error: SpRuntimeDispatchError }
|
|
1909
|
+
>;
|
|
1910
|
+
PurchaseIneligible: AugmentedEvent<
|
|
1911
|
+
ApiType,
|
|
1912
|
+
[account: AccountId32, purchaseTick: u64, reason: PalletStabilizerBuysIneligibleReason],
|
|
1913
|
+
{ account: AccountId32; purchaseTick: u64; reason: PalletStabilizerBuysIneligibleReason }
|
|
1914
|
+
>;
|
|
1915
|
+
PurchaseRecorded: AugmentedEvent<
|
|
1916
|
+
ApiType,
|
|
1917
|
+
[account: AccountId32, admissionFrame: u64, principal: u128, matchingBasis: u128],
|
|
1918
|
+
{ account: AccountId32; admissionFrame: u64; principal: u128; matchingBasis: u128 }
|
|
1919
|
+
>;
|
|
1920
|
+
RewardAwarded: AugmentedEvent<
|
|
1921
|
+
ApiType,
|
|
1922
|
+
[account: AccountId32, admissionFrame: u64, amount: u128, maturesAtTick: u64],
|
|
1923
|
+
{ account: AccountId32; admissionFrame: u64; amount: u128; maturesAtTick: u64 }
|
|
1924
|
+
>;
|
|
1925
|
+
};
|
|
1926
|
+
stabilizerPools: {
|
|
1927
|
+
PoolRegistered: AugmentedEvent<
|
|
1928
|
+
ApiType,
|
|
1929
|
+
[poolManager: H160, poolId: H256, config: PalletStabilizerPoolsPoolConfig],
|
|
1930
|
+
{ poolManager: H160; poolId: H256; config: PalletStabilizerPoolsPoolConfig }
|
|
1931
|
+
>;
|
|
1932
|
+
PositionCheckpointed: AugmentedEvent<
|
|
1933
|
+
ApiType,
|
|
1934
|
+
[
|
|
1935
|
+
positionManager: H160,
|
|
1936
|
+
tokenId: U256,
|
|
1937
|
+
checkpoint: PalletStabilizerPoolsPositionCheckpoint,
|
|
1938
|
+
outcome: PalletStabilizerPoolsCheckpointOutcome,
|
|
1939
|
+
],
|
|
1940
|
+
{
|
|
1941
|
+
positionManager: H160;
|
|
1942
|
+
tokenId: U256;
|
|
1943
|
+
checkpoint: PalletStabilizerPoolsPositionCheckpoint;
|
|
1944
|
+
outcome: PalletStabilizerPoolsCheckpointOutcome;
|
|
1945
|
+
}
|
|
1946
|
+
>;
|
|
1947
|
+
};
|
|
1823
1948
|
sudo: {
|
|
1824
1949
|
/**
|
|
1825
1950
|
* The sudo key has been updated.
|
|
@@ -2123,6 +2248,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2123
2248
|
[targetBitcoinPercent: Percent, upstreamParticipationFactor: Percent],
|
|
2124
2249
|
{ targetBitcoinPercent: Percent; upstreamParticipationFactor: Percent }
|
|
2125
2250
|
>;
|
|
2251
|
+
RewardReservesUpdated: AugmentedEvent<
|
|
2252
|
+
ApiType,
|
|
2253
|
+
[reserves: PalletTreasuryRewardReserveBalances],
|
|
2254
|
+
{ reserves: PalletTreasuryRewardReserveBalances }
|
|
2255
|
+
>;
|
|
2126
2256
|
};
|
|
2127
2257
|
txPause: {
|
|
2128
2258
|
/**
|
|
@@ -2261,14 +2391,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2261
2391
|
[
|
|
2262
2392
|
vaultId: u32,
|
|
2263
2393
|
locker: AccountId32,
|
|
2264
|
-
|
|
2394
|
+
securitizationMicrogons: u128,
|
|
2265
2395
|
feeRevenue: u128,
|
|
2266
2396
|
didUseFeeCoupon: bool,
|
|
2267
2397
|
],
|
|
2268
2398
|
{
|
|
2269
2399
|
vaultId: u32;
|
|
2270
2400
|
locker: AccountId32;
|
|
2271
|
-
|
|
2401
|
+
securitizationMicrogons: u128;
|
|
2272
2402
|
feeRevenue: u128;
|
|
2273
2403
|
didUseFeeCoupon: bool;
|
|
2274
2404
|
}
|
|
@@ -2299,30 +2429,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2299
2429
|
>;
|
|
2300
2430
|
VaultCreated: AugmentedEvent<
|
|
2301
2431
|
ApiType,
|
|
2302
|
-
[
|
|
2303
|
-
|
|
2304
|
-
securitization: u128,
|
|
2305
|
-
securitizationRatio: u128,
|
|
2306
|
-
operatorAccountId: AccountId32,
|
|
2307
|
-
openedTick: u64,
|
|
2308
|
-
],
|
|
2309
|
-
{
|
|
2310
|
-
vaultId: u32;
|
|
2311
|
-
securitization: u128;
|
|
2312
|
-
securitizationRatio: u128;
|
|
2313
|
-
operatorAccountId: AccountId32;
|
|
2314
|
-
openedTick: u64;
|
|
2315
|
-
}
|
|
2432
|
+
[vaultId: u32, securitization: u128, operatorAccountId: AccountId32, openedTick: u64],
|
|
2433
|
+
{ vaultId: u32; securitization: u128; operatorAccountId: AccountId32; openedTick: u64 }
|
|
2316
2434
|
>;
|
|
2317
2435
|
VaultModified: AugmentedEvent<
|
|
2318
2436
|
ApiType,
|
|
2319
|
-
[vaultId: u32, securitization: u128, securitizationTarget: u128
|
|
2320
|
-
{
|
|
2321
|
-
vaultId: u32;
|
|
2322
|
-
securitization: u128;
|
|
2323
|
-
securitizationTarget: u128;
|
|
2324
|
-
securitizationRatio: u128;
|
|
2325
|
-
}
|
|
2437
|
+
[vaultId: u32, securitization: u128, securitizationTarget: u128],
|
|
2438
|
+
{ vaultId: u32; securitization: u128; securitizationTarget: u128 }
|
|
2326
2439
|
>;
|
|
2327
2440
|
/**
|
|
2328
2441
|
* Vault revenue was not collected within the required window, so has been burned
|