@bitgo-beta/abstract-substrate 1.0.1-beta.48 → 1.0.1-beta.480

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 (54) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/dist/src/abstractSubstrateCoin.d.ts +57 -23
  3. package/dist/src/abstractSubstrateCoin.d.ts.map +1 -1
  4. package/dist/src/abstractSubstrateCoin.js +335 -62
  5. package/dist/src/lib/constants.d.ts +2 -0
  6. package/dist/src/lib/constants.d.ts.map +1 -0
  7. package/dist/src/lib/constants.js +5 -0
  8. package/dist/src/lib/errors.d.ts +8 -0
  9. package/dist/src/lib/errors.d.ts.map +1 -0
  10. package/dist/src/lib/errors.js +19 -0
  11. package/dist/src/lib/iface.d.ts +107 -205
  12. package/dist/src/lib/iface.d.ts.map +1 -1
  13. package/dist/src/lib/iface.js +33 -82
  14. package/dist/src/lib/index.d.ts +9 -2
  15. package/dist/src/lib/index.d.ts.map +1 -1
  16. package/dist/src/lib/index.js +22 -4
  17. package/dist/src/lib/keyPair.d.ts +6 -13
  18. package/dist/src/lib/keyPair.d.ts.map +1 -1
  19. package/dist/src/lib/keyPair.js +12 -19
  20. package/dist/src/lib/nativeTransferBuilder.d.ts +61 -0
  21. package/dist/src/lib/nativeTransferBuilder.d.ts.map +1 -0
  22. package/dist/src/lib/nativeTransferBuilder.js +150 -0
  23. package/dist/src/lib/singletonRegistry.d.ts +8 -0
  24. package/dist/src/lib/singletonRegistry.d.ts.map +1 -0
  25. package/dist/src/lib/singletonRegistry.js +20 -0
  26. package/dist/src/lib/transaction.d.ts +74 -0
  27. package/dist/src/lib/transaction.d.ts.map +1 -0
  28. package/dist/src/lib/transaction.js +553 -0
  29. package/dist/src/lib/transactionBuilder.d.ts +121 -0
  30. package/dist/src/lib/transactionBuilder.d.ts.map +1 -0
  31. package/dist/src/lib/transactionBuilder.js +334 -0
  32. package/dist/src/lib/transferBuilder.d.ts +6 -0
  33. package/dist/src/lib/transferBuilder.d.ts.map +1 -0
  34. package/dist/src/lib/transferBuilder.js +11 -0
  35. package/dist/src/lib/txnSchema.d.ts +11 -0
  36. package/dist/src/lib/txnSchema.d.ts.map +1 -0
  37. package/dist/src/lib/txnSchema.js +64 -0
  38. package/dist/src/lib/utils.d.ts +14 -143
  39. package/dist/src/lib/utils.d.ts.map +1 -1
  40. package/dist/src/lib/utils.js +26 -243
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +10 -5
  43. package/dist/src/lib/iface_utils.d.ts +0 -59
  44. package/dist/src/lib/iface_utils.d.ts.map +0 -1
  45. package/dist/src/lib/iface_utils.js +0 -92
  46. package/dist/src/resources/index.d.ts +0 -3
  47. package/dist/src/resources/index.d.ts.map +0 -1
  48. package/dist/src/resources/index.js +0 -19
  49. package/dist/src/resources/mainnet.d.ts +0 -2
  50. package/dist/src/resources/mainnet.d.ts.map +0 -1
  51. package/dist/src/resources/mainnet.js +0 -5
  52. package/dist/src/resources/westend.d.ts +0 -2
  53. package/dist/src/resources/westend.d.ts.map +0 -1
  54. package/dist/src/resources/westend.js +0 -5
@@ -1,110 +1,85 @@
1
- import { TransactionType, TransactionExplanation as BaseTransactionExplanation } from '@bitgo-beta/sdk-core';
2
- import { PolkadotSpecNameType } from '@bitgo-beta/statics';
3
- import { BaseTxInfo, TypeRegistry, DecodedUnsignedTx } from '@substrate/txwrapper-core/lib/types';
1
+ import { SignTransactionOptions as BaseSignTransactionOptions, TransactionExplanation as BaseTransactionExplanation, TransactionType } from '@bitgo-beta/sdk-core';
2
+ import { BaseTxInfo, DecodedUnsignedTx, TypeRegistry } from '@substrate/txwrapper-core/lib/types';
3
+ import { Args } from '@substrate/txwrapper-core/lib/types/method';
4
4
  export { HexString } from '@polkadot/util/types';
5
5
  /**
6
6
  * Section names for the transaction methods.
7
7
  */
8
8
  export declare enum SectionNames {
9
- Proxy = "proxy",
10
- Staking = "staking"
9
+ Proxy = "proxy"
11
10
  }
12
11
  /**
13
12
  * Method names for the transaction method. Names change based on the type of transaction e.g 'bond' for the staking transaction
13
+ *
14
+ * This is implemented as a const object with string literals to allow for extension in derived modules.
14
15
  */
15
- export declare enum MethodNames {
16
+ export declare const MethodNames: {
16
17
  /**
17
- * Register a proxy account for the sender that is able to make calls on its behalf.
18
+ * Transfer the entire transferable balance from the caller account.
18
19
  *
19
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#addproxydelegate-multiaddress-proxy_type-kitchensinkruntimeproxytype-delay-u32
20
+ * @see https://polkadot.js.org/docs/substrate/extrinsics/#transferalldest-multiaddress-keep_alive-bool
20
21
  */
21
- AddProxy = "addProxy",
22
+ readonly TransferAll: "transferAll";
22
23
  /**
23
- * Unregister a proxy account for the sender.
24
+ * Same as the transfer call, but with a check that the transfer will not kill the origin account.
24
25
  *
25
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#removeproxydelegate-multiaddress-proxy_type-kitchensinkruntimeproxytype-delay-u32
26
+ * @see https://polkadot.js.org/docs/substrate/extrinsics/#transferkeepalivedest-multiaddress-value-compactu128
26
27
  */
27
- RemoveProxy = "removeProxy",
28
+ readonly TransferKeepAlive: "transferKeepAlive";
28
29
  /**
29
- * Dispatch the given call from an account that the sender is authorised for through add_proxy.
30
+ * Transfer funds with an optional memo attached.
31
+ * The memo allows adding context or metadata to the transaction, commonly used for recordkeeping or identification.
30
32
  *
31
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#proxyreal-multiaddress-force_proxy_type-optionkitchensinkruntimeproxytype-call-call
33
+ * @see https://developers.polymesh.network/sdk-docs/enums/Generated/Types/BalancesTx/#transferwithmemo
32
34
  */
33
- Proxy = "proxy",
35
+ readonly TransferWithMemo: "transferWithMemo";
36
+ readonly AddStake: "addStake";
37
+ readonly RemoveStake: "removeStake";
34
38
  /**
35
- * Take the origin account as a stash and lock up value of its balance. controller will be the account that controls it.
36
- *
37
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#bondcontroller-multiaddress-value-compactu128-payee-palletstakingrewarddestination
39
+ * Take the origin account as a stash and lock up value of its balance.
38
40
  */
39
- Bond = "bond",
41
+ readonly Bond: "bond";
40
42
  /**
41
43
  * Add some extra amount that have appeared in the stash free_balance into the balance up for staking.
42
- *
43
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#bondextramax_additional-compactu128
44
44
  */
45
- BondExtra = "bondExtra",
45
+ readonly BondExtra: "bondExtra";
46
46
  /**
47
- * Transfer the entire transferable balance from the caller account.
48
- *
49
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#transferalldest-multiaddress-keep_alive-bool
47
+ * Declare the desire to nominate targets for the origin controller.
50
48
  */
51
- TransferAll = "transferAll",
49
+ readonly Nominate: "nominate";
52
50
  /**
53
- * Same as the transfer call, but with a check that the transfer will not kill the origin account.
54
- *
55
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#transferkeepalivedest-multiaddress-value-compactu128
51
+ * Declare no desire to either validate or nominate.
56
52
  */
57
- TransferKeepAlive = "transferKeepAlive",
53
+ readonly Chill: "chill";
58
54
  /**
59
55
  * Schedule a portion of the stash to be unlocked ready for transfer out after the bond period ends.
60
- *
61
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#unbondvalue-compactu128
62
- */
63
- Unbond = "unbond",
64
- /**
65
- * @deprecated Anonymous proxies were renamed to pure proxies.
66
- *
67
- * @see PureProxy
68
- * @see https://polkadot.polkassembly.io/referendum/84
69
56
  */
70
- Anonymous = "anonymous",
57
+ readonly Unbond: "unbond";
71
58
  /**
72
- * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and initialize it with a proxy of proxy_type for origin sender.
73
- *
74
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#createpureproxy_type-kitchensinkruntimeproxytype-delay-u32-index-u16
59
+ * Remove any unlocked chunks from the unlocking queue from our management.
75
60
  */
76
- PureProxy = "createPure",// Anonymous proxies were renamed to pure proxies
61
+ readonly WithdrawUnbonded: "withdrawUnbonded";
77
62
  /**
78
63
  * Send a batch of dispatch calls.
79
- *
80
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#batchcalls-veccall
81
64
  */
82
- Batch = "batch",
65
+ readonly Batch: "batch";
83
66
  /**
84
- * Send a batch of dispatch calls and atomically execute them. The whole transaction will rollback and fail if any of the calls failed.
85
- *
86
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#batchallcalls-veccall
67
+ * Send a batch of dispatch calls and atomically execute them.
87
68
  */
88
- BatchAll = "batchAll",
69
+ readonly BatchAll: "batchAll";
89
70
  /**
90
- * Declare no desire to either validate or nominate.
91
- *
92
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#chill
71
+ * Transfer stake from one validator to another.
93
72
  */
94
- Chill = "chill",
95
- /**
96
- * Remove any unlocked chunks from the unlocking queue from our management.
97
- *
98
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#withdrawunbondednum_slashing_spans-u32
99
- */
100
- WithdrawUnbonded = "withdrawUnbonded",
101
- /**
102
- * Pay out all the stakers behind a single validator for a single era.
103
- *
104
- * @see https://polkadot.js.org/docs/substrate/extrinsics/#payoutstakersvalidator_stash-accountid32-era-u32
105
- */
106
- PayoutStakers = "payoutStakers"
107
- }
73
+ readonly TransferStake: "transferStake";
74
+ };
75
+ /**
76
+ * Type representing the keys of the MethodNames object
77
+ */
78
+ export type MethodNamesType = keyof typeof MethodNames;
79
+ /**
80
+ * Type representing the values of the MethodNames object
81
+ */
82
+ export type MethodNamesValues = (typeof MethodNames)[MethodNamesType];
108
83
  /**
109
84
  * The transaction data returned from the toJson() function of a transaction
110
85
  */
@@ -124,18 +99,12 @@ export interface TxData {
124
99
  to?: string;
125
100
  tip?: number;
126
101
  eraPeriod?: number;
127
- controller?: string;
128
102
  payee?: string;
129
- owner?: string;
130
- proxyType?: string;
131
- delay?: string;
132
- forceProxyType?: ProxyType;
133
- index?: string;
134
- batchCalls?: BatchCallObject[];
135
- numSlashingSpans?: number;
136
- validatorStash?: string;
137
- claimEra?: string;
138
103
  keepAlive?: boolean;
104
+ netuid?: string;
105
+ numSlashingSpans?: number;
106
+ batchCalls?: BatchCallObject[];
107
+ memo?: string;
139
108
  }
140
109
  /**
141
110
  * Transaction method specific args
@@ -155,143 +124,65 @@ export interface TransferAllArgs {
155
124
  };
156
125
  keepAlive: boolean;
157
126
  }
158
- /**
159
- * Transaction method specific args
160
- */
161
- export type StakeArgsPayee = 'Staked' | 'Stash' | 'Controller' | {
162
- Account: string;
163
- };
164
- /**
165
- * Transaction method specific args
166
- */
167
- export type StakeArgsPayeeRaw = {
168
- controller?: null;
169
- stash?: null;
170
- staked?: null;
171
- account?: string;
172
- };
173
- /**
174
- * Transaction method specific args
175
- */
176
- export interface StakeArgs {
177
- value: string;
178
- controller: {
127
+ export interface TransferWithMemoArgs extends Args {
128
+ dest: {
179
129
  id: string;
180
130
  };
181
- payee: StakeArgsPayee;
131
+ value: string;
132
+ memo: string;
182
133
  }
183
- export interface StakeMoreArgs {
184
- maxAdditional: string;
134
+ export interface AddStakeArgs extends Args {
135
+ amountStaked: string;
136
+ hotkey: string;
137
+ netuid: string;
185
138
  }
186
- export interface StakeMoreCallArgs {
187
- max_additional: string;
139
+ export interface RemoveStakeArgs extends Args {
140
+ amountUnstaked: string;
141
+ hotkey: string;
142
+ netuid: string;
188
143
  }
189
- export interface UnstakeArgs {
144
+ export interface BondArgs extends Args {
190
145
  value: string;
146
+ controller: string;
147
+ payee: string | {
148
+ Account: string;
149
+ };
191
150
  }
192
- export interface WithdrawUnstakedArgs {
193
- numSlashingSpans: number;
151
+ export interface BondExtraArgs extends Args {
152
+ maxAdditional: string;
194
153
  }
195
- export interface ClaimArgs {
196
- validatorStash: string;
197
- era: string;
154
+ export interface NominateArgs extends Args {
155
+ targets: string[];
198
156
  }
199
- /**
200
- * The types of proxies that can be setup and used
201
- * https://wiki.polkadot.network/docs/learn-proxies#proxy-types
202
- */
203
- export declare enum ProxyType {
204
- ANY = "Any",
205
- NON_TRANSFER = "NonTransfer",
206
- STAKING = "Staking",
207
- IDENTTITY_JUDGEMENT = "IdentityJudgement",
208
- CANCEL_PROXY = "CancelProxy"
157
+ export interface ChillArgs extends Args {
158
+ [key: string]: never;
209
159
  }
210
- /**
211
- * Transaction method specific args
212
- */
213
- export interface AddProxyArgs {
214
- delegate: string | AccountId;
215
- delay: string;
216
- proxyType: ProxyType;
160
+ export interface UnbondArgs extends Args {
161
+ value: string;
217
162
  }
218
- /**
219
- * Transaction method specific args
220
- */
221
- export interface AddAnonymousProxyArgs {
222
- proxyType: ProxyType;
223
- index: string;
224
- delay: string;
163
+ export interface WithdrawUnbondedArgs extends Args {
164
+ numSlashingSpans: number;
165
+ }
166
+ export interface BatchCallObject {
167
+ method: string;
168
+ args: Record<string, unknown>;
225
169
  }
226
- /**
227
- * Transaction method specific args
228
- */
229
- export type BatchCallObject = {
230
- callIndex: string;
231
- args: Record<string, any> | AddProxyBatchCallArgs | AddAnonymousProxyBatchCallArgs | StakeBatchCallArgs | StakeMoreArgs | StakeMoreCallArgs | UnbondCallArgs;
232
- };
233
170
  export interface BatchArgs {
234
171
  calls: BatchCallObject[];
235
172
  }
236
- export interface AddAnonymousProxyBatchCallArgs {
237
- proxy_type: ProxyType;
238
- index: number;
239
- delay: number;
240
- }
241
- export interface AddProxyBatchCallArgs {
242
- delegate: string | AccountId;
243
- proxy_type: ProxyType;
244
- delay: number;
245
- }
246
- export type AccountId = {
247
- id: string;
248
- };
249
- export type StakeBatchCallPayeeStaked = {
250
- staked: null;
251
- };
252
- export type StakeBatchCallPayeeStash = {
253
- stash: null;
254
- };
255
- export type StakeBatchCallPayeeController = {
256
- controller: null;
257
- };
258
- export type StakeBatchCallPayeeAccount = {
259
- account: string;
260
- };
261
- export type StakeBatchCallPayee = StakeBatchCallPayeeStaked | StakeBatchCallPayeeStash | StakeBatchCallPayeeController | StakeBatchCallPayeeAccount;
262
- export interface StakeBatchCallArgs {
263
- value: string;
264
- controller?: {
265
- id: string;
266
- };
267
- payee: StakeBatchCallPayee;
268
- }
269
- export interface UnstakeBatchCallArgs {
270
- value: string;
271
- }
272
- export interface UnbondCallArgs {
273
- value: string;
274
- }
275
- /**
276
- * Transaction method specific args
277
- */
278
- export type ProxyCallArgs = {
279
- callIndex: string;
280
- args: TransferArgs;
281
- };
282
- /**
283
- * Transaction method specific args
284
- */
285
- export interface ProxyArgs {
286
- real: string | AccountId;
287
- forceProxyType: ProxyType;
173
+ export interface TransferStakeArgs extends Args {
174
+ destinationColdkey: string;
175
+ hotkey: string;
176
+ originNetuid: string;
177
+ destinationNetuid: string;
178
+ alphaAmount: string;
288
179
  }
289
180
  /**
290
181
  * Decoded TxMethod from a transaction hex
291
182
  */
292
183
  export interface TxMethod {
293
- args: TransferArgs | TransferAllArgs | StakeArgs | StakeMoreArgs | AddProxyArgs | ProxyArgs | UnstakeArgs | AddAnonymousProxyArgs | BatchArgs | WithdrawUnstakedArgs | ClaimArgs;
294
- name: MethodNames;
184
+ args: TransferArgs | TransferAllArgs | AddStakeArgs | RemoveStakeArgs | BondArgs | BondExtraArgs | NominateArgs | ChillArgs | UnbondArgs | WithdrawUnbondedArgs | BatchArgs | TransferStakeArgs;
185
+ name: MethodNamesValues;
295
186
  pallet: string;
296
187
  }
297
188
  /**
@@ -313,25 +204,36 @@ export interface CreateBaseTxInfo {
313
204
  }
314
205
  export interface TransactionExplanation extends BaseTransactionExplanation {
315
206
  type: TransactionType;
316
- forceProxyType?: ProxyType;
317
- controller?: string;
318
207
  payee?: string;
319
- owner?: string;
320
- proxyType?: string;
321
- delay?: string;
322
208
  }
323
209
  export declare enum TransactionTypes {
324
- TRANSFER = "transfer",
325
- STAKING = "staking",
326
- ADDR_INIT = "addressInitialization",
327
- UNSTAKING = "unstaking"
210
+ TRANSFER = "transfer"
328
211
  }
329
212
  export interface Material {
330
213
  genesisHash: string;
331
214
  chainName: string;
332
- specName: PolkadotSpecNameType;
215
+ specName: string;
333
216
  specVersion: number;
334
217
  txVersion: number;
335
218
  metadata: `0x${string}`;
336
219
  }
220
+ export interface SignTransactionOptions extends BaseSignTransactionOptions {
221
+ txPrebuild: TransactionPrebuild;
222
+ prv: string;
223
+ }
224
+ export interface TransactionPrebuild {
225
+ txHex: string;
226
+ transaction: TxData;
227
+ }
228
+ export interface ExplainTransactionOptions {
229
+ txPrebuild: TransactionPrebuild;
230
+ publicKey: string;
231
+ feeInfo: {
232
+ fee: string;
233
+ };
234
+ }
235
+ export interface VerifiedTransactionParameters {
236
+ txHex: string;
237
+ prv: string;
238
+ }
337
239
  //# sourceMappingURL=iface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iface.d.ts","sourceRoot":"","sources":["../../../src/lib/iface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,IAAI,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC7G,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAElG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;;GAEG;AACH,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;;OAIG;IACH,WAAW,gBAAgB;IAC3B;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;OAIG;IACH,IAAI,SAAS;IACb;;;;OAIG;IACH,SAAS,cAAc;IACvB;;;;OAIG;IACH,WAAW,gBAAgB;IAC3B;;;;OAIG;IACH,iBAAiB,sBAAsB;IACvC;;;;OAIG;IACH,MAAM,WAAW;IACjB;;;;;OAKG;IACH,SAAS,cAAc;IACvB;;;;OAIG;IACH,SAAS,eAAe,CAAE,iDAAiD;IAC3E;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;;OAIG;IACH,KAAK,UAAU;IACf;;;;OAIG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