0g-chain/proto/zgc/evmutil/v1beta1/conversion_pair.proto

41 lines
1.2 KiB
Protocol Buffer
Raw Permalink Normal View History

syntax = "proto3";
2024-05-01 03:56:00 +00:00
package zgc.evmutil.v1beta1;
import "gogoproto/gogo.proto";
2024-05-01 03:17:24 +00:00
option go_package = "github.com/0glabs/0g-chain/x/evmutil/types";
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
2024-05-01 03:56:00 +00:00
// ConversionPair defines a 0gChain ERC20 address and corresponding denom that is
// allowed to be converted between ERC20 and sdk.Coin
message ConversionPair {
option (gogoproto.goproto_getters) = false;
2024-05-01 03:56:00 +00:00
// ERC20 address of the token on the 0gChain EVM
2024-05-09 11:35:16 +00:00
bytes zgchain_erc20_address = 1 [
2024-05-01 03:56:00 +00:00
(gogoproto.customname) = "ZgChainERC20Address",
(gogoproto.casttype) = "HexBytes"
];
// Denom of the corresponding sdk.Coin
string denom = 2;
}
// AllowedCosmosCoinERC20Token defines allowed cosmos-sdk denom & metadata
// for evm token representations of sdk assets.
// NOTE: once evm token contracts are deployed, changes to metadata for a given
// cosmos_denom will not change metadata of deployed contract.
message AllowedCosmosCoinERC20Token {
option (gogoproto.goproto_getters) = false;
// Denom of the sdk.Coin
string cosmos_denom = 1;
// Name of ERC20 contract
string name = 2;
// Symbol of ERC20 contract
string symbol = 3;
// Number of decimals ERC20 contract is deployed with.
uint32 decimals = 4;
}