* Start implementation * Add implementation + some e2e test * Fix lint * Squashed: sdk upgrade to v0.50 * rebuild protos with newer proto builder (cherry picked from commit fd8f4c1d0d2163f0a504356c16cd2d250f6218f3) * update ibc-go (cherry picked from commit fb8667960fbeedb7d242baa644572986a154d4b6) * bump cosmos-sdk and ibc in the v50 branch (#1616) * tidy * upgade ibc * remove the toolchain command * Bump sdk version * Use correct bech32 prefix * Bump SDK * Enable fraud system test again * Fix genesis param name * Fix import/export simulations * set log level for benchmarks (cherry picked from commit 1cfb93008c596db62d22aba882f37a469546bfb9) * Apply review comments * Remove gov beta1 helpers * Bump sdk version to latest in branch * Fix linter * Setup mergify for main * Update mergify for better branch name --------- Co-authored-by: Pino' Surace <pino.surace@live.it> Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com>
58 lines
1.8 KiB
Protocol Buffer
58 lines
1.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmwasm.wasm.v1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmwasm/wasm/v1/types.proto";
|
|
import "amino/amino.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
option go_package = "github.com/CosmWasm/wasmd/x/wasm/types";
|
|
|
|
// GenesisState - genesis state of x/wasm
|
|
message GenesisState {
|
|
Params params = 1
|
|
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
|
|
repeated Code codes = 2 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(gogoproto.jsontag) = "codes,omitempty"
|
|
];
|
|
repeated Contract contracts = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(gogoproto.jsontag) = "contracts,omitempty"
|
|
];
|
|
repeated Sequence sequences = 4 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(gogoproto.jsontag) = "sequences,omitempty"
|
|
];
|
|
}
|
|
|
|
// Code struct encompasses CodeInfo and CodeBytes
|
|
message Code {
|
|
uint64 code_id = 1 [ (gogoproto.customname) = "CodeID" ];
|
|
CodeInfo code_info = 2
|
|
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
|
|
bytes code_bytes = 3;
|
|
// Pinned to wasmvm cache
|
|
bool pinned = 4;
|
|
}
|
|
|
|
// Contract struct encompasses ContractAddress, ContractInfo, and ContractState
|
|
message Contract {
|
|
string contract_address = 1
|
|
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
|
|
ContractInfo contract_info = 2
|
|
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
|
|
repeated Model contract_state = 3
|
|
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
|
|
repeated ContractCodeHistoryEntry contract_code_history = 4
|
|
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
|
|
}
|
|
|
|
// Sequence key and value of an id generation counter
|
|
message Sequence {
|
|
bytes id_key = 1 [ (gogoproto.customname) = "IDKey" ];
|
|
uint64 value = 2;
|
|
} |