@bitgo-beta/sdk-coin-tao 1.0.1-alpha.15 → 1.0.1-alpha.150

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 (87) hide show
  1. package/.mocharc.yml +1 -1
  2. package/CHANGELOG.md +206 -0
  3. package/dist/src/index.d.ts +1 -0
  4. package/dist/src/index.d.ts.map +1 -1
  5. package/dist/src/index.js +2 -1
  6. package/dist/src/lib/constants.d.ts +11 -0
  7. package/dist/src/lib/constants.d.ts.map +1 -0
  8. package/dist/src/lib/constants.js +14 -0
  9. package/dist/src/lib/iface.d.ts +14 -335
  10. package/dist/src/lib/iface.d.ts.map +1 -1
  11. package/dist/src/lib/iface.js +1 -126
  12. package/dist/src/lib/index.d.ts +9 -9
  13. package/dist/src/lib/index.d.ts.map +1 -1
  14. package/dist/src/lib/index.js +30 -51
  15. package/dist/src/lib/moveStakeBuilder.d.ts +84 -0
  16. package/dist/src/lib/moveStakeBuilder.d.ts.map +1 -0
  17. package/dist/src/lib/moveStakeBuilder.js +182 -0
  18. package/dist/src/lib/moveStakeTransaction.d.ts +10 -0
  19. package/dist/src/lib/moveStakeTransaction.d.ts.map +1 -0
  20. package/dist/src/lib/moveStakeTransaction.js +77 -0
  21. package/dist/src/lib/stakingBuilder.d.ts +63 -0
  22. package/dist/src/lib/stakingBuilder.d.ts.map +1 -0
  23. package/dist/src/lib/stakingBuilder.js +133 -0
  24. package/dist/src/lib/tokenTransferBuilder.d.ts +74 -0
  25. package/dist/src/lib/tokenTransferBuilder.d.ts.map +1 -0
  26. package/dist/src/lib/tokenTransferBuilder.js +154 -0
  27. package/dist/src/lib/tokenTransferTransaction.d.ts +10 -0
  28. package/dist/src/lib/tokenTransferTransaction.d.ts.map +1 -0
  29. package/dist/src/lib/tokenTransferTransaction.js +77 -0
  30. package/dist/src/lib/transactionBuilderFactory.d.ts +10 -4
  31. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  32. package/dist/src/lib/transactionBuilderFactory.js +33 -8
  33. package/dist/src/lib/transferBuilder.d.ts +2 -7
  34. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  35. package/dist/src/lib/transferBuilder.js +8 -3
  36. package/dist/src/lib/unstakeBuilder.d.ts +66 -0
  37. package/dist/src/lib/unstakeBuilder.d.ts.map +1 -0
  38. package/dist/src/lib/unstakeBuilder.js +136 -0
  39. package/dist/src/lib/utils.d.ts +5 -264
  40. package/dist/src/lib/utils.d.ts.map +1 -1
  41. package/dist/src/lib/utils.js +15 -480
  42. package/dist/src/register.d.ts.map +1 -1
  43. package/dist/src/register.js +5 -1
  44. package/dist/src/resources/index.d.ts +1 -1
  45. package/dist/src/resources/index.js +2 -2
  46. package/dist/src/resources/mainnet.d.ts +12 -1
  47. package/dist/src/resources/mainnet.d.ts.map +1 -1
  48. package/dist/src/resources/mainnet.js +14 -3
  49. package/dist/src/resources/testnet.d.ts +13 -0
  50. package/dist/src/resources/testnet.d.ts.map +1 -0
  51. package/dist/src/resources/testnet.js +16 -0
  52. package/dist/src/tao.d.ts +19 -6
  53. package/dist/src/tao.d.ts.map +1 -1
  54. package/dist/src/tao.js +43 -81
  55. package/dist/src/taoToken.d.ts +19 -0
  56. package/dist/src/taoToken.d.ts.map +1 -0
  57. package/dist/src/taoToken.js +52 -0
  58. package/package.json +10 -19
  59. package/.gitignore +0 -3
  60. package/.prettierignore +0 -2
  61. package/dist/src/lib/errors.d.ts +0 -8
  62. package/dist/src/lib/errors.d.ts.map +0 -1
  63. package/dist/src/lib/errors.js +0 -19
  64. package/dist/src/lib/iface_utils.d.ts +0 -59
  65. package/dist/src/lib/iface_utils.d.ts.map +0 -1
  66. package/dist/src/lib/iface_utils.js +0 -92
  67. package/dist/src/lib/keyPair.d.ts +0 -38
  68. package/dist/src/lib/keyPair.d.ts.map +0 -1
  69. package/dist/src/lib/keyPair.js +0 -117
  70. package/dist/src/lib/nativeTransferBuilder.d.ts +0 -84
  71. package/dist/src/lib/nativeTransferBuilder.d.ts.map +0 -1
  72. package/dist/src/lib/nativeTransferBuilder.js +0 -219
  73. package/dist/src/lib/singletonRegistry.d.ts +0 -7
  74. package/dist/src/lib/singletonRegistry.d.ts.map +0 -1
  75. package/dist/src/lib/singletonRegistry.js +0 -20
  76. package/dist/src/lib/transaction.d.ts +0 -83
  77. package/dist/src/lib/transaction.d.ts.map +0 -1
  78. package/dist/src/lib/transaction.js +0 -610
  79. package/dist/src/lib/transactionBuilder.d.ts +0 -131
  80. package/dist/src/lib/transactionBuilder.d.ts.map +0 -1
  81. package/dist/src/lib/transactionBuilder.js +0 -351
  82. package/dist/src/lib/txnSchema.d.ts +0 -15
  83. package/dist/src/lib/txnSchema.d.ts.map +0 -1
  84. package/dist/src/lib/txnSchema.js +0 -117
  85. package/dist/src/resources/westend.d.ts +0 -2
  86. package/dist/src/resources/westend.d.ts.map +0 -1
  87. package/dist/src/resources/westend.js +0 -5
@@ -1,267 +1,8 @@
1
- import { DotAssetTypes, BaseUtils, DotAddressFormat, Seed } from '@bitgo-beta/sdk-core';
2
- import { BaseCoin as CoinConfig } from '@bitgo-beta/statics';
3
- import { KeyringPair } from '@polkadot/keyring/types';
4
- import { Args, BaseTxInfo, OptionsWithMeta, UnsignedTransaction } from '@substrate/txwrapper-core';
5
- import { DecodedSignedTx, DecodedSigningPayload, TypeRegistry } from '@substrate/txwrapper-core/lib/types';
6
- import { AddProxyBatchCallArgs, BatchArgs, BatchCallObject, HexString, Material, ProxyArgs, StakeArgs, StakeBatchCallArgs, StakeMoreArgs, StakeMoreCallArgs, TransferAllArgs, TransferArgs, TxMethod, UnstakeBatchCallArgs } from './iface';
7
- import { KeyPair } from '.';
8
- export declare class Utils implements BaseUtils {
9
- /** @inheritdoc */
10
- isValidAddress(address: string): boolean;
11
- /** @inheritdoc */
12
- isValidBlockId(hash: string): boolean;
13
- /** @inheritdoc */
14
- isValidPrivateKey(key: string): boolean;
15
- /** @inheritdoc */
16
- isValidPublicKey(key: string): boolean;
17
- /** @inheritdoc */
18
- isValidSignature(signature: string): boolean;
19
- /**
20
- * Verifies the signature on a given message
21
- *
22
- * @param {string} signedMessage the signed message for the signature
23
- * @param {string} signature the signature to verify
24
- * @param {string} address the address of the signer
25
- * @returns {boolean} whether the signature is valid or not
26
- */
27
- verifySignature(signedMessage: string, signature: string, address: string): boolean;
28
- /** @inheritdoc */
29
- isValidTransactionId(txId: string): boolean;
30
- /**
31
- * decodeSeed decodes a substrate seed
32
- *
33
- * @param {string} seed - the seed to be validated.
34
- * @returns {Seed} - the object Seed
35
- */
36
- decodeSeed(seed: string): Seed;
37
- /**
38
- * Helper function to capitalize the first letter of a string
39
- *
40
- * @param {string} val
41
- * @returns {string}
42
- */
43
- capitalizeFirstLetter(val: string): string;
44
- /**
45
- * Helper function to decode the internal method hex in case of a proxy transaction
46
- *
47
- * @param {string | UnsignedTransaction} tx
48
- * @param { metadataRpc: string; registry: TypeRegistry } options
49
- * @returns {TransferArgs}
50
- */
51
- decodeCallMethod(tx: string | UnsignedTransaction, options: {
52
- metadataRpc: string;
53
- registry: TypeRegistry;
54
- }): TransferArgs;
55
- /**
56
- * keyPairFromSeed generates an object with secretKey and publicKey using the substrate sdk
57
- * @param seed 32 bytes long seed
58
- * @returns KeyPair
59
- */
60
- keyPairFromSeed(seed: Uint8Array): KeyPair;
61
- /**
62
- * Signing function. Implement this on the OFFLINE signing device.
63
- *
64
- * @param {KeyringPair} pair - The signing pair.
65
- * @param {string} signingPayload - Payload to sign.
66
- * @param {UnsignedTransaction} transaction - raw transaction to sign
67
- * @param {Object} options
68
- * @param {HexString} options.metadataRpc - metadata that is needed for substrate to sign
69
- * @param {TypeRegistry} options.registry - metadata that is needed for substrate to sign
70
- */
71
- createSignedTx(pair: KeyringPair, signingPayload: string, transaction: UnsignedTransaction, options: {
72
- metadataRpc: HexString;
73
- registry: TypeRegistry;
74
- }): string;
75
- /**
76
- * Serializes the signed transaction
77
- *
78
- * @param transaction Transaction to serialize
79
- * @param signature Signature of the message
80
- * @param metadataRpc Network metadata
81
- * @param registry Transaction registry
82
- * @returns string Serialized transaction
83
- */
84
- serializeSignedTransaction(transaction: any, signature: any, metadataRpc: `0x${string}`, registry: any): string;
85
- /**
86
- * Decodes the substrate address from the given format
87
- *
88
- * @param {string} address
89
- * @param {number} [ss58Format]
90
- * @returns {string}
91
- */
92
- decodeSubstrateAddress(address: string, ss58Format: number): string;
93
- /**
94
- * Decodes the substrate address from the given format
95
- *
96
- * @param {string} address
97
- * @param {number} [ss58Format]
98
- * @returns {string}
99
- */
100
- encodeSubstrateAddress(address: string, ss58Format?: number): string;
101
- /**
102
- * Retrieves the txHash of a signed txHex
103
- *
104
- * @param txHex signed transaction hex
105
- * @returns {string}
106
- */
107
- getTxHash(txHex: string): string;
108
- isSigningPayload(payload: DecodedSigningPayload | DecodedSignedTx): payload is DecodedSigningPayload;
109
- isProxyTransfer(arg: TxMethod['args']): arg is ProxyArgs;
110
- isTransfer(arg: TxMethod['args']): arg is TransferArgs;
111
- isTransferAll(arg: TxMethod['args']): arg is TransferAllArgs;
112
- /**
113
- * Returns true if arg is of type BatchArgs, false otherwise.
114
- *
115
- * @param arg The object to test.
116
- *
117
- * @return true if arg is of type BatchArgs, false otherwise.
118
- */
119
- isBatch(arg: TxMethod['args']): arg is BatchArgs;
120
- /**
121
- * Returns true if arg is of type BatchArgs and the calls of the batch are staking calls: a stake
122
- * call (bond) followed by an add proxy call (addProxy), false otherwise.
123
- *
124
- * @param arg The object to test.
125
- *
126
- * @return true if arg is of type BatchArgs and the calls of the batch are staking calls: a stake
127
- * call (bond) followed by an add proxy call (addProxy), false otherwise.
128
- */
129
- isStakingBatch(arg: TxMethod['args']): arg is BatchArgs;
130
- /**
131
- * Returns true if arg is of type StakeBatchCallArgs, false otherwise.
132
- *
133
- * @param arg The object to test.
134
- *
135
- * @return true if arg is of type StakeBatchCallArgs, false otherwise.
136
- */
137
- isStakeBatchCallArgs(arg: BatchCallObject['args']): arg is StakeBatchCallArgs;
138
- /**
139
- * Returns true if arg is of type AddProxyBatchCallArgs, false otherwise.
140
- *
141
- * @param arg The object to test.
142
- *
143
- * @return true if arg is of type AddProxyBatchCallArgs, false otherwise.
144
- */
145
- isAddProxyBatchCallArgs(arg: BatchCallObject['args']): arg is AddProxyBatchCallArgs;
146
- /**
147
- * Returns true if arg is of type BatchArgs and the calls of the batch are unstaking calls: a remove
148
- * proxy call (removeProxy), followed by a chill call, and an unstake call (unbond), false otherwise.
149
- *
150
- * @param arg The object to test.
151
- *
152
- * @return true if arg is of type BatchArgs and the calls of the batch are unstaking calls: a remove
153
- * proxy call (removeProxy), followed by a chill call, and an unstake call (unbond), false otherwise.
154
- */
155
- isUnstakingBatch(arg: TxMethod['args']): arg is BatchArgs;
156
- /**
157
- * Returns true if arg is of type AddProxyBatchCallArgs, false otherwise.
158
- *
159
- * @param arg The object to test.
160
- *
161
- * @return true if arg is of type AddProxyBatchCallArgs, false otherwise.
162
- */
163
- isRemoveProxyBatchCallArgs(arg: BatchCallObject['args']): arg is AddProxyBatchCallArgs;
164
- /**
165
- * Returns true if arg is of type UnstakeBatchCallArgs, false otherwise.
166
- *
167
- * @param arg The object to test.
168
- *
169
- * @return true if arg is of type UnstakeBatchCallArgs, false otherwise.
170
- */
171
- isUnstakeBatchCallArgs(arg: BatchCallObject['args']): arg is UnstakeBatchCallArgs;
172
- /**
173
- * Returns true if arg is of type StakeArgs, false otherwise.
174
- *
175
- * @param arg The object to test.
176
- *
177
- * @return true if arg is of type StakeArgs, false otherwise.
178
- */
179
- isBond(arg: TxMethod['args']): arg is StakeArgs;
180
- /**
181
- * Returns true if arg is of type StakeMoreArgs, false otherwise.
182
- *
183
- * @param arg The object to test.
184
- *
185
- * @return true if arg is of type StakeMoreArgs, false otherwise.
186
- */
187
- isBondExtra(arg: TxMethod['args'] | BatchCallObject['args']): arg is StakeMoreArgs;
188
- /**
189
- * Returns true if arg is of type StakeMoreArgs, false otherwise.
190
- *
191
- * @param arg The object to test.
192
- *
193
- * @return true if arg is of type StakeMoreArgs, false otherwise.
194
- */
195
- isBondBatchExtra(arg: BatchCallObject['args']): arg is StakeMoreCallArgs;
196
- /**
197
- * extracts and returns the signature in hex format given a raw signed transaction
198
- *
199
- * @param {string} rawTx signed raw transaction
200
- * @param options registry substrate registry used to retrieve the signature
201
- */
202
- recoverSignatureFromRawTx(rawTx: string, options: {
203
- registry: TypeRegistry;
204
- }): string;
205
- /**
206
- * Decodes the dot address from the given format
207
- *
208
- * @param {string} address
209
- * @param {number} [ss58Format]
210
- * @returns {KeyPair}
211
- */
212
- decodeSubstrateAddressToKeyPair(address: string, ss58Format?: number): KeyPair;
213
- getMaterial(coinConfig: Readonly<CoinConfig>): Material;
214
- /**
215
- * Checks whether the given input is a hex string with with 0 value
216
- * used to check whether a given transaction is immortal or mortal
217
- * @param hexValue
218
- */
219
- isZeroHex(hexValue: string): boolean;
220
- /**
221
- * Takes an asset name and returns the respective address to format to
222
- * since substrate addresses differ depending on the network
223
- * @param networkCoinName
224
- */
225
- getAddressFormat(networkCoinName: DotAssetTypes): DotAddressFormat;
226
- /**
227
- * Creates a pure proxy extrinsic. Substrate has renamed anonymous proxies to pure proxies, but
228
- * the libraries we are using to build transactions have not been updated, as a stop gap we are
229
- * defining the pure proxy extrinsic here.
230
- *
231
- * @param args Arguments to the createPure extrinsic.
232
- * @param info Common information to all transactions.
233
- * @param options Chain registry and metadata.
234
- */
235
- pureProxy(args: PureProxyArgs, info: BaseTxInfo, options: OptionsWithMeta): UnsignedTransaction;
236
- /**
237
- * Removes '0x' from a given `string` if present.
238
- *
239
- * @param {string} str the string value.
240
- *
241
- * @return {string} a string without a '0x' prefix.
242
- */
243
- stripHexPrefix(str: string): string;
244
- /**
245
- * Returns true if a string starts with '0x', false otherwise.
246
- *
247
- * @param {string} str the string value.
248
- *
249
- * @return {boolean} true if a string starts with '0x', false otherwise.
250
- */
251
- isHexPrefixed(str: string): boolean;
252
- /**
253
- * Decodes the dot address from the given format
254
- *
255
- * @param {string} address
256
- * @param {number} [ss58Format]
257
- * @returns {string}
258
- */
259
- decodeDotAddress(address: string, ss58Format: number): string;
260
- }
261
- interface PureProxyArgs extends Args {
262
- proxyType: string;
263
- delay: number;
264
- index: number;
1
+ import { Interface, Utils as SubstrateUtils } from '@bitgo-beta/abstract-substrate';
2
+ import { BaseCoin as CoinConfig, NetworkType } from '@bitgo-beta/statics';
3
+ export declare class Utils extends SubstrateUtils {
4
+ getMaterial(networkType: NetworkType): Interface.Material;
5
+ getTaoTokenBySubnetId(subnetId: string | number): Readonly<CoinConfig>;
265
6
  }
266
7
  declare const utils: Utils;
267
8
  export default utils;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,EAAqC,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC3H,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAc,MAAM,qBAAqB,CAAC;AAGzE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAKtD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAgB,eAAe,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAM3G,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,eAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAS,EAET,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAU5B,qBAAa,KAAM,YAAW,SAAS;IACrC,kBAAkB;IAClB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IASxC,kBAAkB;IAClB,cAAc,CAAC,IAAI,E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