@bitgo-beta/statics 10.0.1-alpha.2 → 10.0.1-alpha.200

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 (57) hide show
  1. package/.mocharc.js +1 -1
  2. package/CHANGELOG.md +2391 -0
  3. package/dist/src/account.d.ts +300 -36
  4. package/dist/src/account.d.ts.map +1 -1
  5. package/dist/src/account.js +470 -54
  6. package/dist/src/ada.d.ts +3 -1
  7. package/dist/src/ada.d.ts.map +1 -1
  8. package/dist/src/ada.js +7 -2
  9. package/dist/src/avaxp.d.ts +3 -1
  10. package/dist/src/avaxp.d.ts.map +1 -1
  11. package/dist/src/avaxp.js +12 -3
  12. package/dist/src/base.d.ts +1208 -19
  13. package/dist/src/base.d.ts.map +1 -1
  14. package/dist/src/base.js +1291 -35
  15. package/dist/src/coins.d.ts.map +1 -1
  16. package/dist/src/coins.js +2646 -1004
  17. package/dist/src/constants.d.ts +2 -0
  18. package/dist/src/constants.d.ts.map +1 -0
  19. package/dist/src/constants.js +5 -0
  20. package/dist/src/errors.d.ts +6 -0
  21. package/dist/src/errors.d.ts.map +1 -1
  22. package/dist/src/errors.js +16 -2
  23. package/dist/src/index.d.ts +2 -1
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/index.js +11 -3
  26. package/dist/src/lightning.d.ts +43 -0
  27. package/dist/src/lightning.d.ts.map +1 -0
  28. package/dist/src/lightning.js +60 -0
  29. package/dist/src/map.d.ts +2 -0
  30. package/dist/src/map.d.ts.map +1 -1
  31. package/dist/src/map.js +26 -3
  32. package/dist/src/networks.d.ts +360 -4
  33. package/dist/src/networks.d.ts.map +1 -1
  34. package/dist/src/networks.js +513 -45
  35. package/dist/src/ofc.d.ts +249 -4
  36. package/dist/src/ofc.d.ts.map +1 -1
  37. package/dist/src/ofc.js +507 -6
  38. package/dist/src/tokenConfig.d.ts +60 -11
  39. package/dist/src/tokenConfig.d.ts.map +1 -1
  40. package/dist/src/tokenConfig.js +125 -2
  41. package/dist/src/utxo.d.ts +6 -2
  42. package/dist/src/utxo.d.ts.map +1 -1
  43. package/dist/src/utxo.js +70 -3
  44. package/dist/tsconfig.tsbuildinfo +1 -2717
  45. package/package.json +2 -2
  46. package/dist/resources/dot/index.d.ts +0 -3
  47. package/dist/resources/dot/index.d.ts.map +0 -1
  48. package/dist/resources/dot/index.js +0 -15
  49. package/dist/resources/dot/mainnet.d.ts +0 -2
  50. package/dist/resources/dot/mainnet.d.ts.map +0 -1
  51. package/dist/resources/dot/mainnet.js +0 -5
  52. package/dist/resources/dot/westend.d.ts +0 -2
  53. package/dist/resources/dot/westend.d.ts.map +0 -1
  54. package/dist/resources/dot/westend.js +0 -5
  55. package/resources/dot/index.ts +0 -2
  56. package/resources/dot/mainnet.ts +0 -2
  57. package/resources/dot/westend.ts +0 -2
package/dist/src/ofc.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { BaseCoin, BaseUnit, CoinFeature, CoinKind, KeyCurve, UnderlyingAsset } from './base';
2
2
  import { BaseNetwork, OfcNetwork } from './networks';
3
3
  export interface OfcConstructorOptions {
4
+ id: string;
4
5
  fullName: string;
5
6
  name: string;
6
7
  network: BaseNetwork;
@@ -28,6 +29,7 @@ export declare class OfcCoin extends BaseCoin {
28
29
  /**
29
30
  * Factory function for ofc coin instances.
30
31
  *
32
+ * @param id uuid v4
31
33
  * @param name unique identifier of the coin
32
34
  * @param fullName Complete human-readable name of the coin
33
35
  * @param network Network object for this coin
@@ -40,12 +42,13 @@ export declare class OfcCoin extends BaseCoin {
40
42
  * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
41
43
  * @param primaryKeyCurve The elliptic curve for this chain/token
42
44
  */
43
- export declare function ofc(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean,
45
+ export declare function ofc(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean,
44
46
  /** OFC tokens use SECP256K1 under the hood even if the chain doesn't **/
45
47
  primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
46
48
  /**
47
49
  * Factory function for testnet ofc coin instances.
48
50
  *
51
+ * @param id uuid v4
49
52
  * @param name unique identifier of the coin
50
53
  * @param fullName Complete human-readable name of the coin
51
54
  * @param network Network object for this coin
@@ -58,10 +61,11 @@ primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
58
61
  * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
59
62
  * @param primaryKeyCurve The elliptic curve for this chain/token
60
63
  */
61
- export declare function tofc(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
64
+ export declare function tofc(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
62
65
  /**
63
66
  * Factory function for ofc erc20 coin instances.
64
67
  *
68
+ * @param id uuid v4
65
69
  * @param name unique identifier of the coin
66
70
  * @param fullName Complete human-readable name of the coin
67
71
  * @param network Network object for this coin
@@ -74,10 +78,11 @@ export declare function tofc(name: string, fullName: string, decimalPlaces: numb
74
78
  * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
75
79
  * @param primaryKeyCurve The elliptic curve for this chain/token
76
80
  */
77
- export declare function ofcerc20(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
81
+ export declare function ofcerc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
78
82
  /**
79
83
  * Factory function for testnet ofc erc20 coin instances.
80
84
  *
85
+ * @param id uuid v4
81
86
  * @param name unique identifier of the coin
82
87
  * @param fullName Complete human-readable name of the coin
83
88
  * @param network Network object for this coin
@@ -90,5 +95,245 @@ export declare function ofcerc20(name: string, fullName: string, decimalPlaces:
90
95
  * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
91
96
  * @param primaryKeyCurve The elliptic curve for this chain/token
92
97
  */
93
- export declare function tofcerc20(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
98
+ export declare function tofcerc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
99
+ /**
100
+ * Factory function for ofc solana token instances.
101
+ *
102
+ * @param id uuid v4
103
+ * @param name unique identifier of the coin
104
+ * @param fullName Complete human-readable name of the coin
105
+ * @param features
106
+ * @param prefix
107
+ * @param suffix
108
+ * @param network Network object for this coin
109
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
110
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
111
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
112
+ * @param isToken
113
+ * @param addressCoin
114
+ * @param primaryKeyCurve The elliptic curve for this chain/token
115
+ */
116
+ export declare function ofcsolToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], kind?: CoinKind, prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
117
+ /**
118
+ * Factory function for testnet ofc solana token instances.
119
+ *
120
+ * @param id uuid v4
121
+ * @param name unique identifier of the coin
122
+ * @param fullName Complete human-readable name of the coin
123
+ * @param features
124
+ * @param prefix
125
+ * @param suffix
126
+ * @param network Network object for this coin
127
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
128
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
129
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
130
+ * @param isToken
131
+ * @param addressCoin
132
+ * @param primaryKeyCurve The elliptic curve for this chain/token
133
+ */
134
+ export declare function tofcsolToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], kind?: CoinKind, prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
135
+ /**
136
+ * Factory function for ofc stellar token instances.
137
+ *
138
+ * @param id uuid v4
139
+ * @param name unique identifier of the coin
140
+ * @param fullName Complete human-readable name of the coin
141
+ * @param network Network object for this coin
142
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
143
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
144
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
145
+ * @param prefix? Optional coin prefix. Defaults to empty string
146
+ * @param suffix? Optional coin suffix. Defaults to coin name.
147
+ * @param isToken? Whether or not this account coin is a token of another coin
148
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
149
+ * @param primaryKeyCurve The elliptic curve for this chain/token
150
+ */
151
+ export declare function ofcStellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
152
+ /**
153
+ * Factory function for testnet ofc stellar token instances.
154
+ *
155
+ * @param id uuid v4
156
+ * @param name unique identifier of the coin
157
+ * @param fullName Complete human-readable name of the coin
158
+ * @param network Network object for this coin
159
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
160
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
161
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
162
+ * @param prefix? Optional coin prefix. Defaults to empty string
163
+ * @param suffix? Optional coin suffix. Defaults to coin name.
164
+ * @param isToken? Whether or not this account coin is a token of another coin
165
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
166
+ * @param primaryKeyCurve The elliptic curve for this chain/token
167
+ */
168
+ export declare function tofcStellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
169
+ /**
170
+ * Factory function for ofc algo token instances.
171
+ *
172
+ * @param id uuid v4
173
+ * @param name unique identifier of the coin
174
+ * @param fullName Complete human-readable name of the coin
175
+ * @param network Network object for this coin
176
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
177
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
178
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
179
+ * @param prefix? Optional coin prefix. Defaults to empty string
180
+ * @param suffix? Optional coin suffix. Defaults to coin name.
181
+ * @param isToken? Whether or not this account coin is a token of another coin
182
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
183
+ * @param primaryKeyCurve The elliptic curve for this chain/token
184
+ */
185
+ export declare function ofcAlgoToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
186
+ /**
187
+ * Factory function for testnet ofc algo token instances.
188
+ *
189
+ * @param id uuid v4
190
+ * @param name unique identifier of the coin
191
+ * @param fullName Complete human-readable name of the coin
192
+ * @param network Network object for this coin
193
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
194
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
195
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
196
+ * @param prefix? Optional coin prefix. Defaults to empty string
197
+ * @param suffix? Optional coin suffix. Defaults to coin name.
198
+ * @param isToken? Whether or not this account coin is a token of another coin
199
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
200
+ * @param primaryKeyCurve The elliptic curve for this chain/token
201
+ */
202
+ export declare function tofcAlgoToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
203
+ /**
204
+ * Factory function for ofc hedera token instances.
205
+ *
206
+ * @param id uuid v4
207
+ * @param name unique identifier of the coin
208
+ * @param fullName Complete human-readable name of the coin
209
+ * @param network Network object for this coin
210
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
211
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
212
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
213
+ * @param prefix? Optional coin prefix. Defaults to empty string
214
+ * @param suffix? Optional coin suffix. Defaults to coin name.
215
+ * @param isToken? Whether or not this account coin is a token of another coin
216
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
217
+ * @param primaryKeyCurve The elliptic curve for this chain/token
218
+ */
219
+ export declare function ofcHederaToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
220
+ /**
221
+ * Factory function for testnet ofc hedera token instances.
222
+ *
223
+ * @param id uuid v4
224
+ * @param name unique identifier of the coin
225
+ * @param fullName Complete human-readable name of the coin
226
+ * @param network Network object for this coin
227
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
228
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
229
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
230
+ * @param prefix? Optional coin prefix. Defaults to empty string
231
+ * @param suffix? Optional coin suffix. Defaults to coin name.
232
+ * @param isToken? Whether or not this account coin is a token of another coin
233
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
234
+ * @param primaryKeyCurve The elliptic curve for this chain/token
235
+ */
236
+ export declare function tofcHederaToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
237
+ /**
238
+ * Factory function for ofc arbethErc20 token instances.
239
+ *
240
+ * @param id uuid v4
241
+ * @param name unique identifier of the coin
242
+ * @param fullName Complete human-readable name of the coin
243
+ * @param network Network object for this coin
244
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
245
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
246
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
247
+ * @param prefix? Optional coin prefix. Defaults to empty string
248
+ * @param suffix? Optional coin suffix. Defaults to coin name.
249
+ * @param isToken? Whether or not this account coin is a token of another coin
250
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
251
+ * @param primaryKeyCurve The elliptic curve for this chain/token
252
+ */
253
+ export declare function ofcArbethErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
254
+ /**
255
+ * Factory function for testnet ofc arbethErc20 token instances.
256
+ *
257
+ * @param id uuid v4
258
+ * @param name unique identifier of the coin
259
+ * @param fullName Complete human-readable name of the coin
260
+ * @param network Network object for this coin
261
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
262
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
263
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
264
+ * @param prefix? Optional coin prefix. Defaults to empty string
265
+ * @param suffix? Optional coin suffix. Defaults to coin name.
266
+ * @param isToken? Whether or not this account coin is a token of another coin
267
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
268
+ * @param primaryKeyCurve The elliptic curve for this chain/token
269
+ */
270
+ export declare function tofcArbethErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
271
+ /**
272
+ * Factory function for ofc avaxErc20 token instances.
273
+ *
274
+ * @param id uuid v4
275
+ * @param name unique identifier of the coin
276
+ * @param fullName Complete human-readable name of the coin
277
+ * @param network Network object for this coin
278
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
279
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
280
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
281
+ * @param prefix? Optional coin prefix. Defaults to empty string
282
+ * @param suffix? Optional coin suffix. Defaults to coin name.
283
+ * @param isToken? Whether or not this account coin is a token of another coin
284
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
285
+ * @param primaryKeyCurve The elliptic curve for this chain/token
286
+ */
287
+ export declare function ofcAvaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
288
+ /**
289
+ * Factory function for testnet ofc avaxErc20 token instances.
290
+ *
291
+ * @param id uuid v4
292
+ * @param name unique identifier of the coin
293
+ * @param fullName Complete human-readable name of the coin
294
+ * @param network Network object for this coin
295
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
296
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
297
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
298
+ * @param prefix? Optional coin prefix. Defaults to empty string
299
+ * @param suffix? Optional coin suffix. Defaults to coin name.
300
+ * @param isToken? Whether or not this account coin is a token of another coin
301
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
302
+ * @param primaryKeyCurve The elliptic curve for this chain/token
303
+ */
304
+ export declare function tofcAvaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
305
+ /**
306
+ * Factory function for ofc polygonErc20 token instances.
307
+ *
308
+ * @param id uuid v4
309
+ * @param name unique identifier of the coin
310
+ * @param fullName Complete human-readable name of the coin
311
+ * @param network Network object for this coin
312
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
313
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
314
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
315
+ * @param prefix? Optional coin prefix. Defaults to empty string
316
+ * @param suffix? Optional coin suffix. Defaults to coin name.
317
+ * @param isToken? Whether or not this account coin is a token of another coin
318
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
319
+ * @param primaryKeyCurve The elliptic curve for this chain/token
320
+ */
321
+ export declare function ofcPolygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
322
+ /**
323
+ * Factory function for testnet ofc polygonErc20 token instances.
324
+ *
325
+ * @param id uuid v4
326
+ * @param name unique identifier of the coin
327
+ * @param fullName Complete human-readable name of the coin
328
+ * @param network Network object for this coin
329
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
330
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
331
+ * @param kind Differentiates coins which represent fiat assets from those which represent crypto assets
332
+ * @param prefix? Optional coin prefix. Defaults to empty string
333
+ * @param suffix? Optional coin suffix. Defaults to coin name.
334
+ * @param isToken? Whether or not this account coin is a token of another coin
335
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
336
+ * @param primaryKeyCurve The elliptic curve for this chain/token
337
+ */
338
+ export declare function tofcPolygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, addressCoin?: string, primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>;
94
339
  //# sourceMappingURL=ofc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ofc.d.ts","sourceRoot":"","sources":["../../src/ofc.ts"],"names":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