@argonprotocol/mainchain 1.4.13-dev.f1c9e746 → 1.5.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/browser/index.d.ts +622 -345
- package/browser/index.js +2 -2
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +622 -345
- package/lib/index.d.ts +622 -345
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +3 -2
- package/src/interfaces/augment-api-consts.ts +48 -14
- package/src/interfaces/augment-api-errors.ts +23 -11
- package/src/interfaces/augment-api-events.ts +54 -10
- package/src/interfaces/augment-api-query.ts +74 -25
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +58 -13
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +0 -1
- package/src/interfaces/lookup.ts +387 -274
- package/src/interfaces/registry.ts +22 -7
- package/src/interfaces/types-lookup.ts +413 -280
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
H160,
|
|
31
31
|
H256,
|
|
32
32
|
MultiAddress,
|
|
33
|
+
Percent,
|
|
33
34
|
} from '@polkadot/types/interfaces/runtime';
|
|
34
35
|
import type {
|
|
35
36
|
ArgonPrimitivesBitcoinCompressedBitcoinPubkey,
|
|
@@ -66,6 +67,7 @@ import type {
|
|
|
66
67
|
PalletOperationalAccountsRegistration,
|
|
67
68
|
PalletPriceIndexEthereumPriceIndex,
|
|
68
69
|
PalletPriceIndexPriceIndex,
|
|
70
|
+
PalletTreasuryBondLotEarningsMetrics,
|
|
69
71
|
PalletVaultsVaultConfig,
|
|
70
72
|
SnowbridgeBeaconPrimitivesBeaconHeader,
|
|
71
73
|
SpConsensusGrandpaEquivocationProof,
|
|
@@ -2004,6 +2006,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2004
2006
|
>;
|
|
2005
2007
|
};
|
|
2006
2008
|
treasury: {
|
|
2009
|
+
/**
|
|
2010
|
+
* Attribute earnings already paid to a vault under the old aggregate flexible-bond model.
|
|
2011
|
+
* This changes bond-lot metrics only; it never pays, holds, or releases funds. `expected`
|
|
2012
|
+
* guards against overwriting a newer payout, and replaying `updated` is a no-op.
|
|
2013
|
+
**/
|
|
2014
|
+
backfillBondLotEarnings: AugmentedSubmittable<
|
|
2015
|
+
(
|
|
2016
|
+
bondLotId: u64 | AnyNumber | Uint8Array,
|
|
2017
|
+
expected:
|
|
2018
|
+
| PalletTreasuryBondLotEarningsMetrics
|
|
2019
|
+
| {
|
|
2020
|
+
participatedFrames?: any;
|
|
2021
|
+
lastFrameEarningsFrameId?: any;
|
|
2022
|
+
lastFrameEarnings?: any;
|
|
2023
|
+
cumulativeEarnings?: any;
|
|
2024
|
+
}
|
|
2025
|
+
| string
|
|
2026
|
+
| Uint8Array,
|
|
2027
|
+
updated:
|
|
2028
|
+
| PalletTreasuryBondLotEarningsMetrics
|
|
2029
|
+
| {
|
|
2030
|
+
participatedFrames?: any;
|
|
2031
|
+
lastFrameEarningsFrameId?: any;
|
|
2032
|
+
lastFrameEarnings?: any;
|
|
2033
|
+
cumulativeEarnings?: any;
|
|
2034
|
+
}
|
|
2035
|
+
| string
|
|
2036
|
+
| Uint8Array,
|
|
2037
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
2038
|
+
[u64, PalletTreasuryBondLotEarningsMetrics, PalletTreasuryBondLotEarningsMetrics]
|
|
2039
|
+
>;
|
|
2007
2040
|
/**
|
|
2008
2041
|
* Buy whole bond units for the Argonot active set.
|
|
2009
2042
|
**/
|
|
@@ -2014,7 +2047,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2014
2047
|
/**
|
|
2015
2048
|
* Buy whole `1 ARGON` bonds for a vault.
|
|
2016
2049
|
*
|
|
2017
|
-
* The purchase either
|
|
2050
|
+
* The purchase either creates a bond lot or fails.
|
|
2018
2051
|
**/
|
|
2019
2052
|
buyBonds: AugmentedSubmittable<
|
|
2020
2053
|
(
|
|
@@ -2039,9 +2072,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2039
2072
|
[u32, u32, Option<ArgonPrimitivesVaultTreasuryBonusApprovalProof>]
|
|
2040
2073
|
>;
|
|
2041
2074
|
/**
|
|
2042
|
-
*
|
|
2043
|
-
|
|
2044
|
-
|
|
2075
|
+
* Update reward economics without resetting fields omitted by the caller.
|
|
2076
|
+
**/
|
|
2077
|
+
configureRewardEconomics: AugmentedSubmittable<
|
|
2078
|
+
(
|
|
2079
|
+
targetBitcoinPercent: Option<Percent> | null | Uint8Array | Percent | AnyNumber,
|
|
2080
|
+
) => SubmittableExtrinsic<ApiType>,
|
|
2081
|
+
[Option<Percent>]
|
|
2082
|
+
>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Liquidate one full bond lot. It keeps the locked frame's payout terms and is
|
|
2085
|
+
* released after the delay.
|
|
2045
2086
|
**/
|
|
2046
2087
|
liquidateBondLot: AugmentedSubmittable<
|
|
2047
2088
|
(bondLotId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2269,8 +2310,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2269
2310
|
};
|
|
2270
2311
|
vaults: {
|
|
2271
2312
|
/**
|
|
2272
|
-
* Stop offering
|
|
2273
|
-
*
|
|
2313
|
+
* Stop offering new Bitcoin locks. Existing locks continue; securitization exits after
|
|
2314
|
+
* its notice and any existing Bitcoin commitment.
|
|
2274
2315
|
**/
|
|
2275
2316
|
close: AugmentedSubmittable<
|
|
2276
2317
|
(vaultId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2297,14 +2338,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2297
2338
|
[PalletVaultsVaultConfig]
|
|
2298
2339
|
>;
|
|
2299
2340
|
/**
|
|
2300
|
-
* Modify funds allocated by the vault
|
|
2301
|
-
* affect the amount of funds available for new ones.
|
|
2341
|
+
* Modify funds allocated by the vault without changing existing Bitcoin locks.
|
|
2302
2342
|
*
|
|
2303
2343
|
* The securitization percent must be maintained or increased.
|
|
2304
2344
|
*
|
|
2305
|
-
*
|
|
2306
|
-
*
|
|
2307
|
-
*
|
|
2345
|
+
* Funds not yet used in a reward snapshot may leave without notice if not needed for
|
|
2346
|
+
* Bitcoin commitments. Reward-committed funds require a one-year Bitcoin-height exit
|
|
2347
|
+
* notice and remain held until both the notice and any Bitcoin commitment have ended.
|
|
2348
|
+
* To stop issuing locks, use `close`.
|
|
2308
2349
|
**/
|
|
2309
2350
|
modifyFunding: AugmentedSubmittable<
|
|
2310
2351
|
(
|
|
@@ -2323,7 +2364,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2323
2364
|
vaultId: u32 | AnyNumber | Uint8Array,
|
|
2324
2365
|
terms:
|
|
2325
2366
|
| ArgonPrimitivesVaultVaultTerms
|
|
2326
|
-
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any
|
|
2367
|
+
| { bitcoinAnnualPercentRate?: any; bitcoinBaseFee?: any }
|
|
2327
2368
|
| string
|
|
2328
2369
|
| Uint8Array,
|
|
2329
2370
|
) => SubmittableExtrinsic<ApiType>,
|
|
@@ -2341,7 +2382,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2341
2382
|
) => SubmittableExtrinsic<ApiType>,
|
|
2342
2383
|
[u32, ArgonPrimitivesBitcoinOpaqueBitcoinXpub]
|
|
2343
2384
|
>;
|
|
2344
|
-
|
|
2385
|
+
/**
|
|
2386
|
+
* Set the desired Argonot backing. Unused funds release immediately; reward commitments
|
|
2387
|
+
* withdraw after one-year notice, continuing to participate until released.
|
|
2388
|
+
**/
|
|
2389
|
+
setArgonotSecuritization: AugmentedSubmittable<
|
|
2345
2390
|
(amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
2346
2391
|
[Compact<u128>]
|
|
2347
2392
|
>;
|