@@ -122,6 +122,8 @@ export interface AccountNetwork extends BaseNetwork {
122122 // is a url that can be used to look up the account for the gas tank on-chain.
123123 readonly accountExplorerUrl ?: string ;
124124 readonly blockExplorerUrl ?: string ;
125+ // bech32 HRP for chains that use one (e.g. Cosmos-family coins)
126+ readonly addressPrefix ?: string ;
125127}
126128
127129export interface CosmosNetwork extends AccountNetwork {
@@ -978,96 +980,112 @@ class Atom extends Mainnet implements AccountNetwork {
978980 name = 'Cosmos Hub ATOM' ;
979981 family = CoinFamily . ATOM ;
980982 explorerUrl = 'https://www.mintscan.io/cosmos/tx/' ;
983+ addressPrefix = 'cosmos' ;
981984}
982985
983986class AtomTestnet extends Testnet implements AccountNetwork {
984987 name = 'Testnet Cosmos Hub ATOM' ;
985988 family = CoinFamily . ATOM ;
986989 explorerUrl = 'https://explorer.polypore.xyz/provider/tx/' ;
990+ addressPrefix = 'cosmos' ;
987991}
988992
989993class Osmo extends Mainnet implements AccountNetwork {
990994 name = 'Osmosis' ;
991995 family = CoinFamily . OSMO ;
992996 explorerUrl = 'https://www.mintscan.io/osmosis/txs/' ;
997+ addressPrefix = 'osmo' ;
993998}
994999
9951000class OsmoTestnet extends Testnet implements AccountNetwork {
9961001 name = 'Testnet Osmosis' ;
9971002 family = CoinFamily . OSMO ;
9981003 explorerUrl = 'https://testnet.osmosis.explorers.guru/transaction/' ;
1004+ addressPrefix = 'osmo' ;
9991005}
10001006
10011007class Tia extends Mainnet implements AccountNetwork {
10021008 name = 'Celestia' ;
10031009 family = CoinFamily . TIA ;
10041010 explorerUrl = 'https://www.mintscan.io/celestia/tx/' ;
1011+ addressPrefix = 'celestia' ;
10051012}
10061013
10071014class TiaTestnet extends Testnet implements AccountNetwork {
10081015 name = 'Testnet Celestia' ;
10091016 family = CoinFamily . TIA ;
10101017 explorerUrl = 'https://testnet.celestia.explorers.guru/transaction/' ;
1018+ addressPrefix = 'celestia' ;
10111019}
10121020
10131021class Hash extends Mainnet implements AccountNetwork {
10141022 name = 'Provenance' ;
10151023 family = CoinFamily . HASH ;
10161024 explorerUrl = 'https://explorer.provenance.io/tx/' ;
1025+ addressPrefix = 'pb' ;
10171026}
10181027
10191028class HashTestnet extends Testnet implements AccountNetwork {
10201029 name = 'Testnet Provenance' ;
10211030 family = CoinFamily . HASH ;
10221031 explorerUrl = 'https://explorer.test.provenance.io/tx/' ;
1032+ addressPrefix = 'tp' ;
10231033}
10241034
10251035class Bld extends Mainnet implements AccountNetwork {
10261036 name = 'Agoric' ;
10271037 family = CoinFamily . BLD ;
10281038 explorerUrl = 'https://bigdipper.live/agoric/transactions/' ;
1039+ addressPrefix = 'agoric' ;
10291040}
10301041
10311042class BldTestnet extends Testnet implements AccountNetwork {
10321043 name = 'Testnet Agoric' ;
10331044 family = CoinFamily . BLD ;
10341045 explorerUrl = 'https://emerynet.explorer.agoric.net/agoric/tx/' ;
1046+ addressPrefix = 'agoric' ;
10351047}
10361048
10371049class Sei extends Mainnet implements AccountNetwork {
10381050 name = 'Sei' ;
10391051 family = CoinFamily . SEI ;
10401052 explorerUrl = 'https://mintscan.io/sei/tx/' ;
1053+ addressPrefix = 'sei' ;
10411054}
10421055
10431056class SeiTestnet extends Testnet implements AccountNetwork {
10441057 name = 'Testnet Sei' ;
10451058 family = CoinFamily . SEI ;
10461059 explorerUrl = 'https://testnet.seitrace.com/tx/' ;
1060+ addressPrefix = 'sei' ;
10471061}
10481062
10491063class Zeta extends Mainnet implements AccountNetwork {
10501064 name = 'Zeta' ;
10511065 family = CoinFamily . ZETA ;
10521066 explorerUrl = 'https://explorer.zetachain.com/cosmos/tx/' ;
1067+ addressPrefix = 'zeta' ;
10531068}
10541069
10551070class ZetaTestnet extends Testnet implements AccountNetwork {
10561071 name = 'Testnet Zeta' ;
10571072 family = CoinFamily . ZETA ;
10581073 explorerUrl = 'https://athens.explorer.zetachain.com/cosmos/tx/' ;
1074+ addressPrefix = 'zeta' ;
10591075}
10601076
10611077class Injective extends Mainnet implements AccountNetwork {
10621078 name = 'Injective' ;
10631079 family = CoinFamily . INJECTIVE ;
10641080 explorerUrl = 'https://www.mintscan.io/injective/tx/' ;
1081+ addressPrefix = 'inj' ;
10651082}
10661083
10671084class InjectiveTestnet extends Testnet implements AccountNetwork {
10681085 name = 'InjectiveTestnet' ;
10691086 family = CoinFamily . INJECTIVE ;
10701087 explorerUrl = 'https://testnet.explorer.injective.network/transaction/' ;
1088+ addressPrefix = 'inj' ;
10711089}
10721090
10731091class KavaCosmos extends Mainnet implements CosmosNetwork {
@@ -1134,36 +1152,42 @@ class Coreum extends Mainnet implements AccountNetwork {
11341152 name = 'TX' ;
11351153 family = CoinFamily . COREUM ;
11361154 explorerUrl = 'https://explorer.tx.org/tx/transactions/' ;
1155+ addressPrefix = 'core' ;
11371156}
11381157
11391158class CoreumTestnet extends Testnet implements AccountNetwork {
11401159 name = 'Testnet TX' ;
11411160 family = CoinFamily . COREUM ;
11421161 explorerUrl = 'https://explorer.testnet-1.tx.org/tx/transactions/' ;
1162+ addressPrefix = 'testcore' ;
11431163}
11441164
11451165class Rune extends Mainnet implements AccountNetwork {
11461166 name = 'Rune' ;
11471167 family = CoinFamily . THOR ;
11481168 explorerUrl = 'https://runescan.io/tx/' ;
1169+ addressPrefix = 'thor' ;
11491170}
11501171
11511172class RuneTestNet extends Testnet implements AccountNetwork {
11521173 name = 'RuneTestNet' ;
11531174 family = CoinFamily . THOR ;
11541175 explorerUrl = 'https://runescan.io/tx/?network=stagenet' ;
1176+ addressPrefix = 'sthor' ;
11551177}
11561178
11571179class Baby extends Mainnet implements AccountNetwork {
11581180 name = 'Babylon' ;
11591181 family = CoinFamily . BABY ;
11601182 explorerUrl = 'https://www.mintscan.io/babylon/tx/' ;
1183+ addressPrefix = 'bbn' ;
11611184}
11621185
11631186class BabyTestnet extends Testnet implements AccountNetwork {
11641187 name = 'Testnet Babylon' ;
11651188 family = CoinFamily . BABY ;
11661189 explorerUrl = 'https://www.mintscan.io/babylon-testnet/tx/' ;
1190+ addressPrefix = 'bbn' ;
11671191}
11681192
11691193class Mantra extends Mainnet implements CosmosNetwork {
@@ -1194,12 +1218,14 @@ class Cronos extends Mainnet implements AccountNetwork {
11941218 name = 'Cronos POS' ;
11951219 family = CoinFamily . CRONOS ;
11961220 explorerUrl = 'https://cronos-pos.org/explorer/tx/' ;
1221+ addressPrefix = 'cro' ;
11971222}
11981223
11991224class CronosTestnet extends Testnet implements AccountNetwork {
12001225 name = 'Testnet Cronos POS' ;
12011226 family = CoinFamily . CRONOS ;
12021227 explorerUrl = 'https://cronos-pos.org/explorer/croeseid4/tx/' ;
1228+ addressPrefix = 'tcro' ;
12031229}
12041230
12051231class FetchAi extends Mainnet implements AccountNetwork {
@@ -1218,36 +1244,42 @@ class Initia extends Mainnet implements AccountNetwork {
12181244 name = 'Initia' ;
12191245 family = CoinFamily . INITIA ;
12201246 explorerUrl = 'https://scan.initia.xyz/interwoven-1/txs/' ;
1247+ addressPrefix = 'init' ;
12211248}
12221249
12231250class InitiaTestnet extends Testnet implements AccountNetwork {
12241251 name = 'Testnet Initia' ;
12251252 family = CoinFamily . INITIA ;
12261253 explorerUrl = 'https://scan.testnet.initia.xyz/initiation-2/txs/' ;
1254+ addressPrefix = 'init' ;
12271255}
12281256
12291257class Asi extends Mainnet implements AccountNetwork {
12301258 name = 'Fetch Native' ;
12311259 family = CoinFamily . ASI ;
12321260 explorerUrl = 'https://companion.fetch.ai/fetchhub-4/transactions/' ;
1261+ addressPrefix = 'fetch' ;
12331262}
12341263
12351264class AsiTestnet extends Testnet implements AccountNetwork {
12361265 name = 'Testnet Fetch Native' ;
12371266 family = CoinFamily . ASI ;
12381267 explorerUrl = 'https://companion.fetch.ai/dorado-1/transactions/' ;
1268+ addressPrefix = 'fetch' ;
12391269}
12401270
12411271class Islm extends Mainnet implements AccountNetwork {
12421272 name = 'Haqq' ;
12431273 family = CoinFamily . ISLM ;
12441274 explorerUrl = 'https://ping.pub/haqq/tx/' ;
1275+ addressPrefix = 'haqq' ;
12451276}
12461277
12471278class IslmTestnet extends Testnet implements AccountNetwork {
12481279 name = 'HaqqTestnet' ;
12491280 family = CoinFamily . ISLM ;
12501281 explorerUrl = 'https://testnet.ping.pub/haqq/tx/' ;
1282+ addressPrefix = 'haqq' ;
12511283}
12521284
12531285class Stx extends Mainnet implements StacksNetwork {
0 commit comments