-
Notifications
You must be signed in to change notification settings - Fork 299
feat: added canton coin to statics #7139
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
base: master
Are you sure you want to change the base?
Conversation
class Canton extends Mainnet implements BaseNetwork { | ||
name = 'Canton'; | ||
family = CoinFamily.CANTON; | ||
explorerUrl = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why explorerUrl is empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no explorer url for canton as it's a privacy based chain
modules/statics/src/coinFeatures.ts
Outdated
CoinFeature.CUSTODY_BITGO_INDIA, | ||
]; | ||
|
||
export const CANTON_FEATURES = [...CANTON_DEFAULT_FEATURES, CoinFeature.TSS, CoinFeature.TSS_COLD]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why created 2 different features arrays?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idea was to make the CANTON_DEFAULT_FEATURES
as the default feature for utxo coins that is on account model (sui & ada).
Ada maintains its own default features inside ada class - for these we can make a common default feature.
Have added a ticket in backlog: COIN-5870
For now will make a single features array for canton
Networks.main.canton, | ||
UnderlyingAsset.CANTON, | ||
CANTON_FEATURES, | ||
'', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if prefix is always empty for both testnet and mainnet coin, then could we remove prefix itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
9f44e16
to
9aa34bb
Compare
9c0a398
to
d9763f4
Compare
Ticket: COIN-5851