forked from cerc-io/registry-sdk
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
798ed712b3 | ||
|
|
147348cf1d |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cerc-io/registry-sdk",
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"repository": "git@github.com:cerc-io/registry-sdk.git",
|
||||
|
||||
+2
-1
@@ -1 +1,2 @@
|
||||
export const DENOM = 'photon';
|
||||
export const DENOM = 'alnt';
|
||||
export const DEFAULT_CHAIN_ID = 'laconic_9000-1';
|
||||
|
||||
+2
-2
@@ -31,8 +31,7 @@ import { Coin } from './proto/cosmos/base/v1beta1/coin';
|
||||
import { MsgCancelBondResponse, MsgCreateBondResponse, MsgRefillBondResponse, MsgWithdrawBondResponse } from './proto/cerc/bond/v1/tx';
|
||||
import { MsgOnboardParticipantResponse } from './proto/cerc/onboarding/v1/tx';
|
||||
import { MsgSendResponse } from './proto/cosmos/bank/v1beta1/tx';
|
||||
|
||||
export const DEFAULT_CHAIN_ID = 'laconic_9000-1';
|
||||
import { DEFAULT_CHAIN_ID } from './constants';
|
||||
|
||||
/**
|
||||
* Create an auction bid.
|
||||
@@ -479,5 +478,6 @@ export class Registry {
|
||||
|
||||
export { Account };
|
||||
export { LaconicClient };
|
||||
export { DENOM, DEFAULT_CHAIN_ID } from './constants';
|
||||
export * from './types/cerc/bond/message';
|
||||
export * from './types/cerc/onboarding/message';
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ const namingTests = () => {
|
||||
const mnenonic1 = Account.generateMnemonic();
|
||||
const otherAccount1 = await Account.generateFromMnemonic(mnenonic1);
|
||||
await otherAccount1.init();
|
||||
await registry.sendCoins({ denom: DENOM, amount: '10000', destinationAddress: otherAccount1.address }, privateKey, fee);
|
||||
await registry.sendCoins({ denom: DENOM, amount: '1000000000', destinationAddress: otherAccount1.address }, privateKey, fee);
|
||||
|
||||
const mnenonic2 = Account.generateMnemonic();
|
||||
const otherAccount2 = await Account.generateFromMnemonic(mnenonic2);
|
||||
|
||||
@@ -2,7 +2,7 @@ import assert from 'assert';
|
||||
import yaml from 'node-yaml';
|
||||
import semver from 'semver';
|
||||
|
||||
import { DEFAULT_CHAIN_ID } from '../index';
|
||||
import { DEFAULT_CHAIN_ID } from '../constants';
|
||||
|
||||
export const ensureUpdatedConfig = async (path: string) => {
|
||||
const conf = await yaml.read(path);
|
||||
@@ -28,7 +28,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: 'photon', amount: '40' }],
|
||||
amount: [{ denom: 'alnt', amount: '400000' }],
|
||||
gas: '400000'
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user