Skip to content

Commit

Permalink
feat: axelar
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Feb 2, 2022
1 parent 96ce647 commit 87c4866
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 5 deletions.
11 changes: 11 additions & 0 deletions packages/cosmos-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.57](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/cosmos-ts@0.0.56...@injectivelabs/cosmos-ts@0.0.57) (2022-02-02)


### Features

* axelar ([2fc77d3](https://github.com/InjectiveLabs/injective-ts/commit/2fc77d384d94976e06f399b074fecb4663814f62))





## [0.0.56](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/cosmos-ts@0.0.55...@injectivelabs/cosmos-ts@0.0.56) (2022-01-30)

**Note:** Version bump only for package @injectivelabs/cosmos-ts
Expand Down
4 changes: 2 additions & 2 deletions packages/cosmos-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/cosmos-ts",
"description": "Cosmos related wrappers.",
"version": "0.0.56",
"version": "0.0.57",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@cosmjs/stargate": "^0.27.0",
"@cosmjs/tendermint-rpc": "^0.27.0",
"@injectivelabs/exceptions": "^0.0.38",
"@injectivelabs/token-metadata": "^0.0.52",
"@injectivelabs/token-metadata": "^0.0.53",
"@injectivelabs/ts-types": "^0.0.34",
"@injectivelabs/utils": "^0.0.47",
"@keplr-wallet/common": "^0.9.10",
Expand Down
40 changes: 40 additions & 0 deletions packages/cosmos-ts/src/Keplr/chain/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,44 @@ export default {
},
features: ['stargate', 'ibc-transfer', 'no-legacy-stdTx', 'ibc-go'],
},
[CosmosChainId.Axelar]: {
rpc: 'https://rpc-axelar.keplr.app',
rest: 'https://lcd-axelar.keplr.app',
chainId: 'axelar-dojo-1',
chainName: 'Axelar',
stakeCurrency: {
coinDenom: 'AXL',
coinMinimalDenom: 'uaxl',
coinDecimals: 6,
coinImageUrl: 'https://dhj8dql1kzq2v.cloudfront.net/white/axelar.png',
},
bip44: {
coinType: 118,
},
bech32Config: Bech32Address.defaultBech32Config('axelar'),
currencies: [
{
coinDenom: 'AXL',
coinMinimalDenom: 'uaxl',
coinDecimals: 6,
coinImageUrl: 'https://dhj8dql1kzq2v.cloudfront.net/white/axelar.png',
},
],
feeCurrencies: [
{
coinDenom: 'AXL',
coinMinimalDenom: 'uaxl',
coinDecimals: 6,
coinImageUrl: 'https://dhj8dql1kzq2v.cloudfront.net/white/axelar.png',
},
],
gasPriceStep: {
low: 0.05,
average: 0.075,
high: 0.1,
},
features: ['stargate', 'ibc-transfer', 'no-legacy-stdTx', 'ibc-go'],
chainSymbolImageUrl:
'https://dhj8dql1kzq2v.cloudfront.net/white/axelar.png',
},
} as Record<string, any>
5 changes: 5 additions & 0 deletions packages/cosmos-ts/src/Keplr/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const getEndpointFromChainId = (
rpc: 'https://rpc.chihuahua.wtf',
rest: 'https://api.chihuahua.wtf',
}
case CosmosChainId.Axelar:
return {
rpc: 'https://rpc.chihuahua.wtf',
rest: 'https://api.chihuahua.wtf',
}
default:
throw new Error(`Endpoints for ${chainId} not found`)
}
Expand Down
5 changes: 5 additions & 0 deletions packages/cosmos-ts/src/Keplr/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export enum CosmosChainId {
Terra = 'columbus-5',
TerraUST = 'columbus-5',
Chihuahua = 'chihuahua-1',
Axelar = 'axelar-dojo-1',
}

export enum TestnetCosmosChainId {
Expand Down Expand Up @@ -52,6 +53,10 @@ export const cosmosNativeDenomsFromChainId = {
...erc20TokenMeta.getMetaBySymbol('HUAHUA'),
denom: 'uhuahua',
},
[CosmosChainId.Axelar]: {
...erc20TokenMeta.getMetaBySymbol('AXL'),
denom: 'uaxl',
},
[TestnetCosmosChainId.Cosmoshub]: {
...erc20TokenMeta.getMetaBySymbol('UPHOTON'),
denom: 'uphoton',
Expand Down
8 changes: 8 additions & 0 deletions packages/protocol-stats/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.4](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/protocol-stats@0.0.3...@injectivelabs/protocol-stats@0.0.4) (2022-02-02)

**Note:** Version bump only for package @injectivelabs/protocol-stats





## [0.0.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/protocol-stats@0.0.2...@injectivelabs/protocol-stats@0.0.3) (2022-01-31)


Expand Down
4 changes: 2 additions & 2 deletions packages/protocol-stats/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/protocol-stats",
"description": "A simple library for collecting and reporting protocol statistics",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -28,7 +28,7 @@
},
"dependencies": {
"@injectivelabs/exceptions": "^0.0.38",
"@injectivelabs/token-metadata": "^0.0.52",
"@injectivelabs/token-metadata": "^0.0.53",
"@injectivelabs/token-utils": "^0.0.10",
"@injectivelabs/ts-types": "^0.0.34",
"@injectivelabs/utils": "^0.0.47",
Expand Down
11 changes: 11 additions & 0 deletions packages/token-metadata/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.0.53](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@0.0.52...@injectivelabs/token-metadata@0.0.53) (2022-02-02)


### Features

* axelar ([2fc77d3](https://github.com/InjectiveLabs/injective-ts/commit/2fc77d384d94976e06f399b074fecb4663814f62))





## [0.0.52](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@0.0.51...@injectivelabs/token-metadata@0.0.52) (2022-01-30)

**Note:** Version bump only for package @injectivelabs/token-metadata
Expand Down
2 changes: 1 addition & 1 deletion packages/token-metadata/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@injectivelabs/token-metadata",
"description": "ERC20 token metadata. Name, symbol, decimals, etc.",
"version": "0.0.52",
"version": "0.0.53",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Binary file added packages/token-metadata/src/images/axelar.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions packages/token-metadata/src/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,4 +531,22 @@ export default {
address: '',
coinGeckoId: 'chihuahua-token',
},

AXL: {
name: 'Axelar',
logo: 'axelar.jpeg',
symbol: 'AXL',
decimals: 6,
address: '0x3eacbDC6C382ea22b78aCc158581A55aaF4ef3Cc',
coinGeckoId: 'axelar',
},

UAXL: {
name: 'Axelar',
logo: 'axelar.jpeg',
symbol: 'AXL',
decimals: 6,
address: '0x3eacbDC6C382ea22b78aCc158581A55aaF4ef3Cc',
coinGeckoId: 'axelar',
},
}

0 comments on commit 87c4866

Please sign in to comment.