@argonprotocol/mainchain 0.0.2

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 (102) hide show
  1. package/lib/cjs/index.d.ts +14 -0
  2. package/lib/cjs/index.js +37 -0
  3. package/lib/cjs/index.js.map +1 -0
  4. package/lib/cjs/interfaces/augment-api-consts.d.ts +408 -0
  5. package/lib/cjs/interfaces/augment-api-consts.js +8 -0
  6. package/lib/cjs/interfaces/augment-api-consts.js.map +1 -0
  7. package/lib/cjs/interfaces/augment-api-errors.d.ts +807 -0
  8. package/lib/cjs/interfaces/augment-api-errors.js +8 -0
  9. package/lib/cjs/interfaces/augment-api-errors.js.map +1 -0
  10. package/lib/cjs/interfaces/augment-api-events.d.ts +902 -0
  11. package/lib/cjs/interfaces/augment-api-events.js +8 -0
  12. package/lib/cjs/interfaces/augment-api-events.js.map +1 -0
  13. package/lib/cjs/interfaces/augment-api-query.d.ts +640 -0
  14. package/lib/cjs/interfaces/augment-api-query.js +8 -0
  15. package/lib/cjs/interfaces/augment-api-query.js.map +1 -0
  16. package/lib/cjs/interfaces/augment-api-rpc.d.ts +679 -0
  17. package/lib/cjs/interfaces/augment-api-rpc.js +8 -0
  18. package/lib/cjs/interfaces/augment-api-rpc.js.map +1 -0
  19. package/lib/cjs/interfaces/augment-api-runtime.d.ts +204 -0
  20. package/lib/cjs/interfaces/augment-api-runtime.js +8 -0
  21. package/lib/cjs/interfaces/augment-api-runtime.js.map +1 -0
  22. package/lib/cjs/interfaces/augment-api-tx.d.ts +1134 -0
  23. package/lib/cjs/interfaces/augment-api-tx.js +8 -0
  24. package/lib/cjs/interfaces/augment-api-tx.js.map +1 -0
  25. package/lib/cjs/interfaces/augment-api.d.ts +7 -0
  26. package/lib/cjs/interfaces/augment-api.js +12 -0
  27. package/lib/cjs/interfaces/augment-api.js.map +1 -0
  28. package/lib/cjs/interfaces/augment-types.d.ts +1249 -0
  29. package/lib/cjs/interfaces/augment-types.js +8 -0
  30. package/lib/cjs/interfaces/augment-types.js.map +1 -0
  31. package/lib/cjs/interfaces/definitions.d.ts +0 -0
  32. package/lib/cjs/interfaces/definitions.js +2 -0
  33. package/lib/cjs/interfaces/definitions.js.map +1 -0
  34. package/lib/cjs/interfaces/lookup.d.ts +2393 -0
  35. package/lib/cjs/interfaces/lookup.js +2398 -0
  36. package/lib/cjs/interfaces/lookup.js.map +1 -0
  37. package/lib/cjs/interfaces/registry.d.ts +202 -0
  38. package/lib/cjs/interfaces/registry.js +8 -0
  39. package/lib/cjs/interfaces/registry.js.map +1 -0
  40. package/lib/cjs/interfaces/types-lookup.d.ts +2350 -0
  41. package/lib/cjs/interfaces/types-lookup.js +8 -0
  42. package/lib/cjs/interfaces/types-lookup.js.map +1 -0
  43. package/lib/esm/index.d.ts +14 -0
  44. package/lib/esm/index.js +31 -0
  45. package/lib/esm/index.js.map +1 -0
  46. package/lib/esm/interfaces/augment-api-consts.d.ts +408 -0
  47. package/lib/esm/interfaces/augment-api-consts.js +6 -0
  48. package/lib/esm/interfaces/augment-api-consts.js.map +1 -0
  49. package/lib/esm/interfaces/augment-api-errors.d.ts +807 -0
  50. package/lib/esm/interfaces/augment-api-errors.js +6 -0
  51. package/lib/esm/interfaces/augment-api-errors.js.map +1 -0
  52. package/lib/esm/interfaces/augment-api-events.d.ts +902 -0
  53. package/lib/esm/interfaces/augment-api-events.js +6 -0
  54. package/lib/esm/interfaces/augment-api-events.js.map +1 -0
  55. package/lib/esm/interfaces/augment-api-query.d.ts +640 -0
  56. package/lib/esm/interfaces/augment-api-query.js +6 -0
  57. package/lib/esm/interfaces/augment-api-query.js.map +1 -0
  58. package/lib/esm/interfaces/augment-api-rpc.d.ts +679 -0
  59. package/lib/esm/interfaces/augment-api-rpc.js +6 -0
  60. package/lib/esm/interfaces/augment-api-rpc.js.map +1 -0
  61. package/lib/esm/interfaces/augment-api-runtime.d.ts +204 -0
  62. package/lib/esm/interfaces/augment-api-runtime.js +6 -0
  63. package/lib/esm/interfaces/augment-api-runtime.js.map +1 -0
  64. package/lib/esm/interfaces/augment-api-tx.d.ts +1134 -0
  65. package/lib/esm/interfaces/augment-api-tx.js +6 -0
  66. package/lib/esm/interfaces/augment-api-tx.js.map +1 -0
  67. package/lib/esm/interfaces/augment-api.d.ts +7 -0
  68. package/lib/esm/interfaces/augment-api.js +10 -0
  69. package/lib/esm/interfaces/augment-api.js.map +1 -0
  70. package/lib/esm/interfaces/augment-types.d.ts +1249 -0
  71. package/lib/esm/interfaces/augment-types.js +6 -0
  72. package/lib/esm/interfaces/augment-types.js.map +1 -0
  73. package/lib/esm/interfaces/definitions.d.ts +0 -0
  74. package/lib/esm/interfaces/definitions.js +2 -0
  75. package/lib/esm/interfaces/definitions.js.map +1 -0
  76. package/lib/esm/interfaces/lookup.d.ts +2393 -0
  77. package/lib/esm/interfaces/lookup.js +2396 -0
  78. package/lib/esm/interfaces/lookup.js.map +1 -0
  79. package/lib/esm/interfaces/registry.d.ts +202 -0
  80. package/lib/esm/interfaces/registry.js +6 -0
  81. package/lib/esm/interfaces/registry.js.map +1 -0
  82. package/lib/esm/interfaces/types-lookup.d.ts +2350 -0
  83. package/lib/esm/interfaces/types-lookup.js +6 -0
  84. package/lib/esm/interfaces/types-lookup.js.map +1 -0
  85. package/lib/tsconfig-cjs.tsbuildinfo +1 -0
  86. package/lib/tsconfig-types.tsbuildinfo +1 -0
  87. package/lib/tsconfig.tsbuildinfo +1 -0
  88. package/lib/types/index.d.ts +14 -0
  89. package/lib/types/interfaces/augment-api-consts.d.ts +408 -0
  90. package/lib/types/interfaces/augment-api-errors.d.ts +807 -0
  91. package/lib/types/interfaces/augment-api-events.d.ts +902 -0
  92. package/lib/types/interfaces/augment-api-query.d.ts +640 -0
  93. package/lib/types/interfaces/augment-api-rpc.d.ts +679 -0
  94. package/lib/types/interfaces/augment-api-runtime.d.ts +204 -0
  95. package/lib/types/interfaces/augment-api-tx.d.ts +1134 -0
  96. package/lib/types/interfaces/augment-api.d.ts +7 -0
  97. package/lib/types/interfaces/augment-types.d.ts +1249 -0
  98. package/lib/types/interfaces/definitions.d.ts +0 -0
  99. package/lib/types/interfaces/lookup.d.ts +2393 -0
  100. package/lib/types/interfaces/registry.d.ts +202 -0
  101. package/lib/types/interfaces/types-lookup.d.ts +2350 -0
  102. package/package.json +62 -0
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit
3
+ /* eslint-disable */
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ // import type lookup before we augment - in some environments
6
+ // this is required to allow for ambient/previous definitions
7
+ require("@polkadot/types/lookup");
8
+ //# sourceMappingURL=types-lookup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-lookup.js","sourceRoot":"","sources":["../../../src/interfaces/types-lookup.ts"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,oBAAoB;;AAEpB,8DAA8D;AAC9D,6DAA6D;AAC7D,kCAAgC"}
@@ -0,0 +1,14 @@
1
+ import "./interfaces/augment-api.js";
2
+ import "./interfaces/augment-types.js";
3
+ import "./interfaces/types-lookup.js";
4
+ import { KeyringPair } from "@polkadot/keyring/types";
5
+ import { ApiPromise, Keyring } from '@polkadot/api';
6
+ import { EventRecord } from "@polkadot/types/interfaces/system";
7
+ import { InterfaceTypes } from '@polkadot/types/types/registry';
8
+ export { Keyring, KeyringPair };
9
+ export * from "@polkadot/types";
10
+ export * from '@polkadot/types/lookup';
11
+ export { InterfaceTypes as interfaces };
12
+ export type ArgonClient = ApiPromise;
13
+ export declare function getClient(host: string): Promise<ArgonClient>;
14
+ export declare function checkForExtrinsicSuccess(events: EventRecord[], client: ArgonClient): Promise<void>;
@@ -0,0 +1,31 @@
1
+ import "./interfaces/augment-api.js";
2
+ import "./interfaces/augment-types.js";
3
+ import "./interfaces/types-lookup.js";
4
+ import { ApiPromise, Keyring, WsProvider } from '@polkadot/api';
5
+ export { Keyring };
6
+ export * from "@polkadot/types";
7
+ export * from '@polkadot/types/lookup';
8
+ export async function getClient(host) {
9
+ const provider = new WsProvider(host);
10
+ return await ApiPromise.create({ provider, noInitWarn: true });
11
+ }
12
+ export function checkForExtrinsicSuccess(events, client) {
13
+ return new Promise((resolve, reject) => {
14
+ for (const { event } of events) {
15
+ if (client.events.system.ExtrinsicSuccess.is(event)) {
16
+ resolve();
17
+ }
18
+ else if (client.events.system.ExtrinsicFailed.is(event)) {
19
+ // extract the data for this event
20
+ const [dispatchError] = event.data;
21
+ let errorInfo = dispatchError.toString();
22
+ if (dispatchError.isModule) {
23
+ const decoded = client.registry.findMetaError(dispatchError.asModule);
24
+ errorInfo = `${decoded.section}.${decoded.name}`;
25
+ }
26
+ reject(new Error(`${event.section}.${event.method}:: ExtrinsicFailed:: ${errorInfo}`));
27
+ }
28
+ }
29
+ });
30
+ }
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,+BAA+B,CAAC;AACvC,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAC,UAAU,EAAE,OAAO,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAI9D,OAAO,EAAC,OAAO,EAAc,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,wBAAwB,CAAC;AAMvC,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,IAAY;IACxC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,MAAM,UAAU,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAqB,EAAE,MAAmB;IAC/E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACnC,KAAK,MAAM,EAAC,KAAK,EAAC,IAAI,MAAM,EAAE,CAAC;YAC3B,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClD,OAAO,EAAE,CAAC;YACd,CAAC;iBAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxD,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;oBACzB,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;gBACrD,CAAC;gBAED,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,wBAAwB,SAAS,EAAE,CAAC,CAAC,CAAC;YAC3F,CAAC;QACL,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,408 @@
1
+ import '@polkadot/api-base/types/consts';
2
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
+ import type { u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight } from '@polkadot/types/lookup';
5
+ export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
6
+ declare module '@polkadot/api-base/types/consts' {
7
+ interface AugmentedConsts<ApiType extends ApiTypes> {
8
+ argonBalances: {
9
+ /**
10
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
11
+ *
12
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
13
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
14
+ * In case you have multiple sources of provider references, you may also get unexpected
15
+ * behaviour if you set this to zero.
16
+ *
17
+ * Bottom line: Do yourself a favour and make it at least one!
18
+ **/
19
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
20
+ /**
21
+ * The maximum number of individual freeze locks that can exist on an account at any time.
22
+ **/
23
+ maxFreezes: u32 & AugmentedConst<ApiType>;
24
+ /**
25
+ * The maximum number of locks that should exist on an account.
26
+ * Not strictly enforced, but used for weight estimation.
27
+ *
28
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
29
+ **/
30
+ maxLocks: u32 & AugmentedConst<ApiType>;
31
+ /**
32
+ * The maximum number of named reserves that can exist on an account.
33
+ *
34
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
35
+ **/
36
+ maxReserves: u32 & AugmentedConst<ApiType>;
37
+ };
38
+ bitcoinUtxos: {
39
+ /**
40
+ * Maximum bitcoin blocks to watch a Utxo for confirmation before canceling
41
+ **/
42
+ maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
43
+ /**
44
+ * The maximum number of UTXOs that can be tracked in a block and/or expiring at same block
45
+ **/
46
+ maxPendingConfirmationUtxos: u32 & AugmentedConst<ApiType>;
47
+ };
48
+ blockRewards: {
49
+ /**
50
+ * Number of argons minted per block
51
+ **/
52
+ argonsPerBlock: u128 & AugmentedConst<ApiType>;
53
+ /**
54
+ * Number of blocks for halving of ownership share rewards
55
+ **/
56
+ halvingBlocks: u32 & AugmentedConst<ApiType>;
57
+ /**
58
+ * Blocks until a block reward is mature
59
+ **/
60
+ maturationBlocks: u32 & AugmentedConst<ApiType>;
61
+ /**
62
+ * Percent as a number out of 100 of the block reward that goes to the miner.
63
+ **/
64
+ minerPayoutPercent: u128 & AugmentedConst<ApiType>;
65
+ /**
66
+ * Number of shares minted per block
67
+ **/
68
+ startingSharesPerBlock: u128 & AugmentedConst<ApiType>;
69
+ };
70
+ blockSealSpec: {
71
+ /**
72
+ * The number of historical compute times to use to calculate the rolling compute average
73
+ * (for adjustment)
74
+ **/
75
+ changePeriod: u32 & AugmentedConst<ApiType>;
76
+ /**
77
+ * The maximum active notaries allowed
78
+ **/
79
+ maxActiveNotaries: u32 & AugmentedConst<ApiType>;
80
+ /**
81
+ * The desired votes per block
82
+ **/
83
+ targetBlockVotes: u128 & AugmentedConst<ApiType>;
84
+ };
85
+ bonds: {
86
+ /**
87
+ * Argon blocks per day
88
+ **/
89
+ argonBlocksPerDay: u32 & AugmentedConst<ApiType>;
90
+ /**
91
+ * The number of bitcoin blocks a bitcoin bond is locked for
92
+ **/
93
+ bitcoinBondDurationBlocks: u64 & AugmentedConst<ApiType>;
94
+ /**
95
+ * The bitcoin blocks after a bond expires which the vault will be allowed to claim a
96
+ * bitcoin
97
+ **/
98
+ bitcoinBondReclamationBlocks: u64 & AugmentedConst<ApiType>;
99
+ /**
100
+ * Pallet storage requires bounds, so we have to set a maximum number that can expire in a
101
+ * single block
102
+ **/
103
+ maxConcurrentlyExpiringBonds: u32 & AugmentedConst<ApiType>;
104
+ /**
105
+ * Maximum unlocking utxos at a time
106
+ **/
107
+ maxUnlockingUtxos: u32 & AugmentedConst<ApiType>;
108
+ /**
109
+ * Minimum amount for a bond
110
+ **/
111
+ minimumBondAmount: u128 & AugmentedConst<ApiType>;
112
+ /**
113
+ * Number of bitcoin blocks a vault has to counter-sign a bitcoin unlock
114
+ **/
115
+ utxoUnlockCosignDeadlineBlocks: u64 & AugmentedConst<ApiType>;
116
+ };
117
+ chainTransfer: {
118
+ /**
119
+ * How many transfers out can be queued per block
120
+ **/
121
+ maxPendingTransfersOutPerBlock: u32 & AugmentedConst<ApiType>;
122
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
123
+ /**
124
+ * How long a transfer should remain in storage before returning. NOTE: there is a 2 tick
125
+ * grace period where we will still allow a transfer
126
+ **/
127
+ transferExpirationTicks: u32 & AugmentedConst<ApiType>;
128
+ };
129
+ grandpa: {
130
+ /**
131
+ * Max Authorities in use
132
+ **/
133
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
134
+ /**
135
+ * The maximum number of nominators for each validator.
136
+ **/
137
+ maxNominators: u32 & AugmentedConst<ApiType>;
138
+ /**
139
+ * The maximum number of entries to keep in the set id to session index mapping.
140
+ *
141
+ * Since the `SetIdSession` map is only used for validating equivocations this
142
+ * value should relate to the bonding duration of whatever staking system is
143
+ * being used (if any). If equivocation handling is not enabled then this value
144
+ * can be zero.
145
+ **/
146
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
147
+ };
148
+ miningSlot: {
149
+ /**
150
+ * How many new miners can be in the cohort for each slot
151
+ **/
152
+ maxCohortSize: u32 & AugmentedConst<ApiType>;
153
+ /**
154
+ * The maximum number of Miners that the pallet can hold.
155
+ **/
156
+ maxMiners: u32 & AugmentedConst<ApiType>;
157
+ /**
158
+ * The max percent swing for the ownership bond amount per slot (from the last percent
159
+ **/
160
+ ownershipPercentAdjustmentDamper: u128 & AugmentedConst<ApiType>;
161
+ /**
162
+ * The number of session rotations per slot (one will align with the start of the session)
163
+ **/
164
+ sessionRotationsPerMiningWindow: u32 & AugmentedConst<ApiType>;
165
+ /**
166
+ * How many session indexes to keep session history
167
+ **/
168
+ sessionWindowsToKeepInHistory: u32 & AugmentedConst<ApiType>;
169
+ /**
170
+ * The target number of bids per slot. This will adjust the ownership bond amount up or
171
+ * down to ensure mining slots are filled.
172
+ **/
173
+ targetBidsPerSlot: u32 & AugmentedConst<ApiType>;
174
+ };
175
+ mint: {
176
+ /**
177
+ * The maximum number of UTXOs that can be waiting for minting
178
+ **/
179
+ maxPendingMintUtxos: u32 & AugmentedConst<ApiType>;
180
+ };
181
+ multisig: {
182
+ /**
183
+ * The base amount of currency needed to reserve for creating a multisig execution or to
184
+ * store a dispatch call for later.
185
+ *
186
+ * This is held for an additional storage item whose value size is
187
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
188
+ * `32 + sizeof(AccountId)` bytes.
189
+ **/
190
+ depositBase: u128 & AugmentedConst<ApiType>;
191
+ /**
192
+ * The amount of currency needed per unit threshold when creating a multisig execution.
193
+ *
194
+ * This is held for adding 32 bytes more into a pre-existing storage value.
195
+ **/
196
+ depositFactor: u128 & AugmentedConst<ApiType>;
197
+ /**
198
+ * The maximum amount of signatories allowed in the multisig.
199
+ **/
200
+ maxSignatories: u32 & AugmentedConst<ApiType>;
201
+ };
202
+ notaries: {
203
+ /**
204
+ * The maximum active notaries allowed
205
+ **/
206
+ maxActiveNotaries: u32 & AugmentedConst<ApiType>;
207
+ /**
208
+ * Maximum hosts a notary can supply
209
+ **/
210
+ maxNotaryHosts: u32 & AugmentedConst<ApiType>;
211
+ /**
212
+ * The maximum blocks a proposal can sit unapproved
213
+ **/
214
+ maxProposalHoldBlocks: u32 & AugmentedConst<ApiType>;
215
+ maxProposalsPerBlock: u32 & AugmentedConst<ApiType>;
216
+ /**
217
+ * Number of ticks to maintain key history for each notary
218
+ * NOTE: only pruned when new keys are added
219
+ **/
220
+ maxTicksForKeyHistory: u32 & AugmentedConst<ApiType>;
221
+ /**
222
+ * Number of ticks to delay changing a notaries' meta (this is to allow a window for
223
+ * notaries to switch to new keys after a new key is finalized)
224
+ **/
225
+ metaChangesTickDelay: u32 & AugmentedConst<ApiType>;
226
+ };
227
+ priceIndex: {
228
+ /**
229
+ * The max price difference dropping below target or raising above target per tick. There's
230
+ * no corresponding constant for time to recovery to target
231
+ **/
232
+ maxArgonChangePerTickAwayFromTarget: u128 & AugmentedConst<ApiType>;
233
+ maxArgonTargetChangePerTick: u128 & AugmentedConst<ApiType>;
234
+ /**
235
+ * The maximum number of ticks to preserve a price index
236
+ **/
237
+ maxDowntimeTicksBeforeReset: u32 & AugmentedConst<ApiType>;
238
+ /**
239
+ * The oldest history to keep
240
+ **/
241
+ maxPriceAgeInTicks: u32 & AugmentedConst<ApiType>;
242
+ };
243
+ proxy: {
244
+ /**
245
+ * The base amount of currency needed to reserve for creating an announcement.
246
+ *
247
+ * This is held when a new storage item holding a `Balance` is created (typically 16
248
+ * bytes).
249
+ **/
250
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
251
+ /**
252
+ * The amount of currency needed per announcement made.
253
+ *
254
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
255
+ * into a pre-existing storage value.
256
+ **/
257
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
258
+ /**
259
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
260
+ **/
261
+ maxPending: u32 & AugmentedConst<ApiType>;
262
+ /**
263
+ * The maximum amount of proxies allowed for a single account.
264
+ **/
265
+ maxProxies: u32 & AugmentedConst<ApiType>;
266
+ /**
267
+ * The base amount of currency needed to reserve for creating a proxy.
268
+ *
269
+ * This is held for an additional storage item whose value size is
270
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
271
+ **/
272
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
273
+ /**
274
+ * The amount of currency needed per proxy added.
275
+ *
276
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
277
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
278
+ * into account `32 + proxy_type.encode().len()` bytes of data.
279
+ **/
280
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
281
+ };
282
+ shareBalances: {
283
+ /**
284
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
285
+ *
286
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
287
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
288
+ * In case you have multiple sources of provider references, you may also get unexpected
289
+ * behaviour if you set this to zero.
290
+ *
291
+ * Bottom line: Do yourself a favour and make it at least one!
292
+ **/
293
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
294
+ /**
295
+ * The maximum number of individual freeze locks that can exist on an account at any time.
296
+ **/
297
+ maxFreezes: u32 & AugmentedConst<ApiType>;
298
+ /**
299
+ * The maximum number of locks that should exist on an account.
300
+ * Not strictly enforced, but used for weight estimation.
301
+ *
302
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
303
+ **/
304
+ maxLocks: u32 & AugmentedConst<ApiType>;
305
+ /**
306
+ * The maximum number of named reserves that can exist on an account.
307
+ *
308
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
309
+ **/
310
+ maxReserves: u32 & AugmentedConst<ApiType>;
311
+ };
312
+ system: {
313
+ /**
314
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
315
+ **/
316
+ blockHashCount: u32 & AugmentedConst<ApiType>;
317
+ /**
318
+ * The maximum length of a block (in bytes).
319
+ **/
320
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
321
+ /**
322
+ * Block & extrinsics weights: base values and limits.
323
+ **/
324
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
325
+ /**
326
+ * The weight of runtime database operations the runtime can invoke.
327
+ **/
328
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
329
+ /**
330
+ * The designated SS58 prefix of this chain.
331
+ *
332
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
333
+ * that the runtime should know about the prefix in order to make use of it as
334
+ * an identifier of the chain.
335
+ **/
336
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
337
+ /**
338
+ * Get the chain's in-code version.
339
+ **/
340
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
341
+ };
342
+ timestamp: {
343
+ /**
344
+ * The minimum period between blocks.
345
+ *
346
+ * Be aware that this is different to the *expected* period that the block production
347
+ * apparatus provides. Your chosen consensus system will generally work with this to
348
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
349
+ * period on default settings.
350
+ **/
351
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
352
+ };
353
+ transactionPayment: {
354
+ /**
355
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
356
+ * `priority`
357
+ *
358
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
359
+ * added to a tip component in regular `priority` calculations.
360
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
361
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
362
+ *
363
+ * ```rust,ignore
364
+ * // For `Normal`
365
+ * let priority = priority_calc(tip);
366
+ *
367
+ * // For `Operational`
368
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
369
+ * let priority = priority_calc(tip + virtual_tip);
370
+ * ```
371
+ *
372
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
373
+ * sent with the transaction. So, not only does the transaction get a priority bump based
374
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
375
+ * transactions.
376
+ **/
377
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
378
+ };
379
+ txPause: {
380
+ /**
381
+ * Maximum length for pallet name and call name SCALE encoded string names.
382
+ *
383
+ * TOO LONG NAMES WILL BE TREATED AS PAUSED.
384
+ **/
385
+ maxNameLen: u32 & AugmentedConst<ApiType>;
386
+ };
387
+ vaults: {
388
+ /**
389
+ * Argon blocks per day
390
+ **/
391
+ blocksPerDay: u32 & AugmentedConst<ApiType>;
392
+ /**
393
+ * The max pending vault term changes per block
394
+ **/
395
+ maxPendingTermModificationsPerBlock: u32 & AugmentedConst<ApiType>;
396
+ /**
397
+ * Minimum amount for a bond
398
+ **/
399
+ minimumBondAmount: u128 & AugmentedConst<ApiType>;
400
+ /**
401
+ * The number of blocks that a change in terms will take before applying. Terms only apply
402
+ * on a slot changeover, so this setting is the minimum blocks that must pass, in
403
+ * addition to the time to the next slot after that
404
+ **/
405
+ minTermsModificationBlockDelay: u32 & AugmentedConst<ApiType>;
406
+ };
407
+ }
408
+ }
@@ -0,0 +1,6 @@
1
+ // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
2
+ /* eslint-disable */
3
+ // import type lookup before we augment - in some environments
4
+ // this is required to allow for ambient/previous definitions
5
+ import '@polkadot/api-base/types/consts';
6
+ //# sourceMappingURL=augment-api-consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"augment-api-consts.js","sourceRoot":"","sources":["../../../src/interfaces/augment-api-consts.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,oBAAoB;AAEpB,8DAA8D;AAC9D,6DAA6D;AAC7D,OAAO,iCAAiC,CAAC"}