Comments (2)
@hewigovens can you please describe more info about the problem and some suggestions to solve it, please?
from go-libs.
coins.go
is generated from coins.yml
, it has a Coins
map which key is taken from symbol
field
var Coins = map[uint]Coin{
ETH: {
ID: 60,
Handle: "ethereum",
Symbol: "ETH",
Name: "Ethereum",
Decimals: 18,
BlockTime: 10000,
MinConfirmations: 0,
SampleAddr: "0xfc10cab6a50a1ab10c56983c80cc82afc6559cf1",
},
}
In smart chain case, it shares same symbol
with binance chain (should be same case for other layer 2 networks), so the key in map is not unique, to solve this, my first attempt was: trustwallet/blockatlas@cb717e1: generated the const
and key from name
not symbol
, name is usually uniqu. The best option might be using id
somehow instead
from go-libs.
Related Issues (20)
- Merge token transfer and native token transfer HOT 1
- [Client] Remove extra ? when query is empty
- Generate coins based on wallet core config HOT 2
- Add ability to customize Sentry options
- Add Crypto.org Chain
- Coins utility methods
- [gin] add unixfile graceful shutdown listener HOT 1
- Upgrade go version to 1.17
- [Queue Consumer] Log message on error. HOT 1
- [MQ] Add reconnection logic for producer HOT 1
- Upgrade go version to 1.18
- Client does not support custom headers per request. HOT 2
- Add library code for defining apis that require hmac signature
- Extend ordered set with Size() and ValueAt(idx int) functions
- [hmac handlers] use go-libs/crypto
- Refactor metrics initializer HOT 1
- Place all clients urls in config file
- Switch to up to date rabbit mq library HOT 1
- Review current rabbitmq producer health check HOT 1
- Token left
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-libs.