Import denom from registry-sdk in cli test

This commit is contained in:
Adw8 2024-08-01 11:41:52 +05:30
parent 4026195be3
commit a8dcc8a48f
3 changed files with 10 additions and 3 deletions

View File

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

View File

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

View File

@ -3,6 +3,9 @@
set -e
set -u
# Define the token 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"