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 assert from 'assert';
import { spawnSync } from 'child_process'; import { spawnSync } from 'child_process';
import { DENOM } from '@cerc-io/registry-sdk';
import { import {
CHAIN_ID, CHAIN_ID,
TOKEN_TYPE, TOKEN_TYPE,
@ -398,7 +400,7 @@ describe('Test laconic CLI commands', () => {
chainId: CHAIN_ID, chainId: CHAIN_ID,
auctionId: testAuctionId, auctionId: testAuctionId,
bidderAddress: testAccount, bidderAddress: testAccount,
bidAmount: `${bidAmount}alnt` bidAmount: `${bidAmount}${DENOM}`
}); });
}, (AUCTION_COMMIT_DURATION + 5) * 1000); }, (AUCTION_COMMIT_DURATION + 5) * 1000);
}); });

View File

@ -2,8 +2,10 @@ import fs from 'fs';
import yaml from 'js-yaml'; import yaml from 'js-yaml';
import { SpawnSyncReturns, spawnSync } from 'child_process'; import { SpawnSyncReturns, spawnSync } from 'child_process';
import { DENOM } from '@cerc-io/registry-sdk';
export const CHAIN_ID = 'laconic_9000-1'; export const CHAIN_ID = 'laconic_9000-1';
export const TOKEN_TYPE = 'alnt'; export const TOKEN_TYPE = DENOM;
export const AUCTION_FEES = { export const AUCTION_FEES = {
commit: 1000000, commit: 1000000,

View File

@ -3,6 +3,9 @@
set -e set -e
set -u set -u
# Define the token denomination
DENOM="alnt"
# Wait for the laconid endpoint to come up # 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" 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: bondId:
chainId: $cosmos_chain_id chainId: $cosmos_chain_id
gas: 200000 gas: 200000
fees: 200000alnt fees: 200000$DENOM
EOL EOL
) )
echo "$config" > "$config_file" echo "$config" > "$config_file"