@bitgo-beta/statics
Advanced tools
Comparing version 7.0.1-beta.144 to 7.0.1-beta.145
import { BaseCoin, BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base'; | ||
import { AccountNetwork, BaseNetwork, EthereumNetwork, TronNetwork } from './networks'; | ||
export interface AccountConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -221,2 +222,3 @@ name: string; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -233,6 +235,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>; | ||
export declare function account(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>; | ||
/** | ||
* Factory function for erc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -249,6 +252,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function erc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>; | ||
export declare function erc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>; | ||
/** | ||
* Factory function for testnet erc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -264,6 +268,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>; | ||
export declare function terc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>; | ||
/** | ||
* Factory function for erc721 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -279,6 +284,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function erc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>; | ||
export declare function erc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>; | ||
/** | ||
* Factory function for testnet erc721 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -293,6 +299,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function terc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>; | ||
export declare function terc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>; | ||
/** | ||
* Factory function for nonstandard token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -308,6 +315,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function nonstandardToken(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<ContractAddressDefinedToken>; | ||
export declare function nonstandardToken(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<ContractAddressDefinedToken>; | ||
/** | ||
* Factory function for erc1155 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -323,6 +331,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function erc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>; | ||
export declare function erc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>; | ||
/** | ||
* Factory function for testnet erc1155 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -337,6 +346,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function terc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>; | ||
export declare function terc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>; | ||
/** | ||
* Factory function for ERC20-compatible account coin instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -353,6 +363,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function erc20CompatibleAccountCoin(name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>; | ||
export declare function erc20CompatibleAccountCoin(id: string, name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>; | ||
/** | ||
* Factory function for celo token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -369,6 +380,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function celoToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>; | ||
export declare function celoToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>; | ||
/** | ||
* Factory function for testnet celo token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -384,6 +396,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tceloToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>; | ||
export declare function tceloToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>; | ||
/** | ||
* Factory function for celo token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -400,6 +413,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function bscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>; | ||
export declare function bscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>; | ||
/** | ||
* Factory function for testnet bsc token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -415,6 +429,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tbscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>; | ||
export declare function tbscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>; | ||
/** | ||
* Factory function for Stellar token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -432,6 +447,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function stellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>; | ||
export declare function stellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>; | ||
/** | ||
* Factory function for testnet Stellar token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -448,6 +464,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tstellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>; | ||
export declare function tstellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>; | ||
/** | ||
* Factory function for tron token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -464,6 +481,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>; | ||
export declare function tronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>; | ||
/** | ||
* Factory function for testnet tron token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -480,6 +498,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function ttronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>; | ||
export declare function ttronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>; | ||
/** | ||
* Factory function for Hedera coin instances | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -496,6 +515,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function hederaCoin(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId?: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaCoin>; | ||
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId?: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaCoin>; | ||
/** | ||
* Factory function for Hedera token instances | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -513,7 +533,9 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function hederaToken(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId: string | undefined, tokenId: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaToken>; | ||
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId: string | undefined, tokenId: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaToken>; | ||
/** | ||
* Factory function for ALGO token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
* @param alias (optional) alternative identifier of the token | ||
@@ -531,6 +553,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function algoToken(name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AlgoCoin>; | ||
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AlgoCoin>; | ||
/** | ||
* Factory function for testnet ALGO token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -548,6 +571,7 @@ * @param alias (optional) alternative identifier of the token | ||
*/ | ||
export declare function talgoToken(name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AlgoCoin>; | ||
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AlgoCoin>; | ||
/** | ||
* Factory function for eos token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -564,6 +588,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function eosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>; | ||
export declare function eosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>; | ||
/** | ||
* Factory function for testnet eos token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -579,6 +604,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function teosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>; | ||
export declare function teosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>; | ||
/** | ||
* Factory function for sol token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -595,6 +621,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function solToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>; | ||
export declare function solToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>; | ||
/** | ||
* Factory function for testnet solana token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -610,6 +637,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tsolToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>; | ||
export declare function tsolToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>; | ||
/** | ||
* Factory function for ada token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -626,6 +654,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function adaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>; | ||
export declare function adaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>; | ||
/** | ||
* Factory function for testnet cardano token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -641,6 +670,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tadaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>; | ||
export declare function tadaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>; | ||
/** | ||
* Factory function for avaxErc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -657,6 +687,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function avaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>; | ||
export declare function avaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>; | ||
/** | ||
* Factory function for testnet avaxErc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -673,6 +704,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tavaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>; | ||
export declare function tavaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>; | ||
/** | ||
* Factory function for polygonErc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -689,6 +721,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function polygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>; | ||
export declare function polygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>; | ||
/** | ||
* Factory function for Mumbai testnet polygonErc20 token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the token | ||
@@ -705,6 +738,7 @@ * @param fullName Complete human-readable name of the token | ||
*/ | ||
export declare function tpolygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>; | ||
export declare function tpolygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>; | ||
/** | ||
* Factory function for fiat coin instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin, should start with 'fiat' or 'tfiat' followed by the 3-char ISO-4217 alphabetical code | ||
@@ -721,4 +755,4 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function fiat(name: FiatCoinName, fullName: string, network: BaseNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<FiatCoin>; | ||
export declare function fiat(id: string, name: FiatCoinName, fullName: string, network: BaseNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<FiatCoin>; | ||
export {}; | ||
//# sourceMappingURL=account.d.ts.map |
import { BaseCoin, CoinFeature, KeyCurve, UnderlyingAsset } from './base'; | ||
import { AdaNetwork } from './networks'; | ||
export interface AdaConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -23,2 +24,3 @@ name: string; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -33,3 +35,3 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function ada(name: string, fullName: string, network: AdaNetwork, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Ada>; | ||
export declare function ada(id: string, name: string, fullName: string, network: AdaNetwork, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Ada>; | ||
//# sourceMappingURL=ada.d.ts.map |
@@ -35,2 +35,3 @@ "use strict"; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -45,4 +46,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ada(name, fullName, network, asset, features = Ada.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), primaryKeyCurve = base_1.KeyCurve.Ed25519) { | ||
function ada(id, name, fullName, network, asset, features = Ada.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), primaryKeyCurve = base_1.KeyCurve.Ed25519) { | ||
return Object.freeze(new Ada({ | ||
id, | ||
name, | ||
@@ -59,2 +61,2 @@ fullName, | ||
exports.ada = ada; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FkYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpQ0FBOEY7QUFjOUYsTUFBYSxHQUFJLFNBQVEsZUFBUTtJQVkvQixZQUFZLE9BQThCO1FBQ3hDLEtBQUssQ0FBQztZQUNKLEdBQUcsT0FBTztZQUNWLElBQU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FZDI1NTE5XG4pIHtcbiAgcmV0dXJuIE9iamVjdC5mcmVlemUoXG4gICAgbmV3IEFkYSh7XG4gICAgICBpZCxcbiAgICAgIG5hbWUsXG4gICAgICBmdWxsTmFtZSxcbiAgICAgIG5ldHdvcmssXG4gICAgICBwcmVmaXgsXG4gICAgICBzdWZmaXgsXG4gICAgICBmZWF0dXJlcyxcbiAgICAgIGFzc2V0LFxuICAgICAgcHJpbWFyeUtleUN1cnZlLFxuICAgIH0pXG4gICk7XG59XG4iXX0= |
import { BaseCoin, CoinFeature, KeyCurve, UnderlyingAsset } from './base'; | ||
import { AvalancheNetwork } from './networks'; | ||
export interface AVAXPConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -26,2 +27,3 @@ name: string; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -36,5 +38,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function avaxp(name: string, fullName: string, network: AvalancheNetwork, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, | ||
export declare function avaxp(id: string, name: string, fullName: string, network: AvalancheNetwork, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, | ||
/** All UTXOs BitGo supports are SECP256K1 **/ | ||
primaryKeyCurve?: KeyCurve): Readonly<AVAXPCoin>; | ||
//# sourceMappingURL=avaxp.d.ts.map |
@@ -32,2 +32,3 @@ "use strict"; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -42,6 +43,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function avaxp(name, fullName, network, asset, features = AVAXPCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), | ||
function avaxp(id, name, fullName, network, asset, features = AVAXPCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), | ||
/** All UTXOs BitGo supports are SECP256K1 **/ | ||
primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(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F4cChcbiAgaWQ6IHN0cmluZyxcbiAgbmFtZTogc3RyaW5nLFxuICBmdWxsTmFtZTogc3RyaW5nLFxuICBuZXR3b3JrOiBBdmFsYW5jaGVOZXR3b3JrLFxuICBhc3NldDogVW5kZXJseWluZ0Fzc2V0LFxuICBmZWF0dXJlczogQ29pbkZlYXR1cmVbXSA9IEFWQVhQQ29pbi5ERUZBVUxUX0ZFQVRVUkVTLFxuICBwcmVmaXggPSAnJyxcbiAgc3VmZml4OiBzdHJpbmcgPSBuYW1lLnRvVXBwZXJDYXNlKCksXG4gIC8qKiBBbGwgVVRYT3MgQml0R28gc3VwcG9ydHMgYXJlIFNFQ1AyNTZLMSAqKi9cbiAgcHJpbWFyeUtleUN1cnZlOiBLZXlDdXJ2ZSA9IEtleUN1cnZlLlNlY3AyNTZrMVxuKSB7XG4gIHJldHVybiBPYmplY3QuZnJlZXplKFxuICAgIG5ldyBBVkFYUENvaW4oe1xuICAgICAgaWQsXG4gICAgICBuYW1lLFxuICAgICAgZnVsbE5hbWUsXG4gICAgICBuZXR3b3JrLFxuICAgICAgcHJlZml4LFxuICAgICAgc3VmZml4LFxuICAgICAgZmVhdHVyZXMsXG4gICAgICBhc3NldCxcbiAgICAgIHByaW1hcnlLZXlDdXJ2ZSxcbiAgICB9KVxuICApO1xufVxuIl19 |
@@ -1094,2 +1094,3 @@ import { BaseNetwork } from './networks'; | ||
export interface BaseCoinConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -1110,2 +1111,3 @@ name: string; | ||
export declare abstract class BaseCoin { | ||
readonly id: string; | ||
readonly fullName: string; | ||
@@ -1138,2 +1140,3 @@ readonly name: string; | ||
protected abstract disallowedFeatures(): Set<CoinFeature>; | ||
private static isValidUuidV4; | ||
/** | ||
@@ -1140,0 +1143,0 @@ * Ensures that the base coin constructor was passed a valid set of options. |
@@ -21,2 +21,5 @@ /** | ||
} | ||
export declare class InvalidIdError extends BitGoStaticsError { | ||
constructor(coinName: string, id: string); | ||
} | ||
export declare class InvalidContractAddressError extends BitGoStaticsError { | ||
@@ -23,0 +26,0 @@ constructor(coinName: string, contractAddress: string); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ConflictingCoinFeaturesError = exports.InvalidDomainError = exports.InvalidContractAddressError = exports.MissingRequiredCoinFeatureError = exports.DisallowedCoinFeatureError = exports.DuplicateCoinDefinitionError = exports.CoinNotDefinedError = void 0; | ||
exports.ConflictingCoinFeaturesError = exports.InvalidDomainError = exports.InvalidContractAddressError = exports.InvalidIdError = exports.MissingRequiredCoinFeatureError = exports.DisallowedCoinFeatureError = exports.DuplicateCoinDefinitionError = exports.CoinNotDefinedError = void 0; | ||
class BitGoStaticsError extends Error { | ||
@@ -39,2 +39,9 @@ constructor(message) { | ||
exports.MissingRequiredCoinFeatureError = MissingRequiredCoinFeatureError; | ||
class InvalidIdError extends BitGoStaticsError { | ||
constructor(coinName, id) { | ||
super(`invalid uuid '${id}' for coin '${coinName}'`); | ||
Object.setPrototypeOf(this, InvalidIdError.prototype); | ||
} | ||
} | ||
exports.InvalidIdError = InvalidIdError; | ||
class InvalidContractAddressError extends BitGoStaticsError { | ||
@@ -61,2 +68,2 @@ constructor(coinName, contractAddress) { | ||
exports.ConflictingCoinFeaturesError = ConflictingCoinFeaturesError; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFNQSxNQUFNLGlCQUFrQixTQUFRLEtBQUs7SUFDbkMsWUFBbUIsT0FBZTtRQUNoQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDZixJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDLEtBQUssQ0FBQztRQUN0QyxNQUFN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1cmVzRXJyb3IucHJvdG90eXBlKTtcbiAgfVxufVxuIl19 |
import { BaseCoin, BaseUnit, CoinFeature, CoinKind, KeyCurve, UnderlyingAsset } from './base'; | ||
import { BaseNetwork, OfcNetwork } from './networks'; | ||
export interface OfcConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -31,2 +32,3 @@ name: string; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -44,3 +46,3 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function ofc(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, kind?: CoinKind, features?: CoinFeature[], prefix?: string, suffix?: string, network?: OfcNetwork, isToken?: boolean, | ||
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, | ||
/** OFC tokens use SECP256K1 under the hood even if the chain doesn't **/ | ||
@@ -51,2 +53,3 @@ primaryKeyCurve?: KeyCurve): Readonly<OfcCoin>; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -64,6 +67,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for ofc erc20 coin instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -81,6 +85,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for testnet ofc erc20 coin instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -98,6 +103,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for ofc stellar token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -115,6 +121,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for testnet ofc stellar token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -132,6 +139,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for ofc algo token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -149,6 +157,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
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>; | ||
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>; | ||
/** | ||
* Factory function for testnet ofc algo token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -166,6 +175,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function tofcAlgoToken(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>; | ||
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>; | ||
/** | ||
* Factory function for ofc hedera token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -183,6 +193,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function ofcHederaToken(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>; | ||
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>; | ||
/** | ||
* Factory function for testnet ofc hedera token instances. | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -200,3 +211,3 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function tofcHederaToken(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>; | ||
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>; | ||
//# sourceMappingURL=ofc.d.ts.map |
@@ -37,2 +37,3 @@ "use strict"; | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -50,6 +51,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ofc(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, | ||
function ofc(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, | ||
/** OFC tokens use SECP256K1 under the hood even if the chain doesn't **/ | ||
primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -73,2 +75,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -86,4 +89,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function tofc(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function tofc(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -107,2 +111,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -120,4 +125,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ofcerc20(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'eth', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function ofcerc20(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'eth', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -142,2 +148,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -155,4 +162,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function tofcerc20(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'teth', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function tofcerc20(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.replace(/^ofc/, '').toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'teth', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -177,2 +185,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -190,4 +199,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ofcStellarToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'xlm', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function ofcStellarToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'xlm', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -212,2 +222,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -225,4 +236,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function tofcStellarToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'txlm', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function tofcStellarToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'txlm', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -247,2 +259,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -260,4 +273,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ofcAlgoToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'algo', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function ofcAlgoToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'algo', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -282,2 +296,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -295,4 +310,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function tofcAlgoToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'talgo', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function tofcAlgoToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'talgo', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -317,2 +333,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -330,4 +347,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function ofcHederaToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'hbar', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function ofcHederaToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.main.ofc, isToken = true, addressCoin = 'hbar', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -352,2 +370,3 @@ fullName, | ||
* | ||
* @param id uuid v4 | ||
* @param name unique identifier of the coin | ||
@@ -365,4 +384,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function tofcHederaToken(name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'thbar', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
function tofcHederaToken(id, name, fullName, decimalPlaces, asset, kind = base_1.CoinKind.CRYPTO, features = OfcCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), network = networks_1.Networks.test.ofc, isToken = true, addressCoin = 'thbar', primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new OfcCoin({ | ||
id, | ||
name, | ||
@@ -384,2 +404,2 @@ fullName, | ||
exports.tofcHederaToken = tofcHederaToken; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29mYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpQ0FBOEY7QUFDOUYseUNBQStEO0FBa0IvRDs7R0FFRztBQUNILE1BQWEsT0FBUSxTQUFRLGVBQVE7SUFXbkMsWUFBWSxPQUE4QjtRQUN4QyxNQUFNLEVBQUUsV0FBVyxFQUFFLEdBQUcsV0FBVyxFQUFFLEdBQUcsT0FBTyxDQUFDO1FBQ2hELEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsV0FBVyxHQUFHLFdBQVcsQ0FBQztJQUNqQyxDQUFDO0lBRVMsZ0JBQWdCO1FB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ihcbiAgaWQ6IHN0cmluZyxcbiAgbmFtZTogc3RyaW5nLFxuICBmdWxsTmFtZTogc3RyaW5nLFxuICBkZWNpbWFsUGxhY2VzOiBudW1iZXIsXG4gIGFzc2V0OiBVbmRlcmx5aW5nQXNzZXQsXG4gIGtpbmQ6IENvaW5LaW5kID0gQ29pbktpbmQuQ1JZUFRPLFxuICBmZWF0dXJlczogQ29pbkZlYXR1cmVbXSA9IE9mY0NvaW4uREVGQVVMVF9GRUFUVVJFUyxcbiAgcHJlZml4ID0gJycsXG4gIHN1ZmZpeDogc3RyaW5nID0gbmFtZS50b1VwcGVyQ2FzZSgpLFxuICBuZXR3b3JrOiBPZmNOZXR3b3JrID0gTmV0d29ya3MudGVzdC5vZmMsXG4gIGlzVG9rZW4gPSB0cnVlLFxuICBhZGRyZXNzQ29pbiA9ICd0aGJhcicsXG4gIHByaW1hcnlLZXlDdXJ2ZTogS2V5Q3VydmUgPSBLZXlDdXJ2ZS5TZWNwMjU2azFcbikge1xuICByZXR1cm4gT2JqZWN0LmZyZWV6ZShcbiAgICBuZXcgT2ZjQ29pbih7XG4gICAgICBpZCxcbiAgICAgIG5hbWUsXG4gICAgICBmdWxsTmFtZSxcbiAgICAgIG5ldHdvcmssXG4gICAgICBwcmVmaXgsXG4gICAgICBzdWZmaXgsXG4gICAgICBmZWF0dXJlcyxcbiAgICAgIGRlY2ltYWxQbGFjZXMsXG4gICAgICBpc1Rva2VuLFxuICAgICAgYXNzZXQsXG4gICAgICBraW5kLFxuICAgICAgYWRkcmVzc0NvaW4sXG4gICAgICBwcmltYXJ5S2V5Q3VydmUsXG4gICAgICBiYXNlVW5pdDogQmFzZVVuaXQuSEJBUixcbiAgICB9KVxuICApO1xufVxuIl19 |
import { BaseCoin, BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base'; | ||
import { UtxoNetwork } from './networks'; | ||
export interface UtxoConstructorOptions { | ||
id: string; | ||
fullName: string; | ||
@@ -27,2 +28,3 @@ name: string; | ||
* | ||
* @param id uuid v4 of the coin | ||
* @param name unique identifier of the coin | ||
@@ -37,5 +39,5 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
export declare function utxo(name: string, fullName: string, network: UtxoNetwork, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, | ||
export declare function utxo(id: string, name: string, fullName: string, network: UtxoNetwork, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, | ||
/** All UTXOs BitGo supports are SECP256K1 **/ | ||
primaryKeyCurve?: KeyCurve): Readonly<UtxoCoin>; | ||
//# sourceMappingURL=utxo.d.ts.map |
@@ -32,2 +32,3 @@ "use strict"; | ||
* | ||
* @param id uuid v4 of the coin | ||
* @param name unique identifier of the coin | ||
@@ -42,6 +43,7 @@ * @param fullName Complete human-readable name of the coin | ||
*/ | ||
function utxo(name, fullName, network, asset, baseUnit, features = UtxoCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), | ||
function utxo(id, name, fullName, network, asset, baseUnit, features = UtxoCoin.DEFAULT_FEATURES, prefix = '', suffix = name.toUpperCase(), | ||
/** All UTXOs BitGo supports are SECP256K1 **/ | ||
primaryKeyCurve = base_1.KeyCurve.Secp256k1) { | ||
return Object.freeze(new UtxoCoin({ | ||
id, | ||
name, | ||
@@ -59,2 +61,2 @@ fullName, | ||
exports.utxo = utxo; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXR4by5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dHhvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlDQUE4RjtBQWU5RixNQUFhLFFBQVMsU0FBUSxlQUFRO0lBYXBDLFlBQVksT0FBK0I7UUFDekMsS0FBSyxDQUFDO1lBQ0osR0FBRyxPQUFPO1lBQ1YsSUFBSSxFQUFFLGVBQVEsQ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CksXG4gIC8qKiBBbGwgVVRYT3MgQml0R28gc3VwcG9ydHMgYXJlIFNFQ1AyNTZLMSAqKi9cbiAgcHJpbWFyeUtleUN1cnZlOiBLZXlDdXJ2ZSA9IEtleUN1cnZlLlNlY3AyNTZrMVxuKSB7XG4gIHJldHVybiBPYmplY3QuZnJlZXplKFxuICAgIG5ldyBVdHhvQ29pbih7XG4gICAgICBpZCxcbiAgICAgIG5hbWUsXG4gICAgICBmdWxsTmFtZSxcbiAgICAgIG5ldHdvcmssXG4gICAgICBwcmVmaXgsXG4gICAgICBzdWZmaXgsXG4gICAgICBmZWF0dXJlcyxcbiAgICAgIGFzc2V0LFxuICAgICAgcHJpbWFyeUtleUN1cnZlLFxuICAgICAgYmFzZVVuaXQsXG4gICAgfSlcbiAgKTtcbn1cbiJdfQ== |
{ | ||
"name": "@bitgo-beta/statics", | ||
"version": "7.0.1-beta.144", | ||
"version": "7.0.1-beta.145", | ||
"description": "dependency-free static configuration for the bitgo platform", | ||
@@ -40,3 +40,3 @@ "main": "./dist/src/index.js", | ||
}, | ||
"gitHead": "76b60387c8b3094508738276126156e4626f9898" | ||
"gitHead": "66b7845703411ad8d39b044d9b6048af0499398c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6452790
22017