@bitgo-beta/statics
Advanced tools
Comparing version 7.0.1-beta.116 to 7.0.1-beta.117
@@ -94,2 +94,34 @@ import { BaseCoin, BaseUnit, CoinFeature, CoinKind, KeyCurve, UnderlyingAsset } from './base'; | ||
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>; | ||
/** | ||
* Factory function for ofc stellar token instances. | ||
* | ||
* @param name unique identifier of the coin | ||
* @param fullName Complete human-readable name of the coin | ||
* @param network Network object for this coin | ||
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent) | ||
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin. | ||
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets | ||
* @param prefix? Optional coin prefix. Defaults to empty string | ||
* @param suffix? Optional coin suffix. Defaults to coin name. | ||
* @param isToken? Whether or not this account coin is a token of another coin | ||
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin` | ||
* @param primaryKeyCurve The elliptic curve for this chain/token | ||
*/ | ||
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>; | ||
/** | ||
* Factory function for testnet ofc erc20 coin instances. | ||
* | ||
* @param name unique identifier of the coin | ||
* @param fullName Complete human-readable name of the coin | ||
* @param network Network object for this coin | ||
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent) | ||
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin. | ||
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets | ||
* @param prefix? Optional coin prefix. Defaults to empty string | ||
* @param suffix? Optional coin suffix. Defaults to coin name. | ||
* @param isToken? Whether or not this account coin is a token of another coin | ||
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin` | ||
* @param primaryKeyCurve The elliptic curve for this chain/token | ||
*/ | ||
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>; | ||
//# sourceMappingURL=ofc.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tofcerc20 = exports.ofcerc20 = exports.tofc = exports.ofc = exports.OfcCoin = void 0; | ||
exports.tofcStellarToken = exports.ofcStellarToken = exports.tofcerc20 = exports.ofcerc20 = exports.tofc = exports.ofc = exports.OfcCoin = void 0; | ||
const base_1 = require("./base"); | ||
@@ -165,2 +165,68 @@ const networks_1 = require("./networks"); | ||
exports.tofcerc20 = tofcerc20; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29mYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpQ0FBOEY7QUFDOUYseUNBQStEO0FBa0IvRDs7R0FFRztBQUNILE1BQWEsT0FBUSxTQUFRLGVBQVE7SUFVbkMsWUFBWSxPQUE4QjtRQUN4QyxNQUFNLEVBQUUsV0FBVyxFQUFFLEdBQUcsV0FBVyxFQUFFLEdBQUcsT0FBTyxDQUFDO1FBQ2hELEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsV0FBVyxHQUFHLFdBQVcsQ0FBQztJQUNqQyxDQUFDO0lBRVMsZ0JBQWdCO1FBQ3hCLE9BQU8sSUFBSSxHQUFHLENBQWMsQ0FBQyxrQkFBVyxDQUFDLGFBQ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gbmV3IE9mY0NvaW4oe1xuICAgICAgbmFtZSxcbiAgICAgIGZ1bGxOYW1lLFxuICAgICAgbmV0d29yayxcbiAgICAgIHByZWZpeCxcbiAgICAgIHN1ZmZpeCxcbiAgICAgIGZlYXR1cmVzLFxuICAgICAgZGVjaW1hbFBsYWNlcyxcbiAgICAgIGlzVG9rZW4sXG4gICAgICBhc3NldCxcbiAgICAgIGtpbmQsXG4gICAgICBhZGRyZXNzQ29pbixcbiAgICAgIHByaW1hcnlLZXlDdXJ2ZSxcbiAgICAgIGJhc2VVbml0OiBCYXNlVW5pdC5FVEgsXG4gICAgfSlcbiAgKTtcbn1cbiJdfQ== | ||
/** | ||
* Factory function for ofc stellar token instances. | ||
* | ||
* @param name unique identifier of the coin | ||
* @param fullName Complete human-readable name of the coin | ||
* @param network Network object for this coin | ||
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent) | ||
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin. | ||
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets | ||
* @param prefix? Optional coin prefix. Defaults to empty string | ||
* @param suffix? Optional coin suffix. Defaults to coin name. | ||
* @param isToken? Whether or not this account coin is a token of another coin | ||
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin` | ||
* @param primaryKeyCurve The elliptic curve for this chain/token | ||
*/ | ||
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) { | ||
return Object.freeze(new OfcCoin({ | ||
name, | ||
fullName, | ||
network, | ||
prefix, | ||
suffix, | ||
features, | ||
decimalPlaces, | ||
isToken, | ||
asset, | ||
kind, | ||
addressCoin, | ||
primaryKeyCurve, | ||
baseUnit: base_1.BaseUnit.XLM, | ||
})); | ||
} | ||
exports.ofcStellarToken = ofcStellarToken; | ||
/** | ||
* Factory function for testnet ofc erc20 coin instances. | ||
* | ||
* @param name unique identifier of the coin | ||
* @param fullName Complete human-readable name of the coin | ||
* @param network Network object for this coin | ||
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent) | ||
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin. | ||
* @param kind Differentiates coins which represent fiat assets from those which represent crypto assets | ||
* @param prefix? Optional coin prefix. Defaults to empty string | ||
* @param suffix? Optional coin suffix. Defaults to coin name. | ||
* @param isToken? Whether or not this account coin is a token of another coin | ||
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `OfcCoin` | ||
* @param primaryKeyCurve The elliptic curve for this chain/token | ||
*/ | ||
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) { | ||
return Object.freeze(new OfcCoin({ | ||
name, | ||
fullName, | ||
network, | ||
prefix, | ||
suffix, | ||
features, | ||
decimalPlaces, | ||
isToken, | ||
asset, | ||
kind, | ||
addressCoin, | ||
primaryKeyCurve, | ||
baseUnit: base_1.BaseUnit.XLM, | ||
})); | ||
} | ||
exports.tofcStellarToken = tofcStellarToken; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29mYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxpQ0FBOEY7QUFDOUYseUNBQStEO0FBa0IvRDs7R0FFRztBQUNILE1BQWEsT0FBUSxTQUFRLGVBQVE7SUFVbkMsWUFBWSxPQUE4QjtRQUN4QyxNQUFNLEVBQUUsV0FBVyxFQUFFLEdBQUcsV0FBVyxFQ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.0.1-beta.116", | ||
"version": "7.0.1-beta.117", | ||
"description": "dependency-free static configuration for the bitgo platform", | ||
@@ -40,3 +40,3 @@ "main": "./dist/src/index.js", | ||
}, | ||
"gitHead": "3c45364068c645069da5abd83fea9e27e23b6d2c" | ||
"gitHead": "88b8636e9ad5d0cce9831d40b61911e765709859" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6219498
21532