@bitgo-beta/statics 10.0.1-alpha.21 → 10.0.1-alpha.210
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.
- package/.mocharc.js +1 -1
- package/CHANGELOG.md +2369 -0
- package/dist/src/account.d.ts +325 -36
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +499 -53
- package/dist/src/ada.d.ts +3 -1
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +6 -2
- package/dist/src/avaxp.d.ts +3 -1
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +7 -2
- package/dist/src/base.d.ts +1090 -23
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1145 -37
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +2712 -1295
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +5 -0
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +16 -2
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -3
- package/dist/src/lightning.d.ts +43 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +60 -0
- package/dist/src/map.d.ts +2 -0
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +26 -3
- package/dist/src/networks.d.ts +367 -4
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +513 -46
- package/dist/src/ofc.d.ts +189 -8
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +378 -10
- package/dist/src/tokenConfig.d.ts +60 -12
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +125 -2
- package/dist/src/utxo.d.ts +6 -2
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +72 -3
- package/dist/tsconfig.tsbuildinfo +1 -2717
- package/package.json +2 -2
- package/dist/resources/dot/index.d.ts +0 -3
- package/dist/resources/dot/index.d.ts.map +0 -1
- package/dist/resources/dot/index.js +0 -15
- package/dist/resources/dot/mainnet.d.ts +0 -2
- package/dist/resources/dot/mainnet.d.ts.map +0 -1
- package/dist/resources/dot/mainnet.js +0 -5
- package/dist/resources/dot/westend.d.ts +0 -2
- package/dist/resources/dot/westend.d.ts.map +0 -1
- package/dist/resources/dot/westend.js +0 -5
- package/resources/dot/index.ts +0 -2
- package/resources/dot/mainnet.ts +0 -2
- 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,10 +95,47 @@ 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>;
|
|
94
135
|
/**
|
|
95
136
|
* Factory function for ofc stellar token instances.
|
|
96
137
|
*
|
|
138
|
+
* @param id uuid v4
|
|
97
139
|
* @param name unique identifier of the coin
|
|
98
140
|
* @param fullName Complete human-readable name of the coin
|
|
99
141
|
* @param network Network object for this coin
|
|
@@ -106,10 +148,11 @@ export declare function tofcerc20(name: string, fullName: string, decimalPlaces:
|
|
|
106
148
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
|
|
107
149
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
108
150
|
*/
|
|
109
|
-
export declare function ofcStellarToken(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>;
|
|
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>;
|
|
110
152
|
/**
|
|
111
153
|
* Factory function for testnet ofc stellar token instances.
|
|
112
154
|
*
|
|
155
|
+
* @param id uuid v4
|
|
113
156
|
* @param name unique identifier of the coin
|
|
114
157
|
* @param fullName Complete human-readable name of the coin
|
|
115
158
|
* @param network Network object for this coin
|
|
@@ -122,10 +165,11 @@ export declare function ofcStellarToken(name: string, fullName: string, decimalP
|
|
|
122
165
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
|
|
123
166
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
124
167
|
*/
|
|
125
|
-
export declare function tofcStellarToken(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>;
|
|
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>;
|
|
126
169
|
/**
|
|
127
170
|
* Factory function for ofc algo token instances.
|
|
128
171
|
*
|
|
172
|
+
* @param id uuid v4
|
|
129
173
|
* @param name unique identifier of the coin
|
|
130
174
|
* @param fullName Complete human-readable name of the coin
|
|
131
175
|
* @param network Network object for this coin
|
|
@@ -138,10 +182,147 @@ export declare function tofcStellarToken(name: string, fullName: string, decimal
|
|
|
138
182
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
|
|
139
183
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
140
184
|
*/
|
|
141
|
-
export declare function ofcAlgoToken(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>;
|
|
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>;
|
|
142
186
|
/**
|
|
143
187
|
* Factory function for testnet ofc algo token instances.
|
|
144
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
|
|
145
326
|
* @param name unique identifier of the coin
|
|
146
327
|
* @param fullName Complete human-readable name of the coin
|
|
147
328
|
* @param network Network object for this coin
|
|
@@ -154,5 +335,5 @@ export declare function ofcAlgoToken(name: string, fullName: string, decimalPlac
|
|
|
154
335
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin`
|
|
155
336
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
156
337
|
*/
|
|
157
|
-
export declare function
|
|
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>;
|
|
158
339
|
//# sourceMappingURL=ofc.d.ts.map
|
package/dist/src/ofc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ofc.d.ts","sourceRoot":"","sources":["../../src/ofc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAY,UAAU,EAAE,MAAM,YAAY,CAAC;AAE/D,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,QAAQ,CAAC;CAC3B;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,gBAAuB,gBAAgB,gBAKrC;IAGF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