@terra-money/terra.js
Advanced tools
Comparing version 0.4.22 to 0.4.23
@@ -276,2 +276,4 @@ "use strict"; | ||
blockResult.code = d.code; | ||
} | ||
if (d.codespace) { | ||
blockResult.codespace = d.codespace; | ||
@@ -278,0 +280,0 @@ } |
@@ -19,5 +19,27 @@ "use strict"; | ||
var DEFAULT_LCD_OPTIONS = { | ||
gasPrices: { uluna: 0.015 }, | ||
gasAdjustment: 1.4, | ||
}; | ||
var DEFAULT_GAS_PRICES_BY_CHAIN_ID = { | ||
default: { | ||
uluna: 0.00506, | ||
uusd: 0.0015, | ||
usdr: 0.00102, | ||
ukrw: 1.7805, | ||
umnt: 4.31626, | ||
}, | ||
'columbus-3': { | ||
uluna: 0.015, | ||
uusd: 0.015, | ||
usdr: 0.015, | ||
ukrw: 0.015, | ||
umnt: 0.015, | ||
}, | ||
'tequila-0004': { | ||
uluna: 0.15, | ||
uusd: 0.15, | ||
usdr: 0.1018, | ||
ukrw: 178.05, | ||
umnt: 431.6259, | ||
}, | ||
}; | ||
/** | ||
@@ -47,3 +69,4 @@ * An object repesenting a connection to a terrad node running the Lite Client Daemon (LCD) | ||
function LCDClient(config) { | ||
this.config = __assign(__assign({}, DEFAULT_LCD_OPTIONS), config); | ||
this.config = __assign(__assign(__assign({}, DEFAULT_LCD_OPTIONS), { gasPrices: DEFAULT_GAS_PRICES_BY_CHAIN_ID[config.chainID] || | ||
DEFAULT_GAS_PRICES_BY_CHAIN_ID['default'] }), config); | ||
this.apiRequester = new APIRequester_1.APIRequester(this.config.URL); | ||
@@ -50,0 +73,0 @@ // instantiate APIs |
{ | ||
"name": "@terra-money/terra.js", | ||
"version": "0.4.22", | ||
"version": "0.4.23", | ||
"description": "The JavaScript SDK for Terra", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
4844415
16402