Update token denom for mainnet
Some checks failed
Lint & Build / lint_and_build (20.x) (pull_request) Successful in 39s
Tests / sdk_tests (pull_request) Has been cancelled

This commit is contained in:
Prathamesh Musale 2025-05-13 12:17:53 +05:30
parent 04d176eb55
commit 25df41460e
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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';

View File

@ -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'
}
};