Skip to content

Commit

Permalink
ASI upgrade: fixing hardcoded address prefix in token faucet (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva authored May 31, 2024
1 parent 85cdad9 commit e95659a
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 74 deletions.
2 changes: 1 addition & 1 deletion imports/ui/home/token-tap/tokenTap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class TokenTap extends Component {

validCosmosAddress = (address) => {

return useBech32Config(defaultBech32Config("fetch"), () => {
return useBech32Config(defaultBech32Config(Meteor.settings.public.bech32PrefixAccAddr), () => {
try {
AccAddress.fromBech32(address);
} catch (e) {
Expand Down
152 changes: 79 additions & 73 deletions settings-files/eridanus.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,82 @@
{
"public": {
"chainName": "eridanus-1",
"chainId": "eridanus-1",
"gtm": "",
"genesisTime": "2022-08-05T11:34:40Z",
"slashingWindow": 250,
"uptimeWindow": 250,
"initialPageSize": 30,
"secp256k1": false,
"bech32PrefixAccAddr": "fetch",
"bech32PrefixAccPub": "fetchpub",
"bech32PrefixValAddr": "fetchvaloper",
"bech32PrefixValPub": "fetchvaloperpub",
"bech32PrefixConsAddr": "fetchvalcons",
"bech32PrefixConsPub": "fetchvalconspub",
"tokenTap": true,
"tokenTapURL": "https://faucet-eridanus.t-v3-london.fetch-ai.com/api/v3/claims",
"bondDenom": "atestfet",
"powerReduction": 1000000000000000000,
"coins": [
{
"denom": "atestfet",
"displayName": "TESTFET",
"fraction": 1000000000000000000
},
{
"denom": "nanomobx",
"displayName": "MOBX",
"fraction": 1000000000
},
{
"denom": "ulrn",
"displayName": "LRN",
"fraction": 1000000
}
],
"ledger": {
"coinType": 118,
"appName": "Cosmos",
"appVersion": "2.16.0",
"gasPrice": 5000000000
},
"modules": {
"bank": true,
"supply": true,
"minting": true,
"gov": true,
"distribution": true
},
"coingeckoId": "",
"networks": "",
"banners": false
"public": {
"chainName": "eridanus-1",
"chainId": "eridanus-1",
"gtm": "",
"genesisTime": "2022-04-27T16:30:00Z",
"slashingWindow": 250,
"uptimeWindow": 250,
"initialPageSize": 30,
"secp256k1": false,
"bech32PrefixAccAddr": "asi",
"bech32PrefixAccPub": "asipub",
"bech32PrefixValAddr": "asivaloper",
"bech32PrefixValPub": "asivaloperpub",
"bech32PrefixConsAddr": "asivalcons",
"bech32PrefixConsPub": "asivalconspub",
"tokenTap": true,
"tokenTapURL": "https://faucet-eridanus-1.fetch.ai/api/v3/claims",
"bondDenom": "atestasi",
"powerReduction": 1000000000000000000,
"coins": [
{
"denom": "atestasi",
"displayName": "TESTASI",
"fraction": 1000000000000000000
},
{
"denom": "nanomobx",
"displayName": "MOBX",
"fraction": 1000000000
},
{
"denom": "ulrn",
"displayName": "LRN",
"fraction": 1000000
},
{
"denom": "nanonomx",
"displayName": "NOMX",
"fraction": 1000000000
}
],
"ledger": {
"coinType": 118,
"appName": "Cosmos",
"appVersion": "2.16.0",
"gasPrice": 5000000000
},
"remote": {
"rpc": "https://rpc-eridanus.t-v3-london.fetch-ai.com",
"api": "https://rest-eridanus.t-v3-london.fetch-ai.com"
"modules": {
"bank": true,
"supply": true,
"minting": true,
"gov": true,
"distribution": true
},
"debug": {
"startTimer": true
},
"params": {
"startHeight": 1,
"defaultBlockTime": 5000,
"validatorUpdateWindow": 300,
"blockInterval": 15000,
"transactionsInterval": 5000,
"keybaseFetchingInterval": 18000000,
"consensusInterval": 1000,
"statusInterval": 7500,
"signingInfoInterval": 1800000,
"proposalInterval": 5000,
"missedBlocksInterval": 60000,
"delegationInterval": 900000
}
}
"coingeckoId": "",
"networks": "",
"banners": false
},
"remote": {
"rpc": "https://rpc-eridanus-1.t-v3-london.fetch-ai.com",
"api": "https://rest-eridanus-1.t-v3-london.fetch-ai.com"
},
"debug": {
"startTimer": true
},
"params": {
"startHeight": 1,
"defaultBlockTime": 5000,
"validatorUpdateWindow": 300,
"blockInterval": 15000,
"transactionsInterval": 5000,
"keybaseFetchingInterval": 18000000,
"consensusInterval": 1000,
"statusInterval": 7500,
"signingInfoInterval": 1800000,
"proposalInterval": 5000,
"missedBlocksInterval": 60000,
"delegationInterval": 900000
}
}

0 comments on commit e95659a

Please sign in to comment.