diff --git a/coin/coins.go b/coin/coins.go index 8d6b814..9759f39 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 -// 2020-12-14 08:51:58.497823 +0800 CST m=+0.001342873 +// 2021-01-11 19:03:18.046246 -0800 PST m=+0.001414779 // using data from coins.yml package coin @@ -108,7 +108,7 @@ var Coins = map[uint]Coin{ Symbol: "ICX", Name: "ICON", Decimals: 18, - BlockTime: 0, + BlockTime: 10000, MinConfirmations: 0, SampleAddr: "hxee691e7bccc4eb11fee922896e9f51490e62b12e", }, @@ -148,7 +148,7 @@ var Coins = map[uint]Coin{ Symbol: "POA", Name: "Poa", Decimals: 18, - BlockTime: 30000, + BlockTime: 5000, MinConfirmations: 0, SampleAddr: "0x1fddEc96688e0538A316C64dcFd211c491ECf0d8", }, @@ -168,7 +168,7 @@ var Coins = map[uint]Coin{ Symbol: "FIO", Name: "FIO", Decimals: 9, - BlockTime: 0, + BlockTime: 5000, MinConfirmations: 0, SampleAddr: "FIO5J2xdfWygeNdHZNZRzRws8YGbVxjUXtp4eP8KoGkGKoLFQ7CaU", }, @@ -248,7 +248,7 @@ var Coins = map[uint]Coin{ Symbol: "BNB", Name: "BNB", Decimals: 8, - BlockTime: 4000, + BlockTime: 1000, MinConfirmations: 2, SampleAddr: "tbnb1fhr04azuhcj0dulm7ka40y0cqjlafwae9k9gk2", }, @@ -589,7 +589,7 @@ var Coins = map[uint]Coin{ PreferedSymbol: "BSCLegacy", Name: "Binance Smart Chain", Decimals: 18, - BlockTime: 3000, + BlockTime: 5000, MinConfirmations: 0, SampleAddr: "0x35552c16704d214347f29Fa77f77DA6d75d7C752", }, diff --git a/coin/coins.yml b/coin/coins.yml index a30e804..d326283 100644 --- a/coin/coins.yml +++ b/coin/coins.yml @@ -20,6 +20,7 @@ name: ICON decimals: 18 sampleAddress: 'hxee691e7bccc4eb11fee922896e9f51490e62b12e' + blockTime: 10000 - id: 118 symbol: ATOM @@ -50,7 +51,7 @@ handle: poa name: Poa decimals: 18 - blockTime: 30000 + blockTime: 5000 sampleAddress: '0x1fddEc96688e0538A316C64dcFd211c491ECf0d8' - id: 195 @@ -66,6 +67,7 @@ handle: fio name: FIO decimals: 9 + blockTime: 5000 sampleAddress: 'FIO5J2xdfWygeNdHZNZRzRws8YGbVxjUXtp4eP8KoGkGKoLFQ7CaU' - id: 242 @@ -129,7 +131,7 @@ handle: binance name: BNB decimals: 8 - blockTime: 4000 + blockTime: 1000 minConfirmations: 2 sampleAddress: 'tbnb1fhr04azuhcj0dulm7ka40y0cqjlafwae9k9gk2' @@ -403,7 +405,7 @@ handle: bsc name: 'Binance Smart Chain' decimals: 18 - blockTime: 3000 + blockTime: 5000 sampleAddress: '0x35552c16704d214347f29Fa77f77DA6d75d7C752' - id: 20000714 diff --git a/numbers/number_test.go b/numbers/number_test.go index 470ccd0..e4898ba 100644 --- a/numbers/number_test.go +++ b/numbers/number_test.go @@ -26,6 +26,7 @@ func TestToDecimal(t *testing.T) { assert.Equal(t, ToDecimal("212880628", 9), "0.212880628") assert.Equal(t, ToDecimal("4634460765323682", 18), "0.0046344608") assert.Equal(t, ToDecimal("100000000000", 8), "1000") + assert.Equal(t, ToDecimal("5000000000", 8), "50") } func TestFromDecimal(t *testing.T) {