Update token denom for mainnet
This commit is contained in:
parent
04d176eb55
commit
25df41460e
@ -23,7 +23,7 @@ const configTests = () => {
|
||||
|
||||
test('StdFee fees with gas price not set', async () => {
|
||||
const testFees = {
|
||||
amount: [{ denom: 'alnt', amount: '400000' }],
|
||||
amount: [{ denom: DENOM, amount: '400000' }],
|
||||
gas: '400000'
|
||||
};
|
||||
|
||||
@ -37,12 +37,12 @@ const configTests = () => {
|
||||
|
||||
test('StdFee fees with gas price set', async () => {
|
||||
const testFees = {
|
||||
amount: [{ denom: 'alnt', amount: '400000' }],
|
||||
amount: [{ denom: DENOM, amount: '400000' }],
|
||||
gas: '400000'
|
||||
};
|
||||
|
||||
// Set gas price lower than min gas price
|
||||
const testGasPrice = GasPrice.fromString(String('0.00001alnt'));
|
||||
const testGasPrice = GasPrice.fromString(`0.00001${DENOM}`);
|
||||
const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice });
|
||||
|
||||
// Send a bond creation tx
|
||||
@ -55,7 +55,7 @@ const configTests = () => {
|
||||
|
||||
test('Gas price with fees not set (default gas estimation multiplier)', async () => {
|
||||
// Set gas price
|
||||
const testGasPrice = GasPrice.fromString('1alnt');
|
||||
const testGasPrice = GasPrice.fromString(`1${DENOM}`);
|
||||
const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice });
|
||||
|
||||
// Send a bond creation tx
|
||||
@ -70,7 +70,7 @@ const configTests = () => {
|
||||
const testFees = 2.1;
|
||||
|
||||
// Set gas price
|
||||
const testGasPrice = GasPrice.fromString('1alnt');
|
||||
const testGasPrice = GasPrice.fromString(`1${DENOM}`);
|
||||
const registry = new Registry(gqlEndpoint, rpcEndpoint, { chainId, gasPrice: testGasPrice });
|
||||
|
||||
// Send a bond creation tx
|
||||
|
@ -1,4 +1,4 @@
|
||||
export const DENOM = 'alnt';
|
||||
export const DENOM = 'alps';
|
||||
export const DEFAULT_GAS_ESTIMATION_MULTIPLIER = 2;
|
||||
|
||||
export const AUCTION_KIND_VICKREY = 'vickrey';
|
||||
|
@ -2,7 +2,7 @@ import assert from 'assert';
|
||||
import yaml from 'node-yaml';
|
||||
import semver from 'semver';
|
||||
|
||||
import { Account, Registry } from '../index';
|
||||
import { Account, DENOM } from '../index';
|
||||
|
||||
const DEFAULT_CHAIN_ID = 'laconic_9000-1';
|
||||
|
||||
@ -30,7 +30,7 @@ export const getConfig = () => {
|
||||
rpcEndpoint: process.env.LACONICD_RPC_ENDPOINT || 'http://localhost:26657',
|
||||
gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api',
|
||||
fee: {
|
||||
amount: [{ denom: 'alnt', amount: '200000' }],
|
||||
amount: [{ denom: DENOM, amount: '200000' }],
|
||||
gas: '200000'
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user