Import denom from registry-sdk in cli test
This commit is contained in:
parent
4026195be3
commit
df2c2f63f2
@ -2,6 +2,8 @@ import fs from 'fs';
|
||||
import assert from 'assert';
|
||||
import { spawnSync } from 'child_process';
|
||||
|
||||
import { DENOM } from '@cerc-io/registry-sdk';
|
||||
|
||||
import {
|
||||
CHAIN_ID,
|
||||
TOKEN_TYPE,
|
||||
@ -398,7 +400,7 @@ describe('Test laconic CLI commands', () => {
|
||||
chainId: CHAIN_ID,
|
||||
auctionId: testAuctionId,
|
||||
bidderAddress: testAccount,
|
||||
bidAmount: `${bidAmount}alnt`
|
||||
bidAmount: `${bidAmount}${DENOM}`
|
||||
});
|
||||
}, (AUCTION_COMMIT_DURATION + 5) * 1000);
|
||||
});
|
||||
|
@ -2,8 +2,10 @@ import fs from 'fs';
|
||||
import yaml from 'js-yaml';
|
||||
import { SpawnSyncReturns, spawnSync } from 'child_process';
|
||||
|
||||
import { DENOM } from '@cerc-io/registry-sdk';
|
||||
|
||||
export const CHAIN_ID = 'laconic_9000-1';
|
||||
export const TOKEN_TYPE = 'alnt';
|
||||
export const TOKEN_TYPE = DENOM;
|
||||
|
||||
export const AUCTION_FEES = {
|
||||
commit: 1000000,
|
||||
|
@ -3,6 +3,9 @@
|
||||
set -e
|
||||
set -u
|
||||
|
||||
# Define the constant denomination
|
||||
DENOM="alnt"
|
||||
|
||||
# Wait for the laconid endpoint to come up
|
||||
docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
|
||||
|
||||
@ -28,7 +31,7 @@ services:
|
||||
bondId:
|
||||
chainId: $cosmos_chain_id
|
||||
gas: 200000
|
||||
fees: 200000alnt
|
||||
fees: 200000$DENOM
|
||||
EOL
|
||||
)
|
||||
echo "$config" > "$config_file"
|
||||
|
Loading…
Reference in New Issue
Block a user