Merge pull request #104 from confio/update-test-setup

Update test setup
This commit is contained in:
Simon Warta 2020-02-18 22:35:38 +01:00 committed by GitHub
commit e53f96439d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 274 additions and 238 deletions

View File

@ -22,17 +22,17 @@ const defaultErc20Tokens: readonly Erc20Token[] = [
{
contractAddress: "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5",
fractionalDigits: 5,
ticker: "ASH",
ticker: "HASH",
},
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
ticker: "ISA",
},
{
contractAddress: "cosmos18r5szma8hm93pvx6lwpjwyxruw27e0k5uw835c",
fractionalDigits: 18,
ticker: "CASH",
ticker: "JADE",
},
];
@ -73,11 +73,11 @@ describe("CosmWasmCodec", () => {
chainId: chainId,
sender: "cosmos1txqfn5jmcts0x0q7krdxj8tgf98tj0965vqlmq" as Address,
recipient: "cosmos1dddd" as Address,
memo: "My first BASH payment",
memo: "My first ISA payment",
amount: {
fractionalDigits: 0,
quantity: "345",
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
},
fee: {
tokens: {
@ -91,7 +91,7 @@ describe("CosmWasmCodec", () => {
const expected = {
bytes: toUtf8(
'{"account_number":"0","chain_id":"cosmoshub-3","fee":{"amount":[{"amount":"2500","denom":"uatom"}],"gas":"100000"},"memo":"My first BASH payment","msgs":[{"type":"wasm/execute","value":{"contract":"cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd","msg":{"transfer":{"amount":"345","recipient":"cosmos1dddd"}},"sender":"cosmos1txqfn5jmcts0x0q7krdxj8tgf98tj0965vqlmq","sent_funds":[]}}],"sequence":"99"}',
'{"account_number":"0","chain_id":"cosmoshub-3","fee":{"amount":[{"amount":"2500","denom":"uatom"}],"gas":"100000"},"memo":"My first ISA payment","msgs":[{"type":"wasm/execute","value":{"contract":"cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd","msg":{"transfer":{"amount":"345","recipient":"cosmos1dddd"}},"sender":"cosmos1txqfn5jmcts0x0q7krdxj8tgf98tj0965vqlmq","sent_funds":[]}}],"sequence":"99"}',
),
prehashType: PrehashType.Sha256,
};

View File

@ -58,7 +58,7 @@ const faucet = {
describe("CosmWasmConnection", () => {
const cosm = "COSM" as TokenTicker;
const bash = "BASH" as TokenTicker;
const isa = "ISA" as TokenTicker;
const httpUrl = "http://localhost:1317";
const defaultChainId = "cosmos:testing" as ChainId;
const defaultEmptyAddress = "cosmos1h806c7khnvmjlywdrkdgk2vrayy2mmvf9rxk2r" as Address;
@ -97,20 +97,20 @@ describe("CosmWasmConnection", () => {
{
contractAddress: "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5",
fractionalDigits: 5,
ticker: "ASH",
name: "Ash Token",
ticker: "HASH",
name: "Hash Token",
},
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
name: "Bash Token",
ticker: "ISA",
name: "Isa Token",
},
{
contractAddress: "cosmos18r5szma8hm93pvx6lwpjwyxruw27e0k5uw835c",
fractionalDigits: 18,
ticker: "CASH",
name: "Cash Token",
ticker: "JADE",
name: "Jade Token",
},
],
};
@ -182,26 +182,26 @@ describe("CosmWasmConnection", () => {
const connection = await CosmWasmConnection.establish(httpUrl, defaultPrefix, defaultConfig);
const tokens = await connection.getAllTokens();
expect(tokens).toEqual([
{
fractionalDigits: 5,
tokenName: "Ash Token",
tokenTicker: "ASH" as TokenTicker,
},
{
fractionalDigits: 0,
tokenName: "Bash Token",
tokenTicker: "BASH" as TokenTicker,
},
{
fractionalDigits: 18,
tokenName: "Cash Token",
tokenTicker: "CASH" as TokenTicker,
},
{
fractionalDigits: 6,
tokenName: "Fee Token",
tokenTicker: "COSM" as TokenTicker,
},
{
fractionalDigits: 5,
tokenName: "Hash Token",
tokenTicker: "HASH" as TokenTicker,
},
{
fractionalDigits: 0,
tokenName: "Isa Token",
tokenTicker: "ISA" as TokenTicker,
},
{
fractionalDigits: 18,
tokenName: "Jade Token",
tokenTicker: "JADE" as TokenTicker,
},
{
fractionalDigits: 6,
tokenName: "Staking Token",
@ -240,20 +240,20 @@ describe("CosmWasmConnection", () => {
expect(account.pubkey).toBeUndefined();
expect(account.balance).toEqual([
{
tokenTicker: "ASH" as TokenTicker,
tokenTicker: "COSM" as TokenTicker,
quantity: "1000000000",
fractionalDigits: 6,
},
{
tokenTicker: "HASH" as TokenTicker,
quantity: "12812345",
fractionalDigits: 5,
},
{
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
quantity: "42",
fractionalDigits: 0,
},
{
tokenTicker: "COSM" as TokenTicker,
quantity: "1000000000",
fractionalDigits: 6,
},
{
tokenTicker: "STAKE" as TokenTicker,
quantity: "1000000000",
@ -414,7 +414,7 @@ describe("CosmWasmConnection", () => {
amount: {
quantity: "345",
fractionalDigits: 0,
tokenTicker: bash,
tokenTicker: isa,
},
});
const nonce = await connection.getNonce({ address: senderAddress });
@ -1004,7 +1004,7 @@ describe("CosmWasmConnection", () => {
amount: {
quantity: "75",
fractionalDigits: 0,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
},
});
const nonce = await connection.getNonce({ address: senderAddress });
@ -1015,10 +1015,10 @@ describe("CosmWasmConnection", () => {
expect(blockInfo.state).toEqual(TransactionState.Succeeded);
const recipientAccount = await connection.getAccount({ address: recipient });
assert(recipientAccount, "Recipient account must have BASH tokens");
assert(recipientAccount, "Recipient account must have ISA tokens");
expect(recipientAccount.balance).toEqual([
{
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
quantity: "75",
fractionalDigits: 0,
},

View File

@ -68,17 +68,17 @@ describe("decode", () => {
{
contractAddress: "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5",
fractionalDigits: 5,
ticker: "ASH",
ticker: "HASH",
},
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
ticker: "ISA",
},
{
contractAddress: "cosmos18r5szma8hm93pvx6lwpjwyxruw27e0k5uw835c",
fractionalDigits: 18,
ticker: "CASH",
ticker: "JADE",
},
];
@ -187,7 +187,7 @@ describe("decode", () => {
recipient: "cosmos1z7g5w84ynmjyg0kqpahdjqpj7yq34v3suckp0e" as Address,
amount: {
quantity: "887878484",
tokenTicker: "ASH" as TokenTicker,
tokenTicker: "HASH" as TokenTicker,
fractionalDigits: 5,
},
memo: defaultMemo,
@ -255,7 +255,7 @@ describe("decode", () => {
recipient: "cosmos1z7g5w84ynmjyg0kqpahdjqpj7yq34v3suckp0e" as Address,
amount: {
quantity: "887878484",
tokenTicker: "ASH" as TokenTicker,
tokenTicker: "HASH" as TokenTicker,
fractionalDigits: 5,
},
memo: defaultMemo,

View File

@ -53,17 +53,17 @@ describe("encode", () => {
{
contractAddress: "cosmos18vd8fpwxzck93qlwghaj6arh4p7c5n89uzcee5",
fractionalDigits: 5,
ticker: "ASH",
ticker: "HASH",
},
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
ticker: "ISA",
},
{
contractAddress: "cosmos18r5szma8hm93pvx6lwpjwyxruw27e0k5uw835c",
fractionalDigits: 18,
ticker: "CASH",
ticker: "JADE",
},
];
@ -83,7 +83,7 @@ describe("encode", () => {
const amount: Amount = {
quantity: "789",
fractionalDigits: 0,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
};
expect(toErc20Amount(amount, bash)).toEqual("789");
});
@ -92,7 +92,7 @@ describe("encode", () => {
const amount: Amount = {
quantity: "789",
fractionalDigits: 0,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
};
expect(() => toErc20Amount(amount, ash)).toThrowError(/ticker mismatch/i);
});
@ -101,7 +101,7 @@ describe("encode", () => {
const amount: Amount = {
quantity: "789",
fractionalDigits: 2,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
};
expect(() => toErc20Amount(amount, bash)).toThrowError(/fractional digits mismatch/i);
});
@ -298,7 +298,7 @@ describe("encode", () => {
amount: {
fractionalDigits: 0,
quantity: "345",
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
},
fee: {
tokens: {

View File

@ -116,7 +116,7 @@ situation is different.
```
curl --header "Content-Type: application/json" \
--request POST \
--data '{"ticker":"BASH","address":"cosmos1yre6ac7qfgyfgvh58ph0rgw627rhw766y430qq"}' \
--data '{"ticker":"ISA","address":"cosmos1yre6ac7qfgyfgvh58ph0rgw627rhw766y430qq"}' \
http://localhost:8000/credit
```

View File

@ -2,26 +2,26 @@ import { RequestParser } from "./requestparser";
describe("RequestParser", () => {
it("can process valid credit request", () => {
const body = { address: "abc", ticker: "CASH" };
expect(RequestParser.parseCreditBody(body)).toEqual({ address: "abc", ticker: "CASH" });
const body = { address: "abc", ticker: "TKN" };
expect(RequestParser.parseCreditBody(body)).toEqual({ address: "abc", ticker: "TKN" });
});
it("throws for invalid credit requests", () => {
// address unset
{
const body = { ticker: "CASH" };
const body = { ticker: "TKN" };
expect(() => RequestParser.parseCreditBody(body)).toThrowError(/Property 'address' must be a string/i);
}
// address wrong type
{
const body = { address: true, ticker: "CASH" };
const body = { address: true, ticker: "TKN" };
expect(() => RequestParser.parseCreditBody(body)).toThrowError(/Property 'address' must be a string/i);
}
// address empty
{
const body = { address: "", ticker: "CASH" };
const body = { address: "", ticker: "TKN" };
expect(() => RequestParser.parseCreditBody(body)).toThrowError(/Property 'address' must not be empty/i);
}

View File

@ -27,8 +27,8 @@ export const developmentTokenConfig: TokenConfiguration = {
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
name: "Bash Token",
ticker: "ISA",
name: "Isa Token",
},
],
};

View File

@ -35,8 +35,8 @@ const defaultConfig: TokenConfiguration = {
{
contractAddress: "cosmos1hqrdl6wstt8qzshwc6mrumpjk9338k0lr4dqxd",
fractionalDigits: 0,
ticker: "BASH",
name: "Bash Token",
ticker: "ISA",
name: "Isa Token",
},
],
};
@ -112,7 +112,7 @@ describe("Faucet", () => {
amount: {
quantity: "7",
fractionalDigits: 0,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
},
sender: holder,
recipient: recipient,
@ -123,7 +123,7 @@ describe("Faucet", () => {
{
quantity: "7",
fractionalDigits: 0,
tokenTicker: "BASH" as TokenTicker,
tokenTicker: "ISA" as TokenTicker,
},
]);
connection.disconnect();
@ -140,21 +140,21 @@ describe("Faucet", () => {
const distributorBalance = (await connection.getAccount({ pubkey: distributors[0].pubkey }))?.balance;
assert(distributorBalance);
expect(distributorBalance).toEqual([
jasmine.objectContaining({
tokenTicker: "BASH",
fractionalDigits: 0,
}),
jasmine.objectContaining({
tokenTicker: "COSM",
fractionalDigits: 6,
}),
jasmine.objectContaining({
tokenTicker: "ISA",
fractionalDigits: 0,
}),
jasmine.objectContaining({
tokenTicker: "STAKE",
fractionalDigits: 6,
}),
]);
expect(Number.parseInt(distributorBalance[0].quantity, 10)).toBeGreaterThanOrEqual(80);
expect(Number.parseInt(distributorBalance[1].quantity, 10)).toBeGreaterThanOrEqual(80_000000);
expect(Number.parseInt(distributorBalance[0].quantity, 10)).toBeGreaterThanOrEqual(80_000000);
expect(Number.parseInt(distributorBalance[1].quantity, 10)).toBeGreaterThanOrEqual(80);
expect(Number.parseInt(distributorBalance[2].quantity, 10)).toBeGreaterThanOrEqual(80_000000);
connection.disconnect();
});
@ -207,7 +207,7 @@ describe("Faucet", () => {
const { profile } = await makeProfile();
const faucet = new Faucet(defaultConfig, connection, codec, profile);
const tickers = await faucet.loadTokenTickers();
expect(tickers).toEqual(["BASH", "COSM", "STAKE"]);
expect(tickers).toEqual(["COSM", "ISA", "STAKE"]);
connection.disconnect();
});
});

View File

@ -26,11 +26,11 @@ describe("multichainhelpers", () => {
{
quantity: "1",
fractionalDigits: 9,
tokenTicker: "CASH" as TokenTicker,
tokenTicker: "JADE" as TokenTicker,
},
],
});
expect(tickers).toEqual(["CASH"]);
expect(tickers).toEqual(["JADE"]);
});
it("works for two tokens", () => {
@ -41,7 +41,7 @@ describe("multichainhelpers", () => {
{
quantity: "1",
fractionalDigits: 9,
tokenTicker: "CASH" as TokenTicker,
tokenTicker: "JADE" as TokenTicker,
},
{
quantity: "1",
@ -50,7 +50,7 @@ describe("multichainhelpers", () => {
},
],
});
expect(tickers).toEqual(["CASH", "TRASH"]);
expect(tickers).toEqual(["JADE", "TRASH"]);
});
});
});

View File

@ -90,3 +90,7 @@ You should get output matching the following:
oyster design unusual machine spread century engine gravity focus cave carry slot<br>
ArkCaFUJ/IH+vKBmNRCdUVl3mCAhbopk9jjW4Ko4OfRQ<br>
cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u
3. Guest: account for manual testing<br>
degree tackle suggest window test behind mesh extra cover prepare oak script<br>
Am/+YV0LaeqQPu7BDJuDHV7J8y68ptkGs10YS+9s71Nq<br>
cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej

View File

@ -10,46 +10,59 @@ const faucet = {
"economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone",
address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
};
const unusedAccount = "cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u";
const unused = {
address: "cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u",
};
const guest = {
address: "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej",
};
const initMsgAsh = {
const initMsgHash = {
decimals: 5,
name: "Ash token",
symbol: "ASH",
name: "Hash token",
symbol: "HASH",
initial_balances: [
{
address: faucet.address,
amount: "11",
},
{
address: unusedAccount,
address: unused.address,
amount: "12812345",
},
{
address: guest.address,
amount: "22004000000",
},
],
};
const initMsgBash = {
const initMsgIsa = {
decimals: 0,
name: "Bash Token",
symbol: "BASH",
name: "Isa Token",
symbol: "ISA",
initial_balances: [
{
address: faucet.address,
amount: "999999999",
},
{
address: unusedAccount,
address: unused.address,
amount: "42",
},
],
};
const initMsgCash = {
const initMsgJade = {
decimals: 18,
name: "Cash Token",
symbol: "CASH",
name: "Jade Token",
symbol: "JADE",
initial_balances: [
{
address: faucet.address,
amount: "189189189000000000000000000", // 189189189 CASH
amount: "189189189000000000000000000", // 189189189 JADE
},
{
address: guest.address,
amount: "189500000000000000000", // 189.5 JADE
},
],
};
@ -62,7 +75,7 @@ async function main() {
const codeId = await client.upload(wasm, "Upload ERC20 contract");
console.info(`Upload succeeded. Code ID is ${codeId}`);
for (const initMsg of [initMsgAsh, initMsgBash, initMsgCash]) {
for (const initMsg of [initMsgHash, initMsgIsa, initMsgJade]) {
const memo = `Create an ERC20 instance for ${initMsg.symbol}`;
const contractAddress = await client.instantiate(codeId, initMsg, memo);
console.info(`Contract instantiated for ${initMsg.symbol} at ${contractAddress}`);

View File

@ -16,7 +16,7 @@ docker run --rm \
--mount type=bind,source="$SCRIPT_DIR/template",target=/root \
"$REPOSITORY:$VERSION" \
./setup.sh \
cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u
cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej
# The ./template folder is created by the docker daemon's user (root on Linux, current user
# when using Docker Desktop on macOS), let's make it ours if needed

View File

@ -0,0 +1 @@
eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjcmVhdGVkIjoiMjAyMC0wMi0xOCAxNToxMjowNC4xM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PxliB8XxMqmlpqUPO8B6nFjtAlE4NRgFAWhIUjf_GSzdS385RS14_bQ9zGajnVs3TBCCEP2c8SP7EImakkjnlGQ8u8gOMboB92tGEQIdPxQFGs7JmMzeJvk3LbAMgQAYnbUowLsdU3c5bUEIK5kyLqnUf7IgIjQfHzipJR227aQC-jjPSQ7QWmnM2EozQ7KFeKbL7m1uw4fhFGcajzpGkeS2p3UvY_q4EHJCX5VL1sqGIe-DFhcaw6ZqnePQl__LVtG-PBmVMLAGC3uYYbAb0hINHjnd9pNzqV-NaobSzFXi8Oi2QomYi9IDgdsoWwwQQnw6auO.QBap3Xg9mTu9I2tyFpzGIA

View File

@ -1,5 +1,5 @@
{
"genesis_time": "2020-02-09T11:05:31.7520515Z",
"genesis_time": "2020-02-18T15:12:03.6027603Z",
"chain_id": "testing",
"consensus_params": {
"block": {
@ -19,48 +19,6 @@
},
"app_hash": "",
"app_state": {
"distribution": {
"params": {
"community_tax": "0.020000000000000000",
"base_proposer_reward": "0.010000000000000000",
"bonus_proposer_reward": "0.040000000000000000",
"withdraw_addr_enabled": true
},
"fee_pool": {
"community_pool": []
},
"delegator_withdraw_infos": [],
"previous_proposer": "",
"outstanding_rewards": [],
"validator_accumulated_commissions": [],
"validator_historical_rewards": [],
"validator_current_rewards": [],
"delegator_starting_infos": [],
"validator_slash_events": []
},
"gov": {
"starting_proposal_id": "1",
"deposits": null,
"votes": null,
"proposals": null,
"deposit_params": {
"min_deposit": [
{
"denom": "ustake",
"amount": "10000000"
}
],
"max_deposit_period": "172800000000000"
},
"voting_params": {
"voting_period": "172800000000000"
},
"tally_params": {
"quorum": "0.334000000000000000",
"threshold": "0.500000000000000000",
"veto": "0.334000000000000000"
}
},
"slashing": {
"params": {
"signed_blocks_window": "100",
@ -72,101 +30,6 @@
"signing_infos": {},
"missed_blocks": {}
},
"supply": {
"supply": []
},
"wasm": {
"codes": null,
"contracts": null
},
"mint": {
"minter": {
"inflation": "0.130000000000000000",
"annual_provisions": "0.000000000000000000"
},
"params": {
"mint_denom": "ustake",
"inflation_rate_change": "0.130000000000000000",
"inflation_max": "0.200000000000000000",
"inflation_min": "0.070000000000000000",
"goal_bonded": "0.670000000000000000",
"blocks_per_year": "6311520"
}
},
"genutil": {
"gentxs": [
{
"type": "cosmos-sdk/StdTx",
"value": {
"msg": [
{
"type": "cosmos-sdk/MsgCreateValidator",
"value": {
"description": {
"moniker": "testing",
"identity": "",
"website": "",
"security_contact": "",
"details": ""
},
"commission": {
"rate": "0.100000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.010000000000000000"
},
"min_self_delegation": "1",
"delegator_address": "cosmos1wreev8h6a75z9zdde7cmxv4fdz75appy7h5wvg",
"validator_address": "cosmosvaloper1wreev8h6a75z9zdde7cmxv4fdz75appymrqmqm",
"pubkey": "cosmosvalconspub1zcjduepq0hlq4z5lt56ly07u79w3v3m9g59ms0kk7lykn5qvn48267s899hsdtxe88",
"value": {
"denom": "ustake",
"amount": "250000000"
}
}
}
],
"fee": {
"amount": [],
"gas": "200000"
},
"signatures": [
{
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "AjiLD/neb68jAuQI6XAeGfHf9xWz0k05QxVCJtHh2JCQ"
},
"signature": "+jsUfDU6Ji7li432ryDyVA3GBh82FQN8ufGuX9As+PptSmY8twa2sRD683dglBdq7DBSfxYQ4wSHU7zdzWmp6A=="
}
],
"memo": "67289558533ad6df13f96bfb7c8ae44b457a919a@172.17.0.3:26656"
}
}
]
},
"evidence": {
"params": {
"max_evidence_age": "120000000000"
},
"evidence": []
},
"params": null,
"upgrade": {},
"staking": {
"params": {
"unbonding_time": "1814400000000000",
"max_validators": 100,
"max_entries": 7,
"historical_entries": 0,
"bond_denom": "ustake"
},
"last_total_power": "0",
"last_validator_powers": null,
"validators": null,
"delegations": null,
"unbonding_delegations": null,
"redelegations": null,
"exported": false
},
"auth": {
"params": {
"max_memo_characters": "256",
@ -179,7 +42,7 @@
{
"type": "cosmos-sdk/Account",
"value": {
"address": "cosmos1wreev8h6a75z9zdde7cmxv4fdz75appy7h5wvg",
"address": "cosmos1pmsqxz755ul9u7mm6naqr8z57vpwygzg4dr7ng",
"coins": [
{
"denom": "ucosm",
@ -232,17 +95,173 @@
"account_number": 0,
"sequence": 0
}
},
{
"type": "cosmos-sdk/Account",
"value": {
"address": "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej",
"coins": [
{
"denom": "ucosm",
"amount": "1000000000"
},
{
"denom": "ustake",
"amount": "1000000000"
}
],
"public_key": "",
"account_number": 0,
"sequence": 0
}
}
]
},
"params": null,
"genutil": {
"gentxs": [
{
"type": "cosmos-sdk/StdTx",
"value": {
"msg": [
{
"type": "cosmos-sdk/MsgCreateValidator",
"value": {
"description": {
"moniker": "testing",
"identity": "",
"website": "",
"security_contact": "",
"details": ""
},
"commission": {
"rate": "0.100000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.010000000000000000"
},
"min_self_delegation": "1",
"delegator_address": "cosmos1pmsqxz755ul9u7mm6naqr8z57vpwygzg4dr7ng",
"validator_address": "cosmosvaloper1pmsqxz755ul9u7mm6naqr8z57vpwygzgsehtlm",
"pubkey": "cosmosvalconspub1zcjduepqsy5ztk6n6a78w9lhf8vew4fpylcgtlt989dfz84jhgmqy2qk0zjqesfvtx",
"value": {
"denom": "ustake",
"amount": "250000000"
}
}
}
],
"fee": {
"amount": [],
"gas": "200000"
},
"signatures": [
{
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "A/iVJJOJPgTk5Pb8YBfa1+x067H2FNMXZltax6K6YSx6"
},
"signature": "YDNKqJwbCHvvvOAKdLFaQDdvdXI9Kweq6etRX0HVJcUFj1EANs2oJ48FvxlVA7H6lJJgxeB7rZvE+HPjdUhJwQ=="
}
],
"memo": "c064858c45bd94c7ed875736014ae30dfc4cb232@172.17.0.11:26656"
}
}
]
},
"bank": {
"send_enabled": true
},
"gov": {
"starting_proposal_id": "1",
"deposits": null,
"votes": null,
"proposals": null,
"deposit_params": {
"min_deposit": [
{
"denom": "ustake",
"amount": "10000000"
}
],
"max_deposit_period": "172800000000000"
},
"voting_params": {
"voting_period": "172800000000000"
},
"tally_params": {
"quorum": "0.334000000000000000",
"threshold": "0.500000000000000000",
"veto": "0.334000000000000000"
}
},
"mint": {
"minter": {
"inflation": "0.130000000000000000",
"annual_provisions": "0.000000000000000000"
},
"params": {
"mint_denom": "ustake",
"inflation_rate_change": "0.130000000000000000",
"inflation_max": "0.200000000000000000",
"inflation_min": "0.070000000000000000",
"goal_bonded": "0.670000000000000000",
"blocks_per_year": "6311520"
}
},
"upgrade": {},
"staking": {
"params": {
"unbonding_time": "1814400000000000",
"max_validators": 100,
"max_entries": 7,
"historical_entries": 0,
"bond_denom": "ustake"
},
"last_total_power": "0",
"last_validator_powers": null,
"validators": null,
"delegations": null,
"unbonding_delegations": null,
"redelegations": null,
"exported": false
},
"evidence": {
"params": {
"max_evidence_age": "120000000000"
},
"evidence": []
},
"wasm": {
"codes": null,
"contracts": null
},
"distribution": {
"params": {
"community_tax": "0.020000000000000000",
"base_proposer_reward": "0.010000000000000000",
"bonus_proposer_reward": "0.040000000000000000",
"withdraw_addr_enabled": true
},
"fee_pool": {
"community_pool": []
},
"delegator_withdraw_infos": [],
"previous_proposer": "",
"outstanding_rewards": [],
"validator_accumulated_commissions": [],
"validator_historical_rewards": [],
"validator_current_rewards": [],
"delegator_starting_infos": [],
"validator_slash_events": []
},
"crisis": {
"constant_fee": {
"denom": "ustake",
"amount": "1000"
}
},
"bank": {
"send_enabled": true
"supply": {
"supply": []
}
}
}

View File

@ -1 +0,0 @@
{"type":"cosmos-sdk/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1wreev8h6a75z9zdde7cmxv4fdz75appy7h5wvg","validator_address":"cosmosvaloper1wreev8h6a75z9zdde7cmxv4fdz75appymrqmqm","pubkey":"cosmosvalconspub1zcjduepq0hlq4z5lt56ly07u79w3v3m9g59ms0kk7lykn5qvn48267s899hsdtxe88","value":{"denom":"ustake","amount":"250000000"}}}],"fee":{"amount":[],"gas":"200000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AjiLD/neb68jAuQI6XAeGfHf9xWz0k05QxVCJtHh2JCQ"},"signature":"+jsUfDU6Ji7li432ryDyVA3GBh82FQN8ufGuX9As+PptSmY8twa2sRD683dglBdq7DBSfxYQ4wSHU7zdzWmp6A=="}],"memo":"67289558533ad6df13f96bfb7c8ae44b457a919a@172.17.0.3:26656"}}

View File

@ -0,0 +1 @@
{"type":"cosmos-sdk/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"testing","identity":"","website":"","security_contact":"","details":""},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1pmsqxz755ul9u7mm6naqr8z57vpwygzg4dr7ng","validator_address":"cosmosvaloper1pmsqxz755ul9u7mm6naqr8z57vpwygzgsehtlm","pubkey":"cosmosvalconspub1zcjduepqsy5ztk6n6a78w9lhf8vew4fpylcgtlt989dfz84jhgmqy2qk0zjqesfvtx","value":{"denom":"ustake","amount":"250000000"}}}],"fee":{"amount":[],"gas":"200000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"A/iVJJOJPgTk5Pb8YBfa1+x067H2FNMXZltax6K6YSx6"},"signature":"YDNKqJwbCHvvvOAKdLFaQDdvdXI9Kweq6etRX0HVJcUFj1EANs2oJ48FvxlVA7H6lJJgxeB7rZvE+HPjdUhJwQ=="}],"memo":"c064858c45bd94c7ed875736014ae30dfc4cb232@172.17.0.11:26656"}}

View File

@ -1 +1 @@
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"i42pVrwetpGZFC78UUNhL6Bk41/N3sKDW9XKNz+IOm/JX5aN10vUrpA52DXOQNug55lTvTyuPR8izLSBcovIrg=="}}
{"priv_key":{"type":"tendermint/PrivKeyEd25519","value":"dJxiYKRVk5sGYnadvNtXJeNwwJXL027GAhZxfEqKITiK63NC/mtK2p+Xk7o17FxV3bEZgAMHpdKCfUid+8k4Eg=="}}

View File

@ -1,11 +1,11 @@
{
"address": "3FBF50B72FE062495F150AEB78D1981E7DAEBE60",
"address": "D8004608AFC0F2022DA49EB200FE6950D0991C01",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "ff4Kip9dNfI/3PFdFkdlRQu4Ptb3yWnQDJ1OrXoHKW8="
"value": "gSgl21PXfHcX90nZl1UhJ/CF/WU5WpEesro2AigWeKQ="
},
"priv_key": {
"type": "tendermint/PrivKeyEd25519",
"value": "yMKZJArmVw5zXDTHbYR0sNRqugzW3HNbO6yK5bOHYBp9/gqKn1018j/c8V0WR2VFC7g+1vfJadAMnU6tegcpbw=="
"value": "/drcoXTemHTY+V9UDuWVsEB+elJ6EKUdnIhAFjmJJ2eBKCXbU9d8dxf3SdmXVSEn8IX9ZTlakR6yujYCKBZ4pA=="
}
}