2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
2024-05-01 03:56:00 +00:00
|
|
|
package zgc.bep3.v1beta1;
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2024-05-01 03:56:00 +00:00
|
|
|
import "zgc/bep3/v1beta1/bep3.proto";
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/bep3/types";
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// GenesisState defines the pricefeed module's genesis state.
|
|
|
|
message GenesisState {
|
2024-04-05 14:14:49 +00:00
|
|
|
// params defines all the parameters of the module.
|
2022-01-08 00:39:27 +00:00
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
|
|
|
// atomic_swaps represents the state of stored atomic swaps
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated AtomicSwap atomic_swaps = 2 [
|
|
|
|
(gogoproto.castrepeated) = "AtomicSwaps",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// supplies represents the supply information of each atomic swap
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated AssetSupply supplies = 3 [
|
|
|
|
(gogoproto.castrepeated) = "AssetSupplies",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// previous_block_time represents the time of the previous block
|
2022-11-22 23:22:07 +00:00
|
|
|
google.protobuf.Timestamp previous_block_time = 4 [
|
|
|
|
(gogoproto.stdtime) = true,
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|