-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Define information for each coin #111
Comments
@alejandro-isaza, @hewigovens what's the best way to configure chain ID? it could be Would it make sense to have such struct: struct ChainID {
struct Ethereum {
static let mainnet = 1
}
struct Wanchain {
static let mainnet = 1
}
struct Binance {
static let mainnet = "Binance-Chain"
}
struct Stellar {
static let mainnet = "Stellar-Network"
static let kin = "Kin-Chain"
}
} @alejandro-isaza C++ wise, what's the easier to make this work and generate code for it? |
how about just do: extension CoinType {
var chainId: Int
var chainIdString: String
} |
We can also just use string for everything. The alternative is to use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Better design to avoid hardcoding and getting chain ID from the network itself. |
ERC20
,TRC10
, or Default tosymbol
+20
The text was updated successfully, but these errors were encountered: