@argonprotocol/mainchain 1.4.9-dev.5ffdfd6a → 1.4.9-dev.608fbe23
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 +238 -271
- package/browser/index.js +1 -1
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +238 -271
- package/lib/index.d.ts +238 -271
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +26 -26
- package/src/interfaces/augment-api-errors.ts +20 -28
- package/src/interfaces/augment-api-events.ts +13 -21
- package/src/interfaces/augment-api-query.ts +2 -3
- package/src/interfaces/augment-api-runtime.ts +0 -1
- package/src/interfaces/augment-api-tx.ts +5 -13
- package/src/interfaces/augment-api.ts +0 -1
- package/src/interfaces/augment-types.ts +0 -1
- package/src/interfaces/lookup.ts +167 -174
- package/src/interfaces/registry.ts +2 -1
- package/src/interfaces/types-lookup.ts +179 -191
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.9-dev.
|
|
3
|
+
"version": "1.4.9-dev.608fbe23",
|
|
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.9-dev.
|
|
68
|
+
"@argonprotocol/testing": "1.4.9-dev.608fbe23",
|
|
69
69
|
"@polkadot/typegen": "^16.5.6",
|
|
70
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
71
|
"@types/node": "^20",
|
|
@@ -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
|
|
@@ -365,58 +364,59 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
365
364
|
};
|
|
366
365
|
operationalAccounts: {
|
|
367
366
|
/**
|
|
368
|
-
* Additional argon amount (base units) required per follow-on
|
|
369
|
-
* operational
|
|
367
|
+
* Additional argon amount (base units) required per follow-on access code after an account
|
|
368
|
+
* becomes operational.
|
|
370
369
|
**/
|
|
371
|
-
|
|
370
|
+
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
372
371
|
/**
|
|
373
|
-
* Maximum number of available
|
|
372
|
+
* Maximum number of available access codes allowed at once.
|
|
374
373
|
**/
|
|
375
|
-
|
|
374
|
+
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
376
375
|
/**
|
|
377
376
|
* Maximum number of encrypted server bytes stored per network account.
|
|
378
377
|
**/
|
|
379
378
|
maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
|
|
380
379
|
/**
|
|
381
|
-
*
|
|
380
|
+
* Minimum bitcoin amount required to register.
|
|
382
381
|
**/
|
|
383
|
-
|
|
382
|
+
minimumBitcoin: u128 & AugmentedConst<ApiType>;
|
|
384
383
|
/**
|
|
385
|
-
*
|
|
384
|
+
* Minimum bond amount required to register.
|
|
386
385
|
**/
|
|
387
|
-
|
|
386
|
+
minimumBonds: u128 & AugmentedConst<ApiType>;
|
|
388
387
|
/**
|
|
389
|
-
*
|
|
388
|
+
* Minimum Uniswap transfer amount required to register.
|
|
390
389
|
**/
|
|
391
|
-
|
|
390
|
+
minimumUniswapTransfer: u128 & AugmentedConst<ApiType>;
|
|
392
391
|
/**
|
|
393
|
-
*
|
|
392
|
+
* Mining seats required to become operational.
|
|
394
393
|
**/
|
|
395
|
-
|
|
394
|
+
miningSeatsForOperational: u32 & AugmentedConst<ApiType>;
|
|
396
395
|
/**
|
|
397
|
-
*
|
|
396
|
+
* Mining seats required per follow-on access code after an account becomes
|
|
397
|
+
* operational.
|
|
398
398
|
**/
|
|
399
|
-
|
|
399
|
+
miningSeatsPerAccessCode: u32 & AugmentedConst<ApiType>;
|
|
400
400
|
/**
|
|
401
|
-
* Default bonus reward paid every operational
|
|
401
|
+
* Default bonus reward paid every operational certification threshold.
|
|
402
402
|
**/
|
|
403
|
-
|
|
403
|
+
operationalCertificationBonusReward: u128 & AugmentedConst<ApiType>;
|
|
404
404
|
/**
|
|
405
|
-
*
|
|
405
|
+
* Default reward paid when an account becomes operationally certified.
|
|
406
406
|
**/
|
|
407
|
-
|
|
407
|
+
operationalCertificationReward: u128 & AugmentedConst<ApiType>;
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* Number of operational certifications required per bonus reward.
|
|
410
410
|
**/
|
|
411
|
-
|
|
411
|
+
operationalCertificationsPerBonusReward: u32 & AugmentedConst<ApiType>;
|
|
412
412
|
/**
|
|
413
|
-
* Minimum
|
|
413
|
+
* Minimum total Uniswap transfer amount required for operational certification.
|
|
414
414
|
**/
|
|
415
|
-
|
|
415
|
+
operationalMinimumUniswapTransfer: u128 & AugmentedConst<ApiType>;
|
|
416
416
|
/**
|
|
417
|
-
* Minimum
|
|
417
|
+
* Minimum vault securitization required to become operational.
|
|
418
418
|
**/
|
|
419
|
-
|
|
419
|
+
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
420
420
|
};
|
|
421
421
|
ownership: {
|
|
422
422
|
/**
|
|
@@ -975,25 +975,25 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
975
975
|
**/
|
|
976
976
|
AccountAlreadyLinked: AugmentedError<ApiType>;
|
|
977
977
|
/**
|
|
978
|
-
* The
|
|
978
|
+
* The account is already operationally certified.
|
|
979
979
|
**/
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* The account is already operational.
|
|
983
|
-
**/
|
|
984
|
-
AlreadyOperational: AugmentedError<ApiType>;
|
|
980
|
+
AlreadyOperationallyCertified: AugmentedError<ApiType>;
|
|
985
981
|
/**
|
|
986
982
|
* The caller already registered an operational account.
|
|
987
983
|
**/
|
|
988
984
|
AlreadyRegistered: AugmentedError<ApiType>;
|
|
989
985
|
/**
|
|
990
|
-
* An account cannot
|
|
986
|
+
* An account cannot grant access to itself.
|
|
991
987
|
**/
|
|
992
|
-
|
|
988
|
+
CannotGrantAccessToSelf: AugmentedError<ApiType>;
|
|
993
989
|
/**
|
|
994
990
|
* The encrypted server payload exceeds the configured max length.
|
|
995
991
|
**/
|
|
996
992
|
EncryptedServerTooLong: AugmentedError<ApiType>;
|
|
993
|
+
/**
|
|
994
|
+
* The upstream access proof is invalid.
|
|
995
|
+
**/
|
|
996
|
+
InvalidAccessProof: AugmentedError<ApiType>;
|
|
997
997
|
/**
|
|
998
998
|
* One of the linked account ownership proofs is invalid.
|
|
999
999
|
**/
|
|
@@ -1003,9 +1003,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1003
1003
|
**/
|
|
1004
1004
|
InvalidRegistrationSubmitter: AugmentedError<ApiType>;
|
|
1005
1005
|
/**
|
|
1006
|
-
* The requested
|
|
1006
|
+
* The requested account does not currently satisfy the minimums.
|
|
1007
1007
|
**/
|
|
1008
|
-
|
|
1008
|
+
MinimumsNotMet: AugmentedError<ApiType>;
|
|
1009
1009
|
/**
|
|
1010
1010
|
* The operational account has no pending rewards to claim.
|
|
1011
1011
|
**/
|
|
@@ -1023,21 +1023,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1023
1023
|
**/
|
|
1024
1024
|
NotOperationalAccount: AugmentedError<ApiType>;
|
|
1025
1025
|
/**
|
|
1026
|
-
* The caller is not the
|
|
1027
|
-
**/
|
|
1028
|
-
NotReferrerOfAccount: AugmentedError<ApiType>;
|
|
1029
|
-
/**
|
|
1030
|
-
* The requested account has not reached treasury certification.
|
|
1031
|
-
**/
|
|
1032
|
-
NotTreasuryCertified: AugmentedError<ApiType>;
|
|
1033
|
-
/**
|
|
1034
|
-
* The requested referrer does not have a registered operational account.
|
|
1026
|
+
* The caller is not the upstream account for the requested downstream account.
|
|
1035
1027
|
**/
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* The requested referrer does not match the referrer recorded during registration.
|
|
1039
|
-
**/
|
|
1040
|
-
RegisteredReferrerMismatch: AugmentedError<ApiType>;
|
|
1028
|
+
NotUpstreamOfDownstream: AugmentedError<ApiType>;
|
|
1041
1029
|
/**
|
|
1042
1030
|
* A valid invite is required to register an operational account.
|
|
1043
1031
|
**/
|
|
@@ -1054,14 +1042,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1054
1042
|
* Reward claims must be whole Argon increments.
|
|
1055
1043
|
**/
|
|
1056
1044
|
RewardClaimNotWholeArgon: AugmentedError<ApiType>;
|
|
1057
|
-
/**
|
|
1058
|
-
* The requested account no longer satisfies treasury certification requirements.
|
|
1059
|
-
**/
|
|
1060
|
-
TreasuryCertificationNoLongerMet: AugmentedError<ApiType>;
|
|
1061
1045
|
/**
|
|
1062
1046
|
* The treasury does not currently have enough available reserves for the claim.
|
|
1063
1047
|
**/
|
|
1064
1048
|
TreasuryInsufficientFunds: AugmentedError<ApiType>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The requested upstream account does not have any available access codes.
|
|
1051
|
+
**/
|
|
1052
|
+
UpstreamHasNoAvailableAccessCodes: AugmentedError<ApiType>;
|
|
1053
|
+
/**
|
|
1054
|
+
* The requested upstream account does not have a registered operational account.
|
|
1055
|
+
**/
|
|
1056
|
+
UpstreamNotOperationalAccount: AugmentedError<ApiType>;
|
|
1065
1057
|
};
|
|
1066
1058
|
ownership: {
|
|
1067
1059
|
/**
|
|
@@ -1242,36 +1242,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1242
1242
|
};
|
|
1243
1243
|
operationalAccounts: {
|
|
1244
1244
|
/**
|
|
1245
|
-
* Account has
|
|
1245
|
+
* Account has met the registration minimums.
|
|
1246
1246
|
**/
|
|
1247
|
-
|
|
1247
|
+
AccountMeetsMinimums: AugmentedEvent<
|
|
1248
1248
|
ApiType,
|
|
1249
1249
|
[account: AccountId32],
|
|
1250
1250
|
{ account: AccountId32 }
|
|
1251
1251
|
>;
|
|
1252
1252
|
/**
|
|
1253
|
-
*
|
|
1253
|
+
* Account has become operationally certified.
|
|
1254
1254
|
**/
|
|
1255
|
-
|
|
1256
|
-
ApiType,
|
|
1257
|
-
[account: AccountId32, referrer: AccountId32],
|
|
1258
|
-
{ account: AccountId32; referrer: AccountId32 }
|
|
1259
|
-
>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Account has become operational.
|
|
1262
|
-
**/
|
|
1263
|
-
AccountWentOperational: AugmentedEvent<
|
|
1255
|
+
AccountOperationallyCertified: AugmentedEvent<
|
|
1264
1256
|
ApiType,
|
|
1265
1257
|
[account: AccountId32],
|
|
1266
1258
|
{ account: AccountId32 }
|
|
1267
1259
|
>;
|
|
1268
1260
|
/**
|
|
1269
|
-
*
|
|
1261
|
+
* An upstream account updated the encrypted server payload for a downstream account.
|
|
1270
1262
|
**/
|
|
1271
1263
|
EncryptedServerUpdated: AugmentedEvent<
|
|
1272
1264
|
ApiType,
|
|
1273
|
-
[
|
|
1274
|
-
{
|
|
1265
|
+
[upstreamAccount: AccountId32, downstreamAccount: AccountId32],
|
|
1266
|
+
{ upstreamAccount: AccountId32; downstreamAccount: AccountId32 }
|
|
1275
1267
|
>;
|
|
1276
1268
|
/**
|
|
1277
1269
|
* An operational account was registered with its linked accounts.
|
|
@@ -1282,13 +1274,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1282
1274
|
operationalAccount: AccountId32,
|
|
1283
1275
|
vaultAccount: AccountId32,
|
|
1284
1276
|
miningAccount: AccountId32,
|
|
1285
|
-
|
|
1277
|
+
upstreamAccount: Option<AccountId32>,
|
|
1286
1278
|
],
|
|
1287
1279
|
{
|
|
1288
1280
|
operationalAccount: AccountId32;
|
|
1289
1281
|
vaultAccount: AccountId32;
|
|
1290
1282
|
miningAccount: AccountId32;
|
|
1291
|
-
|
|
1283
|
+
upstreamAccount: Option<AccountId32>;
|
|
1292
1284
|
}
|
|
1293
1285
|
>;
|
|
1294
1286
|
/**
|
|
@@ -1299,7 +1291,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1299
1291
|
[
|
|
1300
1292
|
account: AccountId32,
|
|
1301
1293
|
updateOperationalProgress: bool,
|
|
1302
|
-
|
|
1294
|
+
meetsMinimums: bool,
|
|
1303
1295
|
uniswapArgonTransfersInAmount: u128,
|
|
1304
1296
|
accountBitcoinAmount: u128,
|
|
1305
1297
|
accountVaultBondAmount: u128,
|
|
@@ -1310,7 +1302,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1310
1302
|
{
|
|
1311
1303
|
account: AccountId32;
|
|
1312
1304
|
updateOperationalProgress: bool;
|
|
1313
|
-
|
|
1305
|
+
meetsMinimums: bool;
|
|
1314
1306
|
uniswapArgonTransfersInAmount: u128;
|
|
1315
1307
|
accountBitcoinAmount: u128;
|
|
1316
1308
|
accountVaultBondAmount: u128;
|
|
@@ -1358,8 +1350,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1358
1350
|
**/
|
|
1359
1351
|
RewardsConfigUpdated: AugmentedEvent<
|
|
1360
1352
|
ApiType,
|
|
1361
|
-
[
|
|
1362
|
-
{
|
|
1353
|
+
[operationalCertificationReward: u128, operationalCertificationBonusReward: u128],
|
|
1354
|
+
{ operationalCertificationReward: u128; operationalCertificationBonusReward: u128 }
|
|
1363
1355
|
>;
|
|
1364
1356
|
};
|
|
1365
1357
|
ownership: {
|
|
@@ -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
|
|
@@ -1262,7 +1261,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1262
1261
|
};
|
|
1263
1262
|
operationalAccounts: {
|
|
1264
1263
|
/**
|
|
1265
|
-
* Opaque encrypted
|
|
1264
|
+
* Opaque encrypted upstream server payload keyed by the downstream account.
|
|
1266
1265
|
**/
|
|
1267
1266
|
encryptedServerByDownstreamAccount: AugmentedQuery<
|
|
1268
1267
|
ApiType,
|
|
@@ -1272,7 +1271,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1272
1271
|
/**
|
|
1273
1272
|
* Whether operational-account access is invite-only.
|
|
1274
1273
|
*
|
|
1275
|
-
* When enabled, registration requires
|
|
1274
|
+
* When enabled, registration requires an upstream invite and vault creation plus
|
|
1276
1275
|
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1277
1276
|
*
|
|
1278
1277
|
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
@@ -1157,7 +1157,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1157
1157
|
accountBitcoinAmount?: any;
|
|
1158
1158
|
accountVaultBondAmount?: any;
|
|
1159
1159
|
vaultCreated?: any;
|
|
1160
|
-
isUpgradedToOperations?: any;
|
|
1161
1160
|
vaultBitcoinAmount?: any;
|
|
1162
1161
|
miningSeatCount?: any;
|
|
1163
1162
|
}
|
|
@@ -1170,7 +1169,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1170
1169
|
/**
|
|
1171
1170
|
* Register vault and mining accounts for an operational account.
|
|
1172
1171
|
* Any account in the registration may submit the transaction.
|
|
1173
|
-
* When invite-only is enabled, the registration must include
|
|
1172
|
+
* When invite-only is enabled, the registration must include an upstream access proof.
|
|
1174
1173
|
**/
|
|
1175
1174
|
register: AugmentedSubmittable<
|
|
1176
1175
|
(
|
|
@@ -1179,7 +1178,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1179
1178
|
[PalletOperationalAccountsRegistration]
|
|
1180
1179
|
>;
|
|
1181
1180
|
/**
|
|
1182
|
-
* Store an opaque encrypted
|
|
1181
|
+
* Store an opaque encrypted upstream server payload for a downstream account.
|
|
1183
1182
|
**/
|
|
1184
1183
|
setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
|
|
1185
1184
|
(
|
|
@@ -1189,22 +1188,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1189
1188
|
[AccountId32, Bytes]
|
|
1190
1189
|
>;
|
|
1191
1190
|
/**
|
|
1192
|
-
* Update reward amounts for operational accounts.
|
|
1191
|
+
* Update certification reward amounts for operational accounts.
|
|
1193
1192
|
**/
|
|
1194
1193
|
setRewardConfig: AugmentedSubmittable<
|
|
1195
1194
|
(
|
|
1196
|
-
|
|
1197
|
-
|
|
1195
|
+
operationalCertificationReward: u128 | AnyNumber | Uint8Array,
|
|
1196
|
+
operationalCertificationBonusReward: u128 | AnyNumber | Uint8Array,
|
|
1198
1197
|
) => SubmittableExtrinsic<ApiType>,
|
|
1199
1198
|
[u128, u128]
|
|
1200
1199
|
>;
|
|
1201
|
-
/**
|
|
1202
|
-
* Grant a referrer upgrade to an already-registered operational account.
|
|
1203
|
-
**/
|
|
1204
|
-
upgradeAccount: AugmentedSubmittable<
|
|
1205
|
-
(accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
1206
|
-
[AccountId32]
|
|
1207
|
-
>;
|
|
1208
1200
|
};
|
|
1209
1201
|
ownership: {
|
|
1210
1202
|
/**
|