@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.
Files changed (58) hide show
  1. package/README.md +18 -15
  2. package/lib/cjs/WageProtector.d.ts +1 -1
  3. package/lib/cjs/WageProtector.js +3 -2
  4. package/lib/cjs/WageProtector.js.map +1 -1
  5. package/lib/cjs/__test__/WageProtector.test.js +2 -2
  6. package/lib/cjs/__test__/WageProtector.test.js.map +1 -1
  7. package/lib/cjs/examples/decodePkcs.js +3 -3
  8. package/lib/cjs/examples/decodePkcs.js.map +1 -1
  9. package/lib/cjs/examples/findSs58Formats.js +6 -1
  10. package/lib/cjs/examples/findSs58Formats.js.map +1 -1
  11. package/lib/cjs/index.d.ts +9 -9
  12. package/lib/cjs/index.js.map +1 -1
  13. package/lib/cjs/interfaces/augment-api-consts.d.ts +0 -10
  14. package/lib/cjs/interfaces/augment-api-errors.d.ts +16 -0
  15. package/lib/cjs/interfaces/augment-api-events.d.ts +678 -149
  16. package/lib/cjs/interfaces/augment-api-query.d.ts +340 -127
  17. package/lib/cjs/interfaces/augment-api-rpc.d.ts +1 -1
  18. package/lib/cjs/interfaces/augment-api-tx.d.ts +362 -96
  19. package/lib/cjs/interfaces/lookup.d.ts +65 -54
  20. package/lib/cjs/interfaces/lookup.js +655 -411
  21. package/lib/cjs/interfaces/lookup.js.map +1 -1
  22. package/lib/cjs/interfaces/types-lookup.d.ts +90 -62
  23. package/lib/esm/WageProtector.d.ts +1 -1
  24. package/lib/esm/WageProtector.js +3 -2
  25. package/lib/esm/WageProtector.js.map +1 -1
  26. package/lib/esm/__test__/WageProtector.test.js +3 -3
  27. package/lib/esm/__test__/WageProtector.test.js.map +1 -1
  28. package/lib/esm/examples/decodePkcs.js +8 -8
  29. package/lib/esm/examples/decodePkcs.js.map +1 -1
  30. package/lib/esm/examples/findSs58Formats.js +6 -1
  31. package/lib/esm/examples/findSs58Formats.js.map +1 -1
  32. package/lib/esm/index.d.ts +9 -9
  33. package/lib/esm/index.js +7 -7
  34. package/lib/esm/index.js.map +1 -1
  35. package/lib/esm/interfaces/augment-api-consts.d.ts +0 -10
  36. package/lib/esm/interfaces/augment-api-errors.d.ts +16 -0
  37. package/lib/esm/interfaces/augment-api-events.d.ts +678 -149
  38. package/lib/esm/interfaces/augment-api-query.d.ts +340 -127
  39. package/lib/esm/interfaces/augment-api-rpc.d.ts +1 -1
  40. package/lib/esm/interfaces/augment-api-tx.d.ts +362 -96
  41. package/lib/esm/interfaces/lookup.d.ts +65 -54
  42. package/lib/esm/interfaces/lookup.js +655 -411
  43. package/lib/esm/interfaces/lookup.js.map +1 -1
  44. package/lib/esm/interfaces/types-lookup.d.ts +90 -62
  45. package/lib/tsconfig-cjs.tsbuildinfo +1 -1
  46. package/lib/tsconfig-types.tsbuildinfo +1 -1
  47. package/lib/tsconfig.tsbuildinfo +1 -1
  48. package/lib/types/WageProtector.d.ts +1 -1
  49. package/lib/types/index.d.ts +9 -9
  50. package/lib/types/interfaces/augment-api-consts.d.ts +0 -10
  51. package/lib/types/interfaces/augment-api-errors.d.ts +16 -0
  52. package/lib/types/interfaces/augment-api-events.d.ts +678 -149
  53. package/lib/types/interfaces/augment-api-query.d.ts +340 -127
  54. package/lib/types/interfaces/augment-api-rpc.d.ts +1 -1
  55. package/lib/types/interfaces/augment-api-tx.d.ts +362 -96
  56. package/lib/types/interfaces/lookup.d.ts +65 -54
  57. package/lib/types/interfaces/types-lookup.d.ts +90 -62
  58. package/package.json +1 -1
@@ -1,15 +1,15 @@
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";
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 "@polkadot/types/interfaces/system";
7
+ import { EventRecord } from '@polkadot/types/interfaces/system';
8
8
  import { InterfaceTypes } from '@polkadot/types/types/registry';
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";
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 "./interfaces/augment-api.js";
2
- import "./interfaces/augment-types.js";
3
- import "./interfaces/types-lookup.js";
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 "./WageProtector";
7
- export { Keyring, mnemonicGenerate, decodeAddress };
8
- export * from "@polkadot/types";
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)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,+BAA+B,C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,UAAU,wBAAwB,CACtC,MAAqB,EACrB,MAAmB;IAEnB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,MAAM,EAAE,CAAC;YAC/B,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;gBACpD,OAAO,EAAE,CAAC;YACZ,CAAC;iBAAM,IAAI,MAAM,CAAC,MAAM,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