Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #89 from mycel-domain/fix/proto-enum
Browse files Browse the repository at this point in the history
fixes enums on protobuf
  • Loading branch information
Jaguarmouse authored Sep 15, 2023
2 parents ed87238 + ce5ffa0 commit 7f3cd06
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 194 deletions.
19 changes: 10 additions & 9 deletions proto/mycel/registry/dns_record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ package mycel.registry;
option go_package = "github.com/mycel-domain/mycel/x/registry/types";

enum DnsRecordType {
A = 0;
AAAA = 1;
CNAME = 2;
NS = 3;
MX = 4;
PTR = 5;
SOA = 6;
SRV = 7;
TXT = 8;
NO_RECORD_TYPE = 0;
A = 1;
AAAA = 2;
CNAME = 3;
NS = 4;
MX = 5;
PTR = 6;
SOA = 7;
SRV = 8;
TXT = 9;
}
66 changes: 34 additions & 32 deletions proto/mycel/registry/network_name.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,56 @@ option go_package = "github.com/mycel-domain/mycel/x/registry/types";
enum NetworkName {
// Rule: CHAINNAME_ENVIROMENT_NETWORK

// BTC 0xxx
BITCOIN_MAINNET_MAINNET = 0;
BITCOIN_TESTNET_TESTNET = 1;
NO_NETWORK = 0;

// EVM 1xxxx
// BTC 1xxx
BITCOIN_MAINNET_MAINNET = 10000;
BITCOIN_TESTNET_TESTNET = 10001;

// EVM 2xxxx
// Etheruem
ETHEREUM_MAINNET_MAINNET = 10000;
ETHEREUM_TESTNET_GOERLI = 10001;
ETHEREUM_TESTNET_SEPOLIA = 10002;
ETHEREUM_MAINNET_MAINNET = 20000;
ETHEREUM_TESTNET_GOERLI = 20001;
ETHEREUM_TESTNET_SEPOLIA = 20002;
// Polygon
POLYGON_MAINNET_MAINNET = 10003;
POLYGON_TESTNET_MUMBAI = 10004;
POLYGON_MAINNET_MAINNET = 20003;
POLYGON_TESTNET_MUMBAI = 20004;
// BNB Chain
BNB_MAINNET_MAINNET = 10005;
BNB_TESTNET_TESTNET = 10006;
BNB_MAINNET_MAINNET = 20005;
BNB_TESTNET_TESTNET = 20006;
// Avalanche
AVALANCHE_MAINNET_CCHAIN = 10007;
AVALANCHE_TESTNET_FUJI = 10008;
AVALANCHE_MAINNET_CCHAIN = 20007;
AVALANCHE_TESTNET_FUJI = 20008;
// Gnosis
GNOSIS_MAINNET_MAINNET = 10009;
GNOSIS_TESTNET_CHIADO = 10010;
GNOSIS_MAINNET_MAINNET = 20009;
GNOSIS_TESTNET_CHIADO = 20010;
// Optimism
OPTIMISM_MAINNET_MAINNET = 10011;
OPTIMISM_TESTNET_GOERLI = 10012;
OPTIMISM_MAINNET_MAINNET = 20011;
OPTIMISM_TESTNET_GOERLI = 20012;
// Arbitrum
ARBITRUM_MAINNET_MAINNET = 10013;
ARBITRUM_TESTNET_GOERLI = 10014;
ARBITRUM_MAINNET_MAINNET = 20013;
ARBITRUM_TESTNET_GOERLI = 20014;
//Shardeum
// SHARDEUM_MAINNET_ = 10015;
// SHARDEUM_TESTNET_ = 10016;
SHARDEUM_BETANET_SPHINX= 10017;
// SHARDEUM_MAINNET_ = 20015;
// SHARDEUM_TESTNET_ = 20016;
SHARDEUM_BETANET_SPHINX= 20017;
// Zetachain
// ZETA_MAINNET_MAINNET = 10018;
ZETA_TESTNET_ATHENS = 10019;
// ZETA_MAINNET_MAINNET = 20018;
ZETA_TESTNET_ATHENS = 20019;



// MOVE 2xxxx
// MOVE 3xxxx
//Aptos
APTOS_MAINNET_MAINNET = 20000;
APTOS_TESTNET_TESTNET = 20001;
APTOS_MAINNET_MAINNET = 30000;
APTOS_TESTNET_TESTNET = 30001;
// Sui
SUI_MAINNET_MAINNET = 20002;
SUI_TESTNET_TESTNET = 20003;
SUI_MAINNET_MAINNET = 30002;
SUI_TESTNET_TESTNET = 30003;

// SOLANA 3xxxx
SOLANA_MAINNET_MAINNET = 30000;
SOLANA_TESTNET_TESTNET = 30001;
// SOLANA 4xxxx
SOLANA_MAINNET_MAINNET = 40000;
SOLANA_TESTNET_TESTNET = 40001;
}


82 changes: 43 additions & 39 deletions x/registry/types/dns_record.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7f3cd06

Please sign in to comment.