@argonprotocol/mainchain 1.0.11 → 1.0.13
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 +18 -15
- package/lib/cjs/WageProtector.d.ts +1 -1
- package/lib/cjs/WageProtector.js +3 -2
- package/lib/cjs/WageProtector.js.map +1 -1
- package/lib/cjs/__test__/WageProtector.test.js +2 -2
- package/lib/cjs/__test__/WageProtector.test.js.map +1 -1
- package/lib/cjs/examples/decodePkcs.js +3 -3
- package/lib/cjs/examples/decodePkcs.js.map +1 -1
- package/lib/cjs/examples/findSs58Formats.js +6 -1
- package/lib/cjs/examples/findSs58Formats.js.map +1 -1
- package/lib/cjs/index.d.ts +9 -9
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interfaces/augment-api-consts.d.ts +0 -10
- package/lib/cjs/interfaces/augment-api-errors.d.ts +16 -0
- package/lib/cjs/interfaces/augment-api-events.d.ts +678 -149
- package/lib/cjs/interfaces/augment-api-query.d.ts +340 -127
- package/lib/cjs/interfaces/augment-api-rpc.d.ts +1 -1
- package/lib/cjs/interfaces/augment-api-tx.d.ts +362 -96
- package/lib/cjs/interfaces/lookup.d.ts +65 -54
- package/lib/cjs/interfaces/lookup.js +655 -411
- package/lib/cjs/interfaces/lookup.js.map +1 -1
- package/lib/cjs/interfaces/types-lookup.d.ts +90 -62
- package/lib/esm/WageProtector.d.ts +1 -1
- package/lib/esm/WageProtector.js +3 -2
- package/lib/esm/WageProtector.js.map +1 -1
- package/lib/esm/__test__/WageProtector.test.js +3 -3
- package/lib/esm/__test__/WageProtector.test.js.map +1 -1
- package/lib/esm/examples/decodePkcs.js +8 -8
- package/lib/esm/examples/decodePkcs.js.map +1 -1
- package/lib/esm/examples/findSs58Formats.js +6 -1
- package/lib/esm/examples/findSs58Formats.js.map +1 -1
- package/lib/esm/index.d.ts +9 -9
- package/lib/esm/index.js +7 -7
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interfaces/augment-api-consts.d.ts +0 -10
- package/lib/esm/interfaces/augment-api-errors.d.ts +16 -0
- package/lib/esm/interfaces/augment-api-events.d.ts +678 -149
- package/lib/esm/interfaces/augment-api-query.d.ts +340 -127
- package/lib/esm/interfaces/augment-api-rpc.d.ts +1 -1
- package/lib/esm/interfaces/augment-api-tx.d.ts +362 -96
- package/lib/esm/interfaces/lookup.d.ts +65 -54
- package/lib/esm/interfaces/lookup.js +655 -411
- package/lib/esm/interfaces/lookup.js.map +1 -1
- package/lib/esm/interfaces/types-lookup.d.ts +90 -62
- package/lib/tsconfig-cjs.tsbuildinfo +1 -1
- package/lib/tsconfig-types.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/WageProtector.d.ts +1 -1
- package/lib/types/index.d.ts +9 -9
- package/lib/types/interfaces/augment-api-consts.d.ts +0 -10
- package/lib/types/interfaces/augment-api-errors.d.ts +16 -0
- package/lib/types/interfaces/augment-api-events.d.ts +678 -149
- package/lib/types/interfaces/augment-api-query.d.ts +340 -127
- package/lib/types/interfaces/augment-api-rpc.d.ts +1 -1
- package/lib/types/interfaces/augment-api-tx.d.ts +362 -96
- package/lib/types/interfaces/lookup.d.ts +65 -54
- package/lib/types/interfaces/types-lookup.d.ts +90 -62
- package/package.json +1 -1
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { KeyringPair, KeyringPair$Json } from
|
|
1
|
+
import './interfaces/augment-api.js';
|
|
2
|
+
import './interfaces/augment-types.js';
|
|
3
|
+
import './interfaces/types-lookup.js';
|
|
4
|
+
import { KeyringPair, KeyringPair$Json } from '@polkadot/keyring/types';
|
|
5
5
|
import { ApiPromise, Keyring } from '@polkadot/api';
|
|
6
6
|
import { decodeAddress, mnemonicGenerate } from '@polkadot/util-crypto';
|
|
7
|
-
import { EventRecord } from
|
|
7
|
+
import { EventRecord } from '@polkadot/types/interfaces/system';
|
|
8
8
|
import { InterfaceTypes } from '@polkadot/types/types/registry';
|
|
9
|
-
import { KeypairType } from
|
|
10
|
-
export { WageProtector } from
|
|
11
|
-
export { Keyring, KeyringPair, KeyringPair$Json, KeypairType, mnemonicGenerate, decodeAddress };
|
|
12
|
-
export * from
|
|
9
|
+
import { KeypairType } from '@polkadot/util-crypto/types';
|
|
10
|
+
export { WageProtector } from './WageProtector';
|
|
11
|
+
export { Keyring, KeyringPair, KeyringPair$Json, KeypairType, mnemonicGenerate, decodeAddress, };
|
|
12
|
+
export * from '@polkadot/types';
|
|
13
13
|
export * from '@polkadot/types/lookup';
|
|
14
14
|
export { InterfaceTypes as interfaces };
|
|
15
15
|
export type ArgonClient = ApiPromise;
|
package/lib/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import './interfaces/augment-api.js';
|
|
2
|
+
import './interfaces/augment-types.js';
|
|
3
|
+
import './interfaces/types-lookup.js';
|
|
4
4
|
import { ApiPromise, Keyring, WsProvider } from '@polkadot/api';
|
|
5
|
-
import { cryptoWaitReady, decodeAddress, mnemonicGenerate } from '@polkadot/util-crypto';
|
|
6
|
-
export { WageProtector } from
|
|
7
|
-
export { Keyring, mnemonicGenerate, decodeAddress };
|
|
8
|
-
export * from
|
|
5
|
+
import { cryptoWaitReady, decodeAddress, mnemonicGenerate, } from '@polkadot/util-crypto';
|
|
6
|
+
export { WageProtector } from './WageProtector';
|
|
7
|
+
export { Keyring, mnemonicGenerate, decodeAddress, };
|
|
8
|
+
export * from '@polkadot/types';
|
|
9
9
|
export * from '@polkadot/types/lookup';
|
|
10
10
|
/**
|
|
11
11
|
* Wait for the crypto library to be ready (requires wasm, which needs async loading in commonjs)
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAA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AAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1D,kCAAkC;gBAClC,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC;gBACnC,IAAI,SAAS,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC;gBAEzC,IAAI,aAAa,CAAC,QAAQ,EAAE,CAAC;oBAC3B,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACtE,SAAS,GAAG,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;gBACnD,CAAC;gBAED,MAAM,CACJ,IAAI,KAAK,CACP,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,wBAAwB,SAAS,EAAE,CACpE,CACF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -101,10 +101,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
101
101
|
startingOwnershipTokensPerBlock: u128 & AugmentedConst<ApiType>;
|
|
102
102
|
};
|
|
103
103
|
blockSealSpec: {
|
|
104
|
-
/**
|
|
105
|
-
* The frequency we should update the compute difficulty
|
|
106
|
-
**/
|
|
107
|
-
computeDifficultyChangePeriod: u32 & AugmentedConst<ApiType>;
|
|
108
104
|
/**
|
|
109
105
|
* The number of historical compute times to use to calculate the rolling compute average
|
|
110
106
|
* (for adjustment)
|
|
@@ -428,12 +424,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
428
424
|
* The number of ticks that a funding change will be delayed before it takes effect
|
|
429
425
|
**/
|
|
430
426
|
miningArgonIncreaseTickDelay: u64 & AugmentedConst<ApiType>;
|
|
431
|
-
/**
|
|
432
|
-
* The number of ticks that a change in terms will take before applying. Terms only apply
|
|
433
|
-
* on a slot changeover, so this setting is the minimum blocks that must pass, in
|
|
434
|
-
* addition to the time to the next slot after that
|
|
435
|
-
**/
|
|
436
|
-
minTermsModificationTickDelay: u64 & AugmentedConst<ApiType>;
|
|
437
427
|
/**
|
|
438
428
|
* Argon blocks per day
|
|
439
429
|
**/
|
|
@@ -411,6 +411,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
411
411
|
miningSlot: {
|
|
412
412
|
AccountWouldBeBelowMinimum: AugmentedError<ApiType>;
|
|
413
413
|
BidTooLow: AugmentedError<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* Keys cannot be registered by multiple accounts
|
|
416
|
+
**/
|
|
417
|
+
CannotRegisterDuplicateKeys: AugmentedError<ApiType>;
|
|
414
418
|
CannotRegisterOverlappingSessions: AugmentedError<ApiType>;
|
|
415
419
|
/**
|
|
416
420
|
* There are too many obligations expiring in the given expiration block
|
|
@@ -422,6 +426,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
422
426
|
InsufficientFunds: AugmentedError<ApiType>;
|
|
423
427
|
InsufficientOwnershipTokens: AugmentedError<ApiType>;
|
|
424
428
|
InsufficientVaultFunds: AugmentedError<ApiType>;
|
|
429
|
+
/**
|
|
430
|
+
* Unable to decode the key format
|
|
431
|
+
**/
|
|
432
|
+
InvalidKeyFormat: AugmentedError<ApiType>;
|
|
425
433
|
MinimumObligationAmountNotMet: AugmentedError<ApiType>;
|
|
426
434
|
NoMoreObligationIds: AugmentedError<ApiType>;
|
|
427
435
|
NoPermissions: AugmentedError<ApiType>;
|
|
@@ -808,6 +816,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
808
816
|
* The proposed transaction would take the account below the minimum (existential) balance
|
|
809
817
|
**/
|
|
810
818
|
AccountBelowMinimumBalance: AugmentedError<ApiType>;
|
|
819
|
+
/**
|
|
820
|
+
* Too many base fee maturations were inserted per tick
|
|
821
|
+
**/
|
|
822
|
+
BaseFeeOverflow: AugmentedError<ApiType>;
|
|
811
823
|
/**
|
|
812
824
|
* Bitcoin conversion to compressed pubkey failed
|
|
813
825
|
**/
|
|
@@ -889,6 +901,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
889
901
|
UnsafeXpubkey: AugmentedError<ApiType>;
|
|
890
902
|
VaultClosed: AugmentedError<ApiType>;
|
|
891
903
|
VaultNotFound: AugmentedError<ApiType>;
|
|
904
|
+
/**
|
|
905
|
+
* The vault is not yet active
|
|
906
|
+
**/
|
|
907
|
+
VaultNotYetActive: AugmentedError<ApiType>;
|
|
892
908
|
/**
|
|
893
909
|
* This reduction in obligation funds offered goes below the amount that is already
|
|
894
910
|
* committed to
|