Comments (5)
@alejandro-isaza, @hewigovens what's the best way to configure chain ID? it could be Int
or String
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?
from wallet-core.
how about just do:
extension CoinType {
var chainId: Int
var chainIdString: String
}
from wallet-core.
We can also just use string for everything. The alternative is to use std::variant<int, std::string>
but we can't expose that on the interface.
from wallet-core.
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.
from wallet-core.
Better design to avoid hardcoding and getting chain ID from the network itself.
from wallet-core.
Related Issues (20)
- iOS SDK doesn't support priority fee for Solana HOT 1
- Support for Custom Derivation Path HOT 1
- iOS SDK doesn't support priority fee for Solana
- How to Sign transaction from btc 1...(address) to taproot? I am an iOS developer.
- ETH wallet bug affecting the Android App HOT 1
- Sol prv HOT 1
- Solana transactions is stacked in the pending status forever HOT 1
- Hot to transfer usdt on Sol HOT 4
- Support Cosmos IBC memo field added in Nov 11, 2022 HOT 1
- TON: PreImage issues HOT 2
- I cant find mg balance its. 0 !! HOT 3
- Why is my balance 0 ! HOT 1
- Transfer usdt on Sol HOT 3
- Transfer usdt on Sol HOT 1
- Veiw only wallet HOT 2
- Stacks (Bitcoin L2) HOT 2
- Why is my wallet still 0
- wallet-core.wasm doesn't load in Worker HOT 3
- How can i get sol address from privateKey:(Nno9dBF53drmKNYbaXNKxyAf5KMFfMzudVXQgLcBgpzWqMJ5dK6MfsR51gaDPhsNLgEj2hkStnqGFU7iuBFmWF2)
- Sui ECDSA HOT 4
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 wallet-core.