From 15533937294ce8426ce7b1895fa0358aab5f0abb Mon Sep 17 00:00:00 2001 From: Denis <136321897+defisaur@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:05:40 +0800 Subject: [PATCH 1/2] mantle --- coin/coins.go | 27 ++++++++++++++++++++++++++- coin/coins.yml | 7 +++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/coin/coins.go b/coin/coins.go index e51be0b..4d206df 100644 --- a/coin/coins.go +++ b/coin/coins.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. // This file was generated by robots at -// 2023-10-19 20:08:10.262156 +0900 JST m=+0.003362210 +// 2023-10-31 13:51:52.900892 +0800 WITA m=+0.002710626 // using data from coins.yml package coin @@ -154,6 +154,7 @@ const ( OPBNB = 204 LINEA = 59144 GBNB = 5600 + MANTLE = 5000 ) var Coins = map[uint]Coin{ @@ -1247,6 +1248,16 @@ var Coins = map[uint]Coin{ MinConfirmations: 0, Blockchain: "Greenfield", }, + MANTLE: { + ID: 5000, + Handle: "mantle", + Symbol: "MNT", + Name: "Mantle", + Decimals: 18, + BlockTime: 0, + MinConfirmations: 0, + Blockchain: "Ethereum", + }, } var Chains = map[string]Coin{ @@ -2340,6 +2351,16 @@ var Chains = map[string]Coin{ MinConfirmations: 0, Blockchain: "Greenfield", }, + Mantle().Handle: { + ID: 5000, + Handle: "mantle", + Symbol: "MNT", + Name: "Mantle", + Decimals: 18, + BlockTime: 0, + MinConfirmations: 0, + Blockchain: "Ethereum", + }, } func Ethereum() Coin { @@ -2777,3 +2798,7 @@ func Linea() Coin { func Gbnb() Coin { return Coins[GBNB] } + +func Mantle() Coin { + return Coins[MANTLE] +} diff --git a/coin/coins.yml b/coin/coins.yml index 396fc84..6ee7a7d 100644 --- a/coin/coins.yml +++ b/coin/coins.yml @@ -872,3 +872,10 @@ name: BNB Greenfield decimals: 18 blockchain: Greenfield + +- id: 5000 + symbol: MNT + handle: mantle + name: Mantle + decimals: 18 + blockchain: Ethereum From 4236515d60adab996239058edb98ea7a76ff03f1 Mon Sep 17 00:00:00 2001 From: Denis <136321897+defisaur@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:10:53 +0800 Subject: [PATCH 2/2] fix tests --- coin/models_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/coin/models_test.go b/coin/models_test.go index 31b6d74..b5a5677 100644 --- a/coin/models_test.go +++ b/coin/models_test.go @@ -419,6 +419,7 @@ var evmCoinsTestSet = map[uint]struct{}{ IOTEXEVM: {}, OPBNB: {}, LINEA: {}, + MANTLE: {}, } // TestEvmCoinsList This test will automatically fail when new EVM chain is added to coins.yml