From 92a1599a589a78bd8b71b227d22348d72a7956e2 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 18:57:03 +0200 Subject: [PATCH 01/86] chore(release): publish - @injectivelabs/bridge-ts@1.13.0 - @injectivelabs/contracts@1.13.0 - @injectivelabs/exceptions@1.13.0 - @injectivelabs/networks@1.13.0 - @injectivelabs/sdk-ts@1.13.0 - @injectivelabs/sdk-ui-ts@1.13.0 - @injectivelabs/test-utils@1.13.0 - @injectivelabs/token-metadata@1.13.0 - @injectivelabs/token-utils@1.13.0 - @injectivelabs/ts-types@1.13.0 - @injectivelabs/utils@1.13.0 - @injectivelabs/wallet-ts@1.13.0 --- packages/bridge-ts/CHANGELOG.md | 8 ++++++++ packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/CHANGELOG.md | 8 ++++++++ packages/contracts/package.json | 10 +++++----- packages/exceptions/CHANGELOG.md | 8 ++++++++ packages/exceptions/package.json | 4 ++-- packages/networks/CHANGELOG.md | 8 ++++++++ packages/networks/package.json | 8 ++++---- packages/sdk-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/CHANGELOG.md | 8 ++++++++ packages/test-utils/package.json | 2 +- packages/token-metadata/CHANGELOG.md | 8 ++++++++ packages/token-metadata/package.json | 10 +++++----- packages/token-utils/CHANGELOG.md | 8 ++++++++ packages/token-utils/package.json | 6 +++--- packages/ts-types/CHANGELOG.md | 8 ++++++++ packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 8 ++++++++ packages/utils/package.json | 6 +++--- packages/wallet-ts/CHANGELOG.md | 8 ++++++++ packages/wallet-ts/package.json | 12 ++++++------ 24 files changed, 148 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index ddb08aaf2..1263733c5 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.12.2-beta.19...@injectivelabs/bridge-ts@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + + + + + ## [1.12.2-beta.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.12.2-beta.18...@injectivelabs/bridge-ts@1.12.2-beta.19) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 3f77261b9..7525b53be 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.12.2-beta.19", + "version": "1.13.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/sdk-ts": "^1.13.0-beta.3", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 64fa37048..8e7d01461 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.12.2-beta.4...@injectivelabs/contracts@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/contracts + + + + + ## [1.12.2-beta.4](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.12.2-beta.3...@injectivelabs/contracts@1.12.2-beta.4) (2023-09-12) **Note:** Version bump only for package @injectivelabs/contracts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index df6ccbf34..3260b843f 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.12.2-beta.4", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index e24efec33..78e635be5 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.12.2-beta.1...@injectivelabs/exceptions@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + ## [1.12.2-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.12.2-beta.0...@injectivelabs/exceptions@1.12.2-beta.1) (2023-09-12) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 65f1976d1..006bf6ac1 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.12.2-beta.1", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.12.2-beta.1", + "@injectivelabs/ts-types": "^1.13.0", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index bac6a407c..68278f500 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.12.2-beta.4...@injectivelabs/networks@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.12.2-beta.4](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.12.2-beta.3...@injectivelabs/networks@1.12.2-beta.4) (2023-09-12) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index b2615c47d..5f2dda576 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.12.2-beta.4", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index e41393492..6490f46d9 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0-beta.3...@injectivelabs/sdk-ts@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + # [1.13.0-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0-beta.2...@injectivelabs/sdk-ts@1.13.0-beta.3) (2023-09-22) ### Features diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 8520b633b..c431cef1e 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.13.0-beta.3", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.12.2-beta.1", + "@injectivelabs/exceptions": "^1.13.0", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.9", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/test-utils": "^1.12.1", - "@injectivelabs/token-metadata": "^1.12.2-beta.13", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/test-utils": "^1.13.0", + "@injectivelabs/token-metadata": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 413c13952..9807dd562 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0-beta.3...@injectivelabs/sdk-ui-ts@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + + + + + # [1.13.0-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0-beta.2...@injectivelabs/sdk-ui-ts@1.13.0-beta.3) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 2dee0370f..aefe0d30f 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.13.0-beta.3", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,14 +34,14 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.12.2-beta.4", - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/sdk-ts": "^1.13.0-beta.3", - "@injectivelabs/token-metadata": "^1.12.2-beta.13", - "@injectivelabs/token-utils": "^1.12.2-beta.2", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/contracts": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/token-metadata": "^1.13.0", + "@injectivelabs/token-utils": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 314e8f484..a0932d9b8 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.12.1...@injectivelabs/test-utils@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.12.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.12.0...@injectivelabs/test-utils@1.12.1) (2023-08-31) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index a932ffaac..83fae655e 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.12.1", + "version": "1.13.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 8890db59c..eb5f3b66f 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.12.2-beta.13...@injectivelabs/token-metadata@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-metadata + + + + + ## [1.12.2-beta.13](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.12.2-beta.12...@injectivelabs/token-metadata@1.12.2-beta.13) (2023-09-21) **Note:** Version bump only for package @injectivelabs/token-metadata diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index ecbcefb1c..6ae132526 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.12.2-beta.13", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/CHANGELOG.md b/packages/token-utils/CHANGELOG.md index edfebbfed..4724159f0 100644 --- a/packages/token-utils/CHANGELOG.md +++ b/packages/token-utils/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.12.2-beta.2...@injectivelabs/token-utils@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-utils + + + + + ## [1.12.2-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.12.2-beta.1...@injectivelabs/token-utils@1.12.2-beta.2) (2023-09-12) **Note:** Version bump only for package @injectivelabs/token-utils diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 5bf2fd86a..910518a21 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.12.2-beta.2", + "version": "1.13.0", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 75e4fe113..3404f285a 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.12.2-beta.1...@injectivelabs/ts-types@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + ## [1.12.2-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.12.2-beta.0...@injectivelabs/ts-types@1.12.2-beta.1) (2023-09-12) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 14a5f1304..56b4cb341 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.12.2-beta.1", + "version": "1.13.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 54b97d971..92c355f15 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.12.2-beta.2...@injectivelabs/utils@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.12.2-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.12.2-beta.1...@injectivelabs/utils@1.12.2-beta.2) (2023-09-12) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index cc37b6fd8..70792f11b 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.12.2-beta.2", + "version": "1.13.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/ts-types": "^1.12.2-beta.1", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index b8d40d8dd..302f62b62 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -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. +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.12.2-beta.21...@injectivelabs/wallet-ts@1.13.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.12.2-beta.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.12.2-beta.20...@injectivelabs/wallet-ts@1.12.2-beta.21) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index e2664c53f..9a8fc90e5 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.12.2-beta.21", + "version": "1.13.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.12.2-beta.1", - "@injectivelabs/networks": "^1.12.2-beta.4", - "@injectivelabs/sdk-ts": "^1.13.0-beta.3", - "@injectivelabs/ts-types": "^1.12.2-beta.1", - "@injectivelabs/utils": "^1.12.2-beta.2", + "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/networks": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/utils": "^1.13.0", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 186eebf3105f21b8f194a325cd9eb8a868db202a Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 19:00:08 +0200 Subject: [PATCH 02/86] chore: minor --- .gitbook/contracts.md | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .gitbook/contracts.md diff --git a/.gitbook/contracts.md b/.gitbook/contracts.md deleted file mode 100644 index 39387df11..000000000 --- a/.gitbook/contracts.md +++ /dev/null @@ -1,6 +0,0 @@ -# Contracts - -### What is CosmWasm?[​](https://docs.injective.network/develop/guides/cosmwasm-dapps/#what-is-cosmwasm) - -CosmWasm is a novel smart contracting platform built for the Cosmos ecosystem. You can learn more about CosmWasm [here](https://docs.cosmwasm.com/docs/), or see the [CosmWasm Book](https://book.cosmwasm.com/index.html) for a guide on creating CosmWasm smart contracts. - From f18ae29b91cd23f63171760d59fa5eadf440f895 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 19:08:33 +0200 Subject: [PATCH 03/86] fix: bind --- packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.ts index 5a00c44cd..4f7460e60 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.ts @@ -160,7 +160,7 @@ export class ChainGrpcBankApi extends BaseGrpcConsumer { async fetchAllTotalSupply( pagination: PaginationOption = { limit: MAX_LIMIT_FOR_SUPPLY }, ) { - return fetchAllWithPagination(pagination, this.fetchTotalSupply) + return fetchAllWithPagination(pagination, this.fetchTotalSupply.bind(this)) } async fetchSupplyOf(denom: string) { From d8b13058a1636fe1d9d498dfdcc89bf4b68fc99c Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 22 Sep 2023 17:12:50 +0000 Subject: [PATCH 04/86] chore(release): publish - @injectivelabs/bridge-ts@1.13.1-beta.0 - @injectivelabs/sdk-ts@1.13.1-beta.0 - @injectivelabs/sdk-ui-ts@1.13.1-beta.0 - @injectivelabs/wallet-ts@1.13.1-beta.0 --- packages/bridge-ts/CHANGELOG.md | 6 +++--- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/CHANGELOG.md | 8 +++++--- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/CHANGELOG.md | 6 +++--- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/CHANGELOG.md | 6 +++--- packages/wallet-ts/package.json | 4 ++-- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 1263733c5..20ced5261 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.12.2-beta.19...@injectivelabs/bridge-ts@1.13.0) (2023-09-22) +## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.0...@injectivelabs/bridge-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.12.2-beta.19...@injectivelabs/bridge-ts@1.13.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/bridge-ts ## [1.12.2-beta.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.12.2-beta.18...@injectivelabs/bridge-ts@1.12.2-beta.19) (2023-09-22) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 7525b53be..0d87fa811 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.13.0", + "version": "1.13.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.13.0", "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.1-beta.0", "@injectivelabs/ts-types": "^1.13.0", "@injectivelabs/utils": "^1.13.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 6490f46d9..774978613 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,13 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0-beta.3...@injectivelabs/sdk-ts@1.13.0) (2023-09-22) - -**Note:** Version bump only for package @injectivelabs/sdk-ts +## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0...@injectivelabs/sdk-ts@1.13.1-beta.0) (2023-09-22) +### Bug Fixes +- bind ([f18ae29](https://github.com/InjectiveLabs/injective-ts/commit/f18ae29b91cd23f63171760d59fa5eadf440f895)) +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0-beta.3...@injectivelabs/sdk-ts@1.13.0) (2023-09-22) +**Note:** Version bump only for package @injectivelabs/sdk-ts # [1.13.0-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0-beta.2...@injectivelabs/sdk-ts@1.13.0-beta.3) (2023-09-22) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index c431cef1e..d3d2f4c31 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.13.0", + "version": "1.13.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 9807dd562..e568bc48e 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0-beta.3...@injectivelabs/sdk-ui-ts@1.13.0) (2023-09-22) +## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0-beta.3...@injectivelabs/sdk-ui-ts@1.13.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts # [1.13.0-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0-beta.2...@injectivelabs/sdk-ui-ts@1.13.0-beta.3) (2023-09-22) diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index aefe0d30f..14b79d630 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.13.0", + "version": "1.13.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.13.0", "@injectivelabs/exceptions": "^1.13.0", "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.1-beta.0", "@injectivelabs/token-metadata": "^1.13.0", "@injectivelabs/token-utils": "^1.13.0", "@injectivelabs/ts-types": "^1.13.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 302f62b62..badbb0dbd 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.12.2-beta.21...@injectivelabs/wallet-ts@1.13.0) (2023-09-22) +## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.0...@injectivelabs/wallet-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts +# [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.12.2-beta.21...@injectivelabs/wallet-ts@1.13.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/wallet-ts ## [1.12.2-beta.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.12.2-beta.20...@injectivelabs/wallet-ts@1.12.2-beta.21) (2023-09-22) diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9a8fc90e5..4e58bae0c 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.13.0", + "version": "1.13.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.13.0", "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.0", + "@injectivelabs/sdk-ts": "^1.13.1-beta.0", "@injectivelabs/ts-types": "^1.13.0", "@injectivelabs/utils": "^1.13.0", "@keplr-wallet/cosmos": "^0.11.58", From f834622337fcb5aa5b0fad53aaea346c7a11099d Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 17:20:54 +0000 Subject: [PATCH 05/86] GITBOOK-18: change request with no subject merged in GitBook --- .gitbook/SUMMARY.md | 3 ++- .gitbook/contracts/README.md | 4 ++-- .gitbook/contracts/injective-name-service.md | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index f2719e3af..912814bd0 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -75,7 +75,8 @@ * [Ethereum](bridge/ethereum.md) * [IBC](bridge/ibc.md) * [Wormhole](bridge/wormhole.md) -* [Contracts](contracts.md) +* [Contracts](contracts/README.md) + * [Injective Name Service](contracts/injective-name-service.md) * [Building dApps](building-dapps/README.md) * [Configuring Nuxt](building-dapps/configuring-nuxt.md) * [Configuring React](building-dapps/configuring-react.md) diff --git a/.gitbook/contracts/README.md b/.gitbook/contracts/README.md index 6ab29fd7a..293ca8678 100644 --- a/.gitbook/contracts/README.md +++ b/.gitbook/contracts/README.md @@ -1,10 +1,10 @@ # Contracts -### What is CosmWasm?[​](https://docs.injective.network/develop/guides/cosmwasm-dapps/#what-is-cosmwasm) +#### [What is CosmWasm?](./#what-is-cosmwasm-)[​](https://docs.injective.network/develop/guides/cosmwasm-dapps/#what-is-cosmwasm) CosmWasm is a novel smart contracting platform built for the Cosmos ecosystem. You can learn more about CosmWasm [here](https://docs.cosmwasm.com/docs/), or see the [CosmWasm Book](https://book.cosmwasm.com/index.html) for a guide on creating CosmWasm smart contracts. -### Specific Cosmwasm Contracts +#### Specific Cosmwasm Contracts | Topic | Description | | --------------------------------------------------- | ---------------------- | diff --git a/.gitbook/contracts/injective-name-service.md b/.gitbook/contracts/injective-name-service.md index 0e93a62ab..b37472767 100644 --- a/.gitbook/contracts/injective-name-service.md +++ b/.gitbook/contracts/injective-name-service.md @@ -8,7 +8,7 @@ Example code snippets to resolve .inj domain name. ### Domain Resolution -- Get resolver address +* Get resolver address ```ts import { getNetworkEndpoints, Network } from '@injectivelabs/networks' @@ -41,7 +41,7 @@ const resolverAddress = InjNameServiceQueryTransformer.resolverAddressResponseTo console.log(resolverAddress) ``` -- Get address for .inj domain name. +* Get address for .inj domain name. ```ts import { getNetworkEndpoints, Network } from '@injectivelabs/networks' @@ -83,7 +83,7 @@ console.log(injectiveAddress) ### Reverse Resolution -- Get primary name for injective address. +* Get primary name for injective address. ```ts import { getNetworkEndpoints, Network } from '@injectivelabs/networks' From 0c121f5174304948828d6b581179ed6cf4edb72f Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 17:39:56 +0000 Subject: [PATCH 06/86] GITBOOK-19: change request with no subject merged in GitBook --- .gitbook/contracts/injective-name-service.md | 24 ++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.gitbook/contracts/injective-name-service.md b/.gitbook/contracts/injective-name-service.md index b37472767..fd70810bf 100644 --- a/.gitbook/contracts/injective-name-service.md +++ b/.gitbook/contracts/injective-name-service.md @@ -1,8 +1,28 @@ # Injective Name Service -Within this section we are going to have a look how to query the Injective name service contracts. +Within this section, we will look at how to query the Injective name service contracts. -## Querying +## Abstraction Service + +You can use our `InjNameService` [abstraction](../../packages/sdk-ui-ts/src/services/nameservice/InjNameService.ts) to query the smart contracts with a single method call. Below this example, you can also find the raw implementation on how to query the smart contracts in case you need more flexibility. + +
import { getNetworkEndpoints, Network } from '@injectivelabs/network'
+import { InjNameService } from '@injectivelabs/sdk-ui-ts'
+
+(async (){
+    const injNameService = new InjNameService(Network.Testnet)
+
+    const name = 'ninja.inj'
+
+    // Fetch the address for the particular name
+    const address = await injNameService.fetchInjAddress(name) 
+
+    // Fetch the name for the particular address
+    const nameFromAddress = await injNameService.fetchInjName(address)
+})()
+
+ +## Raw Smart Contract Querying Example code snippets to resolve .inj domain name. From 8aa18d59e5e000ee7ffb32b189eb7f9cf94280c1 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 19:41:04 +0200 Subject: [PATCH 07/86] chore(release): publish - @injectivelabs/bridge-ts@1.13.1-beta.1 - @injectivelabs/contracts@1.13.1-beta.1 - @injectivelabs/exceptions@1.13.1-beta.1 - @injectivelabs/networks@1.13.1-beta.1 - @injectivelabs/sdk-ts@1.13.1-beta.1 - @injectivelabs/sdk-ui-ts@1.13.1-beta.1 - @injectivelabs/test-utils@1.13.1-beta.1 - @injectivelabs/token-metadata@1.13.1-beta.1 - @injectivelabs/token-utils@1.13.1-beta.1 - @injectivelabs/ts-types@1.13.1-beta.1 - @injectivelabs/utils@1.13.1-beta.1 - @injectivelabs/wallet-ts@1.13.1-beta.1 --- packages/bridge-ts/CHANGELOG.md | 8 ++++++++ packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/CHANGELOG.md | 8 ++++++++ packages/contracts/package.json | 10 +++++----- packages/exceptions/CHANGELOG.md | 8 ++++++++ packages/exceptions/package.json | 4 ++-- packages/networks/CHANGELOG.md | 8 ++++++++ packages/networks/package.json | 8 ++++---- packages/sdk-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/CHANGELOG.md | 8 ++++++++ packages/test-utils/package.json | 2 +- packages/token-metadata/CHANGELOG.md | 8 ++++++++ packages/token-metadata/package.json | 10 +++++----- packages/token-utils/CHANGELOG.md | 8 ++++++++ packages/token-utils/package.json | 6 +++--- packages/ts-types/CHANGELOG.md | 8 ++++++++ packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 8 ++++++++ packages/utils/package.json | 6 +++--- packages/wallet-ts/CHANGELOG.md | 8 ++++++++ packages/wallet-ts/package.json | 12 ++++++------ 24 files changed, 148 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 20ced5261..de95e3d88 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.0...@injectivelabs/bridge-ts@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + + + + + ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.0...@injectivelabs/bridge-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 0d87fa811..44b362970 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.13.1-beta.0", + "version": "1.13.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.1-beta.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 8e7d01461..8a54db381 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.0...@injectivelabs/contracts@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/contracts + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.12.2-beta.4...@injectivelabs/contracts@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 3260b843f..7a1a5b230 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 78e635be5..891b59e3c 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.0...@injectivelabs/exceptions@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.12.2-beta.1...@injectivelabs/exceptions@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 006bf6ac1..980823edb 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/ts-types": "^1.13.1-beta.1", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 68278f500..691aeef2d 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.0...@injectivelabs/networks@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.12.2-beta.4...@injectivelabs/networks@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index 5f2dda576..995051a5d 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 774978613..a26fcf28b 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.0...@injectivelabs/sdk-ts@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0...@injectivelabs/sdk-ts@1.13.1-beta.0) (2023-09-22) ### Bug Fixes diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index d3d2f4c31..323ac0265 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.13.1-beta.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.9", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/test-utils": "^1.13.0", - "@injectivelabs/token-metadata": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/test-utils": "^1.13.1-beta.1", + "@injectivelabs/token-metadata": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index e568bc48e..205b926dc 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + + + + + ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 14b79d630..a74abc696 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.13.1-beta.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,14 +34,14 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.13.0", - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.1-beta.0", - "@injectivelabs/token-metadata": "^1.13.0", - "@injectivelabs/token-utils": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/contracts": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.1", + "@injectivelabs/token-metadata": "^1.13.1-beta.1", + "@injectivelabs/token-utils": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index a0932d9b8..0ed9840f7 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.0...@injectivelabs/test-utils@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.12.1...@injectivelabs/test-utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 83fae655e..93bd33d01 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index eb5f3b66f..07a417438 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.0...@injectivelabs/token-metadata@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-metadata + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.12.2-beta.13...@injectivelabs/token-metadata@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-metadata diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 6ae132526..f0bafe51a 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/CHANGELOG.md b/packages/token-utils/CHANGELOG.md index 4724159f0..cefab1b65 100644 --- a/packages/token-utils/CHANGELOG.md +++ b/packages/token-utils/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.0...@injectivelabs/token-utils@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-utils + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.12.2-beta.2...@injectivelabs/token-utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 910518a21..920e0dd48 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.13.0", + "version": "1.13.1-beta.1", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 3404f285a..f4ccc4622 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.0...@injectivelabs/ts-types@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.12.2-beta.1...@injectivelabs/ts-types@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 56b4cb341..b7c4e088a 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 92c355f15..923053e31 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.0...@injectivelabs/utils@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.12.2-beta.2...@injectivelabs/utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 70792f11b..d437bfe16 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.13.0", + "version": "1.13.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/ts-types": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index badbb0dbd..5fe51d7a0 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -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. +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.0...@injectivelabs/wallet-ts@1.13.1-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.0...@injectivelabs/wallet-ts@1.13.1-beta.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 4e58bae0c..fc85f3833 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.13.1-beta.0", + "version": "1.13.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.13.0", - "@injectivelabs/networks": "^1.13.0", - "@injectivelabs/sdk-ts": "^1.13.1-beta.0", - "@injectivelabs/ts-types": "^1.13.0", - "@injectivelabs/utils": "^1.13.0", + "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/utils": "^1.13.1-beta.1", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 5345952a4e1c178c14d8c10dd094fb698316eab2 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 17:50:21 +0000 Subject: [PATCH 08/86] GITBOOK-20: change request with no subject merged in GitBook --- .gitbook/contracts/injective-name-service.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitbook/contracts/injective-name-service.md b/.gitbook/contracts/injective-name-service.md index fd70810bf..7d042afd4 100644 --- a/.gitbook/contracts/injective-name-service.md +++ b/.gitbook/contracts/injective-name-service.md @@ -9,17 +9,14 @@ You can use our `InjNameService` [abstraction](../../packages/sdk-ui-ts/src/serv
import { getNetworkEndpoints, Network } from '@injectivelabs/network'
 import { InjNameService } from '@injectivelabs/sdk-ui-ts'
 
-(async (){
-    const injNameService = new InjNameService(Network.Testnet)
-
-    const name = 'ninja.inj'
+const injNameService = new InjNameService(Network.Testnet)
+const name = 'ninja.inj'
 
-    // Fetch the address for the particular name
-    const address = await injNameService.fetchInjAddress(name) 
+// Fetch the address for the particular name
+const addressForName = await injNameService.fetchInjAddress(name) 
 
-    // Fetch the name for the particular address
-    const nameFromAddress = await injNameService.fetchInjName(address)
-})()
+// Fetch the name for the particular address
+const nameFromAddress = await injNameService.fetchInjName(addressForName)
 
## Raw Smart Contract Querying From a89c95f58b1857a18e1f8ce581d51432c326d7b4 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 22 Sep 2023 20:22:36 +0200 Subject: [PATCH 09/86] fix: minor inj address check --- packages/token-metadata/src/TokenFactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/token-metadata/src/TokenFactory.ts b/packages/token-metadata/src/TokenFactory.ts index 640cb3990..982a81aa1 100644 --- a/packages/token-metadata/src/TokenFactory.ts +++ b/packages/token-metadata/src/TokenFactory.ts @@ -151,7 +151,7 @@ export class TokenFactory { ) } - if (address.startsWith('inj')) { + if (address.startsWith('inj') && address.length === 42) { const tokenMeta = this.tokenMetaUtils.getMetaByAddress(address) return tokenMeta From f7d0d9a9af57b7002518861bd416154c9849da08 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 22 Sep 2023 18:27:20 +0000 Subject: [PATCH 10/86] chore(release): publish - @injectivelabs/bridge-ts@1.13.1-beta.2 - @injectivelabs/sdk-ts@1.13.1-beta.2 - @injectivelabs/sdk-ui-ts@1.13.1-beta.2 - @injectivelabs/token-metadata@1.13.1-beta.2 - @injectivelabs/wallet-ts@1.13.1-beta.2 --- packages/bridge-ts/CHANGELOG.md | 6 +++--- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/CHANGELOG.md | 6 +++--- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/CHANGELOG.md | 6 +++--- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/CHANGELOG.md | 12 +++++------- packages/token-metadata/package.json | 2 +- packages/wallet-ts/CHANGELOG.md | 6 +++--- packages/wallet-ts/package.json | 4 ++-- 10 files changed, 27 insertions(+), 29 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index de95e3d88..743a3d3b7 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.0...@injectivelabs/bridge-ts@1.13.1-beta.1) (2023-09-22) +## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.1...@injectivelabs/bridge-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.0...@injectivelabs/bridge-ts@1.13.1-beta.1) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/bridge-ts ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.0...@injectivelabs/bridge-ts@1.13.1-beta.0) (2023-09-22) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 44b362970..2af7a2359 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.13.1-beta.1", + "version": "1.13.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.2", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index a26fcf28b..fbb76f888 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.0...@injectivelabs/sdk-ts@1.13.1-beta.1) (2023-09-22) +## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.1...@injectivelabs/sdk-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ts +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.0...@injectivelabs/sdk-ts@1.13.1-beta.1) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/sdk-ts ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.0...@injectivelabs/sdk-ts@1.13.1-beta.0) (2023-09-22) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 323ac0265..6f04549b6 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.13.1-beta.1", + "version": "1.13.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.13.1-beta.1", "@injectivelabs/test-utils": "^1.13.1-beta.1", - "@injectivelabs/token-metadata": "^1.13.1-beta.1", + "@injectivelabs/token-metadata": "^1.13.1-beta.2", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 205b926dc..4d4b97d80 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.1) (2023-09-22) +## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.1...@injectivelabs/sdk-ui-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.1) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.0...@injectivelabs/sdk-ui-ts@1.13.1-beta.0) (2023-09-22) diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index a74abc696..28691585f 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.13.1-beta.1", + "version": "1.13.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.13.1-beta.1", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.1", - "@injectivelabs/token-metadata": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.2", + "@injectivelabs/token-metadata": "^1.13.1-beta.2", "@injectivelabs/token-utils": "^1.13.1-beta.1", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 07a417438..02654daca 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -3,22 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.0...@injectivelabs/token-metadata@1.13.1-beta.1) (2023-09-22) - -**Note:** Version bump only for package @injectivelabs/token-metadata +## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.1-beta.1...@injectivelabs/token-metadata@1.13.1-beta.2) (2023-09-22) +### Bug Fixes +- minor inj address check ([a89c95f](https://github.com/InjectiveLabs/injective-ts/commit/a89c95f58b1857a18e1f8ce581d51432c326d7b4)) +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.0...@injectivelabs/token-metadata@1.13.1-beta.1) (2023-09-22) +**Note:** Version bump only for package @injectivelabs/token-metadata # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.12.2-beta.13...@injectivelabs/token-metadata@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-metadata - - - - ## [1.12.2-beta.13](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.12.2-beta.12...@injectivelabs/token-metadata@1.12.2-beta.13) (2023-09-21) **Note:** Version bump only for package @injectivelabs/token-metadata diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index f0bafe51a..c53272243 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.13.1-beta.1", + "version": "1.13.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 5fe51d7a0..ae826566c 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,13 +3,13 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.0...@injectivelabs/wallet-ts@1.13.1-beta.1) (2023-09-22) +## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.1...@injectivelabs/wallet-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts +## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.0...@injectivelabs/wallet-ts@1.13.1-beta.1) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/wallet-ts ## [1.13.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.0...@injectivelabs/wallet-ts@1.13.1-beta.0) (2023-09-22) diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index fc85f3833..7efe0da32 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.13.1-beta.1", + "version": "1.13.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.1", + "@injectivelabs/sdk-ts": "^1.13.1-beta.2", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@keplr-wallet/cosmos": "^0.11.58", From c4332e05cc63f0f5b3bc36797970571cf0347643 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Sep 2023 01:42:48 +0200 Subject: [PATCH 11/86] feat: cw20 addr validation --- packages/sdk-ts/src/utils/address.ts | 3 +++ packages/sdk-ui-ts/src/denom/DenomClientAsync.ts | 13 +++++++------ packages/token-metadata/src/TokenFactory.ts | 6 +++--- packages/token-metadata/src/utils.ts | 7 +++++-- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/packages/sdk-ts/src/utils/address.ts b/packages/sdk-ts/src/utils/address.ts index c036ee9d8..1cb2a011c 100644 --- a/packages/sdk-ts/src/utils/address.ts +++ b/packages/sdk-ts/src/utils/address.ts @@ -100,3 +100,6 @@ export const getChecksumAddress = (ethAddress: string) => { return checksumAddress } + +export const isCw20ContractAddress = (address: string) => + address.length === 42 && address.startsWith('inj') diff --git a/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts b/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts index 7f624f53c..84fa84d15 100644 --- a/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts +++ b/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts @@ -9,10 +9,11 @@ import { fromUtf8, DenomClient, InsuranceFund, + ChainGrpcIbcApi, ChainGrpcBankApi, ChainGrpcWasmApi, + isCw20ContractAddress, ChainGrpcInsuranceFundApi, - ChainGrpcIbcApi, } from '@injectivelabs/sdk-ts' import { Web3Client } from '../services/web3/Web3Client' import type { Token } from '@injectivelabs/token-metadata' @@ -116,9 +117,7 @@ export class DenomClientAsync { return getTokenFromAlchemyTokenMetaResponse(denom, response) } - const isCW20 = denom.startsWith('inj') - - if (isCW20) { + if (isCw20ContractAddress(denom)) { const contractAddress = denom const response = await this.chainWasmApi.fetchContractState({ @@ -137,7 +136,7 @@ export class DenomClientAsync { const tokenFactoryAddress = denom.split('/')[2] // CW20 contract (ex: from Wormhole) - if (tokenFactoryAddress.startsWith('inj')) { + if (isCw20ContractAddress(tokenFactoryAddress)) { const response = await this.chainWasmApi.fetchContractState({ contractAddress: tokenFactoryAddress, pagination: { @@ -218,7 +217,9 @@ export class DenomClientAsync { return this.metadatas.find((metadata) => metadata.base === denom) } - const { metadatas } = await this.chainBankApi.fetchDenomsMetadata({ limit: 1000 }) + const { metadatas } = await this.chainBankApi.fetchDenomsMetadata({ + limit: 1000, + }) this.metadatas = metadatas diff --git a/packages/token-metadata/src/TokenFactory.ts b/packages/token-metadata/src/TokenFactory.ts index 982a81aa1..91da45444 100644 --- a/packages/token-metadata/src/TokenFactory.ts +++ b/packages/token-metadata/src/TokenFactory.ts @@ -11,7 +11,7 @@ import { } from './tokens/network' import { Token, TokenMeta, TokenType } from './types' import tokensBySymbol from './tokens/tokens' -import { getTokenFromMeta } from './utils' +import { getTokenFromMeta, isCw20ContractAddress } from './utils' export class TokenFactory { public tokenMetaUtils: TokenMetaUtils @@ -129,7 +129,7 @@ export class TokenFactory { } getCw20DenomTokenMeta(address: string): TokenMeta | undefined { - if (!address.startsWith('inj')) { + if (!isCw20ContractAddress(address)) { throw new GeneralException( new Error(`The address ${address} is not a valid CW20 address`), ) @@ -151,7 +151,7 @@ export class TokenFactory { ) } - if (address.startsWith('inj') && address.length === 42) { + if (isCw20ContractAddress(address)) { const tokenMeta = this.tokenMetaUtils.getMetaByAddress(address) return tokenMeta diff --git a/packages/token-metadata/src/utils.ts b/packages/token-metadata/src/utils.ts index 1e8202ced..47869110b 100644 --- a/packages/token-metadata/src/utils.ts +++ b/packages/token-metadata/src/utils.ts @@ -48,7 +48,7 @@ export const getTokenTypeFromDenom = (denom: string) => { return TokenType.Native } - if (denom.startsWith('inj')) { + if (isCw20ContractAddress(denom)) { return TokenType.Cw20 } @@ -94,7 +94,7 @@ export const getTokenDecimals = (token: Token) => { return token.decimals } - if (token.denom.startsWith('inj')) { + if (isCw20ContractAddress(token.denom)) { return token.cw20?.decimals || token.decimals } @@ -288,3 +288,6 @@ export const getUnknownTokenWithSymbol = (denom: string): Token => { tokenVerification: TokenVerification.Unverified, } as Token } + +export const isCw20ContractAddress = (address: string) => + address.length === 42 && address.startsWith('inj') From fa01fd3d1625ab42d8096977f7615d7b3d9be357 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 22 Sep 2023 23:47:12 +0000 Subject: [PATCH 12/86] chore(release): publish - @injectivelabs/bridge-ts@1.13.1-beta.3 - @injectivelabs/sdk-ts@1.14.0-beta.0 - @injectivelabs/sdk-ui-ts@1.14.0-beta.0 - @injectivelabs/token-metadata@1.14.0-beta.0 - @injectivelabs/wallet-ts@1.13.1-beta.3 --- packages/bridge-ts/CHANGELOG.md | 4 ++++ packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/CHANGELOG.md | 6 ++++++ packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/CHANGELOG.md | 6 ++++++ packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/CHANGELOG.md | 6 ++++++ packages/token-metadata/package.json | 2 +- packages/wallet-ts/CHANGELOG.md | 4 ++++ packages/wallet-ts/package.json | 4 ++-- 10 files changed, 36 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 743a3d3b7..24534d866 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.2...@injectivelabs/bridge-ts@1.13.1-beta.3) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + ## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.1...@injectivelabs/bridge-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 2af7a2359..ac0f7b7d6 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.13.1-beta.2", + "version": "1.13.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.0-beta.0", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index fbb76f888..8d185b9be 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.2...@injectivelabs/sdk-ts@1.14.0-beta.0) (2023-09-22) + +### Features + +- cw20 addr validation ([c4332e0](https://github.com/InjectiveLabs/injective-ts/commit/c4332e05cc63f0f5b3bc36797970571cf0347643)) + ## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.1...@injectivelabs/sdk-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 6f04549b6..8c3eee772 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.13.1-beta.2", + "version": "1.14.0-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.13.1-beta.1", "@injectivelabs/test-utils": "^1.13.1-beta.1", - "@injectivelabs/token-metadata": "^1.13.1-beta.2", + "@injectivelabs/token-metadata": "^1.14.0-beta.0", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 4d4b97d80..ca4efa98c 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.2...@injectivelabs/sdk-ui-ts@1.14.0-beta.0) (2023-09-22) + +### Features + +- cw20 addr validation ([c4332e0](https://github.com/InjectiveLabs/injective-ts/commit/c4332e05cc63f0f5b3bc36797970571cf0347643)) + ## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.1...@injectivelabs/sdk-ui-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 28691585f..383d888a4 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.13.1-beta.2", + "version": "1.14.0-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.13.1-beta.1", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.2", - "@injectivelabs/token-metadata": "^1.13.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.0-beta.0", + "@injectivelabs/token-metadata": "^1.14.0-beta.0", "@injectivelabs/token-utils": "^1.13.1-beta.1", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 02654daca..681260ba7 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.1-beta.2...@injectivelabs/token-metadata@1.14.0-beta.0) (2023-09-22) + +### Features + +- cw20 addr validation ([c4332e0](https://github.com/InjectiveLabs/injective-ts/commit/c4332e05cc63f0f5b3bc36797970571cf0347643)) + ## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.1-beta.1...@injectivelabs/token-metadata@1.13.1-beta.2) (2023-09-22) ### Bug Fixes diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index c53272243..257544823 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.13.1-beta.2", + "version": "1.14.0-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index ae826566c..0c4fcf021 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.2...@injectivelabs/wallet-ts@1.13.1-beta.3) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + ## [1.13.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.1...@injectivelabs/wallet-ts@1.13.1-beta.2) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 7efe0da32..2297abc55 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.13.1-beta.2", + "version": "1.13.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.13.1-beta.1", "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.13.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.0-beta.0", "@injectivelabs/ts-types": "^1.13.1-beta.1", "@injectivelabs/utils": "^1.13.1-beta.1", "@keplr-wallet/cosmos": "^0.11.58", From d4d68fa981c09ddc04c696c4fad9c26800b326e2 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Sep 2023 01:52:19 +0200 Subject: [PATCH 13/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.0-beta.1 - @injectivelabs/contracts@1.14.0-beta.1 - @injectivelabs/exceptions@1.14.0-beta.1 - @injectivelabs/networks@1.14.0-beta.1 - @injectivelabs/sdk-ts@1.14.0-beta.1 - @injectivelabs/sdk-ui-ts@1.14.0-beta.1 - @injectivelabs/test-utils@1.14.0-beta.1 - @injectivelabs/token-metadata@1.14.0-beta.1 - @injectivelabs/token-utils@1.14.0-beta.1 - @injectivelabs/ts-types@1.14.0-beta.1 - @injectivelabs/utils@1.14.0-beta.1 - @injectivelabs/wallet-ts@1.14.0-beta.1 --- packages/bridge-ts/CHANGELOG.md | 8 ++++++++ packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/CHANGELOG.md | 8 ++++++++ packages/contracts/package.json | 10 +++++----- packages/exceptions/CHANGELOG.md | 8 ++++++++ packages/exceptions/package.json | 4 ++-- packages/networks/CHANGELOG.md | 8 ++++++++ packages/networks/package.json | 8 ++++---- packages/sdk-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/CHANGELOG.md | 8 ++++++++ packages/test-utils/package.json | 2 +- packages/token-metadata/CHANGELOG.md | 8 ++++++++ packages/token-metadata/package.json | 10 +++++----- packages/token-utils/CHANGELOG.md | 8 ++++++++ packages/token-utils/package.json | 6 +++--- packages/ts-types/CHANGELOG.md | 8 ++++++++ packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 8 ++++++++ packages/utils/package.json | 6 +++--- packages/wallet-ts/CHANGELOG.md | 8 ++++++++ packages/wallet-ts/package.json | 12 ++++++------ 24 files changed, 148 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 24534d866..8849ae9ed 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.3...@injectivelabs/bridge-ts@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + + + + + ## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.2...@injectivelabs/bridge-ts@1.13.1-beta.3) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index ac0f7b7d6..1cd7f8a9d 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.13.1-beta.3", + "version": "1.14.0-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.0", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/sdk-ts": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 8a54db381..1093d25f6 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.1-beta.1...@injectivelabs/contracts@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/contracts + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.0...@injectivelabs/contracts@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 7a1a5b230..b9a464ac2 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 891b59e3c..4b842bd92 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.1-beta.1...@injectivelabs/exceptions@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.0...@injectivelabs/exceptions@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 980823edb..d17c920ed 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 691aeef2d..77b3860bf 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.1-beta.1...@injectivelabs/networks@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.0...@injectivelabs/networks@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index 995051a5d..9aff203c8 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 8d185b9be..cefbeb370 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.0...@injectivelabs/sdk-ts@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.2...@injectivelabs/sdk-ts@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 8c3eee772..3c2614458 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.0-beta.0", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.9", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/test-utils": "^1.13.1-beta.1", - "@injectivelabs/token-metadata": "^1.14.0-beta.0", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/test-utils": "^1.14.0-beta.1", + "@injectivelabs/token-metadata": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index ca4efa98c..a25ea12ac 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.0...@injectivelabs/sdk-ui-ts@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + + + + + # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.2...@injectivelabs/sdk-ui-ts@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 383d888a4..acee0ba7b 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.0-beta.0", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,14 +34,14 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.13.1-beta.1", - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.0", - "@injectivelabs/token-metadata": "^1.14.0-beta.0", - "@injectivelabs/token-utils": "^1.13.1-beta.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/contracts": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/sdk-ts": "^1.14.0-beta.1", + "@injectivelabs/token-metadata": "^1.14.0-beta.1", + "@injectivelabs/token-utils": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 0ed9840f7..1492847fe 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.1-beta.1...@injectivelabs/test-utils@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.0...@injectivelabs/test-utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 93bd33d01..00e2dadc1 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 681260ba7..4c31e856a 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.0...@injectivelabs/token-metadata@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-metadata + + + + + # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.1-beta.2...@injectivelabs/token-metadata@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 257544823..dcc103ba4 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.0-beta.0", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/CHANGELOG.md b/packages/token-utils/CHANGELOG.md index cefab1b65..b9f5ca712 100644 --- a/packages/token-utils/CHANGELOG.md +++ b/packages/token-utils/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.1-beta.1...@injectivelabs/token-utils@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-utils + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.0...@injectivelabs/token-utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 920e0dd48..818199305 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index f4ccc4622..ead57e10e 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.1-beta.1...@injectivelabs/ts-types@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.0...@injectivelabs/ts-types@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index b7c4e088a..d98ae19c3 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 923053e31..beec365ff 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.1-beta.1...@injectivelabs/utils@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.0...@injectivelabs/utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index d437bfe16..d61917137 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.13.1-beta.1", + "version": "1.14.0-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/ts-types": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 0c4fcf021..2d7c9764d 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -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. +# [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.3...@injectivelabs/wallet-ts@1.14.0-beta.1) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.2...@injectivelabs/wallet-ts@1.13.1-beta.3) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 2297abc55..7bd16c9a8 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.13.1-beta.3", + "version": "1.14.0-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.13.1-beta.1", - "@injectivelabs/networks": "^1.13.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.0", - "@injectivelabs/ts-types": "^1.13.1-beta.1", - "@injectivelabs/utils": "^1.13.1-beta.1", + "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0-beta.1", + "@injectivelabs/sdk-ts": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/utils": "^1.14.0-beta.1", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 7c88568b0c45b4d5f6cc7b47a9f502a2426797af Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Sep 2023 01:53:00 +0200 Subject: [PATCH 14/86] chore: minor --- .github/workflows/dev.yaml | 2 +- .github/workflows/stable.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 68d466ae7..d8136772c 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -42,7 +42,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version --conventional-commits --conventional-prerelease --preid beta --force-git-tag --yes + lerna version patch --conventional-commits --conventional-prerelease --preid beta --force-git-tag --yes lerna publish from-git --force-git-tag --dist-tag next --yes --summary-file - name: 'Broadcast published versions on Slack' diff --git a/.github/workflows/stable.yaml b/.github/workflows/stable.yaml index c9c90f40c..4b1579ac7 100644 --- a/.github/workflows/stable.yaml +++ b/.github/workflows/stable.yaml @@ -42,7 +42,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version --conventional-commits --conventional-graduate --force-git-tag --yes + lerna version patch --conventional-commits --conventional-graduate --force-git-tag --yes lerna publish from-git --force-git-tag --dist-tag latest --yes --summary-file - name: 'Broadcast published versions on Slack' From fe579b3a04c88b2fa8dc2a3c9e211022150227cc Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Sep 2023 01:59:30 +0200 Subject: [PATCH 15/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.0 - @injectivelabs/contracts@1.14.0 - @injectivelabs/exceptions@1.14.0 - @injectivelabs/networks@1.14.0 - @injectivelabs/sdk-ts@1.14.0 - @injectivelabs/sdk-ui-ts@1.14.0 - @injectivelabs/test-utils@1.14.0 - @injectivelabs/token-metadata@1.14.0 - @injectivelabs/token-utils@1.14.0 - @injectivelabs/ts-types@1.14.0 - @injectivelabs/utils@1.14.0 - @injectivelabs/wallet-ts@1.14.0 --- packages/bridge-ts/CHANGELOG.md | 8 ++++++++ packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/CHANGELOG.md | 8 ++++++++ packages/contracts/package.json | 10 +++++----- packages/exceptions/CHANGELOG.md | 8 ++++++++ packages/exceptions/package.json | 4 ++-- packages/networks/CHANGELOG.md | 8 ++++++++ packages/networks/package.json | 8 ++++---- packages/sdk-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/CHANGELOG.md | 8 ++++++++ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/CHANGELOG.md | 8 ++++++++ packages/test-utils/package.json | 2 +- packages/token-metadata/CHANGELOG.md | 8 ++++++++ packages/token-metadata/package.json | 10 +++++----- packages/token-utils/CHANGELOG.md | 8 ++++++++ packages/token-utils/package.json | 6 +++--- packages/ts-types/CHANGELOG.md | 8 ++++++++ packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 8 ++++++++ packages/utils/package.json | 6 +++--- packages/wallet-ts/CHANGELOG.md | 8 ++++++++ packages/wallet-ts/package.json | 12 ++++++------ 24 files changed, 148 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 8849ae9ed..91c35e046 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.0-beta.1...@injectivelabs/bridge-ts@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.3...@injectivelabs/bridge-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 1cd7f8a9d..dcb36dc1c 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/sdk-ts": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 1093d25f6..40910cc7f 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.14.0-beta.1...@injectivelabs/contracts@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/contracts + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.1-beta.1...@injectivelabs/contracts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index b9a464ac2..044625829 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 4b842bd92..0f934f538 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.0-beta.1...@injectivelabs/exceptions@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.1-beta.1...@injectivelabs/exceptions@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index d17c920ed..c732c42ad 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/ts-types": "^1.14.0", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 77b3860bf..2dac051d2 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.0-beta.1...@injectivelabs/networks@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.1-beta.1...@injectivelabs/networks@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index 9aff203c8..db11e7a21 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index cefbeb370..fe91c4a8d 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.1...@injectivelabs/sdk-ts@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.0...@injectivelabs/sdk-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 3c2614458..90ebc4d33 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.9", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/test-utils": "^1.14.0-beta.1", - "@injectivelabs/token-metadata": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/test-utils": "^1.14.0", + "@injectivelabs/token-metadata": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index a25ea12ac..fd2ade28a 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.1...@injectivelabs/sdk-ui-ts@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.0...@injectivelabs/sdk-ui-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index acee0ba7b..9fc009276 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,14 +34,14 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.0-beta.1", - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.1", - "@injectivelabs/token-metadata": "^1.14.0-beta.1", - "@injectivelabs/token-utils": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/contracts": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/sdk-ts": "^1.14.0", + "@injectivelabs/token-metadata": "^1.14.0", + "@injectivelabs/token-utils": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 1492847fe..d2431b9ad 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.0-beta.1...@injectivelabs/test-utils@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.1-beta.1...@injectivelabs/test-utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 00e2dadc1..c847a63d6 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 4c31e856a..0037556e3 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.1...@injectivelabs/token-metadata@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-metadata + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.0...@injectivelabs/token-metadata@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-metadata diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index dcc103ba4..2a100b5fb 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/CHANGELOG.md b/packages/token-utils/CHANGELOG.md index b9f5ca712..15a108673 100644 --- a/packages/token-utils/CHANGELOG.md +++ b/packages/token-utils/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.14.0-beta.1...@injectivelabs/token-utils@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/token-utils + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.1-beta.1...@injectivelabs/token-utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 818199305..e8fe392b7 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.0-beta.1", + "version": "1.14.0", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index ead57e10e..702d17bfc 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.0-beta.1...@injectivelabs/ts-types@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.1-beta.1...@injectivelabs/ts-types@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index d98ae19c3..0ef29b0c0 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index beec365ff..e2ed92188 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.0-beta.1...@injectivelabs/utils@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.1-beta.1...@injectivelabs/utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index d61917137..5e589a442 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 2d7c9764d..aae866f6e 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -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. +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.0-beta.1...@injectivelabs/wallet-ts@1.14.0) (2023-09-22) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.3...@injectivelabs/wallet-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 7bd16c9a8..669452f3c 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.0-beta.1", + "version": "1.14.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.0-beta.1", - "@injectivelabs/networks": "^1.14.0-beta.1", - "@injectivelabs/sdk-ts": "^1.14.0-beta.1", - "@injectivelabs/ts-types": "^1.14.0-beta.1", - "@injectivelabs/utils": "^1.14.0-beta.1", + "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/networks": "^1.14.0", + "@injectivelabs/sdk-ts": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/utils": "^1.14.0", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 952c52bc9e485d920c8a4a13ce3a30c5c652b17a Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Sep 2023 02:05:22 +0200 Subject: [PATCH 16/86] chore: minor --- .github/workflows/dev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index d8136772c..68d466ae7 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -42,7 +42,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version patch --conventional-commits --conventional-prerelease --preid beta --force-git-tag --yes + lerna version --conventional-commits --conventional-prerelease --preid beta --force-git-tag --yes lerna publish from-git --force-git-tag --dist-tag next --yes --summary-file - name: 'Broadcast published versions on Slack' From 81b50a27af2a87467372728516228effa766b458 Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Sat, 23 Sep 2023 10:44:52 +0200 Subject: [PATCH 17/86] chore: update indexer proto --- packages/sdk-ts/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 90ebc4d33..4edfdc858 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -44,7 +44,7 @@ "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", - "@injectivelabs/indexer-proto-ts": "1.11.9", + "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.14.0", "@injectivelabs/test-utils": "^1.14.0", diff --git a/yarn.lock b/yarn.lock index b048e307a..0b715a020 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2166,10 +2166,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/indexer-proto-ts@1.11.9": - version "1.11.9" - resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.9.tgz#19910f44382da50d16c0e7a58114c06b5b66214d" - integrity sha512-hUlZbSpii+amvqqefH/oV16igRJSx4mCM/Zi0xMZLHyqGkaX7PHVvjQcfX04hwx2MdSsAoDghJXuUrAJ7q9I2A== +"@injectivelabs/indexer-proto-ts@1.11.10": + version "1.11.10" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.11.10.tgz#91649b2634d31a003ba2e928eba4f2de821dc9a3" + integrity sha512-KpGrXYePUhIZfr/ApD6dw0l3bv222yTfVoqqbAWGtmoefeT18Lu490ots9qMsJWfokTsJeWBb1M9ce5JvaSA3Q== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From e42f12bf7bc77cd8c1a15239a87be59eb846b829 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Sat, 23 Sep 2023 08:49:27 +0000 Subject: [PATCH 18/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.0 - @injectivelabs/contracts@1.14.1-beta.0 - @injectivelabs/exceptions@1.14.1-beta.0 - @injectivelabs/networks@1.14.1-beta.0 - @injectivelabs/sdk-ts@1.14.1-beta.0 - @injectivelabs/sdk-ui-ts@1.14.1-beta.0 - @injectivelabs/test-utils@1.14.1-beta.0 - @injectivelabs/token-metadata@1.14.1-beta.0 - @injectivelabs/token-utils@1.14.1-beta.0 - @injectivelabs/ts-types@1.14.1-beta.0 - @injectivelabs/utils@1.14.1-beta.0 - @injectivelabs/wallet-ts@1.14.1-beta.0 --- packages/bridge-ts/CHANGELOG.md | 10 +++------- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/CHANGELOG.md | 18 +++--------------- packages/contracts/package.json | 10 +++++----- packages/exceptions/CHANGELOG.md | 18 +++--------------- packages/exceptions/package.json | 4 ++-- packages/networks/CHANGELOG.md | 18 +++--------------- packages/networks/package.json | 8 ++++---- packages/sdk-ts/CHANGELOG.md | 10 +++------- packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/CHANGELOG.md | 10 +++------- packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/CHANGELOG.md | 18 +++--------------- packages/test-utils/package.json | 2 +- packages/token-metadata/CHANGELOG.md | 10 +++------- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/CHANGELOG.md | 18 +++--------------- packages/token-utils/package.json | 6 +++--- packages/ts-types/CHANGELOG.md | 18 +++--------------- packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 18 +++--------------- packages/utils/package.json | 6 +++--- packages/wallet-ts/CHANGELOG.md | 10 +++------- packages/wallet-ts/package.json | 12 ++++++------ 24 files changed, 88 insertions(+), 192 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 91c35e046..cd32e024a 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,22 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.0-beta.1...@injectivelabs/bridge-ts@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.0-beta.1...@injectivelabs/bridge-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/bridge-ts +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.0-beta.1...@injectivelabs/bridge-ts@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/bridge-ts # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.3...@injectivelabs/bridge-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts - - - - ## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.13.1-beta.2...@injectivelabs/bridge-ts@1.13.1-beta.3) (2023-09-22) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index dcb36dc1c..349cc5741 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/sdk-ts": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/CHANGELOG.md b/packages/contracts/CHANGELOG.md index 40910cc7f..82098e4f3 100644 --- a/packages/contracts/CHANGELOG.md +++ b/packages/contracts/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.14.0-beta.1...@injectivelabs/contracts@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.14.0-beta.1...@injectivelabs/contracts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/contracts +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.14.0-beta.1...@injectivelabs/contracts@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/contracts # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.1-beta.1...@injectivelabs/contracts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.13.0...@injectivelabs/contracts@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.12.2-beta.4...@injectivelabs/contracts@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/contracts - - - - ## [1.12.2-beta.4](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/contracts@1.12.2-beta.3...@injectivelabs/contracts@1.12.2-beta.4) (2023-09-12) **Note:** Version bump only for package @injectivelabs/contracts diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 044625829..1d7cba93f 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 0f934f538..b64757f03 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.0-beta.1...@injectivelabs/exceptions@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.0-beta.1...@injectivelabs/exceptions@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/exceptions +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.0-beta.1...@injectivelabs/exceptions@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/exceptions # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.1-beta.1...@injectivelabs/exceptions@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.13.0...@injectivelabs/exceptions@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.12.2-beta.1...@injectivelabs/exceptions@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/exceptions - - - - ## [1.12.2-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.12.2-beta.0...@injectivelabs/exceptions@1.12.2-beta.1) (2023-09-12) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index c732c42ad..20f3877fa 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 2dac051d2..3b9996430 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.0-beta.1...@injectivelabs/networks@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.0-beta.1...@injectivelabs/networks@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/networks +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.0-beta.1...@injectivelabs/networks@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/networks # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.1-beta.1...@injectivelabs/networks@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.13.0...@injectivelabs/networks@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.12.2-beta.4...@injectivelabs/networks@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/networks - - - - ## [1.12.2-beta.4](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.12.2-beta.3...@injectivelabs/networks@1.12.2-beta.4) (2023-09-12) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index db11e7a21..c2e7b33a3 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index fe91c4a8d..e64030244 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,22 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.1...@injectivelabs/sdk-ts@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.1...@injectivelabs/sdk-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/sdk-ts +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.1...@injectivelabs/sdk-ts@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/sdk-ts # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.0...@injectivelabs/sdk-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ts - - - - # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.13.1-beta.2...@injectivelabs/sdk-ts@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 4edfdc858..a3785915d 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/test-utils": "^1.14.0", - "@injectivelabs/token-metadata": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/test-utils": "^1.14.1-beta.0", + "@injectivelabs/token-metadata": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index fd2ade28a..9721db8a4 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,22 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.1...@injectivelabs/sdk-ui-ts@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.1...@injectivelabs/sdk-ui-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.1...@injectivelabs/sdk-ui-ts@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.0...@injectivelabs/sdk-ui-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts - - - - # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.13.1-beta.2...@injectivelabs/sdk-ui-ts@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 9fc009276..cc3234db7 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,14 +34,14 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.0", - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/sdk-ts": "^1.14.0", - "@injectivelabs/token-metadata": "^1.14.0", - "@injectivelabs/token-utils": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/contracts": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/token-metadata": "^1.14.1-beta.0", + "@injectivelabs/token-utils": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index d2431b9ad..d59ce99c2 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.0-beta.1...@injectivelabs/test-utils@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.0-beta.1...@injectivelabs/test-utils@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/test-utils +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.0-beta.1...@injectivelabs/test-utils@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/test-utils # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.1-beta.1...@injectivelabs/test-utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.13.0...@injectivelabs/test-utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.12.1...@injectivelabs/test-utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/test-utils - - - - ## [1.12.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.12.0...@injectivelabs/test-utils@1.12.1) (2023-08-31) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index c847a63d6..d3f5124c3 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/CHANGELOG.md b/packages/token-metadata/CHANGELOG.md index 0037556e3..2f27dc739 100644 --- a/packages/token-metadata/CHANGELOG.md +++ b/packages/token-metadata/CHANGELOG.md @@ -3,22 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.1...@injectivelabs/token-metadata@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.1...@injectivelabs/token-metadata@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/token-metadata +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.1...@injectivelabs/token-metadata@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/token-metadata # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.14.0-beta.0...@injectivelabs/token-metadata@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-metadata - - - - # [1.14.0-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-metadata@1.13.1-beta.2...@injectivelabs/token-metadata@1.14.0-beta.0) (2023-09-22) ### Features diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 2a100b5fb..e56a0843c 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/CHANGELOG.md b/packages/token-utils/CHANGELOG.md index 15a108673..499f150bf 100644 --- a/packages/token-utils/CHANGELOG.md +++ b/packages/token-utils/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.14.0-beta.1...@injectivelabs/token-utils@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.14.0-beta.1...@injectivelabs/token-utils@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/token-utils +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.14.0-beta.1...@injectivelabs/token-utils@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/token-utils # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.1-beta.1...@injectivelabs/token-utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.13.0...@injectivelabs/token-utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.12.2-beta.2...@injectivelabs/token-utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/token-utils - - - - ## [1.12.2-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/token-utils@1.12.2-beta.1...@injectivelabs/token-utils@1.12.2-beta.2) (2023-09-12) **Note:** Version bump only for package @injectivelabs/token-utils diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index e8fe392b7..ad393d4f3 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.0", + "version": "1.14.1-beta.0", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 702d17bfc..a68e544ae 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.0-beta.1...@injectivelabs/ts-types@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.0-beta.1...@injectivelabs/ts-types@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/ts-types +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.0-beta.1...@injectivelabs/ts-types@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/ts-types # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.1-beta.1...@injectivelabs/ts-types@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.13.0...@injectivelabs/ts-types@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.12.2-beta.1...@injectivelabs/ts-types@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/ts-types - - - - ## [1.12.2-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.12.2-beta.0...@injectivelabs/ts-types@1.12.2-beta.1) (2023-09-12) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 0ef29b0c0..59bab4566 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index e2ed92188..1ef512287 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -3,38 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.0-beta.1...@injectivelabs/utils@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.0-beta.1...@injectivelabs/utils@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/utils +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.0-beta.1...@injectivelabs/utils@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/utils # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.1-beta.1...@injectivelabs/utils@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils - - - - ## [1.13.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.13.0...@injectivelabs/utils@1.13.1-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils - - - - # [1.13.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.12.2-beta.2...@injectivelabs/utils@1.13.0) (2023-09-22) **Note:** Version bump only for package @injectivelabs/utils - - - - ## [1.12.2-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.12.2-beta.1...@injectivelabs/utils@1.12.2-beta.2) (2023-09-12) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 5e589a442..f4f135c2c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index aae866f6e..2f75057a3 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,22 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.0-beta.1...@injectivelabs/wallet-ts@1.14.0) (2023-09-22) +## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.0-beta.1...@injectivelabs/wallet-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/wallet-ts +# [1.14.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.0-beta.1...@injectivelabs/wallet-ts@1.14.0) (2023-09-22) - - +**Note:** Version bump only for package @injectivelabs/wallet-ts # [1.14.0-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.3...@injectivelabs/wallet-ts@1.14.0-beta.1) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts - - - - ## [1.13.1-beta.3](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.13.1-beta.2...@injectivelabs/wallet-ts@1.13.1-beta.3) (2023-09-22) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 669452f3c..0dde565ed 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.0", + "version": "1.14.1-beta.0", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.0", - "@injectivelabs/networks": "^1.14.0", - "@injectivelabs/sdk-ts": "^1.14.0", - "@injectivelabs/ts-types": "^1.14.0", - "@injectivelabs/utils": "^1.14.0", + "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 084b2d0347642e9a673dd5e0c45114d1114a20f3 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Sep 2023 00:11:36 +0200 Subject: [PATCH 19/86] chore: minor --- .../sdk-ts/src/core/accounts/BaseAccount.ts | 6 +- .../tx/broadcaster/MsgBroadcasterWithPk.ts | 16 +- .../MsgBroadcasterWithPkAndLocalSequence.ts | 322 ++++++++++++++++++ .../src/core/modules/tx/broadcaster/index.ts | 1 + 4 files changed, 329 insertions(+), 16 deletions(-) create mode 100644 packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts diff --git a/packages/sdk-ts/src/core/accounts/BaseAccount.ts b/packages/sdk-ts/src/core/accounts/BaseAccount.ts index 56520bb55..271f968ff 100644 --- a/packages/sdk-ts/src/core/accounts/BaseAccount.ts +++ b/packages/sdk-ts/src/core/accounts/BaseAccount.ts @@ -79,14 +79,16 @@ export class BaseAccount extends Address { public incrementSequence() { this.sequence += 1 + + return this } public toAccountDetails(): AccountDetails { return { - address: this.bech32Address, pubKey: this.pubKey, - accountNumber: this.accountNumber, sequence: this.sequence, + address: this.bech32Address, + accountNumber: this.accountNumber, } } } diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts index 3984b32fb..24cd79d0e 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts @@ -13,10 +13,6 @@ import { DEFAULT_BLOCK_TIMEOUT_HEIGHT, } from '@injectivelabs/utils' import { GeneralException } from '@injectivelabs/exceptions' -import { - getEthereumSignerAddress, - getInjectiveSignerAddress, -} from '../utils/helpers' import { ChainId, EthereumChainId } from '@injectivelabs/ts-types' import { Network, @@ -30,8 +26,6 @@ import { IndexerGrpcTransactionApi } from '../../../../client' interface MsgBroadcasterTxOptions { msgs: Msgs | Msgs[] - injectiveAddress: string - ethereumAddress?: string memo?: string gas?: { gasPrice?: string @@ -107,15 +101,13 @@ export class MsgBroadcasterWithPk { const tx = { ...transaction, msgs: msgs, - ethereumAddress: getEthereumSignerAddress(transaction.injectiveAddress), - injectiveAddress: getInjectiveSignerAddress(transaction.injectiveAddress), } as MsgBroadcasterTxOptions /** Account Details * */ const publicKey = privateKey.toPublicKey() const chainRestAuthApi = new ChainRestAuthApi(endpoints.rest) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( - tx.injectiveAddress, + privateKey.toBech32(), ) const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() @@ -179,8 +171,6 @@ export class MsgBroadcasterWithPk { const tx = { ...transaction, msgs: msgs, - ethereumAddress: getEthereumSignerAddress(transaction.injectiveAddress), - injectiveAddress: getInjectiveSignerAddress(transaction.injectiveAddress), } as MsgBroadcasterTxOptions & { ethereumAddress: string } const web3Msgs = msgs.map((msg) => msg.toWeb3()) @@ -226,15 +216,13 @@ export class MsgBroadcasterWithPk { msgs: Array.isArray(transaction.msgs) ? transaction.msgs : [transaction.msgs], - ethereumAddress: getEthereumSignerAddress(transaction.injectiveAddress), - injectiveAddress: getInjectiveSignerAddress(transaction.injectiveAddress), } as MsgBroadcasterTxOptions /** Account Details * */ const publicKey = privateKey.toPublicKey() const chainRestAuthApi = new ChainRestAuthApi(endpoints.rest) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( - tx.injectiveAddress, + privateKey.toBech32(), ) const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts new file mode 100644 index 000000000..50aa85c1f --- /dev/null +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts @@ -0,0 +1,322 @@ +import { BaseAccount, PrivateKey } from '../../../accounts' +import { Msgs } from '../../msgs' +import { createTransaction } from '../tx' +import { TxGrpcApi } from '../api/TxGrpcApi' +import { + ChainRestAuthApi, + ChainRestTendermintApi, +} from '../../../../client/chain/rest' +import { + getStdFee, + DEFAULT_STD_FEE, + BigNumberInBase, + DEFAULT_BLOCK_TIMEOUT_HEIGHT, +} from '@injectivelabs/utils' +import { GeneralException } from '@injectivelabs/exceptions' +import { ChainId, EthereumChainId } from '@injectivelabs/ts-types' +import { + Network, + getNetworkInfo, + getNetworkEndpoints, + NetworkEndpoints, +} from '@injectivelabs/networks' +import { getGasPriceBasedOnMessage } from '../../../../utils/msgs' +import { CreateTransactionArgs } from '../types' +import { IndexerGrpcTransactionApi } from '../../../../client' + +interface MsgBroadcasterTxOptions { + msgs: Msgs | Msgs[] + memo?: string + gas?: { + gasPrice?: string + gas?: number /** gas limit */ + feePayer?: string + granter?: string + } +} + +interface MsgBroadcasterOptionsWithPk { + network: Network + + /** + * Only used if we want to override the default + * endpoints taken from the network param + */ + endpoints?: { + indexer: string + grpc: string + rest: string + } + privateKey: string | PrivateKey /* hex or PrivateKey class */ + ethereumChainId?: EthereumChainId + simulateTx?: boolean +} + +/** + * This class is used to broadcast transactions + * using a privateKey as a signer + * for the transactions and broadcasting + * the transactions directly to the node + * + * Mainly used for working in a Node Environment + */ +export class MsgBroadcasterWithPkAndLocalSequence { + public endpoints: NetworkEndpoints + + public chainId: ChainId + + public ethereumChainId?: EthereumChainId + + public privateKey: PrivateKey + + public simulateTx: boolean = false + + public baseAccount: BaseAccount | undefined = undefined + + public txCount: number = 0 + + constructor(options: MsgBroadcasterOptionsWithPk) { + const networkInfo = getNetworkInfo(options.network) + const endpoints = getNetworkEndpoints(options.network) + + this.simulateTx = options.simulateTx || false + this.chainId = networkInfo.chainId + this.ethereumChainId = + options.ethereumChainId || networkInfo.ethereumChainId + this.endpoints = { ...endpoints, ...(options.endpoints || {}) } + this.privateKey = + options.privateKey instanceof PrivateKey + ? options.privateKey + : PrivateKey.fromHex(options.privateKey) + } + + /** + * Broadcasting the transaction using the client + * + * @param tx + * @returns {string} transaction hash + */ + async broadcast(transaction: MsgBroadcasterTxOptions) { + const { chainId, privateKey, endpoints, txCount } = this + const msgs = Array.isArray(transaction.msgs) + ? transaction.msgs + : [transaction.msgs] + + const tx = { + ...transaction, + msgs, + } as MsgBroadcasterTxOptions + + /** Account Details * */ + const publicKey = privateKey.toPublicKey() + const accountDetails = await this.getAccountDetails() + + /** Block Details */ + const chainRestTendermintApi = new ChainRestTendermintApi(endpoints.rest) + const latestBlock = await chainRestTendermintApi.fetchLatestBlock() + const latestHeight = latestBlock.header.height + const timeoutHeight = new BigNumberInBase(latestHeight).plus( + DEFAULT_BLOCK_TIMEOUT_HEIGHT, + ) + + const gas = ( + transaction.gas?.gas || getGasPriceBasedOnMessage(msgs) + ).toString() + + /** Prepare the Transaction * */ + const { signBytes, txRaw } = await this.getTxWithStdFee({ + memo: tx.memo || '', + message: msgs, + fee: getStdFee({ ...tx.gas, gas }), + timeoutHeight: timeoutHeight.toNumber(), + pubKey: publicKey.toBase64(), + sequence: accountDetails.sequence + txCount, + accountNumber: accountDetails.accountNumber, + chainId: chainId, + }) + + /** Sign transaction */ + const signature = await privateKey.sign(Buffer.from(signBytes)) + + /** Append Signatures */ + txRaw.signatures = [signature] + + /** Broadcast transaction */ + const txResponse = await new TxGrpcApi(endpoints.grpc).broadcast(txRaw) + + if (txResponse.code !== 0) { + throw new GeneralException( + new Error( + `Transaction failed to be broadcasted - ${txResponse.rawLog}`, + ), + ) + } + + this.incrementTxCount() + + return txResponse + } + + /** + * Broadcasting the transaction with fee delegation services + * + * @param tx + * @returns {string} transaction hash + */ + async broadcastWithFeeDelegation(transaction: MsgBroadcasterTxOptions) { + const { simulateTx, privateKey, ethereumChainId, endpoints } = this + const msgs = Array.isArray(transaction.msgs) + ? transaction.msgs + : [transaction.msgs] + + const tx = { + ...transaction, + msgs, + } as MsgBroadcasterTxOptions & { ethereumAddress: string } + + const web3Msgs = msgs.map((msg) => msg.toWeb3()) + + if (!ethereumChainId) { + throw new GeneralException(new Error('Please provide ethereumChainId')) + } + + const transactionApi = new IndexerGrpcTransactionApi(endpoints.indexer) + const txResponse = await transactionApi.prepareTxRequest({ + memo: tx.memo, + message: web3Msgs, + address: tx.ethereumAddress, + chainId: ethereumChainId, + gasLimit: getGasPriceBasedOnMessage(msgs), + estimateGas: simulateTx || false, + }) + + const signature = await privateKey.signTypedData( + JSON.parse(txResponse.data), + ) + + const response = await transactionApi.broadcastTxRequest({ + txResponse, + message: web3Msgs, + chainId: ethereumChainId, + signature: `0x${Buffer.from(signature).toString('hex')}`, + }) + + return await new TxGrpcApi(endpoints.grpc).fetchTxPoll(response.txHash) + } + + /** + * Broadcasting the transaction using the client + * + * @param tx + * @returns {string} transaction hash + */ + async simulate(transaction: MsgBroadcasterTxOptions) { + const { privateKey, endpoints, chainId, txCount } = this + const msgs = Array.isArray(transaction.msgs) + ? transaction.msgs + : [transaction.msgs] + + const tx = { + ...transaction, + msgs, + } as MsgBroadcasterTxOptions + + /** Account Details * */ + const publicKey = privateKey.toPublicKey() + const accountDetails = await this.getAccountDetails() + + /** Block Details */ + const chainRestTendermintApi = new ChainRestTendermintApi(endpoints.rest) + const latestBlock = await chainRestTendermintApi.fetchLatestBlock() + const latestHeight = latestBlock.header.height + const timeoutHeight = new BigNumberInBase(latestHeight).plus( + DEFAULT_BLOCK_TIMEOUT_HEIGHT, + ) + + /** Prepare the Transaction * */ + const { txRaw } = createTransaction({ + memo: tx.memo || '', + fee: DEFAULT_STD_FEE, + message: tx.msgs as Msgs[], + timeoutHeight: timeoutHeight.toNumber(), + pubKey: publicKey.toBase64(), + sequence: accountDetails.sequence + txCount, + accountNumber: accountDetails.accountNumber, + chainId: chainId, + }) + + /** Append Blank Signatures */ + txRaw.signatures = [new Uint8Array(0)] + + /** Simulate transaction */ + const simulationResponse = await new TxGrpcApi(endpoints.grpc).simulate( + txRaw, + ) + + return simulationResponse + } + + /** + * In case we don't want to simulate the transaction + * we get the gas limit based on the message type. + * + * If we want to simulate the transaction we set the + * gas limit based on the simulation and add a small multiplier + * to be safe (factor of 1.1) + */ + private async getTxWithStdFee(args: CreateTransactionArgs) { + const { simulateTx } = this + + if (!simulateTx) { + return createTransaction(args) + } + + const result = await this.simulateTxRaw(args) + + if (!result.gasInfo?.gasUsed) { + return createTransaction(args) + } + + const stdGasFee = getStdFee({ + ...args.fee, + gas: new BigNumberInBase(result.gasInfo.gasUsed).times(1.1).toFixed(), + }) + + return createTransaction({ ...args, fee: stdGasFee }) + } + + /** + * Create TxRaw and simulate it + */ + private async simulateTxRaw(args: CreateTransactionArgs) { + const { endpoints } = this + const { txRaw } = createTransaction(args) + + txRaw.signatures = [new Uint8Array(0)] + + const simulationResponse = await new TxGrpcApi(endpoints.grpc).simulate( + txRaw, + ) + + return simulationResponse + } + + private async getAccountDetails() { + if (this.baseAccount) { + return this.baseAccount.toAccountDetails() + } + + const chainRestAuthApi = new ChainRestAuthApi(this.endpoints.rest) + const accountDetailsResponse = await chainRestAuthApi.fetchAccount( + this.privateKey.toBech32(), + ) + + this.baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) + + return this.baseAccount.toAccountDetails() + } + + private async incrementTxCount() { + this.txCount += 1 + } +} diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts index 49fe81b2f..65f643426 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts @@ -1 +1,2 @@ export * from './MsgBroadcasterWithPk' +export * from './MsgBroadcasterWithPkAndLocalSequence' From 35371b3aeddbd84b5c6986d5da75260a49a5b306 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Sun, 24 Sep 2023 22:15:55 +0000 Subject: [PATCH 20/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.1 - @injectivelabs/sdk-ts@1.14.1-beta.1 - @injectivelabs/sdk-ui-ts@1.14.1-beta.1 - @injectivelabs/wallet-ts@1.14.1-beta.1 --- packages/bridge-ts/CHANGELOG.md | 4 ++++ packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/CHANGELOG.md | 4 ++++ packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/CHANGELOG.md | 4 ++++ packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/CHANGELOG.md | 4 ++++ packages/wallet-ts/package.json | 4 ++-- 8 files changed, 23 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index cd32e024a..7d60dce42 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.1-beta.0...@injectivelabs/bridge-ts@1.14.1-beta.1) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + ## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.0-beta.1...@injectivelabs/bridge-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 349cc5741..6145ef59e 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.1", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index e64030244..47736ecc2 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.1-beta.0...@injectivelabs/sdk-ts@1.14.1-beta.1) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + ## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.0-beta.1...@injectivelabs/sdk-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index a3785915d..c5e0e9d2e 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 9721db8a4..9cd5626ce 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.1-beta.0...@injectivelabs/sdk-ui-ts@1.14.1-beta.1) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + ## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.0-beta.1...@injectivelabs/sdk-ui-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index cc3234db7..301f6b0c7 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.0", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.1", "@injectivelabs/token-metadata": "^1.14.1-beta.0", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 2f75057a3..c267c1dc0 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.1-beta.0...@injectivelabs/wallet-ts@1.14.1-beta.1) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + ## [1.14.1-beta.0](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.0-beta.1...@injectivelabs/wallet-ts@1.14.1-beta.0) (2023-09-23) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 0dde565ed..06aadf6c0 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.1", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From e90c6d7f703f1a3b256cdff10aac670c57a89e81 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Sep 2023 00:30:39 +0200 Subject: [PATCH 21/86] refactor: rename --- ...sterWithPkAndLocalSequence.ts => MsgBroadcasterLocal.ts} | 6 +++--- .../src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts | 4 ++-- packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename packages/sdk-ts/src/core/modules/tx/broadcaster/{MsgBroadcasterWithPkAndLocalSequence.ts => MsgBroadcasterLocal.ts} (98%) diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterLocal.ts similarity index 98% rename from packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts rename to packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterLocal.ts index 50aa85c1f..cc737cf3a 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPkAndLocalSequence.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterLocal.ts @@ -35,7 +35,7 @@ interface MsgBroadcasterTxOptions { } } -interface MsgBroadcasterOptionsWithPk { +interface MsgBroadcasterLocalOptions { network: Network /** @@ -60,7 +60,7 @@ interface MsgBroadcasterOptionsWithPk { * * Mainly used for working in a Node Environment */ -export class MsgBroadcasterWithPkAndLocalSequence { +export class MsgBroadcasterLocal { public endpoints: NetworkEndpoints public chainId: ChainId @@ -75,7 +75,7 @@ export class MsgBroadcasterWithPkAndLocalSequence { public txCount: number = 0 - constructor(options: MsgBroadcasterOptionsWithPk) { + constructor(options: MsgBroadcasterLocalOptions) { const networkInfo = getNetworkInfo(options.network) const endpoints = getNetworkEndpoints(options.network) diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts index 24cd79d0e..5a17a43ed 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.ts @@ -35,7 +35,7 @@ interface MsgBroadcasterTxOptions { } } -interface MsgBroadcasterOptionsWithPk { +interface MsgBroadcasterWithPkOptions { network: Network /** @@ -71,7 +71,7 @@ export class MsgBroadcasterWithPk { public simulateTx: boolean = false - constructor(options: MsgBroadcasterOptionsWithPk) { + constructor(options: MsgBroadcasterWithPkOptions) { const networkInfo = getNetworkInfo(options.network) const endpoints = getNetworkEndpoints(options.network) diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts index 65f643426..b45892473 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/index.ts @@ -1,2 +1,2 @@ export * from './MsgBroadcasterWithPk' -export * from './MsgBroadcasterWithPkAndLocalSequence' +export * from './MsgBroadcasterLocal' From 9b7dfddb929d146f6002df386f9f74d8483c86d9 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Sun, 24 Sep 2023 22:34:50 +0000 Subject: [PATCH 22/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.2 - @injectivelabs/sdk-ts@1.14.1-beta.2 - @injectivelabs/sdk-ui-ts@1.14.1-beta.2 - @injectivelabs/wallet-ts@1.14.1-beta.2 --- packages/bridge-ts/CHANGELOG.md | 4 ++++ packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/CHANGELOG.md | 4 ++++ packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/CHANGELOG.md | 4 ++++ packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/CHANGELOG.md | 4 ++++ packages/wallet-ts/package.json | 4 ++-- 8 files changed, 23 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/CHANGELOG.md b/packages/bridge-ts/CHANGELOG.md index 7d60dce42..20328089a 100644 --- a/packages/bridge-ts/CHANGELOG.md +++ b/packages/bridge-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.1-beta.1...@injectivelabs/bridge-ts@1.14.1-beta.2) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/bridge-ts + ## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/bridge-ts@1.14.1-beta.0...@injectivelabs/bridge-ts@1.14.1-beta.1) (2023-09-24) **Note:** Version bump only for package @injectivelabs/bridge-ts diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 6145ef59e..5abbca295 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.2", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 47736ecc2..69ca52006 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.1-beta.1...@injectivelabs/sdk-ts@1.14.1-beta.2) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + ## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.1-beta.0...@injectivelabs/sdk-ts@1.14.1-beta.1) (2023-09-24) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index c5e0e9d2e..71b7234ba 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/CHANGELOG.md b/packages/sdk-ui-ts/CHANGELOG.md index 9cd5626ce..2bfb6e20d 100644 --- a/packages/sdk-ui-ts/CHANGELOG.md +++ b/packages/sdk-ui-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.1-beta.1...@injectivelabs/sdk-ui-ts@1.14.1-beta.2) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/sdk-ui-ts + ## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ui-ts@1.14.1-beta.0...@injectivelabs/sdk-ui-ts@1.14.1-beta.1) (2023-09-24) **Note:** Version bump only for package @injectivelabs/sdk-ui-ts diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 301f6b0c7..bd5f16990 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.0", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.2", "@injectivelabs/token-metadata": "^1.14.1-beta.0", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index c267c1dc0..d9772091d 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.1-beta.2](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.1-beta.1...@injectivelabs/wallet-ts@1.14.1-beta.2) (2023-09-24) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + ## [1.14.1-beta.1](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.1-beta.0...@injectivelabs/wallet-ts@1.14.1-beta.1) (2023-09-24) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 06aadf6c0..3c55bd384 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.2", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 659082009e133e7f3b156f317f46de46d1a1bb4b Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Mon, 25 Sep 2023 20:57:08 +0800 Subject: [PATCH 23/86] fix: gh workflow lerna version bump --- .github/workflows/dev.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 68d466ae7..c4580baf7 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -42,7 +42,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version --conventional-commits --conventional-prerelease --preid beta --force-git-tag --yes + lerna version prerelease --preid beta --force-git-tag --no-changelog --yes lerna publish from-git --force-git-tag --dist-tag next --yes --summary-file - name: 'Broadcast published versions on Slack' From f32f1f35d21e14b4591f647f5b3ec7c2ee7d7cd9 Mon Sep 17 00:00:00 2001 From: Shane K Moore <41407272+shane-moore@users.noreply.github.com> Date: Mon, 25 Sep 2023 18:10:21 -0700 Subject: [PATCH 24/86] chore: ibc tokens script --- .../src/client/wasm/nameservice/utils.ts | 2 + packages/sdk-ui-ts/package.json | 5 +- .../sdk-ui-ts/src/denom/DenomClientAsync.ts | 27 +- .../src/services/ibc/ibcTokenMetadata.json | 812 ++++++++++++++++++ packages/sdk-ui-ts/src/services/ibc/tokens.ts | 62 ++ 5 files changed, 904 insertions(+), 4 deletions(-) create mode 100644 packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json create mode 100644 packages/sdk-ui-ts/src/services/ibc/tokens.ts diff --git a/packages/sdk-ts/src/client/wasm/nameservice/utils.ts b/packages/sdk-ts/src/client/wasm/nameservice/utils.ts index 2ab1a0784..387ca8dc7 100644 --- a/packages/sdk-ts/src/client/wasm/nameservice/utils.ts +++ b/packages/sdk-ts/src/client/wasm/nameservice/utils.ts @@ -28,7 +28,9 @@ const nameToNode = (name: string) => { if (!name) { return [] } + const hash = nameHash(name) + return Array.from(Buffer.from(hash.slice(2), 'hex')) } diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index bd5f16990..4be920a23 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -18,7 +18,7 @@ }, "scripts": { "postinstall": "link-module-alias", - "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files", + "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files && yarn get-ibc-tokens", "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post && link-module-alias", "build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json", "clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist", @@ -31,7 +31,8 @@ "dev": "ts-node-dev -r tsconfig-paths/register src/index.ts", "start": "node dist/index.js", "validators-logo": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo && yarn copy-files", - "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" + "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files", + "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { "@injectivelabs/contracts": "^1.14.1-beta.0", diff --git a/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts b/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts index 84fa84d15..725da0a99 100644 --- a/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts +++ b/packages/sdk-ui-ts/src/denom/DenomClientAsync.ts @@ -30,6 +30,8 @@ import { getTokenFromInsuranceFund } from '../utils' import { IbcApplicationsTransferV1Transfer } from '@injectivelabs/core-proto-ts' import { ErrorType, GeneralException } from '@injectivelabs/exceptions' import { awaitForAll } from '@injectivelabs/utils' +// @ts-ignore +import ibcTokenMetadata from '../services/ibc/ibcTokenMetadata.json' const IGNORED_DENOMS = ['peggy0xB855dBC314C39BFa2583567E02a40CBB246CF82B'] @@ -57,6 +59,8 @@ export class DenomClientAsync { IbcApplicationsTransferV1Transfer.DenomTrace > = {} + private cachedIbcTokens: Token[] = [] + constructor( network: Network = Network.Mainnet, options: { endpoints?: NetworkEndpoints; alchemyRpcUrl?: string }, @@ -253,10 +257,19 @@ export class DenomClientAsync { await this.fetchAndCacheDenomTraces() } + if (this.cachedIbcTokens.length === 0) { + await this.fetchAndCacheIbcTokens() + } + const cachedDenomTrace = this.cachedDenomTraces[hash] + const cachedIbcToken = this.cachedIbcTokens.find( + (token) => token?.denom === denom, + ) if (cachedDenomTrace) { - const token = this.denomClient.getDenomToken(cachedDenomTrace.baseDenom) + const token = + this.denomClient.getDenomToken(cachedDenomTrace.baseDenom) || + cachedIbcToken if (!token) { return undefined @@ -276,7 +289,8 @@ export class DenomClientAsync { try { const denomTrace = await this.chainIbcApi.fetchDenomTrace(hash) - const token = this.denomClient.getDenomToken(denomTrace.baseDenom) + const token = + this.denomClient.getDenomToken(denomTrace.baseDenom) || cachedIbcToken if (!token) { return undefined @@ -322,9 +336,18 @@ export class DenomClientAsync { ) } + private async fetchAndCacheIbcTokens() { + if (ibcTokenMetadata?.length === 0) { + return + } + + this.cachedIbcTokens = ibcTokenMetadata as Token[] + } + public async preloadMetadata() { await this.getFactoryDenomMetadata('') await this.getInsuranceFund('') await this.fetchAndCacheDenomTraces() + await this.fetchAndCacheIbcTokens() } } diff --git a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json new file mode 100644 index 000000000..7e3d54334 --- /dev/null +++ b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json @@ -0,0 +1,812 @@ +[ + { + "name": "Injective", + "denom": "inj", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/injective/images/inj.png", + "symbol": "INJ", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Stride", + "denom": "ibc/3FDD002A3A4019B05A33D324B2F29748E77AF501BEA5C96D1F28B2D6755F9F25", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/strd.png", + "symbol": "STRD", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stATOM", + "denom": "ibc/A8F39212ED30B6A8C2AC736665835720D3D7BE4A1D18D68566525EC25ECF1C9B", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/statom.png", + "symbol": "stATOM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stSTARS", + "denom": "ibc/DD0F92D576A9A60487F17685A987AB6EDB359E661D281ED31F3AE560650ECFCB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/ststars.png", + "symbol": "stSTARS", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stOSMO", + "denom": "ibc/6D821F3CFAE78E9EBD872FAEC61C400C0D9B72E77FA14614CF1B775A528854FD", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stosmo.png", + "symbol": "stOSMO", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stJUNO", + "denom": "ibc/580E52A2C2DB126EE2160D1BDBBA33B5839D53B5E59D04D4FF438AE9BB7BFAAB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stjuno.png", + "symbol": "stJUNO", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stLUNA", + "denom": "ibc/E98796F283A8B56A221011C2EDF7079BB62D1EA3EEF3E7CF4C679E91C6D97D08", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stluna.png", + "symbol": "stLUNA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stEVMOS", + "denom": "ibc/75F64E20A70C5059F8EA792F1C47260DC7C6CBAC69DBA60E151AD5416E93C34C", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stevmos.png", + "symbol": "stEVMOS", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stINJ", + "denom": "ibc/AC87717EA002B0123B10A05063E69BCA274BA2C44D842AEEB41558D2856DCE93", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stinj.png", + "symbol": "stINJ", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stUMEE", + "denom": "ibc/FC8E98DF998AE88129183094E49383F94B3E5F1844C939D380AF18061FEF41EB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stumee.png", + "symbol": "stUMEE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Osmosis", + "denom": "ibc/92E0120F15D037353CFB73C14651FC8930ADC05B93100FD7754D3A689E53B333", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", + "symbol": "OSMO", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Ion", + "denom": "ibc/1B2D7E4261A7E2130E8E3506058E3081D3154998413F0DB2F82B04035B3FE676", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/ion.png", + "symbol": "ION", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "IBCX", + "denom": "ibc/491C92BEEAFE513BABA355275C7AE3AC47AA7FD57285AC1D910CE874D2DC7CA0", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/ibcx.svg", + "symbol": "IBCX", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Evmos", + "denom": "ibc/16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/evmos/images/evmos.png", + "symbol": "EVMOS", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Kuji", + "denom": "ibc/9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/kuji.png", + "symbol": "KUJI", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "USK", + "denom": "ibc/45D5C97124CFD8AD9CD88AB98815455A7DEDBD932BA725107AD1BE71B85EAF21", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/usk.png", + "symbol": "USK", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ampKUJI", + "denom": "ibc/C5FA29CE50D543E193DBC6D3D944ACB3A660C96C340F800CFA4BFCF876F9DD74", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/ampKUJI.png", + "symbol": "ampKUJI", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "MNTA", + "denom": "ibc/E517983388553858495A0E716406CF2FD4FE9BCE1EC3C9A71742282448674F10", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/mnta.png", + "symbol": "MNTA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "WINK", + "denom": "ibc/495694322A85155314DBA1238FDCA84F989E3A3B5A30D5D81FF7865D6445C7E5", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/wink.png", + "symbol": "WINK", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Axelar", + "denom": "ibc/B68C1D2682A8B69E20BB921E34C6A3A2B6D1E13E3E8C0092E373826F546DEE65", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/axl.png", + "symbol": "AXL", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "USD Coin", + "denom": "ibc/7E1AF94AD246BE522892751046F0C959B768642E5671CC3742264068D49553C0", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png", + "symbol": "USDC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Frax", + "denom": "ibc/3E5504815B2D69DCC32B1FF54CDAC28D7DA2C445BD29C496A83732DC1D52DB90", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/frax.svg", + "symbol": "FRAX", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Dai Stablecoin", + "denom": "ibc/265ABC4B9F767AF45CAC6FB76E930548D835EDA3E94BC56B70582A55A73D8C90", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/dai.png", + "symbol": "DAI", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Tether USD", + "denom": "ibc/90C6F06139D663CFD7949223D257C5B5D241E72ED61EBD12FFDDA6F068715E47", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.png", + "symbol": "USDT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Ether", + "denom": "ibc/65A6973F7A4013335AE5FFE623FE019A78A1FEEE9B8982985099978837D764A7", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/weth.png", + "symbol": "WETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Bitcoin", + "denom": "ibc/4C8A332AE4FDE42709649B5F9A2A336192158C4465DF74B4513F5AD0C583EA6F", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/wbtc.png", + "symbol": "WBTC", + "decimals": 8, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Aave", + "denom": "ibc/49265FCAA6CC20B59652C0B45B2283A260BB19FC183DE95C29CCA8E01F8B004C", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/aave.svg", + "symbol": "AAVE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ApeCoin", + "denom": "ibc/8A13F5DA968B4D526E9DC5AE20B584FE62462E80AF06B9D0EA0B0DB35ABBBF27", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/ape.svg", + "symbol": "APE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Axie Infinity Shard", + "denom": "ibc/EB519ECF709F0DB6BA1359F91BA2DDC5A07FB9869E1768D377EFEF9DF33DC4AB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/axs.svg", + "symbol": "AXS", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Chainlink", + "denom": "ibc/AC447F1D6EDAF817589C5FECECB6CD3B9E9EFFD33C7E16FE8820009F92A2F585", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/link.png", + "symbol": "LINK", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Maker", + "denom": "ibc/E8C65EFAB7804152191B8311F61877A36779277E316883D8812D3CBEFC79AE4F", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/mkr.svg", + "symbol": "MKR", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Rai Reflex Index", + "denom": "ibc/27817BAE3958FFB2BFBD8F4F6165153DFD230779994A7C42A91E0E45E8201768", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/rai.svg", + "symbol": "RAI", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Shiba Inu", + "denom": "ibc/E68343A4DEF4AFBE7C5A9004D4C11888EE755A7B43B3F1AFA52F2C34C07990D5", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/shib.svg", + "symbol": "SHIB", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Lido Staked Ether", + "denom": "ibc/FB1B967C690FEA7E9AD7CF76AE2255169D4EA2937D6694B2C0E61A370F76D9FB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/steth.svg", + "symbol": "stETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Uniswap", + "denom": "ibc/3E3A8A403AE81114F4341962A6D73162D586C9DF4CE3BE7C7B459108430675F7", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/uni.svg", + "symbol": "UNI", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Chain", + "denom": "ibc/79D01DE88DFFC0610003439D38200E77A3D2A1CCCBE4B1958D685026ABB01814", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/xcn.svg", + "symbol": "XCN", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Polkadot", + "denom": "ibc/624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polkadot/images/dot.png", + "symbol": "DOT", + "decimals": 10, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Moonbeam", + "denom": "ibc/8FF72FB47F07B4AFA8649500A168683BEFCB9EE164BD331FA597D26224D51055", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/moonbeam/images/glmr.png", + "symbol": "WGLMR", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Matic", + "denom": "ibc/7E23647941230DA0AB4ED10F599647D9BE34E1C991D0DA032B5A1522941EBA73", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/polygon/images/wmatic.png", + "symbol": "WMATIC", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped BNB", + "denom": "ibc/B877B8EF095028B807370AB5C7790CA0C328777C9FF09AA7F5436BA7FAE4A86F", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/binancesmartchain/images/wbnb.png", + "symbol": "WBNB", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Binance USD", + "denom": "ibc/A62F794AAEC56B6828541224D91DA3E21423AB0DC4D21ECB05E4588A07BD934C", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/busd.png", + "symbol": "BUSD", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped AVAX", + "denom": "ibc/A4FF8E161D2835BA06A7522684E874EFC91004AD0CD14E038F37940562158D73", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/avalanche/images/wavax.svg", + "symbol": "WAVAX", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped FTM", + "denom": "ibc/31E8DDA49D53535F358B29CFCBED1B9224DAAFE82788C0477930DCDE231DA878", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/fantom/images/ftm.png", + "symbol": "WFTM", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "USD Coin from Polygon", + "denom": "ibc/2E93E8914CA07B73A794657DA76170A016057D1C6B0DC42D969918D4F22D95A3", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png", + "symbol": "USDC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "USD Coin from Avalanche", + "denom": "ibc/705E7E25F94467E363B2EB324A5A6FF4C683A4A6D20AAD2AEEABA2D9EB1B897F", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png", + "symbol": "USDC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped FIL from Filecoin", + "denom": "ibc/9D1889339AEC850B1D719CCF19BD813955C086BE1ED323ED68318A273922E40D", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/filecoin/images/wfil.png", + "symbol": "axlFIL", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Arbitrum", + "denom": "ibc/F28C5C931D2673B7A2F06FC74934F7BDC0D2906D2AF40D582ED27D1E5C48D475", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/arbitrum/images/arb.png", + "symbol": "ARB", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Pepe", + "denom": "ibc/9144D78830C5ABD7B7D9E219EA7600E3A0E0AD5FC50C007668160595E94789AB", + "logo": "https://ibc.tfm.com/custom/tokens/pepe-wei.logo.svg", + "symbol": "PEPE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Coinbase Wrapped Staked ETH", + "denom": "ibc/545E97C6EFB2633645720DEBCA78B2BE6F5382C4693EA7DEB2D4C456371EA4F0", + "logo": "untracked.svg", + "symbol": "cbETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Rocket Pool Ether", + "denom": "ibc/8906BF683A89D1ABE075A49EFA35A3128D7E9D809775B8E9D5AEEAA55D2889DD", + "logo": "untracked.svg", + "symbol": "rETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Staked Frax Ether", + "denom": "ibc/E918585C09958BD328DD9E7215E4726623E7A9A94342FEA5BE126A2AAF920730", + "logo": "untracked.svg", + "symbol": "sfrxETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Wrapped Lido Staked Ether", + "denom": "ibc/1E0FC59FB8495BF927B10E9D515661494B1BBEDAA15D80E52FE2BADA64656D16", + "logo": "untracked.svg", + "symbol": "wstETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Cosmos Hub Atom", + "denom": "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.png", + "symbol": "ATOM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Persistence", + "denom": "ibc/B786E7CBBF026F6F15A8DA248E0F18C62A0F7A70CB2DABD9239398C8B5150ABB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/persistence/images/xprt.png", + "symbol": "XPRT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "PSTAKE staked ATOM", + "denom": "ibc/B8E30AECB0FB5BA1B02747BE003E55934A9E42488495412C7E9934FBEC06B201", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/persistence/images/stkatom.png", + "symbol": "stkATOM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Whale", + "denom": "ibc/D6E6A20ABDD600742D22464340A7701558027759CE14D12590F8EA869CCCF445", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/white-whale.png", + "symbol": "WHALE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ampWHALE", + "denom": "ibc/168C3904C45C6FE3539AE85A8892DF87371D00EA7942515AFC50AA43C4BB0A32", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/ampWhale.svg", + "symbol": "ampWHALE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "boneWHALE", + "denom": "ibc/ECB0AA28D6001EF985047558C410B65581FC85BD92D4E3CFCCA0D3D964C67CC2", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/bWHALE.png", + "symbol": "bWHALE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "FABLE", + "denom": "ibc/5FE5E50EA0DF6D68C29EDFB7992EB81CD40B6780C33834A8AB3712FB148E1313", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/fable.svg", + "symbol": "FABLE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Somm", + "denom": "ibc/34346A60A95EB030D62D6F5BDD4B745BE18E8A693372A8A347D5D53DBBB1328B", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/sommelier/images/somm.png", + "symbol": "SOMM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Crescent", + "denom": "ibc/3A6DD3358D9F7ADD18CDE79BA10B400511A5DE4AE2C037D7C9639B52ADAF35C6", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/images/cre.png", + "symbol": "CRE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Bonded Crescent", + "denom": "ibc/D9E839DE6F40C036592B6CEDB73841EE9A18987BC099DD112762A46AFE72159B", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/images/bcre.png", + "symbol": "bCRE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Secret Network", + "denom": "ibc/0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/secretnetwork/images/scrt.png", + "symbol": "SCRT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Astroport", + "denom": "ibc/EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra/images/astro.png", + "symbol": "ASTRO", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ERIS Amplified LUNA", + "denom": "ibc/751CCECAF75D686B1DC8708BE62F8C7411B211750E6009C6AC4C93881F0543E8", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/ampluna.svg", + "symbol": "ampLUNA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Lion DAO", + "denom": "ibc/E6CFB0AC1D339A8CBA3353DF0D7E080B4B14D026D1C90F63F666C223B04D548C", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/roar.png", + "symbol": "ROAR", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "boneLuna", + "denom": "ibc/C9D55B62C9D9CA84DD94DC019009B840DDFD861BF2F33F7CF2A8A74933797680", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/boneluna.png", + "symbol": "bLUNA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Lion Cub DAO", + "denom": "ibc/5CB35B165F689DD57F836C6C5ED3AB268493AA5A810740446C4F2141664714F4", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/cub.png", + "symbol": "CUB", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "sayve", + "denom": "ibc/DF2B99CF1FEA6B292E79617BD6F7EF735C0B47CEF09D7104E270956E96C38B12", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/sayve.png", + "symbol": "SAYVE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stCMDX", + "denom": "ibc/0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stcmdx.png", + "symbol": "stCMDX", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "stIBCX Core ", + "denom": "ibc/0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/stibcx.png", + "symbol": "stIBCX", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "BLUE CUB DAO", + "denom": "ibc/B692197280D4E62F8D9F8E5C0B697DC4C2C680ED6DE8FFF0368E0552C9215607", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/blue.png", + "symbol": "BLUE", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ERIS Amplified OSMO", + "denom": "ibc/012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/amp.osmo.png", + "symbol": "ampOSMO", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "ASH", + "denom": "ibc/EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/ash.svg", + "symbol": "ASH", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "RAC", + "denom": "ibc/0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/rac.png", + "symbol": "RAC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Kava", + "denom": "ibc/57AA1A70A4BC9769C525EBF6386F7A21536E04A79D62E1981EFCEF9428EBB205", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kava/images/kava.png", + "symbol": "KAVA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Hard", + "denom": "ibc/D6C28E07F7343360AC41E15DDD44D79701DDCA2E0C2C41279739C8D4AE5264BC", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kava/images/hard.png", + "symbol": "HARD", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Swap", + "denom": "ibc/70CF1A54E23EA4E480DEDA9E12082D3FD5684C3483CBDCE190C5C807227688C5", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kava/images/swp.png", + "symbol": "SWP", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "USDX", + "denom": "ibc/C78F65E1648A3DFE0BAEB6C4CDA69CC2A75437F1793C0E6386DFDA26393790AE", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kava/images/usdx.png", + "symbol": "USDX", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Tether USD", + "denom": "ibc/58D95D27C82FAC8D0F9F00C3F6097FD70DD6276423768EA95DBFAA2AF8DAE9A2", + "logo": "untracked.svg", + "symbol": "USDT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + }, + { + "name": "Tether USD", + "denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "logo": "untracked.svg", + "symbol": "USDT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external" + } +] \ No newline at end of file diff --git a/packages/sdk-ui-ts/src/services/ibc/tokens.ts b/packages/sdk-ui-ts/src/services/ibc/tokens.ts new file mode 100644 index 000000000..240b07190 --- /dev/null +++ b/packages/sdk-ui-ts/src/services/ibc/tokens.ts @@ -0,0 +1,62 @@ +import { HttpRestClient } from '@injectivelabs/utils' +import path from 'path' +import fs from 'fs' +import { + Token, + TokenType, + TokenVerification, +} from '@injectivelabs/token-metadata' + +type IbcTokenMetadata = { + name: string + symbol: string + contractAddr: string + decimals: number + numberOfPools: number + imageUrl: string + isTrading: boolean +} + +const ibcTokenMetadataApi = new HttpRestClient('https://api.tfm.com/api/v1/') + +const TOKEN_METADATA_PATH = 'ibc/chain/injective-1/tokens' + +function ibcTokenMetadataToToken( + ibcTokenMetadata: IbcTokenMetadata[], +): Token[] { + return ibcTokenMetadata.map((token) => ({ + name: token.name || 'Unknown', + denom: token.contractAddr || '', + logo: token.imageUrl || 'untracked.svg', + symbol: token.symbol || 'Unknown', + decimals: token.decimals || 18, + coinGeckoId: '', + tokenType: TokenType.Ibc, + tokenVerification: TokenVerification.External, + })) +} + +const fetchIbcTokens = async () => { + try { + const response = (await ibcTokenMetadataApi.get(TOKEN_METADATA_PATH)) as { + data: IbcTokenMetadata[] + } + + if (!response.data || !Array.isArray(response.data)) { + return + } + + const ibcTokens = ibcTokenMetadataToToken(response.data) + const outputPath = path.resolve( + `${process.cwd()}/src/services/ibc/ibcTokenMetadata.json`, + ) + + fs.writeFileSync(outputPath, JSON.stringify(ibcTokens, null, 2)) + } catch (e) { + console.log(e) + + return + } +} + +fetchIbcTokens() From 310a5735d9be3735bd40c2c8720a7713c421b77d Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Tue, 26 Sep 2023 14:40:53 +0800 Subject: [PATCH 25/86] chore: update proj token metadata --- .github/workflows/canary.yml | 2 +- packages/token-metadata/src/tokens/tokens/tokens.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 2bcdbc957..90b29a576 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -42,7 +42,7 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version --conventional-commits --conventional-prerelease --preid dev --force-git-tag --yes + lerna version prerelease --preid dev --force-git-tag --no-changelog --yes lerna publish from-git --force-git-tag --dist-tag dev --yes --summary-file - name: 'Broadcast published versions on Slack' diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index fb308b580..46e18e61a 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -1020,7 +1020,7 @@ export default { name: 'PROJ', logo: 'projx.png', symbol: 'PROJ', - decimals: 6, + decimals: 18, coinGeckoId: '', }, From 9954a1d6cecfd4fbaead72607cc94222c7bdd712 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Tue, 26 Sep 2023 06:45:10 +0000 Subject: [PATCH 26/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.3 - @injectivelabs/sdk-ts@1.14.1-beta.3 - @injectivelabs/sdk-ui-ts@1.14.1-beta.3 - @injectivelabs/token-metadata@1.14.1-beta.1 - @injectivelabs/wallet-ts@1.14.1-beta.3 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 5abbca295..95cefdeb3 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.3", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 71b7234ba..96ac5bb37 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.14.1-beta.0", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.0", + "@injectivelabs/token-metadata": "^1.14.1-beta.1", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index bd5f16990..8664ae2ee 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.0", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.2", - "@injectivelabs/token-metadata": "^1.14.1-beta.0", + "@injectivelabs/sdk-ts": "^1.14.1-beta.3", + "@injectivelabs/token-metadata": "^1.14.1-beta.1", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index e56a0843c..763b10ee0 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 3c55bd384..9d943e833 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.3", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 4ca4169eb95013cea8fc1f4ba1a789b52e2fc73c Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Tue, 26 Sep 2023 16:29:19 +0000 Subject: [PATCH 27/86] GITBOOK-21: change request with no subject merged in GitBook --- .gitbook/building-dapps/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitbook/building-dapps/README.md b/.gitbook/building-dapps/README.md index 574623606..f61e2611f 100644 --- a/.gitbook/building-dapps/README.md +++ b/.gitbook/building-dapps/README.md @@ -6,7 +6,15 @@ Injective is natively interoperable with several well-known blockchain networks, Within this section we are going to explore configuring different UI frameworks to work with the `@injectivelabs` packages so you can start building decentralized applications on top of Injective. We are also going to showcase example (simple) dApps built on top of Injective. +*** +### Create Injective dApp CLI tool + +The simplest way to start your journey on Injective is using our CLI tool. To do this, simply write this command and follow the instructions in your terminal! + +```bash +$ npx @injectivelabs/create-injective-app +``` ### Configuration @@ -15,7 +23,7 @@ Within this section we are going to explore configuring different UI frameworks | [Configuring Nuxt](configuring-nuxt.md) | Configuring Nuxt 3.x + Vite | | [Configuring React](configuring-react.md) | Configuring React 18 + Vite | - +*** ### Dapps From f403b308ed30ce6e305c9f957aaa17a117e1811e Mon Sep 17 00:00:00 2001 From: Aleksander Date: Tue, 26 Sep 2023 17:41:19 +0000 Subject: [PATCH 28/86] Add mainnet sentry network --- packages/contracts/src/addresses.ts | 4 ++++ packages/networks/src/endpoints.ts | 10 ++++++++++ packages/networks/src/network.ts | 4 ++++ packages/networks/src/types.ts | 1 + .../src/client/chain/grpc/ChainGrpcAuctionApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcAuthApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcBankApi.spec.ts | 2 +- .../client/chain/grpc/ChainGrpcDistributionApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcExchangeApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcGovApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcIbcApi.spec.ts | 2 +- .../chain/grpc/ChainGrpcInsuranceFundApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcMintApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcOracleApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcPeggyApi.spec.ts | 2 +- .../src/client/chain/grpc/ChainGrpcStakingApi.spec.ts | 2 +- .../client/chain/grpc/ChainGrpcTokenFactoryApi.spec.ts | 2 +- .../client/indexer/grpc/IndexerGrpcAccountApi.spec.ts | 2 +- .../client/indexer/grpc/IndexerGrpcAuctionApi.spec.ts | 2 +- .../indexer/grpc/IndexerGrpcDerivativesApi.spec.ts | 2 +- .../client/indexer/grpc/IndexerGrpcExplorerApi.spec.ts | 2 +- .../indexer/grpc/IndexerGrpcInsuranceFundApi.spec.ts | 2 +- .../src/client/indexer/grpc/IndexerGrpcMetaApi.spec.ts | 2 +- .../client/indexer/grpc/IndexerGrpcOracleApi.spec.ts | 2 +- .../indexer/grpc/IndexerGrpcPortfolioApi.spec.ts | 2 +- .../src/client/indexer/grpc/IndexerGrpcSpotApi.spec.ts | 2 +- packages/sdk-ts/src/utils/constants.ts | 4 ++++ packages/sdk-ui-ts/src/validators-logo/index.ts | 2 +- 28 files changed, 46 insertions(+), 23 deletions(-) diff --git a/packages/contracts/src/addresses.ts b/packages/contracts/src/addresses.ts index eca6d5c6d..1f377ff3b 100644 --- a/packages/contracts/src/addresses.ts +++ b/packages/contracts/src/addresses.ts @@ -56,6 +56,10 @@ export const contractAddressesByNetwork: ContractAddressesForNetwork = { peggy: '0xF955C57f9EA9Dc8781965FEaE0b6A2acE2BAD6f3', injective: '0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30', }, + [Network.MainnetSentry]: { + peggy: '0xF955C57f9EA9Dc8781965FEaE0b6A2acE2BAD6f3', + injective: '0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30', + }, [Network.Public]: { peggy: '0xF955C57f9EA9Dc8781965FEaE0b6A2acE2BAD6f3', injective: '0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30', diff --git a/packages/networks/src/endpoints.ts b/packages/networks/src/endpoints.ts index 0af16f58d..6f44fe60d 100644 --- a/packages/networks/src/endpoints.ts +++ b/packages/networks/src/endpoints.ts @@ -1,5 +1,15 @@ import { NetworkEndpoints } from './types' +export const endpointsMainnetSentry: NetworkEndpoints = { + indexer: 'https://sentry.exchange.grpc-web.injective.network/', + grpc: 'https://sentry.chain.grpc-web.injective.network/', + rpc: 'https://sentry.tm.injective.network/', + rest: 'https://sentry.lcd.injective.network/', + chronos: 'https://sentry.exchange.grpc-web.injective.network/', + explorer: 'https://sentry.exchange.grpc-web.injective.network/', + cache: 'https://sentry.exchange.grpc-web.injective.network/' +} + export const endpointsMainnetK8s: NetworkEndpoints = { indexer: 'https://k8s.mainnet.exchange.grpc-web.injective.network', grpc: 'https://k8s.mainnet.chain.grpc-web.injective.network', diff --git a/packages/networks/src/network.ts b/packages/networks/src/network.ts index 6a4f49904..7d4a3fc34 100644 --- a/packages/networks/src/network.ts +++ b/packages/networks/src/network.ts @@ -18,6 +18,7 @@ import { endpointsTestnetK8s, endpointsTestnetOld, endpointsMainnetK8s, + endpointsMainnetSentry, endpointsTestnetSentry, } from './endpoints' import { Network, ChainInfo, NetworkEndpoints } from './types' @@ -25,6 +26,7 @@ import { Network, ChainInfo, NetworkEndpoints } from './types' export const networkEndpoints: Record = { [Network.MainnetLB]: endpointsMainnetLB, [Network.MainnetK8s]: endpointsMainnetK8s, + [Network.MainnetSentry]: endpointsMainnetSentry, [Network.Staging]: endpointsStaging, [Network.Mainnet]: endpointsMainnet, [Network.Public]: endpointsPublic, @@ -42,6 +44,7 @@ export const networkEndpoints: Record = { export const chainInfos: Record = { [Network.MainnetLB]: mainnetChainInfo, [Network.MainnetK8s]: mainnetChainInfo, + [Network.MainnetSentry]: mainnetChainInfo, [Network.Staging]: mainnetChainInfo, [Network.Mainnet]: mainnetChainInfo, [Network.Public]: mainnetChainInfo, @@ -83,6 +86,7 @@ export const isMainnet = (network: Network) => Network.Staging, Network.Mainnet, Network.MainnetK8s, + Network.MainnetSentry, Network.Internal, Network.MainnetLB, ].includes(network) diff --git a/packages/networks/src/types.ts b/packages/networks/src/types.ts index c9fc6f93d..d5af6719b 100644 --- a/packages/networks/src/types.ts +++ b/packages/networks/src/types.ts @@ -4,6 +4,7 @@ export enum Network { MainnetK8s = 'mainnetK8s', MainnetLB = 'mainnetLB', Mainnet = 'mainnet', + MainnetSentry = 'mainnetSentry', Staging = 'staging', Public = 'public', Internal = 'internal', // @deprecated diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuctionApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuctionApi.spec.ts index 7258292b0..1c70d10cb 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuctionApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuctionApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { ChainGrpcAuctionTransformer } from '../transformers' import { ChainGrpcAuctionApi } from './ChainGrpcAuctionApi' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcAuctionApi = new ChainGrpcAuctionApi(endpoints.grpc) describe('ChainGrpcAuctionApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuthApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuthApi.spec.ts index c02ef24a0..fa220b9d3 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuthApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcAuthApi.spec.ts @@ -4,7 +4,7 @@ import { mockFactory } from '@injectivelabs/test-utils' import { ChainGrpcAuthTransformer } from '../transformers/ChainGrpcAuthTransformer' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcAuthApi = new ChainGrpcAuthApi(endpoints.grpc) describe('ChainGrpcAuthApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.spec.ts index 559043738..c0c0ded60 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcBankApi.spec.ts @@ -5,7 +5,7 @@ import { ChainGrpcBankTransformer } from '../transformers' import { CosmosBaseV1Beta1Coin } from '@injectivelabs/core-proto-ts' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcBankApi = new ChainGrpcBankApi(endpoints.grpc) describe('ChainGrpcBankApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcDistributionApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcDistributionApi.spec.ts index f66a527e6..4aa35b967 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcDistributionApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcDistributionApi.spec.ts @@ -4,7 +4,7 @@ import { ChainGrpcStakingApi } from './ChainGrpcStakingApi' import { ChainGrpcDistributionTransformer } from '../transformers' import { Delegation, Validator } from '../types' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcDistributionApi = new ChainGrpcDistributionApi(endpoints.grpc) describe('ChainGrpcDistributionApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcExchangeApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcExchangeApi.spec.ts index bd696b1e2..f20971cfd 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcExchangeApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcExchangeApi.spec.ts @@ -6,7 +6,7 @@ import { InjectiveExchangeV1Beta1Query } from '@injectivelabs/core-proto-ts' const injectiveAddress = mockFactory.injectiveAddress const subaccountId = mockFactory.subaccountId -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcExchangeApi = new ChainGrpcExchangeApi(endpoints.grpc) describe('ChainGrpcExchangeApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcGovApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcGovApi.spec.ts index 28a9256b1..1641506ee 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcGovApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcGovApi.spec.ts @@ -4,7 +4,7 @@ import { ChainGrpcGovApi } from './ChainGrpcGovApi' import { ChainGrpcGovTransformer } from '../transformers' import { CosmosGovV1Gov } from '@injectivelabs/core-proto-ts' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcGovApi = new ChainGrpcGovApi(endpoints.grpc) const proposalId = 1 diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.spec.ts index 1629d0e86..b618bb6dd 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.spec.ts @@ -4,7 +4,7 @@ import { sha256 } from '../../../utils/crypto' import { fromUtf8 } from '../../../utils/utf8' import { IbcApplicationsTransferV1Transfer } from '@injectivelabs/core-proto-ts' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcIbcApi = new ChainGrpcIbcApi(endpoints.grpc) describe('ChainGrpcIbcApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcInsuranceFundApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcInsuranceFundApi.spec.ts index e9c6b11fe..97d948f3e 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcInsuranceFundApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcInsuranceFundApi.spec.ts @@ -4,7 +4,7 @@ import { ChainGrpcInsuranceFundTransformer } from '../transformers' import { mockFactory } from '@injectivelabs/test-utils' import { IndexerGrpcDerivativesApi } from '../../indexer' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcIbcApi = new ChainGrpcInsuranceFundApi(endpoints.grpc) const injectiveAddress = mockFactory.injectiveAddress const derivativeMarketId = mockFactory.derivativeMarketId diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcMintApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcMintApi.spec.ts index 3ee3a6139..b886df16b 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcMintApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcMintApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { ChainGrpcMintApi } from './ChainGrpcMintApi' import { ChainGrpcMintTransformer } from '../transformers' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcMintApi = new ChainGrpcMintApi(endpoints.grpc) describe('ChainGrpcMintApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcOracleApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcOracleApi.spec.ts index 114d7cb6c..033922d7b 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcOracleApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcOracleApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { ChainGrpcOracleApi } from './ChainGrpcOracleApi' import { OracleModuleParams } from '../types' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcOracleApi = new ChainGrpcOracleApi(endpoints.grpc) describe('ChainGrpcOracleApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcPeggyApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcPeggyApi.spec.ts index 0f69defd9..86f914762 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcPeggyApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcPeggyApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { ChainGrpcPeggyApi } from './ChainGrpcPeggyApi' import { ChainGrpcPeggyTransformer } from '../transformers' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcPeggyApi = new ChainGrpcPeggyApi(endpoints.grpc) describe('ChainGrpcPeggyApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcStakingApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcStakingApi.spec.ts index 9c40aebe8..2c912d7e1 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcStakingApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcStakingApi.spec.ts @@ -5,7 +5,7 @@ import { ChainGrpcStakingTransformer } from '../transformers' import { Delegation, Validator } from '../types' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcStakingApi = new ChainGrpcStakingApi(endpoints.grpc) describe('ChainGrpcStakingApi', () => { diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcTokenFactoryApi.spec.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcTokenFactoryApi.spec.ts index 8bb48a937..cb6e3f345 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcTokenFactoryApi.spec.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcTokenFactoryApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { ChainGrpcTokenFactoryApi } from './ChainGrpcTokenFactoryApi' import { ChainGrpcTokenFactoryTransformer } from '../transformers' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcTokenFactoryApi = new ChainGrpcTokenFactoryApi(endpoints.grpc) describe('ChainTokenFactoryApi.spec', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAccountApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAccountApi.spec.ts index f89b82c62..1167894b2 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAccountApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAccountApi.spec.ts @@ -7,7 +7,7 @@ import { IndexerGrpcAccountApi } from './IndexerGrpcAccountApi' const injectiveAddress = mockFactory.injectiveAddress const subaccountId = getDefaultSubaccountId(injectiveAddress) -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcAccountApi = new IndexerGrpcAccountApi(endpoints.indexer) describe('IndexerGrpcAccountApi', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAuctionApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAuctionApi.spec.ts index acaea5eac..02fc6cb5d 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAuctionApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcAuctionApi.spec.ts @@ -2,7 +2,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { IndexerGrpcAuctionTransformer } from '../transformers' import { IndexerGrpcAuctionApi } from './IndexerGrpcAuctionApi' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcAuctionApi = new IndexerGrpcAuctionApi(endpoints.indexer) describe('IndexerGrpcAuctionApi', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcDerivativesApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcDerivativesApi.spec.ts index 588d13566..bcbba974c 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcDerivativesApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcDerivativesApi.spec.ts @@ -6,7 +6,7 @@ import { DerivativeMarket } from '../types' import { IndexerGrpcDerivativesApi } from './IndexerGrpcDerivativesApi' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcDerivativesApi = new IndexerGrpcDerivativesApi( endpoints.indexer, ) diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcExplorerApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcExplorerApi.spec.ts index 964bcf8c8..91e14d10e 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcExplorerApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcExplorerApi.spec.ts @@ -6,7 +6,7 @@ import { ExplorerValidator } from '../types' import { IndexerGrpcExplorerApi } from './IndexerGrpcExplorerApi' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcExplorerApi = new IndexerGrpcExplorerApi(endpoints.indexer) describe('IndexerGrpcExplorerApi', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.spec.ts index 75b069a14..f501e069b 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcInsuranceFundApi.spec.ts @@ -4,7 +4,7 @@ import { IndexerGrpcInsuranceFundTransformer } from '../transformers' import { IndexerGrpcInsuranceFundApi } from './IndexerGrpcInsuranceFundApi' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcInsuranceFundApi = new IndexerGrpcInsuranceFundApi( endpoints.indexer, ) diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMetaApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMetaApi.spec.ts index d2f2caf3f..f8cc6b5d9 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMetaApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMetaApi.spec.ts @@ -1,7 +1,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { IndexerGrpcMetaApi } from './IndexerGrpcMetaApi' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcMetaApi = new IndexerGrpcMetaApi(endpoints.indexer) describe('IndexerGrpcMetaApi', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcOracleApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcOracleApi.spec.ts index e7dd5da3f..a19daa060 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcOracleApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcOracleApi.spec.ts @@ -1,7 +1,7 @@ import { getNetworkEndpoints, Network } from '@injectivelabs/networks' import { IndexerGrpcOracleApi } from './IndexerGrpcOracleApi' -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcOracleApi = new IndexerGrpcOracleApi(endpoints.indexer) describe('IndexerGrpcOracleApi', () => { diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcPortfolioApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcPortfolioApi.spec.ts index 1b5f668a3..17dad7a41 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcPortfolioApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcPortfolioApi.spec.ts @@ -4,7 +4,7 @@ import { IndexerGrpcAccountPortfolioTransformer } from '../transformers' import { IndexerGrpcAccountPortfolioApi } from './IndexerGrpcPortfolioApi' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcPortfolioApi = new IndexerGrpcAccountPortfolioApi( endpoints.indexer, ) diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcSpotApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcSpotApi.spec.ts index f5fd49dc8..2cb136efc 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcSpotApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcSpotApi.spec.ts @@ -6,7 +6,7 @@ import { SpotMarket } from '../types' import { IndexerGrpcSpotApi } from './IndexerGrpcSpotApi' const injectiveAddress = mockFactory.injectiveAddress -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const indexerGrpcSpotApi = new IndexerGrpcSpotApi(endpoints.indexer) describe('IndexerGrpcSpotApi', () => { diff --git a/packages/sdk-ts/src/utils/constants.ts b/packages/sdk-ts/src/utils/constants.ts index aa8c1c284..171cafaad 100644 --- a/packages/sdk-ts/src/utils/constants.ts +++ b/packages/sdk-ts/src/utils/constants.ts @@ -19,6 +19,7 @@ export const CW20_ADAPTER_CONTRACT_BY_NETWORK = { [Network.Mainnet]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', [Network.MainnetLB]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', [Network.MainnetK8s]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', + [Network.MainnetSentry]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', [Network.Public]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', [Network.Staging]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', [Network.Internal]: 'inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk', @@ -36,6 +37,7 @@ export const CW20_SWAP_CONTRACT_BY_NETWORK = { [Network.Mainnet]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', [Network.MainnetLB]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', [Network.MainnetK8s]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', + [Network.MainnetSentry]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', [Network.Public]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', [Network.Staging]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', [Network.Internal]: 'inj1psk3468yr9teahgz73amwvpfjehnhczvkrhhqx', @@ -53,6 +55,7 @@ export const INJ_NAME_REGISTRY_CONTRACT_BY_NETWORK = { [Network.Mainnet]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', [Network.MainnetLB]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', [Network.MainnetK8s]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', + [Network.MainnetSentry]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', [Network.Public]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', [Network.Staging]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', [Network.Internal]: 'inj1hm8vs8sr2h9nk0x66vctfs528wrp6k3gtgg275', @@ -70,6 +73,7 @@ export const INJ_NAME_REVERSE_RESOLVER_CONTRACT_BY_NETWORK = { [Network.Mainnet]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', [Network.MainnetLB]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', [Network.MainnetK8s]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', + [Network.MainnetSentry]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', [Network.Public]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', [Network.Staging]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', [Network.Internal]: 'inj1x9m0hceug9qylcyrrtwqtytslv2jrph433thgu', diff --git a/packages/sdk-ui-ts/src/validators-logo/index.ts b/packages/sdk-ui-ts/src/validators-logo/index.ts index c78cdb611..24dd98bd1 100644 --- a/packages/sdk-ui-ts/src/validators-logo/index.ts +++ b/packages/sdk-ui-ts/src/validators-logo/index.ts @@ -10,7 +10,7 @@ export interface ValidatorMap { [validatorAddress: string]: string | undefined } -const endpoints = getNetworkEndpoints(Network.MainnetK8s) +const endpoints = getNetworkEndpoints(Network.MainnetSentry) const chainGrpcStakingApi = new ChainGrpcStakingApi(endpoints.grpc) const keybaseApi = new HttpRestClient('https://keybase.io/_/api/1.0/') From bb42a4f6fa8f5a59da2477a014b4802a8e6582cd Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Tue, 26 Sep 2023 17:55:43 +0000 Subject: [PATCH 29/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.4 - @injectivelabs/contracts@1.14.1-beta.1 - @injectivelabs/networks@1.14.1-beta.1 - @injectivelabs/sdk-ts@1.14.1-beta.4 - @injectivelabs/sdk-ui-ts@1.14.1-beta.4 - @injectivelabs/token-metadata@1.14.1-beta.2 - @injectivelabs/wallet-ts@1.14.1-beta.4 --- packages/bridge-ts/package.json | 6 +++--- packages/contracts/package.json | 4 ++-- packages/networks/package.json | 2 +- packages/sdk-ts/package.json | 6 +++--- packages/sdk-ui-ts/package.json | 10 +++++----- packages/token-metadata/package.json | 4 ++-- packages/wallet-ts/package.json | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 95cefdeb3..fd1c6646a 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -33,8 +33,8 @@ "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.4", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 1d7cba93f..c1eb053b9 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "ethers": "^5.7.2", diff --git a/packages/networks/package.json b/packages/networks/package.json index c2e7b33a3..38ed8a93f 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 96ac5bb37..4873bde1f 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -46,9 +46,9 @@ "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.46", - "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.1", + "@injectivelabs/token-metadata": "^1.14.1-beta.2", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 8664ae2ee..3ec8386d1 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -34,11 +34,11 @@ "validators-logo:update-all": "ts-node-dev --ignore-watch=validators-logo ./src/validators-logo --update:all && yarn copy-files" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.0", + "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.3", - "@injectivelabs/token-metadata": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.4", + "@injectivelabs/token-metadata": "^1.14.1-beta.2", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 763b10ee0..a13f90e30 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -33,7 +33,7 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.0", + "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@types/lodash.values": "^4.3.6", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9d943e833..b27d14219 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -38,8 +38,8 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.0", - "@injectivelabs/sdk-ts": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.1", + "@injectivelabs/sdk-ts": "^1.14.1-beta.4", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From ac5345e89f3bbd6b53d5bc24e96f311c923b714a Mon Sep 17 00:00:00 2001 From: Shane K Moore <41407272+shane-moore@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:26:27 -0700 Subject: [PATCH 30/86] chore: msgExternalTransfer examples --- .gitbook/core-modules/auction.md | 79 +++++++++- .gitbook/core-modules/authz.md | 24 ++- .gitbook/core-modules/bank.md | 11 +- .gitbook/core-modules/distribution.md | 22 +-- .gitbook/core-modules/exchange.md | 143 +++++++++++------- .gitbook/core-modules/governance.md | 70 +++------ .gitbook/core-modules/ibc.md | 6 +- .gitbook/core-modules/insurance.md | 27 ++-- .gitbook/core-modules/peggy.md | 18 +-- .gitbook/core-modules/staking.md | 27 ++-- .gitbook/core-modules/token-factory.md | 47 ++---- .gitbook/core-modules/tokenfactory.md | 34 ++--- .gitbook/core-modules/wasm.md | 27 ++-- .gitbook/transactions/private-key.md | 9 +- .../broadcaster/MsgBroadcasterWithPk.spec.ts | 4 +- 15 files changed, 276 insertions(+), 272 deletions(-) diff --git a/.gitbook/core-modules/auction.md b/.gitbook/core-modules/auction.md index 550dfc240..8a6b14445 100644 --- a/.gitbook/core-modules/auction.md +++ b/.gitbook/core-modules/auction.md @@ -23,7 +23,7 @@ const auctionApi = new ChainGrpcAuctionApi(endpointsForNetwork.grpc); const injectiveAddress = "inj1..."; /* format amount for bid, note that bid amount has to be higher than the current highest bid */ const amount = { - denom: INJ, + denom: INJ_DENOM, amount: new BigNumberInBase(1).toWei(), }; @@ -38,20 +38,83 @@ const latestRound = uiLatestAuctionModuleState.auctionRound; const msg = MsgBid.fromJSON({ amount, injectiveAddress, - round: latestRound, + round: latestRound }); const privateKey = "0x..."; /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ - privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, +network: Network.Mainnet, +privateKey, }).broadcast({ - msgs: msg, - injectiveAddress, -}); +msgs: msg +}) + console.log(txHash); ``` + +### Burn Auction Deposit via MsgExternalTransfer + +If you would like to grow the burn auction's pool size, you can directly send funds to the Auction subaccount. + +Notes: + - You will need to send funds to the pool's subaccount `0x1111111111111111111111111111111111111111111111111111111111111111`. + - Be aware that any funds you send will be reflected in the next auction, not the current one. + - You cannot transfer from your default subaccountId since that balance is now associated with your Injective address in the bank module. Therefore, in order for `MsgExternalTransfer` to work, you will need to transfer from a non-default subaccountId. + + How to find the subaccountId that you will be transferring from: + - you can query your existing subaccountIds via the [account portfolio api](../querying/querying-api/querying-indexer-portfolio.md). + +How to use funds that are currently associated with your Injective Address in bank module: + - If you have existing non-default subaccounts, you'll want to do a [MsgDeposit](./exchange.md#MsgDeposit) to one of your existing non-default subaccountIds and use that subaccountId as the `srcSubaccountId` below. + - If you don't have existing non-default subaccounts, you can do a [MsgDeposit](./exchange.md#MsgDeposit) to a new default subaccountId, which would be done via importing `getSubaccountId` from `sdk-ts` and setting the `subaccountId` field in [MsgDeposit](./exchange.md#MsgDeposit) to `getSubaccountId(injectiveAddress, 1)`. + +For more info, check out the [burn auction pool docs](https://docs.injective.network/develop/tech-concepts/auction_pool/). + +```ts +import { + DenomClient, + MsgExternalTransfer, + MsgBroadcasterWithPk, +} from '@injectivelabs/sdk-ts' +import { BigNumberInBase } from '@injectivelabs/utils' +import { Network } from '@injectivelabs/networks' + +const denomClient = new DenomClient(Network.Mainnet); + +const injectiveAddress = 'inj1...' +const srcSubaccountId = '0x...' +const POOL_SUBACCOUNT_ID = `0x1111111111111111111111111111111111111111111111111111111111111111` +const USDT_TOKEN_SYMBOL='USDT' +const tokenMeta = denomClient.getTokenMetaDataBySymbol(USDT_TOKEN_SYMBOL); +const tokenDenom = `peggy${tokenMeta.erc20.address}`; + +/* format amount to add to the burn auction pool */ +const amount = { + denom: tokenDenom, + amount: new BigNumberInBase(1).toWei(tokenMeta.decimals).toFixed() +} + +/* create message in proto format */ +const msg = MsgExternalTransfer.fromJSON({ + amount, + srcSubaccountId, + injectiveAddress, + dstSubaccountId: POOL_SUBACCOUNT_ID +}) + +const privateKey = '0x...' + +/* broadcast transaction */ +const txHash = await new MsgBroadcasterWithPk({ +network: Network.Mainnet, +privateKey +}).broadcast({ +msgs: msg +}) + + +console.log(txHash) +``` diff --git a/.gitbook/core-modules/authz.md b/.gitbook/core-modules/authz.md index 62cc30721..d589565fd 100644 --- a/.gitbook/core-modules/authz.md +++ b/.gitbook/core-modules/authz.md @@ -31,7 +31,7 @@ Per [cosmos sdk docs](https://docs.cosmos.network/main/modules/authz), "Authoriz ```ts import { MsgGrant, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKeyOfGranter = '0x...' const grantee = 'inj...' @@ -46,11 +46,9 @@ const msg = MsgGrant.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey: privateKeyOfGranter, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress: granter, + msgs: msg }) console.log(txHash) @@ -63,7 +61,7 @@ When a grantee wants to execute a transaction on behalf of a granter, they must ```ts import { MsgExec, MsgSend, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' import { BigNumberInBase } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKeyOfGrantee = '0x...' const grantee = 'inj...' @@ -85,11 +83,9 @@ const msg = MsgExec.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey: privateKeyOfGrantee, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress: grantee, + msgs: msg }) console.log(txHash) @@ -101,7 +97,7 @@ A grant can be removed with the MsgRevoke message. ```ts import { MsgRevoke, MsgBroadcasterWithPk, getEthereumAddress } from '@injectivelabs/sdk-ts' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKeyOfGranter = '0x...' const grantee = 'inj...' @@ -116,11 +112,9 @@ const msg = MsgRevoke.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey: privateKeyOfGranter, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress: granter, + msgs: msg }) console.log(txHash) diff --git a/.gitbook/core-modules/bank.md b/.gitbook/core-modules/bank.md index 16848b2e2..e3ccdaf91 100644 --- a/.gitbook/core-modules/bank.md +++ b/.gitbook/core-modules/bank.md @@ -15,8 +15,7 @@ This Message is used to send coins from one address to another. ```ts import { MsgSend, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' import { BigNumberInBase } from '@injectivelabs/utils' -import { ChainId } from '@injectivelabs/ts-types' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -27,16 +26,14 @@ const amount = { const msg = MsgSend.fromJSON({ amount, srcInjectiveAddress: injectiveAddress, - dstInjectiveAddress: injectiveAddress, + dstInjectiveAddress: injectiveAddress }); const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) diff --git a/.gitbook/core-modules/distribution.md b/.gitbook/core-modules/distribution.md index f2f38b9d3..b9f60c029 100644 --- a/.gitbook/core-modules/distribution.md +++ b/.gitbook/core-modules/distribution.md @@ -13,10 +13,7 @@ import { MsgBroadcasterWithPk, MsgWithdrawDelegatorReward, } from "@injectivelabs/sdk-ts"; -import { ChainId } from "@injectivelabs/ts-types"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; - -const endpointsForNetwork = getNetworkEndpoints(Network.Mainnet); +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const validatorAddress = "inj1..."; @@ -32,11 +29,9 @@ const privateKey = "0x..."; /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -51,10 +46,7 @@ import { MsgBroadcasterWithPk, MsgWithdrawValidatorCommission, } from "@injectivelabs/sdk-ts"; -import { ChainId } from "@injectivelabs/ts-types"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; - -const endpointsForNetwork = getNetworkEndpoints(Network.Mainnet); +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const validatorAddress = "inj1..."; @@ -69,11 +61,9 @@ const privateKey = "0x..."; /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); diff --git a/.gitbook/core-modules/exchange.md b/.gitbook/core-modules/exchange.md index 45e53ea2d..0d854c63d 100644 --- a/.gitbook/core-modules/exchange.md +++ b/.gitbook/core-modules/exchange.md @@ -15,7 +15,7 @@ This Message is used to send coins from the Bank module to a wallet's subaccount ```ts import { MsgDeposit, MsgBroadcasterWithPk, getEthereumAddress } from '@injectivelabs/sdk-ts' import { BigNumberInBase } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -33,16 +33,14 @@ const subaccountId = ethereumAddress + suffix const msg = MsgDeposit.fromJSON({ amount, subaccountId, - injectiveAddress, + injectiveAddress }); const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -55,7 +53,7 @@ This Message is used to send coins from the wallet's subaccount back to the user ```ts import { MsgWithdraw, MsgBroadcasterWithPk, getEthereumAddress } from '@injectivelabs/sdk-ts' import { BigNumberInBase } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -73,16 +71,14 @@ const subaccountId = ethereumAddress + suffix const msg = MsgWithdraw.fromJSON({ amount, subaccountId, - injectiveAddress, + injectiveAddress }); const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -100,7 +96,7 @@ import { getDerivativeMarketTensMultiplier } from '@injectivelabs/sdk-ts' import { BigNumberInBase, spotPriceToChainPriceToFixed, spotQuantityToChainQuantityToFixed } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -141,16 +137,14 @@ const msg = MsgCreateSpotLimitOrder.fromJSON({ baseDecimals: market.baseDecimals }), marketId: market.marketId, - feeRecipient: feeRecipient, + feeRecipient: feeRecipient }) const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -168,7 +162,7 @@ import { getDerivativeMarketTensMultiplier } from '@injectivelabs/sdk-ts' import { BigNumberInBase, spotPriceToChainPriceToFixed, spotQuantityToChainQuantityToFixed } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -213,11 +207,9 @@ const msg = MsgCreateSpotMarketOrder.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -240,7 +232,7 @@ import { derivativeQuantityToChainQuantityToFixed, derivativeMarginToChainMarginToFixed } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -285,11 +277,9 @@ const msg = MsgCreateDerivativeLimitOrder.fromJSON( const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -312,7 +302,7 @@ import { derivativeQuantityToChainQuantityToFixed, derivativeMarginToChainMarginToFixed } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -362,11 +352,9 @@ const msg = MsgCreateDerivativeMarketOrder.fromJSON( const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -389,7 +377,7 @@ import { derivativeQuantityToChainQuantityToFixed, derivativeMarginToChainMarginToFixed } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -469,11 +457,9 @@ const msg = MsgBatchUpdateOrders.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) @@ -485,7 +471,7 @@ This Message is used to batch cancel spot orders on the chain ```ts import { MsgBatchCancelSpotOrders, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -517,11 +503,9 @@ const messages = orders.map((order) => const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: messages, - injectiveAddress, + msgs: messages }) console.log(txHash) @@ -533,7 +517,7 @@ This Message is used to batch cancel spot orders on the chain ```ts import { MsgBatchCancelDerivativeOrders, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -565,11 +549,9 @@ const messages = orders.map((order) => const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: messages, - injectiveAddress, + msgs: messages }) console.log(txHash) @@ -584,7 +566,7 @@ import { MsgRewardsOptOut, MsgBroadcasterWithPk, } from '@injectivelabs/sdk-ts' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj...' @@ -594,12 +576,69 @@ const msg = MsgRewardsOptOut.fromJSON( const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet) + network: Network.Testnet }).broadcast({ - msgs: msg, + msgs: msg +}) + +console.log(txHash) +``` + +### MsgExternalTransfer + +This message is used to transfer balance from one subaccount to another subaccount. + +Note: +- You cannot transfer from your default subaccountId since that balance is now associated with your Injective address in the bank module. Therefore, in order for `MsgExternalTransfer` to work, you will need to transfer from a non-default subaccountId. + +How to find the subaccountId that you will be transferring from: +- you can query your existing subaccountIds via the [account portfolio api](../querying/querying-api/querying-indexer-portfolio.md). + +How to use funds that are currently associated with your Injective Address in bank module: +- If you have existing non-default subaccounts, you'll want to do a [MsgDeposit](./exchange.md#MsgDeposit) to one of your existing non-default subaccountIds and use that subaccountId as the `srcSubaccountId` below. +- If you don't have existing non-default subaccounts, you can do a [MsgDeposit](./exchange.md#MsgDeposit) to a new default subaccountId, which would be done via importing `getSubaccountId` from `sdk-ts` and setting the `subaccountId` field in [MsgDeposit](./exchange.md#MsgDeposit) to `getSubaccountId(injectiveAddress, 1)`. + +```ts +import { + DenomClient, + MsgExternalTransfer, + MsgBroadcasterWithPk, +} from '@injectivelabs/sdk-ts' +import { BigNumberInBase } from '@injectivelabs/utils' +import { Network } from '@injectivelabs/networks' + +const denomClient = new DenomClient(Network.Testnet) + +const injectiveAddress = 'inj...' +const srcSubaccountId = '0x...' +const dstSubaccountId = `0x...` +const INJ_TOKEN_SYMBOL = 'INJ' +const tokenMeta = denomClient.getTokenMetaDataBySymbol(INJ_TOKEN_SYMBOL) +const tokenDenom = `inj` + +/* format amount to add to the burn auction pool */ +const amount = { + denom: tokenDenom, + amount: new BigNumberInBase(1).toWei(tokenMeta.decimals).toFixed(), +} + +/* create message in proto format */ +const msg = MsgExternalTransfer.fromJSON({ + amount, + dstSubaccountId, + srcSubaccountId, injectiveAddress, }) +const privateKey = '0x...' + +/* broadcast transaction */ +const txHash = await new MsgBroadcasterWithPk({ + network: Network.Testnet, + privateKey, +}).broadcast({ + msgs: msg +}) + console.log(txHash) ``` diff --git a/.gitbook/core-modules/governance.md b/.gitbook/core-modules/governance.md index 81d7734bc..5f113fc08 100644 --- a/.gitbook/core-modules/governance.md +++ b/.gitbook/core-modules/governance.md @@ -18,8 +18,7 @@ import { MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; +import { Network } from "@injectivelabs/networks"; const INJ_DENOM = 'inj' const amount = new BigNumberInBase(1).toWei().toFixed() @@ -39,11 +38,9 @@ const message = MsgGovDeposit.fromJSON({ /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress, + msgs: message }); ``` @@ -56,8 +53,7 @@ import { MsgVote, MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; +import { Network } from "@injectivelabs/networks"; import { VoteOption } from '@injectivelabs/sdk-ts'; const injectiveAddress = "inj..."; @@ -73,11 +69,9 @@ const message = MsgVote.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress, + msgs: message }); ``` @@ -90,8 +84,7 @@ import { MsgSubmitTextProposal, MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; +import { Network } from "@injectivelabs/networks"; import { BigNumberInBase } from "@injectivelabs/utils"; const injectiveAddress = "inj..."; @@ -111,11 +104,9 @@ const message = MsgSubmitTextProposal.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress, + msgs: message }); ``` @@ -125,13 +116,12 @@ This message allows you to propose a new spot market. Ensure that the ticker is ```ts import { - DenomClient, + DenomClientAsync, MsgBroadcasterWithPk, MsgSubmitProposalSpotMarketLaunch } from "@injectivelabs/sdk-ts"; import { BigNumberInBase, BigNumberInWei } from "@injectivelabs/utils"; import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; const injectiveAddress = "inj..."; const privateKey = "0x..."; @@ -150,7 +140,8 @@ const market = { minQuantityTickSize: '0.001' } -const denomClient = new DenomClient( +const denomClient = new DenomClientAsync +( NETWORK.Testnet, { endpoints: getNetworkEndpoints(Network.Testnet) } ) @@ -191,11 +182,9 @@ const message = MsgSubmitProposalSpotMarketLaunch.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress + msgs: message }); ``` @@ -205,13 +194,12 @@ This message allows you to propose a new perpetual market. perpetual futures con ```ts import { - DenomClient, + DenomClientAsync, MsgBroadcasterWithPk, MsgSubmitProposalPerpetualMarketLaunch } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; const injectiveAddress = "inj..."; const privateKey = "0x..."; @@ -235,7 +223,7 @@ const market = { minQuantityTickSize: '0.01' } -const denomClient = new DenomClient( +const denomClient = new DenomClientAsync( NETWORK.Testnet, { endpoints: getNetworkEndpoints(Network.Testnet) } ) @@ -266,11 +254,9 @@ const message = MsgSubmitProposalPerpetualMarketLaunch.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress + msgs: message }); ``` @@ -280,13 +266,12 @@ An expiry futures contract is an agreement between two counterparties to buy and ```ts import { - DenomClient, + DenomClientAsync, MsgBroadcasterWithPk, MsgSubmitProposalExpiryFuturesMarketLaunch } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; const injectiveAddress = "inj..."; const privateKey = "0x..."; @@ -311,7 +296,7 @@ const market = { minQuantityTickSize: '0.01' } -const denomClient = new DenomClient( +const denomClient = new DenomClientAsync( NETWORK.Testnet, { endpoints: getNetworkEndpoints(Network.Testnet) } ) @@ -342,11 +327,9 @@ const message = MsgSubmitProposalExpiryFuturesMarketLaunch.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress + msgs: message }); ``` @@ -360,8 +343,7 @@ import { MsgSubmitProposalSpotMarketParamUpdate } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; -import { ChainId } from "@injectivelabs/ts-types"; +import { Network } from "@injectivelabs/networks"; import { MarketStatusMap } from '@injectivelabs/chain-api'; const injectiveAddress = "inj..."; @@ -392,10 +374,8 @@ const message = MsgSubmitProposalSpotMarketParamUpdate.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: message, - injectiveAddress + msgs: message }); ``` diff --git a/.gitbook/core-modules/ibc.md b/.gitbook/core-modules/ibc.md index 800353a86..5bc2cfebb 100644 --- a/.gitbook/core-modules/ibc.md +++ b/.gitbook/core-modules/ibc.md @@ -105,11 +105,9 @@ const privateKey = '0x...' /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) diff --git a/.gitbook/core-modules/insurance.md b/.gitbook/core-modules/insurance.md index 0abca6db8..478622cf3 100644 --- a/.gitbook/core-modules/insurance.md +++ b/.gitbook/core-modules/insurance.md @@ -16,8 +16,7 @@ import { MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -41,11 +40,9 @@ const msg = MsgCreateInsuranceFund.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -61,8 +58,7 @@ import { MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -81,11 +77,9 @@ const msg = MsgRequestRedemption.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -98,8 +92,7 @@ This Message is used to underwrite to an insurance fund. ```ts import { MsgUnderwrite, MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -118,11 +111,9 @@ const msg = MsgUnderwrite.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); diff --git a/.gitbook/core-modules/peggy.md b/.gitbook/core-modules/peggy.md index 06163bca5..6004d60a4 100644 --- a/.gitbook/core-modules/peggy.md +++ b/.gitbook/core-modules/peggy.md @@ -10,7 +10,7 @@ Note that a $10 USD bridge fee will be charged for this transaction to cover for ```ts import { - DenomClient, + DenomClientAsync, MsgSendToEth, MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; @@ -27,7 +27,7 @@ const tokenService = new TokenService({ const ETH_BRIDGE_FEE_IN_USD = 10; const endpointsForNetwork = getNetworkEndpoints(Network.Mainnet); -const denomClient = new DenomClient(Network.Mainnet, { +const denomClient = new DenomClientAsync(Network.Mainnet, { endpoints: endpointsForNetwork, }); @@ -39,13 +39,15 @@ const injectiveAddress = "inj1..."; const destinationAddress = "0x..."; // ethereum address const tokenDenom = `peggy${tokenMeta.erc20.address}`; -if (!tokenDenom) { +if (!tokenMeta) { return; } -const tokenUsdPrice = tokenService.fetchUsdTokenPrice(tokenDenom.coinGeckoId); +const tokenUsdPrice = tokenService.fetchUsdTokenPrice(tokenMeta +.coinGeckoId); const amountToFixed = new BigNumberInBase(amount) - .toWei(tokenDenom.decimals) + .toWei(tokenMeta +.decimals) .toFixed(); const bridgeFeeInToken = new BigNumberInBase(ETH_BRIDGE_FEE_IN_USD) .dividedBy(tokenUsdPrice) @@ -66,10 +68,8 @@ const msg = MsgSendToEth.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); ``` diff --git a/.gitbook/core-modules/staking.md b/.gitbook/core-modules/staking.md index e8613638c..b9137ec3d 100644 --- a/.gitbook/core-modules/staking.md +++ b/.gitbook/core-modules/staking.md @@ -16,8 +16,7 @@ import { MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -38,11 +37,9 @@ const msg = MsgBeginRedelegate.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -55,8 +52,7 @@ This Message is used to Delegate INJ to a validator. ```ts import { MsgDelegate, MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -74,11 +70,9 @@ const msg = MsgDelegate.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -91,8 +85,7 @@ This Message is used to Delegate INJ to a validator. ```ts import { MsgUndelegate, MsgBroadcasterWithPk } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -110,11 +103,9 @@ const msg = MsgUndelegate.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); diff --git a/.gitbook/core-modules/token-factory.md b/.gitbook/core-modules/token-factory.md index 636a2dc69..67858b309 100644 --- a/.gitbook/core-modules/token-factory.md +++ b/.gitbook/core-modules/token-factory.md @@ -19,8 +19,7 @@ import { MsgCreateDenom, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -33,11 +32,9 @@ const msg = MsgCreateDenom.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -52,8 +49,7 @@ import { MsgMint, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -70,11 +66,9 @@ const msg = MsgMint.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -89,8 +83,7 @@ import { MsgBurn, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -107,11 +100,9 @@ const msg = MsgBurn.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -126,8 +117,7 @@ import { MsgSetDenomMetadata, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -155,7 +145,7 @@ const denomUnitsIfTokenHas6Decimals = [ }, ] const displayIfTokenHas6Decimals = subdenom -const displayIfTokenHas0Decimals = +const displayIfTokenHas0Decimals = const msg = MsgSetDenomMetadata.fromJSON({ sender: injectiveAddress, @@ -172,11 +162,9 @@ const msg = MsgSetDenomMetadata.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -191,8 +179,7 @@ import { MsgSetDenomMetadata, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -237,11 +224,9 @@ const msgSetDenomMetadata = MsgSetDenomMetadata.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: [msgCreateDenom, msgMint, msgSetDenomMetadata], - injectiveAddress, + msgs: [msgCreateDenom, msgMint, msgSetDenomMetadata] }); console.log(txHash); diff --git a/.gitbook/core-modules/tokenfactory.md b/.gitbook/core-modules/tokenfactory.md index 684f44376..0b77e733f 100644 --- a/.gitbook/core-modules/tokenfactory.md +++ b/.gitbook/core-modules/tokenfactory.md @@ -17,8 +17,7 @@ import { MsgCreateDenom, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -31,11 +30,9 @@ const msg = MsgCreateDenom.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -50,8 +47,7 @@ import { MsgMint, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -68,11 +64,9 @@ const msg = MsgMint.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ msgs: msg, - injectiveAddress, }); console.log(txHash); @@ -87,8 +81,7 @@ import { MsgBurn, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -105,11 +98,9 @@ const msg = MsgBurn.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -125,8 +116,7 @@ import { MsgSetDenomMetadata, } from "@injectivelabs/sdk-ts"; import { BigNumberInBase } from "@injectivelabs/utils"; -import { ChainId } from "@injectivelabs/ts-types"; -import { Network, getNetworkEndpoints } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const privateKey = "0x..."; @@ -169,11 +159,9 @@ const msg = MsgSetDenomMetadata.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); diff --git a/.gitbook/core-modules/wasm.md b/.gitbook/core-modules/wasm.md index ae2b4d9f2..c6e423270 100644 --- a/.gitbook/core-modules/wasm.md +++ b/.gitbook/core-modules/wasm.md @@ -11,8 +11,7 @@ import { MsgExecuteContract, MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; -import { ChainId } from "@injectivelabs/ts-types"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const recipientAddress = "inj2..."; @@ -32,11 +31,9 @@ const msg = MsgExecuteContract.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -54,8 +51,7 @@ import { MsgBroadcasterWithPk, } from "@injectivelabs/sdk-ts"; import { INJ_DENOM } from "@injectivelabs/sdk-ui-ts"; -import { ChainId } from "@injectivelabs/ts-types"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const contractAddress = "cw..."; @@ -76,11 +72,9 @@ const msg = MsgExecuteContract.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); @@ -119,8 +113,7 @@ import { MsgExecuteContractCompact, } from "@injectivelabs/sdk-ts"; import { INJ_DENOM } from "@injectivelabs/sdk-ui-ts"; -import { ChainId } from "@injectivelabs/ts-types"; -import { getNetworkEndpoints, Network } from "@injectivelabs/networks"; +import { Network } from "@injectivelabs/networks"; const injectiveAddress = "inj1..."; const contractAddress = "cw..."; @@ -141,11 +134,9 @@ const msg = MsgExecuteContractCompact.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Mainnet, - endpoints: endpointsForNetwork, + network: Network.Mainnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }); console.log(txHash); diff --git a/.gitbook/transactions/private-key.md b/.gitbook/transactions/private-key.md index bca0508fa..888432219 100644 --- a/.gitbook/transactions/private-key.md +++ b/.gitbook/transactions/private-key.md @@ -225,8 +225,7 @@ You can use the `MsgBroadcasterWithPk` class from the `@injectivelabs/sdk-ts` pa ```ts import { MsgSend, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' import { BigNumberInBase } from '@injectivelabs/utils' -import { ChainId } from '@injectivelabs/ts-types' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' @@ -242,11 +241,9 @@ const msg = MsgSend.fromJSON({ const txHash = await new MsgBroadcasterWithPk({ privateKey, - chainId: ChainId.Testnet, - endpoints: getNetworkEndpoints(Network.Testnet), + network: Network.Testnet }).broadcast({ - msgs: msg, - injectiveAddress, + msgs: msg }) console.log(txHash) diff --git a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.spec.ts b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.spec.ts index dd936db4e..fad28c62f 100644 --- a/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.spec.ts +++ b/packages/sdk-ts/src/core/modules/tx/broadcaster/MsgBroadcasterWithPk.spec.ts @@ -26,7 +26,7 @@ describe('MsgBroadcasterWithPk', () => { network, privateKey, simulateTx: true, - }).broadcast({ msgs: message, injectiveAddress }) + }).broadcast({ msgs: message }) expect(response.txHash).toBeDefined() }, 60000) @@ -53,7 +53,7 @@ describe('MsgBroadcasterWithPk', () => { privateKey, simulateTx: true, ethereumChainId: EthereumChainId.Goerli, - }).broadcastWithFeeDelegation({ msgs: message, injectiveAddress }) + }).broadcastWithFeeDelegation({ msgs: message }) expect(response.txHash).toBeDefined() }, 60000) From e40621a7672f0f45c573319488260e88ef2efa71 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Wed, 27 Sep 2023 09:24:12 +0000 Subject: [PATCH 31/86] GITBOOK-22: change request with no subject merged in GitBook --- .gitbook/SUMMARY.md | 2 +- .gitbook/wallet/wallet-connections.md | 72 +++++++++++++++++++++++++-- 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index 912814bd0..6ff3b1c85 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -10,8 +10,8 @@ * [CosmJs Support](readme/getting-started-cosmjs.md) * [Wallet](wallet/README.md) * [Accounts](wallet/wallet-accounts.md) - * [Wallet Strategy](wallet/wallet-wallet-strategy.md) * [Wallet Connections](wallet/wallet-connections.md) + * [Wallet Strategy](wallet/wallet-wallet-strategy.md) * [Querying](querying/README.md) * [Indexer](querying/querying-api/README.md) * [Account](querying/querying-api/querying-indexer-account.md) diff --git a/.gitbook/wallet/wallet-connections.md b/.gitbook/wallet/wallet-connections.md index 4a802f182..0a76bf647 100644 --- a/.gitbook/wallet/wallet-connections.md +++ b/.gitbook/wallet/wallet-connections.md @@ -1,7 +1,73 @@ # Wallet Connections -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 +Injective supports both Ethereum and Cosmos native wallets. You can use popular wallets like Metamask, Ledger, Keplr, Leap, etc. to sign transactions on Injective. -This wiki page is currently under work in progress. +### Wallet Strategy -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 +The recommended way to have support for all of these wallets out of the box is to use the [WalletStrategy](wallet-wallet-strategy.md) abstraction we've built. This approach will enable your dApp users to connect and interact with different wallets. + +Combining it with the [MsgBroadcaster](../transactions/msgbroadcaster.md) abstraction allows you to sign transactions using one function call. This is what's being used on all products like Helix, Hub, Explorer, etc., and we strongly recommend using this approach in your dApp. + +In case you still want to use some wallet natively (without the WalletStrategy class), we are going to provide examples of how to connect to a dApp built on Injective via Metamask and Keplr in this doc. + +### Metamask + +Metamask is an Ethereum native wallet and can be used to connect and interact with your dApp built on Injective. + +* **Get Injective addresses from Metamask** + +

+import { getInjectiveAddress } from '@injectivelabs/sdk-ts'
+
+const getEthereum = () => {
+  if (!window.ethereum) {
+    throw new Error('Metamask extension not installed')
+  }
+  
+  return window.ethereum
+}
+
+const ethereum = getEthereum()
+const addresses = await ethereum.request({
+  method: 'eth_requestAccounts',
+}) /** these are evm addresses */
+
+const injectiveAddresses = addresses.map(getInjectiveAddress)
+console.log(injectiveAddresses)
+
+ +* **Sign transactions using Metamask** + +An example of how to prepare + sign + broadcast a transaction on Injective using Metamask can be found [here](../transactions/ethereum.md). + +### Keplr + +Keplr is an Cosmos native wallet and can be used to connect and interact with your dApp built on Injective. + +* **Get Injective addresses from Keplr** + +

+import { getInjectiveAddress } from '@injectivelabs/sdk-ts'
+import { ChainId } from '@injectivelabs/ts-types'
+
+const getKeplr = () => {
+  if (!window.keplr) {
+    throw new Error('Keplr extension not installed')
+  }
+  
+  return window.keplr
+}
+
+(async() => {
+  const keplr = getKeplr()
+  const chainId = ChainId.Mainnet
+  await keplr.enable(chainId)
+  const injectiveAddresses = await keplr.getOfflineSigner(chainId).getAccounts()
+
+  console.log(injectiveAddresses)
+})()
+
+ +* **Sign transactions using Keplr** + +An example of how to prepare + sign + broadcast a transaction on Injective using Keplr can be found [here](../transactions/transactions-cosmos.md). From f0ded8e164b93e0502e8e97a0366345df24c937e Mon Sep 17 00:00:00 2001 From: "gitbook-com[bot]" Date: Wed, 27 Sep 2023 09:28:27 +0000 Subject: [PATCH 32/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.5 - @injectivelabs/sdk-ts@1.14.1-beta.5 - @injectivelabs/sdk-ui-ts@1.14.1-beta.5 - @injectivelabs/wallet-ts@1.14.1-beta.5 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index fd1c6646a..572b61596 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.5", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 4873bde1f..311b7ddf2 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 3ec8386d1..800079d97 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.5", "@injectivelabs/token-metadata": "^1.14.1-beta.2", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index b27d14219..9c01ddad3 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.5", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From f4713fba2b6664663e08e0ec963014d5e9691227 Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Wed, 27 Sep 2023 15:07:02 +0200 Subject: [PATCH 33/86] chore: truflation test tokens --- .../src/tokens/tokens/testnet-tokens.ts | 27 +++++++++++++++++++ .../src/tokens/tokens/tokens.ts | 24 +++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts b/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts index c508d6f92..c5fd3f33a 100644 --- a/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts @@ -168,4 +168,31 @@ export const testnetTokens = () => }, ], }, + + EVINDEX: { + name: 'EVIINDEX', + symbol: 'EVIINDEX', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + tokenType: TokenType.TokenFactory, + }, + + TRUCPI: { + name: 'TRUCPI', + symbol: 'TRUCPI', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + tokenType: TokenType.TokenFactory, + }, + + GOLD: { + name: 'GOLD', + symbol: 'GOLD', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + tokenType: TokenType.TokenFactory, + }, } as Record) diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index 46e18e61a..354c7404f 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -1365,6 +1365,14 @@ export default { }, }, + GOLD: { + name: 'GOLD', + symbol: 'GOLD', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + }, + XAU: { name: 'Gold', symbol: 'XAU', @@ -1816,4 +1824,20 @@ export default { tokenType: TokenType.Ibc, }, }, + + EVINDEX: { + name: 'EVIINDEX', + symbol: 'EVIINDEX', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + }, + + TRUCPI: { + name: 'TRUCPI', + symbol: 'TRUCPI', + decimals: 18, + logo: 'unknown.svg', + coinGeckoId: '', + }, } as Record From aa1a03ed9365e61cec47adf9ad2f08a2bec805e8 Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Thu, 28 Sep 2023 12:56:01 +0200 Subject: [PATCH 34/86] chore: truflation tokens --- .../token-metadata/src/images/truEVINDEX.svg | 11 ++++++++ .../token-metadata/src/images/truflation.svg | 5 ++++ .../src/tokens/tokens/testnet-tokens.ts | 27 ------------------- .../src/tokens/tokens/tokens.ts | 20 +++++++------- 4 files changed, 26 insertions(+), 37 deletions(-) create mode 100644 packages/token-metadata/src/images/truEVINDEX.svg create mode 100644 packages/token-metadata/src/images/truflation.svg diff --git a/packages/token-metadata/src/images/truEVINDEX.svg b/packages/token-metadata/src/images/truEVINDEX.svg new file mode 100644 index 000000000..67d83a6f6 --- /dev/null +++ b/packages/token-metadata/src/images/truEVINDEX.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/packages/token-metadata/src/images/truflation.svg b/packages/token-metadata/src/images/truflation.svg new file mode 100644 index 000000000..308ef3d79 --- /dev/null +++ b/packages/token-metadata/src/images/truflation.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts b/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts index c5fd3f33a..c508d6f92 100644 --- a/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/testnet-tokens.ts @@ -168,31 +168,4 @@ export const testnetTokens = () => }, ], }, - - EVINDEX: { - name: 'EVIINDEX', - symbol: 'EVIINDEX', - decimals: 18, - logo: 'unknown.svg', - coinGeckoId: '', - tokenType: TokenType.TokenFactory, - }, - - TRUCPI: { - name: 'TRUCPI', - symbol: 'TRUCPI', - decimals: 18, - logo: 'unknown.svg', - coinGeckoId: '', - tokenType: TokenType.TokenFactory, - }, - - GOLD: { - name: 'GOLD', - symbol: 'GOLD', - decimals: 18, - logo: 'unknown.svg', - coinGeckoId: '', - tokenType: TokenType.TokenFactory, - }, } as Record) diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index 354c7404f..2bded6040 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -1365,14 +1365,6 @@ export default { }, }, - GOLD: { - name: 'GOLD', - symbol: 'GOLD', - decimals: 18, - logo: 'unknown.svg', - coinGeckoId: '', - }, - XAU: { name: 'Gold', symbol: 'XAU', @@ -1825,11 +1817,19 @@ export default { }, }, + GOLD: { + name: 'GOLD', + symbol: 'GOLD', + decimals: 18, + logo: 'gold.svg', + coinGeckoId: '', + }, + EVINDEX: { name: 'EVIINDEX', symbol: 'EVIINDEX', decimals: 18, - logo: 'unknown.svg', + logo: 'truEVINDEX.svg', coinGeckoId: '', }, @@ -1837,7 +1837,7 @@ export default { name: 'TRUCPI', symbol: 'TRUCPI', decimals: 18, - logo: 'unknown.svg', + logo: 'truflation.svg', coinGeckoId: '', }, } as Record From 9bb910beef6fbee6e0e751826d86511bc1026ac5 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Thu, 28 Sep 2023 11:21:14 +0000 Subject: [PATCH 35/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.6 - @injectivelabs/sdk-ts@1.14.1-beta.6 - @injectivelabs/sdk-ui-ts@1.14.1-beta.6 - @injectivelabs/token-metadata@1.14.1-beta.3 - @injectivelabs/wallet-ts@1.14.1-beta.6 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 572b61596..3f91ddccf 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.5", + "@injectivelabs/sdk-ts": "^1.14.1-beta.6", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 311b7ddf2..694929860 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.2", + "@injectivelabs/token-metadata": "^1.14.1-beta.3", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 800079d97..68e7dc209 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.5", - "@injectivelabs/token-metadata": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.6", + "@injectivelabs/token-metadata": "^1.14.1-beta.3", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index a13f90e30..dbbd725f7 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9c01ddad3..0e537f87e 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.5", + "@injectivelabs/sdk-ts": "^1.14.1-beta.6", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 796d20ae006663e9826734c70c5a394c6d7b349a Mon Sep 17 00:00:00 2001 From: Shane K Moore <41407272+shane-moore@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:32:00 -0700 Subject: [PATCH 36/86] chore: msgGrantAllowance and msgRevokeAllowance --- .gitbook/SUMMARY.md | 1 + .gitbook/core-modules/README.md | 1 + .gitbook/core-modules/feegrant.md | 75 ++++++++ .../sdk-ts/src/core/modules/feegrant/index.ts | 4 + .../feegrant/msgs/MsgGrantAllowance.spec.ts | 151 ++++++++++++++++ .../feegrant/msgs/MsgGrantAllowance.ts | 166 ++++++++++++++++++ .../feegrant/msgs/MsgRevokeAllowance.spec.ts | 79 +++++++++ .../feegrant/msgs/MsgRevokeAllowance.ts | 80 +++++++++ .../core/modules/feegrant/utils/allowance.ts | 140 +++++++++++++++ .../src/core/modules/feegrant/utils/index.ts | 1 + packages/sdk-ts/src/core/modules/index.ts | 1 + packages/sdk-ts/src/core/modules/msgs.ts | 4 + .../sdk-ts/src/core/modules/tx/eip712/maps.ts | 6 + packages/ts-types/src/enums.ts | 2 + 14 files changed, 711 insertions(+) create mode 100644 .gitbook/core-modules/feegrant.md create mode 100644 packages/sdk-ts/src/core/modules/feegrant/index.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.spec.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.spec.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/utils/allowance.ts create mode 100644 packages/sdk-ts/src/core/modules/feegrant/utils/index.ts diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index 6ff3b1c85..f9bf95bdc 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -61,6 +61,7 @@ * [Core Modules](core-modules/README.md) * [Auction](core-modules/auction.md) * [AuthZ](core-modules/authz.md) + - [Feegrant](core-modules/feegrant.md) * [Bank](core-modules/bank.md) * [Distribution](core-modules/distribution.md) * [Exchange](core-modules/exchange.md) diff --git a/.gitbook/core-modules/README.md b/.gitbook/core-modules/README.md index 65f95d10a..f7968321b 100644 --- a/.gitbook/core-modules/README.md +++ b/.gitbook/core-modules/README.md @@ -10,6 +10,7 @@ Within this section, we are going to explore the core modules of the Injective c | ------------------------------- | ------------------------------------------------ | | [Auction](auction.md) | Use for the buy-back-and-burn on chain mechanism | | [AuthZ](authz.md) | Used for granting account priveledges | +| [Feegrant](feegrant.md) | Used for granting fee allowance priveledges | | [Bank](bank.md) | Used for managing users assets (funds) | | [Exchange](exchange.md) | Used for the exchange primitives | | [Distribution](distribution.md) | Used for on-chain distribution/minting | diff --git a/.gitbook/core-modules/feegrant.md b/.gitbook/core-modules/feegrant.md new file mode 100644 index 000000000..c052621d6 --- /dev/null +++ b/.gitbook/core-modules/feegrant.md @@ -0,0 +1,75 @@ +# Fee Grant + +The `feegrant` module allows accounts (granters) to grant fee allowances to other accounts (grantees). This allows the grantee to use the granter's funds to pay for transaction fees. + +## Messages + +### MsgGrantAllowance + +A fee allowance grant is created using the `MsgGrantAllowance` message. If there is already a grant for the (granter, grantee) pair, then the new grant will overwrite the previous one. + +```ts +import { MsgGrantAllowance, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' +import { Network } from '@injectivelabs/networks' + + +const privateKeyOfGranter = '0x...' + +const date = new Date('2023-10-02T00:00:00Z') +const expiration = date.getTime() / 1000 +const granter = 'inj...' +const grantee = 'inj...' +const allowance = { + spendLimit: [ + { + denom: 'inj', + amount: '10000', + }, + ], + expiration +} + +const msg = MsgGrantAllowance.fromJSON({ + granter, + grantee, + allowance, +}) + +const txHash = await new MsgBroadcasterWithPk({ +privateKey: privateKeyOfGranter, +network: Network.Testnet, +}).broadcast({ +msgs: msg, +}) + +console.log(txHash) + +``` + +### MsgRevokeAllowance +A grant can be removed using the MsgRevokeAllowance message. The grantee will no longer be able to use the granter's funds to pay for transaction fees. + +```ts +import { MsgRevokeAllowance, MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' +import { Network } from '@injectivelabs/networks' + +const privateKey= "0x..." +const granteeAddress = 'inj...' +const granterAddress = 'inj...' + +const params = { +grantee: granteeAddress, +granter: granterAddress, +} + +const msg = MsgRevokeAllowance.fromJSON(params); + +const txHash = await new MsgBroadcasterWithPk({ +privateKey, +network: Network.Testnet, +}).broadcast({ +msgs: msg, +}) + +console.log(txHash) +``` diff --git a/packages/sdk-ts/src/core/modules/feegrant/index.ts b/packages/sdk-ts/src/core/modules/feegrant/index.ts new file mode 100644 index 000000000..be0443536 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/index.ts @@ -0,0 +1,4 @@ +import MsgGrantAllowance from './msgs/MsgGrantAllowance' +import MsgRevokeAllowance from './msgs/MsgRevokeAllowance' + +export { MsgGrantAllowance, MsgRevokeAllowance } diff --git a/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.spec.ts b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.spec.ts new file mode 100644 index 000000000..15b6808eb --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.spec.ts @@ -0,0 +1,151 @@ +import MsgGrantAllowance from './MsgGrantAllowance' +import { mockFactory } from '@injectivelabs/test-utils' +import { CosmosFeegrantV1Beta1Feegrant } from '@injectivelabs/core-proto-ts' +import snakecaseKeys from 'snakecase-keys' + +const { injectiveAddress, injectiveAddress2 } = mockFactory + +const params: MsgGrantAllowance['params'] = { + grantee: injectiveAddress, + granter: injectiveAddress2, + allowance: { + spendLimit: [ + { + denom: 'inj', + amount: '1000', + }, + ], + expiration: 1679416772, + }, +} + +const protoType = '/cosmos.feegrant.v1beta1.MsgGrantAllowance' +const protoTypeShort = 'cosmos-sdk/MsgGrantAllowance' +const protoParams = { + grantee: params.grantee, + granter: params.granter, + allowance: { + typeUrl: '/cosmos.feegrant.v1beta1.BasicAllowance', + value: Uint8Array.from( + CosmosFeegrantV1Beta1Feegrant.BasicAllowance.encode({ + spendLimit: params.allowance.spendLimit, + expiration: new Date(params.allowance.expiration! * 1000), + }).finish(), + ), + }, +} + +const protoParamsAmino = snakecaseKeys({ + grantee: params.grantee, + granter: params.granter, + allowance: { + type: 'cosmos-sdk/BasicAllowance', + value: { + spendLimit: params.allowance.spendLimit, + expiration: new Date(params.allowance.expiration! * 1000), + }, + }, +}) + +const protoParamsWeb3 = { + grantee: params.grantee, + granter: params.granter, + allowance: { + '@type': '/cosmos.feegrant.v1beta1.BasicAllowance', + spendLimit: params.allowance.spendLimit, + expiration: new Date(params.allowance.expiration! * 1000), + }, +} +const message = MsgGrantAllowance.fromJSON(params) + +describe('MsgGrantAllowance', () => { + it('generates proper proto', () => { + const message = MsgGrantAllowance.fromJSON(params) + const proto = message.toProto() + + expect(proto).toStrictEqual({ + ...protoParams, + }) + }) + + it('generates proper data', () => { + const data = message.toData() + + expect(data).toStrictEqual({ + '@type': protoType, + ...protoParams, + }) + }) + + it('generates proper amino', () => { + const amino = message.toAmino() + + expect(amino).toStrictEqual({ + type: protoTypeShort, + value: protoParamsAmino, + }) + }) + + it('generates proper Eip712 types', () => { + const eip712Types = message.toEip712Types() + + expect(Object.fromEntries(eip712Types)).toStrictEqual({ + TypeAllowance: [ + { name: 'type', type: 'string' }, + { name: 'value', type: 'TypeAllowanceValue' }, + ], + TypeAllowanceValue: [ + { name: 'spend_limit', type: 'TypeAllowanceValueSpendLimit[]' }, + { name: 'expiration', type: 'string' }, + ], + TypeAllowanceValueSpendLimit: [ + { name: 'denom', type: 'string' }, + { name: 'amount', type: 'string' }, + ], + MsgValue: [ + { name: 'granter', type: 'string' }, + { name: 'grantee', type: 'string' }, + { name: 'allowance', type: 'TypeAllowance' }, + ], + }) + }) + + it('generates proper Eip712 values', () => { + const eip712 = message.toEip712() + + expect(eip712).toStrictEqual({ + type: protoTypeShort, + value: snakecaseKeys({ + ...protoParamsAmino, + allowance: { + ...protoParamsAmino.allowance, + value: { + ...protoParamsAmino.allowance.value, + expiration: + protoParamsAmino.allowance.value.expiration + .toJSON() + .split('.')[0] + 'Z', + }, + }, + }), + }) + }) + + it('generates proper direct sign', () => { + const directSign = message.toDirectSign() + + expect(directSign).toStrictEqual({ + type: protoType, + message: protoParams, + }) + }) + + it('generates proper web3', () => { + const web3 = message.toWeb3() + + expect(web3).toStrictEqual({ + '@type': protoType, + ...protoParamsWeb3, + }) + }) +}) diff --git a/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.ts b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.ts new file mode 100644 index 000000000..8c325b448 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgGrantAllowance.ts @@ -0,0 +1,166 @@ +import snakecaseKeys from 'snakecase-keys' +import { MsgBase } from '../../MsgBase' +import { + CosmosFeegrantV1Beta1Tx, + CosmosFeegrantV1Beta1Feegrant, + GoogleProtobufTimestamp, + GoogleProtobufAny, +} from '@injectivelabs/core-proto-ts' +import { Coin } from '@injectivelabs/ts-types' + +const basicAllowanceType = '/cosmos.feegrant.v1beta1.BasicAllowance' +export declare namespace MsgGrantAllowance { + export interface Params { + granter: string + grantee: string + allowance: { + spendLimit: Coin[] + expiration: number | undefined + } + } + + export type Proto = CosmosFeegrantV1Beta1Tx.MsgGrantAllowance + + export type Object = Omit< + CosmosFeegrantV1Beta1Tx.MsgGrantAllowance, + 'allowance' + > & { + allowance: any + } +} + +/** + * @category Messages + */ +export default class MsgGrantAllowance extends MsgBase< + MsgGrantAllowance.Params, + MsgGrantAllowance.Proto +> { + static fromJSON(params: MsgGrantAllowance.Params): MsgGrantAllowance { + return new MsgGrantAllowance(params) + } + + public toProto() { + const { params } = this + + const timestamp = this.getTimestamp() + const basicAllowance = CosmosFeegrantV1Beta1Feegrant.BasicAllowance.create() + basicAllowance.spendLimit = params.allowance.spendLimit + basicAllowance.expiration = new Date(Number(timestamp.seconds) * 1000) + + const allowance = GoogleProtobufAny.Any.create() + allowance.typeUrl = basicAllowanceType + allowance.value = Buffer.from( + CosmosFeegrantV1Beta1Feegrant.BasicAllowance.encode( + basicAllowance, + ).finish(), + ) + + const message = CosmosFeegrantV1Beta1Tx.MsgGrantAllowance.create() + message.grantee = params.grantee + message.granter = params.granter + message.allowance = allowance + console.log({ + message, + fromJSON: CosmosFeegrantV1Beta1Tx.MsgGrantAllowance.fromJSON(message), + }) + + return CosmosFeegrantV1Beta1Tx.MsgGrantAllowance.fromJSON(message) + } + + public toData() { + const proto = this.toProto() + + return { + '@type': '/cosmos.feegrant.v1beta1.MsgGrantAllowance', + ...proto, + } + } + + public toAmino() { + const { params } = this + + const proto = this.toProto() + const timestamp = this.getTimestamp() + const message = proto + + const messageWithAllowance = snakecaseKeys({ + ...message, + allowance: { + type: 'cosmos-sdk/BasicAllowance', + value: { + spendLimit: params.allowance.spendLimit, + expiration: new Date(Number(timestamp.seconds) * 1000), + }, + }, + }) + + return { + type: 'cosmos-sdk/MsgGrantAllowance', + value: messageWithAllowance as unknown as MsgGrantAllowance.Object, + } + } + + public toDirectSign() { + const proto = this.toProto() + + return { + type: '/cosmos.feegrant.v1beta1.MsgGrantAllowance', + message: proto, + } + } + + public toWeb3() { + const { params } = this + const amino = this.toAmino() + const timestamp = this.getTimestamp() + + const messageWithAllowance = { + granter: amino.value.granter, + grantee: amino.value.grantee, + allowance: { + '@type': basicAllowanceType, + spendLimit: params.allowance.spendLimit, + expiration: new Date(Number(timestamp.seconds) * 1000), + }, + } + + return { + '@type': '/cosmos.feegrant.v1beta1.MsgGrantAllowance', + ...messageWithAllowance, + } + } + + private getTimestamp() { + const { params } = this + + if (params.allowance.expiration) { + const timestamp = GoogleProtobufTimestamp.Timestamp.create() + + timestamp.seconds = params.allowance.expiration.toString() + + return timestamp + } + + const defaultExpiryYears = 5 + const dateNow = new Date() + const expiration = new Date( + dateNow.getFullYear() + defaultExpiryYears, + dateNow.getMonth(), + dateNow.getDate(), + ) + + const timestamp = GoogleProtobufTimestamp.Timestamp.create() + const timestampInSeconds = (expiration.getTime() / 1000).toString() + + timestamp.seconds = timestampInSeconds + + return timestamp + } + + public toBinary(): Uint8Array { + return CosmosFeegrantV1Beta1Tx.MsgGrantAllowance.encode( + this.toProto(), + ).finish() + } +} diff --git a/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.spec.ts b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.spec.ts new file mode 100644 index 000000000..89ee5a3bc --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.spec.ts @@ -0,0 +1,79 @@ +import MsgRevokeAllowance from './MsgRevokeAllowance' +import { mockFactory } from '@injectivelabs/test-utils' +import snakecaseKeys from 'snakecase-keys' + +const { injectiveAddress, injectiveAddress2 } = mockFactory + +const params: MsgRevokeAllowance['params'] = { + grantee: injectiveAddress, + granter: injectiveAddress2, +} + +const protoType = '/cosmos.feegrant.v1beta1.MsgRevokeAllowance' +const protoTypeShort = 'cosmos-sdk/MsgRevokeAllowance' +const protoParams = { + grantee: params.grantee, + granter: params.granter, +} + +const protoParamsAmino = snakecaseKeys(protoParams) +const message = MsgRevokeAllowance.fromJSON(params) + +describe('MsgRevokeAllowance', () => { + it('generates proper proto', () => { + const proto = message.toProto() + + expect(proto).toStrictEqual({ + ...protoParams, + }) + }) + + it('generates proper data', () => { + const data = message.toData() + + expect(data).toStrictEqual({ + '@type': protoType, + ...protoParams, + }) + }) + + it('generates proper amino', () => { + const amino = message.toAmino() + + expect(amino).toStrictEqual({ + type: protoTypeShort, + value: protoParamsAmino, + }) + }) + + it('generates proper Eip712 types', () => { + const eip712Types = message.toEip712Types() + + expect(Object.fromEntries(eip712Types)).toStrictEqual({ + MsgValue: [ + { name: 'granter', type: 'string' }, + { name: 'grantee', type: 'string' }, + ], + }) + }) + + it('generates proper Eip712 values', () => { + const eip712 = message.toEip712() + + expect(eip712).toStrictEqual({ + type: protoTypeShort, + value: snakecaseKeys({ + ...protoParamsAmino, + }), + }) + }) + + it('generates proper web3', () => { + const web3 = message.toWeb3() + + expect(web3).toStrictEqual({ + '@type': protoType, + ...protoParamsAmino, + }) + }) +}) diff --git a/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.ts b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.ts new file mode 100644 index 000000000..1dd2599dd --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/msgs/MsgRevokeAllowance.ts @@ -0,0 +1,80 @@ +import { MsgBase } from '../../MsgBase' +import snakecaseKeys, { SnakeCaseKeys } from 'snakecase-keys' +import { CosmosFeegrantV1Beta1Tx } from '@injectivelabs/core-proto-ts' + +export declare namespace MsgRevokeAllowance { + export interface Params { + granter: string + grantee: string + } + + export type Proto = CosmosFeegrantV1Beta1Tx.MsgRevokeAllowance +} + +/** + * @category Messages + */ +export default class MsgRevokeAllowance extends MsgBase< + MsgRevokeAllowance.Params, + MsgRevokeAllowance.Proto +> { + static fromJSON(params: MsgRevokeAllowance.Params): MsgRevokeAllowance { + return new MsgRevokeAllowance(params) + } + + public toProto() { + const { params } = this + + const message = CosmosFeegrantV1Beta1Tx.MsgRevokeAllowance.create() + message.grantee = params.grantee + message.granter = params.granter + + return CosmosFeegrantV1Beta1Tx.MsgRevokeAllowance.fromPartial(message) + } + + public toData() { + const proto = this.toProto() + + return { + '@type': '/cosmos.feegrant.v1beta1.MsgRevokeAllowance', + ...proto, + } + } + + public toAmino() { + const proto = this.toProto() + const message = { + ...snakecaseKeys(proto), + } + + return { + type: 'cosmos-sdk/MsgRevokeAllowance', + value: message as unknown as SnakeCaseKeys, + } + } + + public toWeb3() { + const amino = this.toAmino() + const { value } = amino + + return { + '@type': '/cosmos.feegrant.v1beta1.MsgRevokeAllowance', + ...value, + } + } + + public toDirectSign() { + const proto = this.toProto() + + return { + type: '/cosmos.feegrant.v1beta1.MsgRevokeAllowance', + message: proto, + } + } + + public toBinary(): Uint8Array { + return CosmosFeegrantV1Beta1Tx.MsgRevokeAllowance.encode( + this.toProto(), + ).finish() + } +} diff --git a/packages/sdk-ts/src/core/modules/feegrant/utils/allowance.ts b/packages/sdk-ts/src/core/modules/feegrant/utils/allowance.ts new file mode 100644 index 000000000..7e50a0e83 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/utils/allowance.ts @@ -0,0 +1,140 @@ +import { + GoogleProtobufAny, + CosmosFeegrantV1Beta1Feegrant, +} from '@injectivelabs/core-proto-ts' +import { GeneralException } from '@injectivelabs/exceptions' + +export type AllowedMsgAllowance = Omit< + CosmosFeegrantV1Beta1Feegrant.AllowedMsgAllowance, + 'allowance' +> & { + allowance: + | CosmosFeegrantV1Beta1Feegrant.BasicAllowance + | CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance +} + +export type Allowance = + | CosmosFeegrantV1Beta1Feegrant.BasicAllowance + | CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance + | AllowedMsgAllowance + | undefined + +export enum AllowanceTypes { + BasicAllowance = 'spendLimit', + PeriodicAllowance = 'periodSpendLimit', + AllowedMsgAllowance = 'allowedMessages', +} + +function isBasicAllowance( + allowance: Allowance, +): allowance is CosmosFeegrantV1Beta1Feegrant.BasicAllowance { + if (!allowance) { + return false + } + + return AllowanceTypes.BasicAllowance in allowance +} + +function isPeriodicAllowance( + allowance: Allowance, +): allowance is CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance { + if (!allowance) { + return false + } + + return AllowanceTypes.PeriodicAllowance in allowance +} + +function isAllowedMsgAllowance( + allowance: Allowance, +): allowance is AllowedMsgAllowance { + if (!allowance) { + return false + } + + return AllowanceTypes.AllowedMsgAllowance in allowance +} + +function encodeBasicAllowance( + allowance: CosmosFeegrantV1Beta1Feegrant.BasicAllowance, +): GoogleProtobufAny.Any { + return { + typeUrl: '/cosmos.feegrant.v1beta1.BasicAllowance', + value: Buffer.from( + CosmosFeegrantV1Beta1Feegrant.BasicAllowance.encode(allowance).finish(), + ), + } +} + +function encodePeriodicAllowance( + allowance: CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance, +): GoogleProtobufAny.Any { + return { + typeUrl: '/cosmos.feegrant.v1beta1.PeriodicAllowance', + value: Buffer.from( + CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance.encode( + allowance, + ).finish(), + ), + } +} + +function encodeAllowedMsgAllowance( + allowance: AllowedMsgAllowance, +): GoogleProtobufAny.Any | undefined { + let internalAllowance: GoogleProtobufAny.Any + + if (isBasicAllowance(allowance.allowance as Allowance)) { + internalAllowance = encodeBasicAllowance( + allowance.allowance as unknown as CosmosFeegrantV1Beta1Feegrant.BasicAllowance, + ) + } else if (isPeriodicAllowance(allowance.allowance as Allowance)) { + internalAllowance = encodePeriodicAllowance( + allowance.allowance as unknown as CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance, + ) + } else { + throw new Error( + `AllowedMsgAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify( + allowance.allowance, + )}`, + ) + } + + return { + typeUrl: '/cosmos.feegrant.v1beta1.AllowedMsgAllowance', + value: Buffer.from( + CosmosFeegrantV1Beta1Feegrant.AllowedMsgAllowance.encode({ + allowedMessages: allowance.allowedMessages, + allowance: internalAllowance, + }).finish(), + ), + } +} + +export function encodeAllowance( + allowance: Allowance, +): GoogleProtobufAny.Any | undefined { + if (isBasicAllowance(allowance)) { + return encodeBasicAllowance( + allowance as CosmosFeegrantV1Beta1Feegrant.BasicAllowance, + ) + } + + if (isPeriodicAllowance(allowance)) { + return encodePeriodicAllowance( + allowance as CosmosFeegrantV1Beta1Feegrant.PeriodicAllowance, + ) + } + + if (isAllowedMsgAllowance(allowance)) { + return encodeAllowedMsgAllowance(allowance as AllowedMsgAllowance) + } + + throw new GeneralException( + new Error( + `Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify( + allowance, + )}`, + ), + ) +} diff --git a/packages/sdk-ts/src/core/modules/feegrant/utils/index.ts b/packages/sdk-ts/src/core/modules/feegrant/utils/index.ts new file mode 100644 index 000000000..48a402756 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/feegrant/utils/index.ts @@ -0,0 +1 @@ +export * from './allowance' diff --git a/packages/sdk-ts/src/core/modules/index.ts b/packages/sdk-ts/src/core/modules/index.ts index b88650c8e..e108a6fb6 100644 --- a/packages/sdk-ts/src/core/modules/index.ts +++ b/packages/sdk-ts/src/core/modules/index.ts @@ -12,3 +12,4 @@ export * from './tokenfactory' export * from './wasm' export * from './tx' export * from './msgs' +export * from './feegrant' diff --git a/packages/sdk-ts/src/core/modules/msgs.ts b/packages/sdk-ts/src/core/modules/msgs.ts index f61caccde..6928dc4cd 100644 --- a/packages/sdk-ts/src/core/modules/msgs.ts +++ b/packages/sdk-ts/src/core/modules/msgs.ts @@ -4,6 +4,8 @@ import MsgRevoke from './authz/msgs/MsgRevoke' import MsgAuthzExec from './authz/msgs/MsgExec' import MsgSend from './bank/msgs/MsgSend' import MsgMultiSend from './bank/msgs/MsgMultiSend' +import MsgGrantAllowance from './feegrant/msgs/MsgGrantAllowance' +import MsgRevokeAllowance from './feegrant/msgs/MsgRevokeAllowance' import MsgWithdrawDelegatorReward from './distribution/msgs/MsgWithdrawDelegatorReward' import MsgWithdrawValidatorCommission from './distribution/msgs/MsgWithdrawValidatorCommission' import MsgBatchCancelDerivativeOrders from './exchange/msgs/MsgBatchCancelDerivativeOrders' @@ -109,6 +111,8 @@ export type Msgs = | MsgChangeAdmin | MsgCreateDenom | MsgSetDenomMetadata + | MsgGrantAllowance + | MsgRevokeAllowance /** * @category Messages diff --git a/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts b/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts index 65a86b0d7..330f69325 100644 --- a/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts +++ b/packages/sdk-ts/src/core/modules/tx/eip712/maps.ts @@ -629,6 +629,12 @@ export const protoTypeToAminoType = (type: string): string => { case 'ibc.applications.transfer.v1.MsgTransfer': return 'cosmos-sdk/MsgTransfer' + // feegrant + case 'cosmos.feegrant.v1beta1.MsgGrantAllowance': + return 'cosmos-sdk/MsgGrantAllowance' + case 'cosmos.feegrant.v1beta1.MsgRevokeAllowance': + return 'cosmos-sdk/MsgRevokeAllowance' + default: throw new GeneralException(new Error('Unknown message type: ' + type)) } diff --git a/packages/ts-types/src/enums.ts b/packages/ts-types/src/enums.ts index 2e01dac6d..e7a4bc341 100644 --- a/packages/ts-types/src/enums.ts +++ b/packages/ts-types/src/enums.ts @@ -18,9 +18,11 @@ export enum ChainId { export enum MsgType { MsgExec = 'cosmos.authz.v1beta1.MsgExec', MsgGrant = 'cosmos.authz.v1beta1.MsgGrant', + MsgRevoke = 'cosmos.authz.v1beta1.MsgRevoke', MsgSend = 'cosmos.bank.v1beta1.MsgSend', MsgWithdrawDelegatorReward = 'cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward', MsgGrantAllowance = 'cosmos.feegrant.v1beta1.MsgGrantAllowance', + MsgRevokeAllowance = 'cosmos.feegrant.v1beta1.MsgRevokeAllowance', MsgDepositCosmos = 'cosmos.gov.v1beta1.MsgDeposit', MsgSubmitProposal = 'cosmos.gov.v1beta1.MsgSubmitProposal', MsgVote = 'cosmos.gov.v1beta1.MsgVote', From d136734b41e177a978ac2c350bb5d99625439b1a Mon Sep 17 00:00:00 2001 From: Shane K Moore <41407272+shane-moore@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:39:29 -0700 Subject: [PATCH 37/86] chore: add MsgExecuteContractCompat docs context --- .gitbook/core-modules/wasm.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitbook/core-modules/wasm.md b/.gitbook/core-modules/wasm.md index c6e423270..39e5debe6 100644 --- a/.gitbook/core-modules/wasm.md +++ b/.gitbook/core-modules/wasm.md @@ -82,7 +82,9 @@ console.log(txHash); ### MsgExecuteContractCompact -There are some compatibility issue parsing the funds array in the previous example with EIP712, hence we introduced MsgExecuteContractCompact which converts the funds into a string +There are some compatibility issue parsing the funds array in the previous example with EIP712. +Since MsgExecuteContract can't be converted to EIP712 and then signed by ethereum wallets, we introduced MsgExecuteContractCompact which converts the funds into a string and therefore allows for EIP712 transformation. +Note that the MsgExecuteContract and MsgExecuteContractCompat underlying messages are the same. MsgExecuteContractCompat will just format for EIP712 compatibility. An array of funds: From d306cce52d55d790dd7568943f1630eb8958de11 Mon Sep 17 00:00:00 2001 From: Shane K Moore <41407272+shane-moore@users.noreply.github.com> Date: Mon, 2 Oct 2023 12:32:44 -0700 Subject: [PATCH 38/86] chore: add tia token metadata --- packages/token-metadata/src/images/tia.webp | Bin 0 -> 2185 bytes .../token-metadata/src/tokens/tokens/tokens.ts | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 packages/token-metadata/src/images/tia.webp diff --git a/packages/token-metadata/src/images/tia.webp b/packages/token-metadata/src/images/tia.webp new file mode 100644 index 0000000000000000000000000000000000000000..957a90ba3c3fb399f3d0aea578b51846a9375448 GIT binary patch literal 2185 zcmbu82~?9;7RPTk0wx6#B5GI@f{2wMAS&2Xg%lyc5DB6KQZPi;0mKAIDT6E3DvAk$ zvT0?>2reU12q49UDoZP}gU}*^!DR}_RzMugyuj($(=+GHnKSo0dGD8d-~E60{ZFEL zqIw3p?%TQB0fPa+pa)b#*vniFCuj$sx1HXT+2b}3vs{?dcskQ!4{BK`L`$EJ*G@vFrxLFu0ibK2&v6mz+R?Skx zG-0@4AL1g!>qKZk#I5Rl@DeN49Ja)BY8LI}a{#bp#HL|OyiU!*ORT<&sW4m=jm|_N zW<^KEqZt-MeG_s>jIR&c4HrLR;DakTgDC_dx?2Qh@8Jrw0b&=ZADp!neZ2T#SJc4|FzWwJW};kimRwHAPw3$SoP zrFvJOQY{n$;GO{7%lOd0KLgo0hVs%6Io3r0onrusJ0Ehva)3(Y@ye&M0+C?xJvg*t zLqh>3uK;}H2cU<%Ubg4|tuOhFwAK1h*aNUL3Ba=%AUg+OHF}>;fa)jU00D=`<8cJE z5C{YfB3YA&LWe}sB2#pzREiFTqNi`TLXSpYPNA%1tfU(mnV6X9tzfd4#w%~)jgnSf-TtMFigNwFgOZE^#JJThmOOj|4{!9G$9VJuG#AX z1`!T}*B~ubF<2ZP2pSXyk!mB*V>)?j(#&iR6fC!M=KF}mvh@60sLcQ=0(Q}p-!#$P zH85CBR9r_vnporn@wXZV4THl|88%J?Z^5{pt?WLH$v<#wa6;7wWZYtv0$U-UpLs=) z@ZDBDMMI-q-AHaqeQkxJy#v#Jyrn<6vp8jH*wVYZx^3=D>g0stdKTMan;mPmq&JFp zP`9L;yw&oq-RQ{NLcP$Wp2OPoKC=B#e-iuiEsw1xx|qAHMdYGrkBHJ&CT9hX*EBdX zK`-as?SU!fwK`Hs+AnLSJ=R!i8J{e9J5w{9R+mfk9DCSHIhip1wX*(p)%ZBc;^|BT zm+r2mOqY0Ho!Fyr$iIKXBFz3CrniXjKfckL0sE)BUJa=s9?5OGRnvr$k@r<5VWOXV5bwikmi+6E8nwN#eE< z$C+2345X&NaHtCGz$YE6+S;n;=R-SI91!8|i+||Q@otM`S~OvkgR2UWGQMrK{`4xpx*hUrD^D_y1Fv>;I_1 z*^B9T+Dg_qwwJY8=Cgt^PDF&dSf|gMBzIPqJ#!9d_hYzl8HQ&PUle<^ z_=wue@^&>GN_uYPw$tz9_hGBds^(?4r924pr8HcQZ{%Vu*D z8^=rnYkxM*8aFC_)9Mki(8-FGy&|}D#VoJ882NJ7^%0)rvf=Su&^of-w#hM**~E5` bTe_F$Wyse!^E2|b-1#ZymhQTDRlWZL6~^vt literal 0 HcmV?d00001 diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index 2bded6040..c2e7d0e07 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -1840,4 +1840,12 @@ export default { logo: 'truflation.svg', coinGeckoId: '', }, + + TIA: { + name: 'Celestia', + symbol: 'TIA', + decimals: 6, + logo: 'tia.webp', + coinGeckoId: '', + }, } as Record From 33757831374cd7e1e88f0b77772bc994c12518d5 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 2 Oct 2023 19:39:25 +0000 Subject: [PATCH 39/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.7 - @injectivelabs/sdk-ts@1.14.1-beta.7 - @injectivelabs/sdk-ui-ts@1.14.1-beta.7 - @injectivelabs/token-metadata@1.14.1-beta.4 - @injectivelabs/wallet-ts@1.14.1-beta.7 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 3f91ddccf..9fd4775dc 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.6", + "@injectivelabs/sdk-ts": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 694929860..1c777a0bf 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.46", "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.3", + "@injectivelabs/token-metadata": "^1.14.1-beta.4", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 68e7dc209..e3ec897fa 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.6", - "@injectivelabs/token-metadata": "^1.14.1-beta.3", + "@injectivelabs/sdk-ts": "^1.14.1-beta.7", + "@injectivelabs/token-metadata": "^1.14.1-beta.4", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index dbbd725f7..15b6a4865 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 0e537f87e..33c0e7416 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.6", + "@injectivelabs/sdk-ts": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 239a47a38b1b1ce8b1652379ab420e7fa3b3a98a Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Thu, 5 Oct 2023 12:09:12 +0200 Subject: [PATCH 40/86] chore: rpc url optional --- .../src/strategies/wallet-strategy/WalletStrategy.ts | 6 +----- packages/wallet-ts/src/types/enums.ts | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/wallet-ts/src/strategies/wallet-strategy/WalletStrategy.ts b/packages/wallet-ts/src/strategies/wallet-strategy/WalletStrategy.ts index 9eee90430..43781d33c 100644 --- a/packages/wallet-ts/src/strategies/wallet-strategy/WalletStrategy.ts +++ b/packages/wallet-ts/src/strategies/wallet-strategy/WalletStrategy.ts @@ -42,16 +42,12 @@ const ethereumWalletsDisabled = (args: WalletStrategyArguments) => { return true } - const { rpcUrl, ethereumChainId } = ethereumOptions + const { ethereumChainId } = ethereumOptions if (!ethereumChainId) { return true } - if (!rpcUrl) { - return true - } - return false } diff --git a/packages/wallet-ts/src/types/enums.ts b/packages/wallet-ts/src/types/enums.ts index 68a5ea661..ed80364fb 100644 --- a/packages/wallet-ts/src/types/enums.ts +++ b/packages/wallet-ts/src/types/enums.ts @@ -9,6 +9,7 @@ export enum Wallet { Metamask = 'metamask', TrustWallet = 'trust-wallet', Cosmostation = 'cosmostation', + LedgerCosmos = 'ledger-cosmos', LedgerLegacy = 'ledger-legacy', WalletConnect = 'wallet-connect', CosmostationEth = 'cosmostation-eth', From a671133fbd1286e0ab69ac3ec78da761aa169322 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Thu, 5 Oct 2023 10:13:31 +0000 Subject: [PATCH 41/86] chore(release): publish - @injectivelabs/wallet-ts@1.14.1-beta.8 --- packages/wallet-ts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 33c0e7416..d09e96757 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", From ccf8af91e6004fc3d7040fec03166f609ae02a2c Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Thu, 5 Oct 2023 19:11:28 +0800 Subject: [PATCH 42/86] chore: minor --- packages/sdk-ts/src/client/wasm/mito/transformer.ts | 1 + packages/sdk-ts/src/client/wasm/mito/types.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/sdk-ts/src/client/wasm/mito/transformer.ts b/packages/sdk-ts/src/client/wasm/mito/transformer.ts index 386a1f3de..3c185040e 100644 --- a/packages/sdk-ts/src/client/wasm/mito/transformer.ts +++ b/packages/sdk-ts/src/client/wasm/mito/transformer.ts @@ -150,6 +150,7 @@ export class MitoQueryTransformer { maxInvariantSensitivity: formatToString(config.max_invariant_sensitivity), baseDecimals: Number(config.base_decimals), quoteDecimals: Number(config.quote_decimals), + feeBps: Number(config.fee_bps), } } diff --git a/packages/sdk-ts/src/client/wasm/mito/types.ts b/packages/sdk-ts/src/client/wasm/mito/types.ts index c27e6ed88..9e925c3ee 100644 --- a/packages/sdk-ts/src/client/wasm/mito/types.ts +++ b/packages/sdk-ts/src/client/wasm/mito/types.ts @@ -77,6 +77,7 @@ export interface QueryVaultContractAMMConfigResponse { max_invariant_sensitivity: string base_decimals: number quote_decimals: number + fee_bps: number } } @@ -178,6 +179,7 @@ export type VaultAMMConfig = { maxInvariantSensitivity: string baseDecimals: number quoteDecimals: number + feeBps: number } export type VaultDerivativeConfig = { From 6f09d7cb622a31818c1d43bb2dea145a3ac74df5 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Thu, 5 Oct 2023 11:15:55 +0000 Subject: [PATCH 43/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.8 - @injectivelabs/sdk-ts@1.14.1-beta.8 - @injectivelabs/sdk-ui-ts@1.14.1-beta.8 - @injectivelabs/wallet-ts@1.14.1-beta.9 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 9fd4775dc..dd6b92f67 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.8", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 1c777a0bf..a784153ca 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index e3ec897fa..b3f73f21b 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.8", "@injectivelabs/token-metadata": "^1.14.1-beta.4", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index d09e96757..3cbd410cb 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.8", + "version": "1.14.1-beta.9", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.8", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From c175ffbd49df0350ea9e25fa9a4b709dbccea74c Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Fri, 6 Oct 2023 00:07:57 +0800 Subject: [PATCH 44/86] chore: clean up mito queries and exeArgs --- packages/sdk-ts/src/client/wasm/index.ts | 3 +- packages/sdk-ts/src/client/wasm/mito/index.ts | 3 - .../mito/queries/QueryContractAllowance.ts | 20 - .../mito/queries/QueryContractBaseConfig.ts | 12 - .../wasm/mito/queries/QueryContractConfig.ts | 12 - .../queries/QueryContractMarketingInfo.ts | 12 - .../wasm/mito/queries/QueryLockedLpFunds.ts | 20 - .../wasm/mito/queries/QueryRegisteredVault.ts | 11 - .../wasm/mito/queries/QueryVaultMarketId.ts | 18 - .../mito/queries/QueryVaultTotalLpSupply.ts | 18 - .../src/client/wasm/mito/queries/index.ts | 8 - .../src/client/wasm/mito/transformer.ts | 346 ------------------ packages/sdk-ts/src/client/wasm/mito/types.ts | 261 ------------- .../sdk-ts/src/core/modules/wasm/exec-args.ts | 22 -- .../wasm/exec-args/ExecArgClaimRewards.ts | 39 -- .../wasm/exec-args/ExecArgClaimStake.ts | 39 -- .../modules/wasm/exec-args/ExecArgGeneric.ts | 35 -- .../wasm/exec-args/ExecArgRegisterVault.ts | 45 --- .../modules/wasm/exec-args/ExecArgUnstake.ts | 46 --- .../exec-args/ExecArgUpdateAMMVaultConfig.ts | 53 --- .../ExecArgUpdateAllocatorContractConfig.ts | 62 ---- .../ExecArgUpdateDerivativeVaultConfig.ts | 104 ------ .../ExecArgUpdateOffChainVaultConfig.ts | 47 --- .../exec-args/ExecArgUpdateSpotVaultConfig.ts | 104 ------ .../ExecArgUpdateStakingContractConfig.ts | 47 --- .../sdk-ts/src/core/modules/wasm/index.ts | 22 -- 26 files changed, 1 insertion(+), 1408 deletions(-) delete mode 100644 packages/sdk-ts/src/client/wasm/mito/index.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryContractAllowance.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryContractBaseConfig.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryContractConfig.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryContractMarketingInfo.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryLockedLpFunds.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryRegisteredVault.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultMarketId.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultTotalLpSupply.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/queries/index.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/transformer.ts delete mode 100644 packages/sdk-ts/src/client/wasm/mito/types.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimRewards.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimStake.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgGeneric.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRegisterVault.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUnstake.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAMMVaultConfig.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAllocatorContractConfig.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateDerivativeVaultConfig.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateOffChainVaultConfig.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateSpotVaultConfig.ts delete mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateStakingContractConfig.ts diff --git a/packages/sdk-ts/src/client/wasm/index.ts b/packages/sdk-ts/src/client/wasm/index.ts index 8b9b44bcf..93c4cea8e 100644 --- a/packages/sdk-ts/src/client/wasm/index.ts +++ b/packages/sdk-ts/src/client/wasm/index.ts @@ -1,4 +1,3 @@ -export * from './mito' export * from './swap' -export * from './nameservice' export * from './types' +export * from './nameservice' diff --git a/packages/sdk-ts/src/client/wasm/mito/index.ts b/packages/sdk-ts/src/client/wasm/mito/index.ts deleted file mode 100644 index 2b6403383..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './queries' -export * from './transformer' -export * from './types' diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractAllowance.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractAllowance.ts deleted file mode 100644 index edc0a601e..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractAllowance.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryContractAllowanceArg { - export interface Params { - owner: string - spender: string - } -} - -export class QueryContractAllowance extends BaseWasmQuery { - toPayload() { - return toBase64({ - allowance: { - owner: this.params.owner, - spender: this.params.spender, - }, - }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractBaseConfig.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractBaseConfig.ts deleted file mode 100644 index ce71a9de4..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractBaseConfig.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryContractConfigArg { - export interface Params {} -} - -export class QueryContractBaseConfig extends BaseWasmQuery { - toPayload() { - return toBase64({ base: { config: {} } }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractConfig.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractConfig.ts deleted file mode 100644 index 1f2af121f..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractConfig.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryContractConfigArg { - export interface Params {} -} - -export class QueryContractConfig extends BaseWasmQuery { - toPayload() { - return toBase64({ config: {} }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractMarketingInfo.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractMarketingInfo.ts deleted file mode 100644 index 75f00be2e..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryContractMarketingInfo.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryContractMarketingInfoArg { - export interface Params {} -} - -export class QueryContractMarketingInfo extends BaseWasmQuery { - toPayload() { - return toBase64({ marketing_info: {} }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryLockedLpFunds.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryLockedLpFunds.ts deleted file mode 100644 index bc175dd50..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryLockedLpFunds.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryLockedLpFundsArg { - export interface Params { - subaccountId: string - userAddress: string - } -} - -export class QueryLockedLpFunds extends BaseWasmQuery { - toPayload() { - return toBase64({ - get_locked_l_p_funds: { - subaccount_id: this.params.subaccountId, - user_address: this.params.userAddress, - }, - }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryRegisteredVault.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryRegisteredVault.ts deleted file mode 100644 index 02a61e70a..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryRegisteredVault.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryRegisteredVaultsArg { - export interface Params {} -} -export class QueryRegisteredVaults extends BaseWasmQuery { - toPayload() { - return toBase64({ get_registered_vaults: {} }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultMarketId.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultMarketId.ts deleted file mode 100644 index 1e595d832..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultMarketId.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryVaultMarketIdArg { - export interface Params { - subaccountId: string - } -} - -export class QueryVaultMarketId extends BaseWasmQuery { - toPayload() { - return toBase64({ - get_market_id: { - subaccount_id: this.params.subaccountId, - }, - }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultTotalLpSupply.ts b/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultTotalLpSupply.ts deleted file mode 100644 index 7e2f9dcf0..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/QueryVaultTotalLpSupply.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' - -export declare namespace QueryVaultTotalLpSupplyArg { - export interface Params { - subaccountId: string - } -} - -export class QueryVaultTotalLpSupply extends BaseWasmQuery { - toPayload() { - return toBase64({ - get_total_lp_supply: { - subaccount_id: this.params.subaccountId, - }, - }) - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/queries/index.ts b/packages/sdk-ts/src/client/wasm/mito/queries/index.ts deleted file mode 100644 index 81cce1d6a..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/queries/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { QueryVaultMarketId } from './QueryVaultMarketId' -export { QueryLockedLpFunds } from './QueryLockedLpFunds' -export { QueryContractConfig } from './QueryContractConfig' -export { QueryContractBaseConfig } from './QueryContractBaseConfig' -export { QueryRegisteredVaults } from './QueryRegisteredVault' -export { QueryContractAllowance } from './QueryContractAllowance' -export { QueryVaultTotalLpSupply } from './QueryVaultTotalLpSupply' -export { QueryContractMarketingInfo } from './QueryContractMarketingInfo' diff --git a/packages/sdk-ts/src/client/wasm/mito/transformer.ts b/packages/sdk-ts/src/client/wasm/mito/transformer.ts deleted file mode 100644 index 3c185040e..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/transformer.ts +++ /dev/null @@ -1,346 +0,0 @@ -import { toUtf8 } from '../../../utils' -import { WasmContractQueryResponse } from '../types' -import { - VaultAMMConfig, - VaultBaseConfig, - VaultSpotConfig, - VaultDerivativeConfig, - VaultMarketMakingConfig, - OffChainVaultSpotConfig, - OffChainVaultDerivativeConfig, - QueryOffChainVaultResponse, - QueryStakingConfigResponse, - QueryVaultMarketIdResponse, - QueryLockedLpFundsResponse, - QueryAllocatorConfigResponse, - QueryRegisteredVaultResponse, - QueryVaultContractBaseConfig, - QueryOffChainVaultSpotResponse, - QueryVaultContractMarketMaking, - QueryContractTokenInfoResponse, - QueryMastContractConfigResponse, - QueryVaultTotalLpSupplyResponse, - QueryVaultUserLpBalanceResponse, - QueryContractMarketingInfoResponse, - QueryVaultContractAMMConfigResponse, - QueryOffChainVaultDerivativeResponse, - QueryVaultContractSpotConfigResponse, - QueryVaultUserLpContractAllowanceResponse, - QueryVaultContractDerivativeConfigResponse, -} from './types' - -/** - * @hidden - */ - -const formatToString = (value?: string | number) => - value ? value.toString() : '' -export class MitoQueryTransformer { - static contractMarketingInfoResponseToContractMarketingInfo( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryContractMarketingInfoResponse - - return { - project: data.project, - description: data.description, - logo: data.logo, - marketing: data.marketing, - } - } - - static contractTokenInfoResponseToContractTokenInfo( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryContractTokenInfoResponse - - return { - name: data.name, - symbol: data.symbol, - decimals: data.decimals, - totalSupply: data.total_supply, - } - } - - static masterContractConfigResponseToMasterContractConfig( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryMastContractConfigResponse - - return { - distributionContract: data.distribution_contract, - ninjaToken: data.ninja_token, - owner: data.owner, - } - } - - static vaultContractBaseConfigResponseToBaseConfig( - config: QueryVaultContractBaseConfig, - ): VaultBaseConfig { - return { - owner: formatToString(config.owner), - marketId: formatToString(config.market_id), - subaccountId: formatToString(config.subaccount_id), - feeRecipient: formatToString(config.fee_recipient), - masterAddress: formatToString(config.master_address), - orderDensity: Number(config.order_density), - notionalValueCap: formatToString(config.notional_value_cap), - } - } - - static vaultContractMarketMakingResponseToMarketMaking( - config: QueryVaultContractMarketMaking, - ): VaultMarketMakingConfig { - return { - reservationPriceSensitivityRatio: formatToString( - config.reservation_price_sensitivity_ratio, - ), - reservationSpreadSensitivityRatio: formatToString( - config.reservation_spread_sensitivity_ratio, - ), - maxActiveCapitalUtilizationRatio: formatToString( - config.max_active_capital_utilization_ratio, - ), - headChangeToleranceRatio: formatToString( - config.head_change_tolerance_ratio, - ), - headToTailDeviationRatio: formatToString( - config.head_to_tail_deviation_ratio, - ), - signedMinHeadToFairPriceDeviationRatio: formatToString( - config.signed_min_head_to_fair_price_deviation_ratio, - ), - signedMinHeadToTobDeviationRatio: formatToString( - config.signed_min_head_to_tob_deviation_ratio, - ), - defaultMidPriceVolatilityRatio: formatToString( - config.default_mid_price_volatility_ratio, - ), - minOracleVolatilitySampleSize: Number( - config.min_oracle_volatility_sample_size, - ), - oracleVolatilityMaxAge: Number(config.oracle_volatility_max_age), - emergencyOracleVolatilitySampleSize: Number( - config.emergency_oracle_volatility_sample_size, - ), - lastValidMarkPrice: formatToString(config.last_valid_mark_price), - minVolatilityRatio: formatToString(config.min_volatility_ratio), - oracleStaleTime: Number(config.oracle_stale_time), - } - } - - static vaultContractConfigResponseToAMMVaultConfig( - response: WasmContractQueryResponse, - ): VaultAMMConfig { - const { config } = JSON.parse( - toUtf8(response.data), - ) as QueryVaultContractAMMConfigResponse - - return { - base: MitoQueryTransformer.vaultContractBaseConfigResponseToBaseConfig( - config.base, - ), - priceTickSize: formatToString(config.price_tick_size), - maxInvariantSensitivity: formatToString(config.max_invariant_sensitivity), - baseDecimals: Number(config.base_decimals), - quoteDecimals: Number(config.quote_decimals), - feeBps: Number(config.fee_bps), - } - } - - static vaultContractConfigResponseToDerivativeVaultConfig( - response: WasmContractQueryResponse, - ): VaultDerivativeConfig { - const { config } = JSON.parse( - toUtf8(response.data), - ) as QueryVaultContractDerivativeConfigResponse - - return { - base: MitoQueryTransformer.vaultContractBaseConfigResponseToBaseConfig( - config.base, - ), - marketMaking: - MitoQueryTransformer.vaultContractMarketMakingResponseToMarketMaking( - config.market_making, - ), - leverage: formatToString(config.leverage), - minProximityToLiquidation: formatToString( - config.min_proximity_to_liquidation, - ), - allowedRedemptionTypes: Number(config.allowed_redemption_types), - positionPnlPenalty: formatToString(config.position_pnl_penalty), - } - } - - static vaultContractConfigResponseToSpotVaultContractConfig( - response: WasmContractQueryResponse, - ): VaultSpotConfig { - const { config } = JSON.parse( - toUtf8(response.data), - ) as QueryVaultContractSpotConfigResponse - - return { - base: MitoQueryTransformer.vaultContractBaseConfigResponseToBaseConfig( - config.base, - ), - marketMaking: - MitoQueryTransformer.vaultContractMarketMakingResponseToMarketMaking( - config.market_making, - ), - oracleType: Number(config.oracle_type), - targetBaseWeight: formatToString(config.target_base_weight), - allowedRedemptionTypes: Number(config.allowed_redemption_types), - baseDecimals: Number(config.base_decimals), - quoteDecimals: Number(config.quote_decimals), - baseOracleSymbol: formatToString(config.base_oracle_symbol), - quoteOracleSymbol: formatToString(config.quote_oracle_symbol), - } - } - - static offChainVaultContractConfigResponseToOffChainVaultConfig( - response: WasmContractQueryResponse, - ): OffChainVaultSpotConfig | OffChainVaultDerivativeConfig { - const data = JSON.parse(toUtf8(response.data)) as QueryOffChainVaultResponse - - const isDerivativeVault = - (data.vault_type as QueryOffChainVaultDerivativeResponse).Derivative !== - undefined - const derivativeConfig = ( - data.vault_type as QueryOffChainVaultDerivativeResponse - ).Derivative - const spotConfig = (data.vault_type as QueryOffChainVaultSpotResponse).Spot - - return { - base: { - admin: formatToString(data.admin), - marketId: formatToString(data.market_id), - vaultSubaccountId: formatToString(data.vault_subaccount_id), - oracleStaleTime: Number(data.oracle_stale_time), - notionalValueCap: formatToString(data.notional_value_cap), - }, - ...(isDerivativeVault - ? { - positionPnlPenalty: formatToString( - derivativeConfig.position_pnl_penalty, - ), - allowedDerivativeRedemptionTypes: Number( - derivativeConfig.allowed_derivative_redemption_types, - ), - } - : { - oracleType: Number(spotConfig.oracle_type), - baseOracleSymbol: formatToString(spotConfig.base_oracle_symbol), - quoteOracleSymbol: formatToString(spotConfig.quote_oracle_symbol), - baseDecimals: Number(spotConfig.base_decimals), - quoteDecimals: Number(spotConfig.quote_decimals), - }), - } - } - - static vaultUserLpAllowanceResponseToVaultUserLpAllowance( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryVaultUserLpContractAllowanceResponse - - return { - allowance: data.allowance, - } - } - - static vaultMarketIdResponseToVaultMarketId( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse(toUtf8(response.data)) as QueryVaultMarketIdResponse - - return { marketId: data.market_id } - } - - static vaultTotalLpSupplyResponseToVaultTotalLpSupply( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryVaultTotalLpSupplyResponse - - return { totalSupply: data.total_supply } - } - - static vaultUserLpBalanceResponseToVaultUserLpBalance( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryVaultUserLpBalanceResponse - - return { balance: data.balance } - } - - static vaultUserLockedLpFundsResponseToVaultUserLockedLpFunds( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse(toUtf8(response.data)) as QueryLockedLpFundsResponse - - return { amount: data.amount, lockTime: data.lock_time } - } - - static registeredVaultsResponseToRegisteredVaults( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryRegisteredVaultResponse - - return data.registered_vaults.map((payload) => ({ - isDerivative: payload.vault.derivative !== undefined, - masterSubaccountId: payload.master_subaccount_id, - vaultAddress: - payload.vault.derivative?.address || payload.vault.spot?.address, - })) - } - - static allocatorConfigResponseToAllocatorConfig( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse( - toUtf8(response.data), - ) as QueryAllocatorConfigResponse - - return { - owner: formatToString(data.owner), - stakingContractAddress: formatToString(data.staking_contract_address), - maxRewardDenomsPerGauge: data.max_reward_denoms_per_gauge - ? Number(data.max_reward_denoms_per_gauge) - : undefined, - minGaugeDurationInSeconds: data.min_gauge_duration_in_seconds - ? Number(data.min_gauge_duration_in_seconds) - : undefined, - maxActiveGaugesPerLpToken: data.max_active_gauges_per_lp_token - ? Number(data.max_active_gauges_per_lp_token) - : undefined, - gaugeAllocationFeeDenom: formatToString(data.gauge_allocation_fee?.denom), - gaugeAllocationFeeAmount: formatToString( - data.gauge_allocation_fee?.amount, - ), - } - } - - static stakingConfigResponseToAllocatorConfig( - response: WasmContractQueryResponse, - ) { - const data = JSON.parse(toUtf8(response.data)) as QueryStakingConfigResponse - - return { - owner: formatToString(data.owner), - lockupPeriod: Number(data.lockup_period || 0), - allocatorContractAddress: formatToString(data.allocator_contract_address), - } - } -} diff --git a/packages/sdk-ts/src/client/wasm/mito/types.ts b/packages/sdk-ts/src/client/wasm/mito/types.ts deleted file mode 100644 index 9e925c3ee..000000000 --- a/packages/sdk-ts/src/client/wasm/mito/types.ts +++ /dev/null @@ -1,261 +0,0 @@ -export interface QueryContractTokenInfoResponse { - name: string - symbol: string - decimals: number - total_supply: string -} - -export interface QueryContractMarketingInfoResponse { - project: string - description: string - logo: string - marketing: string -} - -export interface QueryMastContractConfigResponse { - distribution_contract: string - ninja_token: string - owner: string -} - -export interface QueryVaultContractBaseConfig { - owner: string - market_id: string - subaccount_id: string - fee_recipient: string - master_address: string - order_density: number - notional_value_cap: string -} - -export interface QueryVaultContractMarketMaking { - reservation_price_sensitivity_ratio: string - reservation_spread_sensitivity_ratio: string - max_active_capital_utilization_ratio: string - head_change_tolerance_ratio: string - head_to_tail_deviation_ratio: string - signed_min_head_to_fair_price_deviation_ratio: string - signed_min_head_to_tob_deviation_ratio: string - default_mid_price_volatility_ratio: string - min_volatility_ratio: string - min_oracle_volatility_sample_size: number - oracle_volatility_max_age: number - emergency_oracle_volatility_sample_size: number - last_valid_mark_price: string - oracle_stale_time: number -} - -export interface QueryVaultContractDerivativeConfigResponse { - config: { - base: QueryVaultContractBaseConfig - market_making: QueryVaultContractMarketMaking - leverage: string - min_proximity_to_liquidation: string - allowed_redemption_types: number - position_pnl_penalty: string - } -} - -export interface QueryVaultContractSpotConfigResponse { - config: { - base: QueryVaultContractBaseConfig - market_making: QueryVaultContractMarketMaking - oracle_type: number - target_base_weight: string - allowed_redemption_types: number - base_decimals: number - quote_decimals: number - base_oracle_symbol: string - quote_oracle_symbol: string - } -} - -export interface QueryVaultContractAMMConfigResponse { - config: { - base: QueryVaultContractBaseConfig - price_tick_size: string - max_invariant_sensitivity: string - base_decimals: number - quote_decimals: number - fee_bps: number - } -} - -export interface QueryVaultUserLpContractAllowanceResponse { - allowance: string - expires: { - never: {} - } -} - -export interface QueryVaultMarketIdResponse { - market_id: string -} - -export interface QueryVaultTotalLpSupplyResponse { - total_supply: string -} - -export interface QueryVaultUserLpBalanceResponse { - balance: string -} - -export interface QueryLockedLpFundsResponse { - amount: string - lock_time: string -} - -export interface QueryRegisteredVaultResponse { - registered_vaults: { - master_subaccount_id: string - vault: { - spot?: { - address: string - } - derivative?: { - address: string - } - } - }[] -} - -export interface QueryOffChainVaultSpotResponse { - Spot: { - oracle_type: number - base_oracle_symbol: string - quote_oracle_symbol: string - base_decimals: number - quote_decimals: number - } -} -export interface QueryOffChainVaultDerivativeResponse { - Derivative: { - position_pnl_penalty: string - allowed_derivative_redemption_types: number - } -} - -export interface QueryOffChainVaultResponse { - admin: string - market_id: string - vault_subaccount_id: string - oracle_stale_time: string - notional_value_cap: string - vault_type: - | QueryOffChainVaultSpotResponse - | QueryOffChainVaultDerivativeResponse -} - -export type VaultBaseConfig = { - owner: string - marketId: string - subaccountId: string - feeRecipient: string - masterAddress: string - orderDensity: number - notionalValueCap: string -} - -export type VaultMarketMakingConfig = { - reservationPriceSensitivityRatio: string - reservationSpreadSensitivityRatio: string - maxActiveCapitalUtilizationRatio: string - headChangeToleranceRatio: string - headToTailDeviationRatio: string - signedMinHeadToFairPriceDeviationRatio: string - signedMinHeadToTobDeviationRatio: string - defaultMidPriceVolatilityRatio: string - minVolatilityRatio: string - minOracleVolatilitySampleSize: number - oracleVolatilityMaxAge: number - emergencyOracleVolatilitySampleSize: number - lastValidMarkPrice: string - oracleStaleTime: number -} - -export type VaultAMMConfig = { - base: VaultBaseConfig - priceTickSize: string - maxInvariantSensitivity: string - baseDecimals: number - quoteDecimals: number - feeBps: number -} - -export type VaultDerivativeConfig = { - base: VaultBaseConfig - marketMaking: VaultMarketMakingConfig - leverage: string - minProximityToLiquidation: string - allowedRedemptionTypes: number - positionPnlPenalty: string -} - -export type VaultSpotConfig = { - base: VaultBaseConfig - marketMaking: VaultMarketMakingConfig - oracleType: number - targetBaseWeight: string - allowedRedemptionTypes: number - baseDecimals: number - quoteDecimals: number - baseOracleSymbol: string - quoteOracleSymbol: string -} - -export type OffChainVaultBaseConfig = { - admin: string - marketId: string - vaultSubaccountId: string - oracleStaleTime: number - notionalValueCap: string -} - -export type OffChainVaultSpotConfig = { - base: OffChainVaultBaseConfig - oracleType: number - baseOracleSymbol: string - quoteOracleSymbol: string - baseDecimals: number - quoteDecimals: number -} - -export type OffChainVaultDerivativeConfig = { - base: OffChainVaultBaseConfig - positionPnlPenalty: string - allowedDerivativeRedemptionTypes: number -} - -export type QueryStakingConfigResponse = { - owner?: string - lockup_period?: number - allocator_contract_address?: string -} - -export type QueryAllocatorConfigResponse = { - owner?: string - staking_contract_address?: string - max_reward_denoms_per_gauge?: number - min_gauge_duration_in_seconds?: number - max_active_gauges_per_lp_token?: number - gauge_allocation_fee?: { - denom: string - amount: string - } -} - -export type StakingConfig = { - owner?: string - lockupPeriod?: number - allocatorContractAddress?: string -} - -export type AllocatorConfig = { - owner?: string - stakingContractAddress?: string - maxRewardDenomsPerGauge?: number - minGaugeDurationInSeconds?: number - maxActiveGaugesPerLpToken?: number - gaugeAllocationFeeDenom?: string - gaugeAllocationFeeAmount?: string -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args.ts index d7edd8659..38448dcb3 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args.ts @@ -1,26 +1,15 @@ -import ExecArgUnStake from './exec-args/ExecArgUnstake' -import ExecArgGeneric from './exec-args/ExecArgGeneric' import ExecArgCW20Send from './exec-args/ExecArgCW20Send' import ExecArgSubmitVaa from './exec-args/ExecArgSubmitVaa' -import ExecArgClaimStake from './exec-args/ExecArgClaimStake' -import ExecArgClaimRewards from './exec-args/ExecArgClaimRewards' import ExecArgCW20Transfer from './exec-args/ExecArgCW20Transfer' import ExecArgDepositTokens from './exec-args/ExecArgDepositTokens' -import ExecArgRegisterVault from './exec-args/ExecArgRegisterVault' import ExecArgSwapMinOutput from './exec-args/ExecArgSwapMinOutput' import ExecArgSwapExactOutput from './exec-args/ExecArgSwapExactOutput' import ExecArgInitiateTransfer from './exec-args/ExecArgInitiateTransfer' import ExecArgIncreaseAllowance from './exec-args/ExecArgIncreaseAllowance' import ExecArgRemoveGridStrategy from './exec-args/ExecArgRemoveGridStrategy' -import ExecArgUpdateAMMVaultConfig from './exec-args/ExecArgUpdateAMMVaultConfig' -import ExecArgUpdateSpotVaultConfig from './exec-args/ExecArgUpdateSpotVaultConfig' import ExecArgCreateSpotGridStrategy from './exec-args/ExecArgCreateSpotGridStrategy' -import ExecArgUpdateOffChainVaultConfig from './exec-args/ExecArgUpdateOffChainVaultConfig' -import ExecArgUpdateDerivativeVaultConfig from './exec-args/ExecArgUpdateDerivativeVaultConfig' -import ExecArgUpdateStakingContractConfig from './exec-args/ExecArgUpdateStakingContractConfig' import ExecArgCW20AdapterRedeemAndTransfer from './exec-args/ExecArgCW20AdapterRedeemAndTransfer' -import ExecArgUpdateAllocatorContractConfig from './exec-args/ExecArgUpdateAllocatorContractConfig' import ExecPrivilegedArgVaultRedeem from './exec-priv-args/ExecPrivilegedArgVaultRedeem' import ExecPrivilegedArgVaultSubscribe from './exec-priv-args/ExecPrivilegedArgVaultSubscribe' @@ -28,28 +17,17 @@ import ExecPrivilegedArgOffChainVaultRedeem from './exec-priv-args/ExecPrivilege import ExecPrivilegedArgOffChainVaultSubscribe from './exec-priv-args/ExecPrivilegedArgOffChainVaultSubscribe' export type ExecArgs = - | ExecArgGeneric - | ExecArgUnStake | ExecArgCW20Send | ExecArgSubmitVaa - | ExecArgClaimStake - | ExecArgClaimRewards | ExecArgCW20Transfer | ExecArgSwapMinOutput | ExecArgDepositTokens - | ExecArgRegisterVault | ExecArgCreateSpotGridStrategy | ExecArgRemoveGridStrategy | ExecArgSwapExactOutput | ExecArgInitiateTransfer | ExecArgIncreaseAllowance - | ExecArgUpdateAMMVaultConfig - | ExecArgUpdateSpotVaultConfig - | ExecArgUpdateOffChainVaultConfig - | ExecArgUpdateDerivativeVaultConfig - | ExecArgUpdateStakingContractConfig | ExecArgCW20AdapterRedeemAndTransfer - | ExecArgUpdateAllocatorContractConfig export type ExecPrivilegedArgs = | ExecPrivilegedArgVaultRedeem diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimRewards.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimRewards.ts deleted file mode 100644 index 5d38737a6..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimRewards.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgClaimRewards { - export interface Params { - lpToken: string - } - - export interface Data { - lp_token: string - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgClaimRewards extends ExecArgBase< - ExecArgClaimRewards.Params, - ExecArgClaimRewards.Data -> { - static fromJSON(params: ExecArgClaimRewards.Params): ExecArgClaimRewards { - return new ExecArgClaimRewards(params) - } - - toData(): ExecArgClaimRewards.Data { - const { params } = this - - return { - lp_token: params.lpToken, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('claim_rewards', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimStake.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimStake.ts deleted file mode 100644 index 1e3bcce4a..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgClaimStake.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgClaimStake { - export interface Params { - lpToken: string - } - - export interface Data { - lp_token: string - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgClaimStake extends ExecArgBase< - ExecArgClaimStake.Params, - ExecArgClaimStake.Data -> { - static fromJSON(params: ExecArgClaimStake.Params): ExecArgClaimStake { - return new ExecArgClaimStake(params) - } - - toData(): ExecArgClaimStake.Data { - const { params } = this - - return { - lp_token: params.lpToken, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('claim_stake', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgGeneric.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgGeneric.ts deleted file mode 100644 index 832b819a6..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgGeneric.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -/** - * @category Contract Exec Arguments for messages that do not require any additional params - */ -export declare namespace ExecArgGeneric { - export interface Params { - name: string - } - - export interface Data {} -} - -export default class ExecArgGeneric extends ExecArgBase< - ExecArgGeneric.Params, - ExecArgGeneric.Data -> { - static fromJSON(params: ExecArgGeneric.Params): ExecArgGeneric { - return new ExecArgGeneric(params) - } - - toData(): ExecArgGeneric.Data { - return {} - } - - toExecData(): ExecDataRepresentation { - const { params } = this - - return dataToExecData(params.name, this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRegisterVault.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRegisterVault.ts deleted file mode 100644 index ce5d3662b..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgRegisterVault.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgRegisterVault { - export interface Params { - vaultCodeId: number - vaultLabel: string - instantiateVaultMsg: Record - } - - export interface Data { - vault_code_id: number - vault_label: string - instantiate_vault_msg: Record - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgRegisterVault extends ExecArgBase< - ExecArgRegisterVault.Params, - ExecArgRegisterVault.Data -> { - static fromJSON(params: ExecArgRegisterVault.Params): ExecArgRegisterVault { - return new ExecArgRegisterVault(params) - } - - toData(): ExecArgRegisterVault.Data { - const { params } = this - - return { - vault_code_id: params.vaultCodeId, - vault_label: params.vaultLabel, - instantiate_vault_msg: params.instantiateVaultMsg, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('register_vault', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUnstake.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUnstake.ts deleted file mode 100644 index a81f2f678..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUnstake.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUnStake { - export interface Params { - denom: string - amount: string - } - - export interface Data { - coin: { - denom: string - amount: string - } - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUnStake extends ExecArgBase< - ExecArgUnStake.Params, - ExecArgUnStake.Data -> { - static fromJSON(params: ExecArgUnStake.Params): ExecArgUnStake { - return new ExecArgUnStake(params) - } - - toData(): ExecArgUnStake.Data { - const { params } = this - - return { - coin: { - denom: params.denom, - amount: params.amount, - }, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('unstake', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAMMVaultConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAMMVaultConfig.ts deleted file mode 100644 index 799842cd6..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAMMVaultConfig.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateAMMVaultConfig { - export interface Params { - marketId: string - orderDensity: number - maxInvariantSensitivity: string - priceTickSize: string - notionalValueCap: string - } - - export interface Data { - market_id: string - order_density: number - max_invariant_sensitivity: string - price_tick_size: string - notional_value_cap: string - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateAMMVaultConfig extends ExecArgBase< - ExecArgUpdateAMMVaultConfig.Params, - ExecArgUpdateAMMVaultConfig.Data -> { - static fromJSON( - params: ExecArgUpdateAMMVaultConfig.Params, - ): ExecArgUpdateAMMVaultConfig { - return new ExecArgUpdateAMMVaultConfig(params) - } - - toData(): ExecArgUpdateAMMVaultConfig.Data { - const { params } = this - - return { - market_id: params.marketId, - order_density: params.orderDensity, - max_invariant_sensitivity: params.maxInvariantSensitivity, - price_tick_size: params.priceTickSize, - notional_value_cap: params.notionalValueCap, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_vault_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAllocatorContractConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAllocatorContractConfig.ts deleted file mode 100644 index d493907fa..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateAllocatorContractConfig.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateAllocatorContractConfig { - export interface Params { - owner?: string - stakingContractAddress?: string - maxRewardDenomsPerGauge?: string - minGaugeDurationInSeconds?: string - maxActiveGaugesPerLpToken?: string - gaugeAllocationFee?: { - denom: string - amount: string - } - } - - export interface Data { - owner?: string - staking_contract_address?: string - max_reward_denoms_per_gauge?: string - min_gauge_duration_in_seconds?: string - max_active_gauges_per_lp_token?: string - gauge_allocation_fee?: { - denom: string - amount: string - } - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateAllocatorContractConfig extends ExecArgBase< - ExecArgUpdateAllocatorContractConfig.Params, - ExecArgUpdateAllocatorContractConfig.Data -> { - static fromJSON( - params: ExecArgUpdateAllocatorContractConfig.Params, - ): ExecArgUpdateAllocatorContractConfig { - return new ExecArgUpdateAllocatorContractConfig(params) - } - - toData(): ExecArgUpdateAllocatorContractConfig.Data { - const { params } = this - - return { - owner: params.owner, - staking_contract_address: params.stakingContractAddress, - max_reward_denoms_per_gauge: params.maxRewardDenomsPerGauge, - min_gauge_duration_in_seconds: params.minGaugeDurationInSeconds, - max_active_gauges_per_lp_token: params.maxActiveGaugesPerLpToken, - gauge_allocation_fee: params.gaugeAllocationFee, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateDerivativeVaultConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateDerivativeVaultConfig.ts deleted file mode 100644 index 4dc0cdbe0..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateDerivativeVaultConfig.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateDerivativeVaultConfig { - export interface Params { - marketId: string - leverage: string - orderDensity: number - signedMinHeadToFairPriceDeviationRatio: string - signedMinHeadToTobDeviationRatio: string - reservationPriceSensitivityRatio: string - reservationSpreadSensitivityRatio: string - maxActiveCapitalUtilizationRatio: string - headChangeToleranceRatio: string - headToTailDeviationRatio: string - minProximityToLiquidation: string - minOracleVolatilitySampleSize: number - emergencyOracleVolatilitySampleSize: number - defaultMidPriceVolatilityRatio: string - minVolatilityRatio: string - lastValidMarkPrice: string - allowedRedemptionTypes: number - notionalValueCap: string - oracleStaleTime: number - oracleVolatilityMaxAge: number - } - - export interface Data { - market_id: string - leverage: string - order_density: number - signed_min_head_to_fair_price_deviation_ratio: string - signed_min_head_to_tob_deviation_ratio: string - reservation_price_sensitivity_ratio: string - reservation_spread_sensitivity_ratio: string - max_active_capital_utilization_ratio: string - head_change_tolerance_ratio: string - head_to_tail_deviation_ratio: string - min_proximity_to_liquidation: string - min_oracle_volatility_sample_size: number - emergency_oracle_volatility_sample_size: number - default_mid_price_volatility_ratio: string - min_volatility_ratio: string - last_valid_mark_price: string - allowed_redemption_types: number - notional_value_cap: string - oracle_stale_time: number - oracle_volatility_max_age: number - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateDerivativeVaultConfig extends ExecArgBase< - ExecArgUpdateDerivativeVaultConfig.Params, - ExecArgUpdateDerivativeVaultConfig.Data -> { - static fromJSON( - params: ExecArgUpdateDerivativeVaultConfig.Params, - ): ExecArgUpdateDerivativeVaultConfig { - return new ExecArgUpdateDerivativeVaultConfig(params) - } - - toData(): ExecArgUpdateDerivativeVaultConfig.Data { - const { params } = this - - return { - market_id: params.marketId, - leverage: params.leverage, - order_density: params.orderDensity, - signed_min_head_to_fair_price_deviation_ratio: - params.signedMinHeadToFairPriceDeviationRatio, - signed_min_head_to_tob_deviation_ratio: - params.signedMinHeadToTobDeviationRatio, - reservation_price_sensitivity_ratio: - params.reservationPriceSensitivityRatio, - reservation_spread_sensitivity_ratio: - params.reservationSpreadSensitivityRatio, - max_active_capital_utilization_ratio: - params.maxActiveCapitalUtilizationRatio, - head_change_tolerance_ratio: params.headChangeToleranceRatio, - head_to_tail_deviation_ratio: params.headToTailDeviationRatio, - min_proximity_to_liquidation: params.minProximityToLiquidation, - min_oracle_volatility_sample_size: params.minOracleVolatilitySampleSize, - emergency_oracle_volatility_sample_size: - params.emergencyOracleVolatilitySampleSize, - default_mid_price_volatility_ratio: params.defaultMidPriceVolatilityRatio, - min_volatility_ratio: params.minVolatilityRatio, - last_valid_mark_price: params.lastValidMarkPrice, - allowed_redemption_types: params.allowedRedemptionTypes, - notional_value_cap: params.notionalValueCap, - oracle_stale_time: params.oracleStaleTime, - oracle_volatility_max_age: params.oracleVolatilityMaxAge, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_vault_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateOffChainVaultConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateOffChainVaultConfig.ts deleted file mode 100644 index 58b4f6ab4..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateOffChainVaultConfig.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateOffChainVaultConfig { - export interface Params { - oracleStaleTime: number - notionalValueCap: string - vaultType: Record - } - - export interface Data { - oracle_stale_time: number - notional_value_cap: string - vault_type: Record - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateOffChainVaultConfig extends ExecArgBase< - ExecArgUpdateOffChainVaultConfig.Params, - ExecArgUpdateOffChainVaultConfig.Data -> { - static fromJSON( - params: ExecArgUpdateOffChainVaultConfig.Params, - ): ExecArgUpdateOffChainVaultConfig { - return new ExecArgUpdateOffChainVaultConfig(params) - } - - toData(): ExecArgUpdateOffChainVaultConfig.Data { - const { params } = this - - return { - oracle_stale_time: params.oracleStaleTime, - notional_value_cap: params.notionalValueCap, - vault_type: params.vaultType, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_vault_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateSpotVaultConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateSpotVaultConfig.ts deleted file mode 100644 index 1b6f8b7f5..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateSpotVaultConfig.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateSpotVaultConfig { - export interface Params { - marketId: string - orderDensity: number - reservationPriceSensitivityRatio: string - reservationSpreadSensitivityRatio: string - maxActiveCapitalUtilizationRatio: string - headChangeToleranceRatio: string - headToTailDeviationRatio: string - signedMinHeadToFairPriceDeviationRatio: string - signedMinHeadToTobDeviationRatio: string - targetBaseWeight: string - oracleType: number - defaultMidPriceVolatilityRatio: string - allowedRedemptionTypes: number - notionalValueCap: string - oracleStaleTime: number - lastValidMarkPrice: string - minOracleVolatilitySampleSize: number - emergencyOracleVolatilitySampleSize: number - minVolatilityRatio: string - oracleVolatilityMaxAge: number - } - - export interface Data { - market_id: string - order_density: number - reservation_price_sensitivity_ratio: string - reservation_spread_sensitivity_ratio: string - max_active_capital_utilization_ratio: string - head_change_tolerance_ratio: string - head_to_tail_deviation_ratio: string - signed_min_head_to_fair_price_deviation_ratio: string - signed_min_head_to_tob_deviation_ratio: string - target_base_weight: string - oracle_type: number - default_mid_price_volatility_ratio: string - allowed_redemption_types: number - notional_value_cap: string - oracle_stale_time: number - last_valid_mark_price: string - min_oracle_volatility_sample_size: number - emergency_oracle_volatility_sample_size: number - min_volatility_ratio: string - oracle_volatility_max_age: number - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateSpotVaultConfig extends ExecArgBase< - ExecArgUpdateSpotVaultConfig.Params, - ExecArgUpdateSpotVaultConfig.Data -> { - static fromJSON( - params: ExecArgUpdateSpotVaultConfig.Params, - ): ExecArgUpdateSpotVaultConfig { - return new ExecArgUpdateSpotVaultConfig(params) - } - - toData(): ExecArgUpdateSpotVaultConfig.Data { - const { params } = this - - return { - market_id: params.marketId, - order_density: params.orderDensity, - reservation_price_sensitivity_ratio: - params.reservationPriceSensitivityRatio, - reservation_spread_sensitivity_ratio: - params.reservationSpreadSensitivityRatio, - max_active_capital_utilization_ratio: - params.maxActiveCapitalUtilizationRatio, - head_change_tolerance_ratio: params.headChangeToleranceRatio, - head_to_tail_deviation_ratio: params.headToTailDeviationRatio, - signed_min_head_to_fair_price_deviation_ratio: - params.signedMinHeadToFairPriceDeviationRatio, - signed_min_head_to_tob_deviation_ratio: - params.signedMinHeadToTobDeviationRatio, - target_base_weight: params.targetBaseWeight, - oracle_type: params.oracleType, - default_mid_price_volatility_ratio: params.defaultMidPriceVolatilityRatio, - allowed_redemption_types: params.allowedRedemptionTypes, - notional_value_cap: params.notionalValueCap, - oracle_stale_time: params.oracleStaleTime, - last_valid_mark_price: params.lastValidMarkPrice, - min_oracle_volatility_sample_size: params.minOracleVolatilitySampleSize, - emergency_oracle_volatility_sample_size: - params.emergencyOracleVolatilitySampleSize, - min_volatility_ratio: params.minVolatilityRatio, - oracle_volatility_max_age: params.oracleVolatilityMaxAge, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_vault_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateStakingContractConfig.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateStakingContractConfig.ts deleted file mode 100644 index b74314aa0..000000000 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgUpdateStakingContractConfig.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { - dataToExecData, - ExecArgBase, - ExecDataRepresentation, -} from '../ExecArgBase' - -export declare namespace ExecArgUpdateStakingContractConfig { - export interface Params { - owner: string - lockupPeriod?: string - allocatorContractAddress: string - } - - export interface Data { - owner: string - lockup_period?: string - allocator_contract_address: string - } -} - -/** - * @category Contract Exec Arguments - */ -export default class ExecArgUpdateStakingContractConfig extends ExecArgBase< - ExecArgUpdateStakingContractConfig.Params, - ExecArgUpdateStakingContractConfig.Data -> { - static fromJSON( - params: ExecArgUpdateStakingContractConfig.Params, - ): ExecArgUpdateStakingContractConfig { - return new ExecArgUpdateStakingContractConfig(params) - } - - toData(): ExecArgUpdateStakingContractConfig.Data { - const { params } = this - - return { - owner: params.owner, - lockup_period: params.lockupPeriod, - allocator_contract_address: params.allocatorContractAddress, - } - } - - toExecData(): ExecDataRepresentation { - return dataToExecData('update_config', this.toData()) - } -} diff --git a/packages/sdk-ts/src/core/modules/wasm/index.ts b/packages/sdk-ts/src/core/modules/wasm/index.ts index f76aef96e..9eeacc0a5 100644 --- a/packages/sdk-ts/src/core/modules/wasm/index.ts +++ b/packages/sdk-ts/src/core/modules/wasm/index.ts @@ -1,25 +1,14 @@ -import ExecArgGeneric from './exec-args/ExecArgGeneric' -import ExecArgUnStake from './exec-args/ExecArgUnstake' import ExecArgCW20Send from './exec-args/ExecArgCW20Send' import ExecArgSubmitVaa from './exec-args/ExecArgSubmitVaa' -import ExecArgClaimStake from './exec-args/ExecArgClaimStake' -import ExecArgClaimRewards from './exec-args/ExecArgClaimRewards' import ExecArgCW20Transfer from './exec-args/ExecArgCW20Transfer' import ExecArgSwapMinOutput from './exec-args/ExecArgSwapMinOutput' import ExecArgDepositTokens from './exec-args/ExecArgDepositTokens' -import ExecArgRegisterVault from './exec-args/ExecArgRegisterVault' import ExecArgSwapExactOutput from './exec-args/ExecArgSwapExactOutput' import ExecArgInitiateTransfer from './exec-args/ExecArgInitiateTransfer' import ExecArgIncreaseAllowance from './exec-args/ExecArgIncreaseAllowance' import ExecArgRemoveGridStrategy from './exec-args/ExecArgRemoveGridStrategy' -import ExecArgUpdateAMMVaultConfig from './exec-args/ExecArgUpdateAMMVaultConfig' -import ExecArgUpdateSpotVaultConfig from './exec-args/ExecArgUpdateSpotVaultConfig' import ExecArgCreateSpotGridStrategy from './exec-args/ExecArgCreateSpotGridStrategy' -import ExecArgUpdateOffChainVaultConfig from './exec-args/ExecArgUpdateOffChainVaultConfig' -import ExecArgUpdateDerivativeVaultConfig from './exec-args/ExecArgUpdateDerivativeVaultConfig' -import ExecArgUpdateStakingContractConfig from './exec-args/ExecArgUpdateStakingContractConfig' import ExecArgCW20AdapterRedeemAndTransfer from './exec-args/ExecArgCW20AdapterRedeemAndTransfer' -import ExecArgUpdateAllocatorContractConfig from './exec-args/ExecArgUpdateAllocatorContractConfig' import MsgStoreCode from './msgs/MsgStoreCode' import MsgUpdateAdmin from './msgs/MsgUpdateAdmin' @@ -37,28 +26,17 @@ import ExecPrivilegedArgOffChainVaultSubscribe from './exec-priv-args/ExecPrivil export * from './exec-args' export { - ExecArgGeneric, - ExecArgUnStake, ExecArgCW20Send, ExecArgSubmitVaa, - ExecArgClaimStake, - ExecArgClaimRewards, ExecArgCW20Transfer, ExecArgSwapMinOutput, ExecArgDepositTokens, - ExecArgRegisterVault, ExecArgSwapExactOutput, ExecArgInitiateTransfer, ExecArgIncreaseAllowance, ExecArgRemoveGridStrategy, - ExecArgUpdateAMMVaultConfig, - ExecArgUpdateSpotVaultConfig, ExecArgCreateSpotGridStrategy, - ExecArgUpdateOffChainVaultConfig, - ExecArgUpdateDerivativeVaultConfig, - ExecArgUpdateStakingContractConfig, ExecArgCW20AdapterRedeemAndTransfer, - ExecArgUpdateAllocatorContractConfig, // MsgStoreCode, MsgUpdateAdmin, From 7d5151238d209e6dfb6a49d11e59efd08b305569 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Thu, 5 Oct 2023 16:12:48 +0000 Subject: [PATCH 45/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.9 - @injectivelabs/sdk-ts@1.14.1-beta.9 - @injectivelabs/sdk-ui-ts@1.14.1-beta.9 - @injectivelabs/wallet-ts@1.14.1-beta.10 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index dd6b92f67..c02109248 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.8", + "version": "1.14.1-beta.9", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.9", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index a784153ca..17f7b9504 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.8", + "version": "1.14.1-beta.9", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index b3f73f21b..f993e7e22 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.8", + "version": "1.14.1-beta.9", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.9", "@injectivelabs/token-metadata": "^1.14.1-beta.4", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 3cbd410cb..caab0a6b0 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.9", + "version": "1.14.1-beta.10", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.9", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 7d05f422d7273071f6eb078988f9062bf4389e3b Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Wed, 11 Oct 2023 22:34:57 +0800 Subject: [PATCH 46/86] chore: docs for calculating market price quantity tick size --- .gitbook/calulations/README.md | 10 +++++ .gitbook/calulations/minPriceTickSize.md | 47 +++++++++++++++++++++ .gitbook/calulations/minQuantityTickSize.md | 23 ++++++++++ 3 files changed, 80 insertions(+) create mode 100644 .gitbook/calulations/README.md create mode 100644 .gitbook/calulations/minPriceTickSize.md create mode 100644 .gitbook/calulations/minQuantityTickSize.md diff --git a/.gitbook/calulations/README.md b/.gitbook/calulations/README.md new file mode 100644 index 000000000..bebe608d5 --- /dev/null +++ b/.gitbook/calulations/README.md @@ -0,0 +1,10 @@ +# Calculations + +Here are some formula formatting values between the chain and UI human-readable. + +### Bridges Supported + +| Topic | Description | +| ------------------------------------------------------- | --------------------------------------- | +| [Market min price tick size](minPriceTickSize.md) | Minimum market order price tick size | +| [Market min quantity tick size](minQuantityTickSzie.md) | Minimum market order quantity tick size | diff --git a/.gitbook/calulations/minPriceTickSize.md b/.gitbook/calulations/minPriceTickSize.md new file mode 100644 index 000000000..babc86b99 --- /dev/null +++ b/.gitbook/calulations/minPriceTickSize.md @@ -0,0 +1,47 @@ +# Market min price tick size + +The min market price tick size for an order price - if a market has an minPriceTickSick of `0.001` and order submission with the price of `0.0011` will be rejected. + +Note that calculating the formula for calculating a spot and quote market price tick size are different. + +### Spot market + +1. UI human readable to chain format: + Using INJ/USDT market which has 18 base decimals and 6 quote decimals as an example, here's how we convert the value to the chain format: + +```js +const chainFormat = new BigNumberInBase(10) + .pow(quoteDecimal - baseDecimal) + .times(value) + .toFixed() +``` + +1. Chain format to UI human readable format: + Using INJ/USDT market which has 18 base decimals and 6 quote decimals as an example, here's how we convert the value to the UI human readable format: + +```js +const humanReadableFormat = new BigNumber(value) + .shiftedBy(baseDecimals - quoteDecimals) + .toFixed() +``` + +### Derivative market + +1. UI human readable to chain format: + Using INJ/USDT perp market which has 6 quote decimals as an example, here's how we convert the value to the chain format: + +```js +const chainFormat = new BigNumberInBase(10) + .pow(-quoteDecimal) + .times(value) + .toFixed() +``` + +1. Chain format to UI human readable format: + Using INJ/USDT perp market which has 6 quote decimals as an example, here's how we convert the value to the UI human readable format: + +```js +const humanReadableFormat = new BigNumber(value) + .shiftedBy(-quoteDecimals) + .toFixed() +``` diff --git a/.gitbook/calulations/minQuantityTickSize.md b/.gitbook/calulations/minQuantityTickSize.md new file mode 100644 index 000000000..a5d16506a --- /dev/null +++ b/.gitbook/calulations/minQuantityTickSize.md @@ -0,0 +1,23 @@ +# Market min quantity tick size + +The min market quantity tick size for an order price - if a market has an minQuantityTickSize of `0.001` and order submission with the quantity of `0.0011` will be rejected. + +Note that derivate markets shares the same format for minQuantityTickSize between UI and the chain, so no formatting is required. + +### Spot market + +1. UI human readable to chain format: + Using on a INJ/USDT market which has 18 base decimals and 6 quote decimals as an example, here's how we convert the value to the chain format: + +```js +const chainFormat = new BigNumberInWei(value).toBase(baseDecimals) +``` + +1. Chain format to UI human readable format: + Using INJ/USDT market which has 18 base decimals and 6 quote decimals as an example, here's how we convert the value to the UI human readable format: + +```js +const humanReadableFormat = new BigNumber(minQuantityTickSize) + .shiftedBy(-baseDecimals) + .toFixed() +``` From 61ec73193de330f82c0af1e619e86c10cb09f628 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Thu, 12 Oct 2023 17:57:31 +0800 Subject: [PATCH 47/86] fix: docs calculations typo --- .gitbook/README.md | 1 + .gitbook/SUMMARY.md | 1 + .gitbook/{calulations => calculations}/README.md | 0 .gitbook/{calulations => calculations}/minPriceTickSize.md | 0 .gitbook/{calulations => calculations}/minQuantityTickSize.md | 0 5 files changed, 2 insertions(+) rename .gitbook/{calulations => calculations}/README.md (100%) rename .gitbook/{calulations => calculations}/minPriceTickSize.md (100%) rename .gitbook/{calulations => calculations}/minQuantityTickSize.md (100%) diff --git a/.gitbook/README.md b/.gitbook/README.md index 22a8c72d9..0335017be 100644 --- a/.gitbook/README.md +++ b/.gitbook/README.md @@ -21,3 +21,4 @@ _Note: Reading the Technical Concepts section after reading the overview below i * [Core Modules](core-modules/) - In this section we are going to have a quick summary of the core modules on Injective and show examples of how to create some Messages (+ pack them into a transaction, sign them using a private key, and broadcast them on Injective) within these core modules. * [Bridge](bridge/) - In this section, we are going to have a look at Injective's interoperability and explain how developers can utilize the Peggy bridge and the IBC bridge to bridge assets over to Injective. * [Networks](readme/networks.md) - In this section, we will look at different (pre-defined) available Networks for developers to utilize while building dApps on top of Injective, allowing them to start building without the need to make their own infrastructure. +* [Calculations](calculations/) - In this section, we will look at different calculations formula converting values between UI human-readable and chain format. diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index 6ff3b1c85..dc527c644 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -84,3 +84,4 @@ * [Smart Contract](building-dapps/smart-contract.md) * [DEX](building-dapps/dex.md) * [Bridge](building-dapps/bridge.md) +* [Calculations](calculations/README.md) diff --git a/.gitbook/calulations/README.md b/.gitbook/calculations/README.md similarity index 100% rename from .gitbook/calulations/README.md rename to .gitbook/calculations/README.md diff --git a/.gitbook/calulations/minPriceTickSize.md b/.gitbook/calculations/minPriceTickSize.md similarity index 100% rename from .gitbook/calulations/minPriceTickSize.md rename to .gitbook/calculations/minPriceTickSize.md diff --git a/.gitbook/calulations/minQuantityTickSize.md b/.gitbook/calculations/minQuantityTickSize.md similarity index 100% rename from .gitbook/calulations/minQuantityTickSize.md rename to .gitbook/calculations/minQuantityTickSize.md From 4630cf9c601d35c50fa40bb1ae44abac4fe3adb8 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Thu, 12 Oct 2023 21:09:31 +0800 Subject: [PATCH 48/86] chore: package bump --- packages/sdk-ts/package.json | 2 +- .../src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts | 7 ++++--- .../sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts | 9 ++++++++- .../indexer/transformers/IndexerGrpcMitoTransformer.ts | 1 + packages/sdk-ts/src/client/indexer/types/mito.ts | 1 + yarn.lock | 8 ++++---- 6 files changed, 19 insertions(+), 9 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 17f7b9504..5b707b097 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -45,7 +45,7 @@ "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", - "@injectivelabs/mito-proto-ts": "1.0.46", + "@injectivelabs/mito-proto-ts": "1.0.47", "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/test-utils": "^1.14.1-beta.0", "@injectivelabs/token-metadata": "^1.14.1-beta.4", diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts index 208f51748..890a0ee40 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts @@ -154,9 +154,10 @@ describe('IndexerGrpcMitoApi', () => { test('fetchHolderPortfolio', async () => { try { - const response = await indexerGrpcMitoApi.fetchHolderPortfolio( - injectiveAddress, - ) + const response = await indexerGrpcMitoApi.fetchHolderPortfolio({ + stakingContractAddress, + holderAddress: injectiveAddress, + }) if (!response) { console.warn('fetchHolderPortfolio.portfolioNotFound') diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts index 38a628953..b63c16e4c 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts @@ -299,10 +299,17 @@ export class IndexerGrpcMitoApi extends BaseGrpcConsumer { } } - async fetchHolderPortfolio(holderAddress: string) { + async fetchHolderPortfolio({ + holderAddress, + stakingContractAddress, + }: { + holderAddress: string + stakingContractAddress: string + }) { const request = MitoApi.PortfolioRequest.create() request.holderAddress = holderAddress + request.stakingContractAddress = stakingContractAddress try { const response = await this.retry(() => diff --git a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts index d5ce175b5..43079163d 100644 --- a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts +++ b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts @@ -153,6 +153,7 @@ export class IndexerGrpcMitoTransformer { pnlChartList: portfolio.pnlChart.map( IndexerGrpcMitoTransformer.mitoPriceSnapshotToPriceSnapshot, ), + updatedAt: parseInt(portfolio.pnlUpdatedAt, 10), } } diff --git a/packages/sdk-ts/src/client/indexer/types/mito.ts b/packages/sdk-ts/src/client/indexer/types/mito.ts index 909d18925..3cd6937e6 100644 --- a/packages/sdk-ts/src/client/indexer/types/mito.ts +++ b/packages/sdk-ts/src/client/indexer/types/mito.ts @@ -73,6 +73,7 @@ export interface MitoPortfolio { pnl: number totalValueChartList: MitoPriceSnapshot[] pnlChartList: MitoPriceSnapshot[] + updatedAt: number } export interface MitoLeaderboardEntry { diff --git a/yarn.lock b/yarn.lock index 0b715a020..e24122371 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2176,10 +2176,10 @@ protobufjs "^7.0.0" rxjs "^7.4.0" -"@injectivelabs/mito-proto-ts@1.0.46": - version "1.0.46" - resolved "https://registry.yarnpkg.com/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.46.tgz#d0e31c4ca2f76940771621b2fe88f9bc40c7a891" - integrity sha512-K1g5udssQd4pDNzMteUQiI3PLHsuBhCKT6wli2h05ImB0NFQcGbLQlk3lpzsdfE9Usx2hCmZiQNUfUouRrTBpQ== +"@injectivelabs/mito-proto-ts@1.0.47": + version "1.0.47" + resolved "https://registry.yarnpkg.com/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.47.tgz#bcc53839a7204530a3d585772b42aa6c3d14cd9e" + integrity sha512-MJpxbvxUImjmowqB4Ny5BY7vv2x8lU5+cgchTzhT71jaLWTPL4VzjSjUPA1M/MHopaTemEZqDKOOmbRJwA5OZg== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From 348ff5693766435b53f37543809e74a9e8a8094e Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Thu, 12 Oct 2023 13:14:20 +0000 Subject: [PATCH 49/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.10 - @injectivelabs/sdk-ts@1.14.1-beta.10 - @injectivelabs/sdk-ui-ts@1.14.1-beta.10 - @injectivelabs/wallet-ts@1.14.1-beta.11 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index c02109248..b6cc92706 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.9", + "version": "1.14.1-beta.10", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.9", + "@injectivelabs/sdk-ts": "^1.14.1-beta.10", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 5b707b097..8a7beb0e8 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.9", + "version": "1.14.1-beta.10", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index f993e7e22..dadecd660 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.9", + "version": "1.14.1-beta.10", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,7 +37,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.9", + "@injectivelabs/sdk-ts": "^1.14.1-beta.10", "@injectivelabs/token-metadata": "^1.14.1-beta.4", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index caab0a6b0..4eb4a4818 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.10", + "version": "1.14.1-beta.11", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.9", + "@injectivelabs/sdk-ts": "^1.14.1-beta.10", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 8aa0f2c14d441ed6bcd57f0a4d9d73fbe609e374 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Thu, 12 Oct 2023 11:08:42 -0700 Subject: [PATCH 50/86] chore: axelar logo --- .../token-metadata/src/images/axelar.jpeg | Bin 14573 -> 0 bytes packages/token-metadata/src/images/axelar.svg | 23 ++++++++++++++++++ .../src/tokens/tokens/tokens.ts | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) delete mode 100644 packages/token-metadata/src/images/axelar.jpeg create mode 100644 packages/token-metadata/src/images/axelar.svg diff --git a/packages/token-metadata/src/images/axelar.jpeg b/packages/token-metadata/src/images/axelar.jpeg deleted file mode 100644 index 770fe7f2705618b6259c75da5a4fb142361e0524..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14573 zcmbum1y~%*);8MM;O;QEyIXK~cMA*_+#v*am*5)Q-8~5bf(Ca@kl-YEkPz-3wqXkurKQa@wAAGk zRb>B4fPL*~>Er>=2>?#cp6*)mQj`XUMwGyR1&F1GtE7g8%72Oe2fSJQZ5;sS*nZpk zABq3BQ&cN!4@+nPk)T9DOILSKD3*X?wU?f*zwv7*#S4q4+a9#aXi5Npu=DhE$qWF9xd8AO z_4M>m{Pgr#0swH!0MM8AkG@M9v^l>)<*)yd(Y^ry%rF3GfA^2fq6`2!plwXF=?Za& z{FM(J^ayKX0{|Bl0Dx`?0JzY$Mlt^XoBnruLv8=I50oqcfQ}yks7wGrb`Aj0L-WHl zd0GRc0R%XBcz8Gj=m7x%0fdN#ga{3osHn(j*qAst*qGSZxCCHATs#tdY-}PbA`&t( z3JMBbLTXxSa#}Ds1^I6yFi=%Q5F!Q=5(YUQHXix^=kU}IU?ai2hItJKLk+-U!@yy~ zJPkr`2p9ks4(9h0_3r>eghxPvgZ-U~_uulr)1OuWG&raZ791Az0(MFKTkD?~=F<(f z1LY+R^!oi7C`5ibIXJ9xN(u0+zCMzV>V(-j`ICX+bx^q?WzXt(DIZdQ#-aKZ0bLkf z^JHwc@1abs`>~Y&WAmR1FqLbudpzFKD1ls-N+U^$p5V?(R8rpYJlR9ICJn`|gFopG zkQuG=H_PI5!hu@2bDQFUhicwE$EdYct#1kC3Hi-LJO%$yz;-q{>4Y(ox`(Zzzr(hl zK50N96|Cm~E1exIvuWFgzgDxC;Nb4Xo_OucZ8gbqO-`()m(#tJ)&RUb^H13=F zDb$P!Sqh^8JAJd~;7paxIlllfwU3Ma|G0)Qm)E-6hQ!RCGLwjHvV6h z06?;W7u)=>_$GNGO8`L(`qYaxL_co-K>?vrsFv{td7D1-6ld{z&z*w>j0}^03*W0N zTCn|;_1|2G&CK4AD9wPlH#U3^Sw*%=@R5` zVUQMTcPBX*??ZvGofB+Bja^oZH+ws1K;XW4V9I37*D9DfC!0_I(uFw-T%66xYvK}l z8R1~D*wQQz$Gw;vlrvR0H4VTL^MC_lW_x!ngE4C#U(RqHFjRQq$1V(ep_{{R|S+`@kT;{`$m6671s^&F>zWP?_Jz*Eesia8nD5{J%UlOGc=CWQuqzOWvS5@~j7G$eW_OP_9zU+H= zX_PHUyaVasH?j-2GWTvDIG5g1HNXYphew|P_X@~DyIqcaQp;NnVaT`Hn8=s#2#C!R(xSd5SJ$7U{8G}>K zmN!|g&GhqTaw&>3uo^;x1=cb-Q0EnQ)E?*P9l)3@hF%*`;X*sT0N1&)cy1rLP%ANG zT$jcKyT5gwU6nlv>YUL*cYgcJn$RKfi;{v8PgF|_DG0`q&NMWrer}2193&S^N|MyZ zj-EM)<)7g@j@)4X<2iahE-Nc{+tMymrxr7FlJ)uud2^$Ha_>awTW2eWLy7XegCw(; z1EKE|h58Cq-0TMN-skG|6W+;)&vn z+0mIU)VM3xQ6x|8c}WVO2lLu;F?0S3mKR5-k`K?Ndc{#vtM{n3+M zAmw%a&iXX%;|BV76N3(*7gdBNS$?Kh3jq*^e)x~84|nYVdRxJn7 zNEjLPS}o+CPAeFVF1=Ozn>v@@nP2@#7kL=V5BRDsc2QCAO8eu3fWQ7RIo7ZynP;0? zp2bxzd5`-d)ZN=TMy9VeT@0uTH@b{_~;TlQE_{yd*^~!3e>qK zG=F#`lIT*!pVv*G@UdbnR(a8w(0o6gz4xSH*WMi0qGuRdpvp8pmCLmz}3C* zNmIc|e~-iRt_|nvNR-1H@Dre#_=?MHvg_8rf>oY)DlvesUr${}62Hw4?|t+>_v`#< z!?~CjLR00~Y5P^j=VoS2YvkRNC|}#f;Y8nWCGs%YKf8fRYIcrig;6!_xmJiss}}Tw z=U9q=AvDkTZB}gj9KLsbm0!WMi3?7kVVhBu-}j0#wD}3J7R(95nbtq?CvfkuQs}=v z{)`?r>sxhpMDif_-pox~@-a0CvNItQ&kFw~jMM1+2_V-M=Q2L;kteU--{~9el)`E+ zE8HA}@J5O)*7Oby$Adtv{&+O2nKQJ$gWc2q5;fy~$Mu0CNHt+}q((-lC&F>;Cv`+| zI}@X(*)-NkPEvYatQu^d3-W{APr&dkOFXz~adMe7Y~`NA&?FdI86=TK$ny zzcv=7s-tXZ99QEjn^#aGG!(3z!q@M=sI`%=ro}V4$&<2|WzfXSiL*uUp-1vM3@|L1 z+;^5m94i@kp&>lh)#mQXaEWs|uB>qrY$@x5nKj6E-XmNGsi>FFWp`aW#@IP>S*|mY zSASg?{M2BewPPz{wlwJ$FW_NyTCXF5;CsswBKO&?|E2+Mwf;@iG0o&+*&xHtQCuBH z!}GC}@_|&@64S%s^AY8m7{krRLe#>o_j+1`7BWY+2#s&N9g3BDvtz*_YilXU?-={( zbI3y+x!({Gng|6&*~%IlAytpDU+vuP(k+CmI_qi3YMFnoJWLo|#pXv1vZY~sCoW)w ztcN7yP;J6K&OxJ7y`J0DklgA3v$rQ6XDim~%a^uv7Pe2mM zZeEG?>LfEl?a;o$EMH4)2>D!|rJ#GY<@y^Ab)F=!u<`2?g^sQ?lQ`}T_7QJ~;8%PP zPOlS^SL)kyx*F8hmL43x63O<&Y|usO4MJv&H~YE5MO#;?HHOg5J4#_^U4FnxfqV6l zmM~8%evjU<|7%qLSC9MpuU-{8+!u!d2mK!yu>WDmLwju)SXcxQ5*h+L?C*&V4D<+( zje~$o#U)A2t)U5V!@{Ga;gQn%z{x8i?H-bnTGTYNh0mvLkxXk@d}ih9(R}`|&Kx8T z`vlApa!J4BhEUO@_sz7tr79hd6(q7;krPO-`wSNO@?+6w!_@b~aLLwt+1)X~?Qn;@?Xvlg~j zUL(4$pD|%wtfn1_S?Co|=3c-DhGqgakK5?q>o>idb!0UPj&ivtYQk+zv=P1m6vG$6C6` zF~cij^tJy1(SBZlkP}v6piP}5^1HkVY!#(rv&$2}n;F|1vy^@nA#-;Yv&I@0iDxyS z?e-|U^I1QK`a(>0oq;CNj=I-qpJ&Z7>jZNSF_`e8X6`oO)ho3B)*50`a|3u1^h$+MmvIu0i-=) zD743L=n@qS*6r$&Q*1W>a!WhQZ$e}H zwyW8~omwUmUrjM67v3zi*RHNhk+NWj*z#s5+IcZB7=Q+@Z^`M`k96j$h2>e<T>E`XS~rFM9>pYY$<|y ztjw!I47NZz&^oLONow>CitTL?K&LiIWSJ-lC%L*Q5&VUxr$B4STD}r{{|=q3oNYgu zcxPcm=e|FMj2b>#jbx@N!sj$Cy18?;!ebuxf*_7-q0_mfxt^x|b)}(DMNWT3lM9dQ z=!AGyaZ(O(vG74WVvDo-eJ>*cKREA_@*;fD_!czLJ@N)O?HAo^iwRJOLqQ)_A4KS*C!+E`oL7GzY^ zB#1_)$J4678Lt$I;}&ALrd)&fl>%-4a_Svs*r}&WgH{h- z=fq+g|4YEuOClyU{P4rSK-&u|Ifyy*qA$A;v(>kc?D3k%s4IT&)0^Rl=afmBUTy@2 zCE&$hTiUj3*JA9(h+xgPMOte@`YD6^a^$TqqR-eOjxS!yQ*A8=B297KvwTb-jhWnp z3yocMcw=(3um7xTVX~~FgZRyRl!Xdr>8Zf?X;D%*Uxn)WZb+o5TeW3wf6O~MyFc$W z`Us{cGris>1TSinBVJUUChoe6phA2flShJR&Ooo$4iZ^yr-bfVKFFF2+&Q>7XYbmN z^;YH1DlT2T)$MlzFOe?Rfk*R=`N!V`B$6K)AGF)C1Zr2_eG!GM>2)iyJAINSKQ~Q} zE^B%lsCTd{;)j{GgxiiHfI%NW2S%*S!_#-kcr6jJ>(Qu>*cqhoYwKbuQuk9LCv}Fc zVVhx7tmZ)Dd^k*PoBu6Fz1R}~+F1B)DoFU!Ily`H381QHaKsNHSsZOb>f?%;MI-Y3!5H-HJxdk^gU|YrOxL#vC&qR9t>zY>eEm75(`Aa?OjIr~^ED!Mg z6YxHy;>|_z;>+Ek-oc~#&uowg)E+Q^Uz>{9?KbA}qR|sWQJyza`=i2+R`Ns|vbY%r zq8BX2CMed9n0uUP-_P>8R*ePap0|E=@J<=e-f;N~Q0Ljlw}xJ^azcjax%P8Eh@CnL1j(~o=39#fSHvB>|Rf}@1j6Z z^6Ci)47c8h?k@@5S+K|GEJS^pyh^s4ypn@aS0CQI7NS1dz$%7JK`5k(nFU9!bizHs%!DU zNM+d#lqX>137FAqk_+TO844_2(>Rn-X`$rmIMg_V2Y=^({3!-gksW3-{3-tI^uUhY zMv&GarpAfEd4-I~;n@_Vrfbb-N&Jf)eMCFkXEq;BmIs}4m_(~jZy$cXeXq+p-K9wA zR*(AZa_;kVRf(neXNFGQZz;K4(bn;d*E#i`6H&~HPT8){#owv~UFbgnRWQp_MVYD0o&ZCNo5tEFU_PEAxbJ&eXNP}%TdkT(+>}~<=(#~sPWb7m zeP_bjBQv{&@dDpZHMqK16COx^EwAfcmWTMP{mj`0nq?of?V^c7hbLF?u2b}Ssa_7|2wUmx-sIJBvJDlvnPPaWVrnM#U9TTR z)0R33B27S|^5_e8FCI~?5qnSh>~aIE>{q(We)y2=ZLQ*2Um6SKzdLeph!{J*y}9!t zyXqh~4Iv$dWmF~T7drl^KAykzg9D@c)mOn5ZRDHM7x0$qBDt2CS(`^Wm!3aNqI(d6 z(0WNWvWlEKZ%AIf@n7#9`k}*gQizZF1PFA_Zf+J4>|{kPJ=VZ9qAa|p*S&K0(l%bF z*Ebs;@B3aPf_TUQ!ea=3q}#6enm`-HTsfGNF=TrI+Ov4|`7NqOX^}APfDJx*T&tiw zrZ@(DuDn_OOSm9|M|)J)Z1Y4h+2?lBmt0@fOC1J1W23U%LvDJp%7&JAQiaUyLn{IF zJ|FjdmGOhkoXss1g`VNejsWB>aYY}_A`$dW!Kyp6*e`li9fw*+=Tk`xD2YPrJ|9%y zUY$=(4ugFk?5iEV@r8%6FXGic81)D+#=aU@tTV}C>(~Bl2FVr*)=$`DzP)hW zQd+`(HIlf_q8VwhMZ{S88eBujl%Vjs9arWR?Gv!Ez_U(oNY*&e=nt~~z^oqTsL<}GAdi=e_foK%%1=_O% zWs1dT$HVY&CfdgpDbHUC+m)Hf*mF9s;>aG-Y%LiLfwR0HgAnV(;kz{(AE0#+!mEMS zWngSj-^qf@mNY-DrSC4egCfP}WB1+6B>93v{d_h0h|eON7iq57Wq$L6j*AOOMzxU7 zfpGhw*;{MVApPUrMr&gQ`hM*#Q8mIRH$n6#0J$!I5}9JvifHNL*sKTtXZO;#k3sBh z4^3v{b%7`P{|Fst7C(ElY!iI;W~}RF!V>O}7gNmFM|x`$Rsz!QOajrTe{q~auScYS z$@r#{Gm!Ya8Y7(h&7i0DR9d@cr`{{$7YJWibm^B39&?7`vA|TMQ*A~u?R}rmOI{}B zf@|{-EW7#kP>kii%00aAC~l;|auDq%i0Q=C3ttLzfq!&>Ga9++Tk8>KG25K?>C4%%2*dCtRlnKW@i2G*SC&IgsW$GA%k*imGLp+fX?Kg)3}i2GfIu3rVle%66c&-uK#`kD^B$U z48fkdZFL%lX=fbv3l_Fc>!DyL(REMDqS1)FP2stux)7~qn$7>NSm_s0MEI^nYFFhn zekzIW?F2y?mP9+oj2cn6q*X~gt>0eA%js#}7jG@xLYneyrx>`$)Ire(%bpjxM5Jps z>dyjXew@VxY`>AhbQERGd`rh- zLpxfjqDcQ-EmsT!`VKd7XoX&0u?l&b6GZ%N!KsiAmBQDJyQ1qmodbq{49jN0aReIW zyx5N$wRvA-!VL;tuNZ0%^qIic^1LDJe#VCF$E;3zD>}gmE@K-L{~FHR(l2yJPXHg~ z8r4u#*@>JN+Fn#<(Mr@Jqh=x%{ghJp44{JWiy6KO>OJQ)MBuxGTEftoHKVO6uvI!) zm1C%mrD@6*Hd%jG-z!)$IR1zQGTzQ({wzAmf|HTwPVh(XQcC=^uh81^F?Z0_d_Wr9uhhjXMo~>k9gkdn4dFprkqIV=NqH#4fx8$MFO_o2tIx#N&q7c(4KIE2K!v zUNlDqVa=F*kx=-sBR1be9Q7#6OG6dmb5)?EgdN^r?$eq4<8zscdhj+bs5UKi`(yGV zGclvoB(tjuiAD9K>ZqWs)YrvxAqP0Ag=*H^1Wealwy>=uy}VL0i92a3#&C~{XLB*^ z9IakM`@8;kJwjuLlmR8d_QNB1;Yf@9?f8v#5soYnV~-m+zUiVYy4df> zH_G?@=F`Ty=(vH@8dK;pc4|4|Z0WoE``>21t&mz>6~V_Rcvbne2lZoqfb60ypP7Vc zibv))-)7&Nqjh*P&da}%i;OzGwkT^kH!O2P%k4}v{sk-FER?+?nJk!iLQ_T^d5jY& zDaePjaZ2~&+-e)d9w95)D4K8tPjRWt`i^l9sHTG_@Wb4IpX}l8P*Zun{}y&vO#4Is zad;rT?9^-&{JK(txuL1^+!s=ty;gy8`$>k5mA6P?6lKiKJKNFZs3bF-tYVm-lcH1C zH?#14KFCJRNQ1GQxo$TploVn*(?HbW<};__q3dc6MQ@)kWEd=L#u=Jx>D0bsyfUnB zgY}}tIKD%!;(S+%5;;v1>mPOb8Czu;Ellp-(FW0(k1_Mhx9{?`jZD~d{?bg+rnWXU z27YuGEK4XdyU*>r4)QU6B@M>(B&&?FY`Y|&Gfz9~$jjZoliTH{PYVCyfg@__&qNui zQ-eELJp`*;Y-p=VX@@4}W2DRR96sJ5m+6s6Q@m2GhgG!7Xlvw`PEgJC3kaRd{m;Qftp! zs&aB%M|2M{6Aso!eUP3{iZW^_^3!C(R6Qj9wDaOe*3cO(|20zh21&r=%HMn3KSz3) z+D}-wI5VuPBl(bGcec**K;@lOv3X-akeQN~$V%`no|>C1&IsAQ3BITCb_ud`pyK&2 zqVJY<{88?zWYzO*6+QPCta_VhJlzmgX*E>0TXiMd1c^N0%+^!VBgYs=K0H-Di>>H0l4}Vw%ktf zRar11GtQxEg>>gwhaW@!3#vUD|`Hz^`B{{_`Ivix~LRs%(OEyW&0tnvE05 zT0Da{sl=+zF@(eK6{3mWX(|Hi{KzvoH4YjqLp0=yo}85vd{J!Hncl0_7nJ# zo3;%nrAmE9ve<+0VU<(%m%XZ%vSo~4(ZCmmqGTLEny6NBfv z&mkI?zuH7;5O+xmZddLQZ}vI2J~uGWBG(AX0-rhQ$6JX-!dp3PPqG6pid=~Z-g~BT zYEcn*d)5weWZ#@u2KS2fmr5XP<5{&xK?V}9+G>-3B^(Q3b9n|qa)On*^th;p%ydE- zvS;R3s^UK}`x%*%re(P^t!UE6og5tMe*($vi5{voq^^2YF=zRx-d5$y>1*da0TGP^ zm}feK;ANkbQb@@&8^+mo=jF%maw+(+xNZ($Ym)HPvcjdsi%&R43o>Q+*Xj zf5>KLBPQ9?QnG?{Ll{u$dmTV6wpkN3OqQO*`Xpo8aiDK}0kx)(pR~+!$oA0nL;PmE zOmR|G-Z@n&svsDQ;But*l~;54u_)4v$v>$j(DY*LcWsD;qqe~xh`aa-Q@G<8(oyx> z%OI5fg*_cktFz(p2vk-E-|g*Ug!Yyq*xi>+hJ3Vn_>G^PSK-JDACJAs!ba`3s|AZsqg#<1oozr&I8_?Kze)q_q-9tgE<1hIV2# z1|${C3B)hWpu@+%_6hy9IST7?O5}fjC;pdY3W-OZ_fHxt=adL`!k^4x#$t8wpEQvf z6p@sOKWUL7mV;>0f9A^*2NYxeNt+UJjsGiCRgug8WHgRPogi`nH5l^`xk;7tQstl1 z-vyY&JC_u>{P^EO*3@zEW!Qg9L<-eKE<^s1T*xq9P6^KaSJ^Jc&|0QME}&)jk1$Fk zOoiyOAMYQ@IB#+ixCu%?|2J(2fQy4--phX4e_5O4JVX9nofdTw3(UW1l>MmxW#ljW zT%$-H|HdwWzcwi>Bk00 z5t9vW?iz}XH_j@N4Vw!znXBn>-NO!w_F7U3M+%=2J&Vn99l+AyZCuF~UBzn5QA5;q z2%?;@aUh$h* zI61Am#o8$l>4mQp;EfTFAD#q7bSVj@nu!bf-gsXk%Qm{#BaXc+j z(!6~f$KG#g<>&PUV{;qwSWC*u^haxvvTCpUA(^(6d|^U^dB${wsZ%bX_FWp;4X2=G z1dIK-9{NShu_h}GISv{- zbdJS_w{m?bLZqE`7^Bwa4mspfdxsCJO$lrtD>oKTFCiuB_10B2(k3G{aZsSx9U+cl zRX#JntK1Wp4TekBCrb97Nfo2P3lG3l;@8_7k~J?TjBc+s6F2eo&^ipjT6Bh!xXPHjO5O zR;F3(Ag(1R`=ao+$dFemT7FcjnQ&K%LEi-;>wf%!Fw{4elZeR>u2Ydg(ZI_&-hi^1 zlk;0BvE0Yq`>Cxe`7x~-nrww5a@(%n$(*+QlONS8DG6e6a-0yXqs-@uvZ0x1lk7#s ztMs&Lbm3KfkzBEygq1B+$?=0}O46fR13JCs9Ey)WQJDxNq&~HVNR<^j zD{%|@R;4S|)JWb<9lXm)+K3M0ruEQ6s+R4gr{jVgeIr$0&dXe6m^ugpTg1g=jD7s* z6(#&;5RJYp;>hirlf-)3>@~UithVk0rSZJ{f-NDJLDm?59Q{y9N|>Ud618*=kDPlc zH=so1=9^-nSZu)gO8Hp2)i|$|KI?+-MNcrAEdef*l^V%>k9mtnfVS@dQbc34e$iL1 zv1E=aj-Y6>q{^T1;o~aOvki81vITeFBqXq@$mV|bsu)H~7oliXCiAHf$dEx~l51gA z*`mHokDsc<%Veed7H3Elg}W7HyrMsW z{a}UHCO$%(V(J*z89pbQ@*$bDLP|09)BN<<0-V#pb%`}>^O~c6W<9Fh zYIxVpr6MdDdE{?if`z3RGApY1qrGn>o`onCWQ?GeJttIAB|;uS9jHG*F8q;Bx98zq z*sc+WjDR(g+dqpxZKOP(lE%Lq%dO1m9_h?YSVM+nxz&AziJcH)Pxp*ILw3~i4bZOk z72yL8IO5c(u*i^OQ*Eic* z+00*#UO`kTVnI^XvXR#{k|Z6uU83+YXN1RK(95@lLBOGZ0-SRE&zCabSV}%Tu;ubQ zuC&-JQ6Rr}zD3~*+7bWm^GMx&Qk%FAnGTN_@ok;mPSVo`s!3!JU(kA{$1+9bx-RN9M0CljWGSVs_CCYDBH=s|w{aR$#45$C39j6z+S``izFYH67)`lp zxcJ-_l<`>ev*Xn4>wD+`hwVZC&Sf=)=L7`OF<4y)zjs9r3uC4De4(%8UVhVn>&E3j zA^b`iE@ZHXF1f@zuyAvQ032;5nJ0{lt>KeK^1bpRws}%{#I`bmS|?=3u_HW?98rf` z@pSK1T%rGu;2w#2_D$2cqtl`+yr2dnCF;6`n+U6uzEyMXdPWq^;wOOG(}m+=#R!FS z&rwLvUTRTIo74g{QTCQsqX4xO9ie!fbFrXa2KA>!=5&K}OScfbGoEV~##YEX**t-% z7C@K~>%`AUBIObxEPYeGRKsRbyhS0p#_Q#SLkzJ#f#h7b-}4?E$k`+<0N9DHIp z-^|2oE2$46$S0_FpJLh*;6YIb##{4Phh^qjTRG`xMuBh z3v>%m+oaZPm2qU>KYLe^KC09!WBet7jC2Tg`S7-2*8i9O48bC7mfA?cDW*&40z^LC zdp47X`9TV1_N#4CQCg6>(8_^mzXO2=UVZXy3coEaHx(T6s}}`}5=XyW+K9YllG$lg z+W5D)5XX-Ml-9MB!N%h}LntYwm=B`b<}x*>3Tm}%!6;3l9~gS_+%1WJAVrO_Sev@( z+`fF##3}0&MAV?1j#TzJf3u3wN^E)~mM;t7p0QsaVPbzD`myC3)hoCL1om3=Q5bNt zzi_D>4(_rY(pRj!s+6;nlh!37x*w2qK#0JfK0(c~)rL>u@ zzD{;<%EhdX&lJ=OmU*gCbiSask+Sq4i?-tct~9z!3>6jY3&2IZuvzm$YUejgLT>68s=^_{od5b$EXXIPl@$gNFkvLEP?5nceP|P5w_9JZnkkElKO-0I%wWq65S`CeTU3plvGR~B z`I4|Hoc{*$1MHV8lPrR0>bI4vBJxzzf}v#KDB_(3WTwRlVg$V>nh37w!`xRHyBYWBG(>vvI$6N zt7TaTGFN6L(ZE1_Hf5B0l?p2tx$@)Mml-;AEi{6mjSoUq>t3`pUv&MaL%R#~PeM5t zt?oqajLhP`^N!VKX`OQEPrO&rYYXgtMD)b{iQ&;qN z0qS7C1g-Ku_-NcM8dBoDbQEPY0?8fBkJMkkK-#(c7<5dCTF z%*ax%!Bp`jFXu}f+eQHli}}k_MCiM${oPRwlbB^gIf$aCP#MK**+Q`SLz*|GnyR^A z=A*3)H=?UpgR>{5m~ore&kWT#QozSEFUD>8L1qIavtUR`5FktK%Kb4aq)wE+xP!V+ zNR(lU;R4V0buh7BtSViW;LoWtR4hr3OIF2-0mV;L;jRpViO2!es1m<%E6*EH|*MFtA=DZOl zNAhQ^KseAu;9;yhq%RD%LgmFk%Y<2jP4zsvsChnkY<^a*za>+5A?UC37+T>$>Em>Mz+{D; z9fm4`_Oqs`^y0aCyfBk-20Q+GAY#Ew1aMf$@_ag8xZF$}ys5xF2l~{RhfsRdsU$r4 z>5GGCkgh#vCuA5oDC=hx839)?Dxw+BjwF1n06?sEyMV-)3Yd#-jB|!(lW(DFVd`YR k3}1c%#)e~3n*G*HKYRx##Z0BBifEqD0;1w~4Noio4=~EMApigX diff --git a/packages/token-metadata/src/images/axelar.svg b/packages/token-metadata/src/images/axelar.svg new file mode 100644 index 000000000..d0d937a78 --- /dev/null +++ b/packages/token-metadata/src/images/axelar.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index c2e7d0e07..f96187625 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -831,7 +831,7 @@ export default { AXL: { name: 'Axelar', - logo: 'axelar.jpeg', + logo: 'axelar.svg', symbol: 'AXL', decimals: 6, coinGeckoId: 'axelar', From 285e9a7ffe83402854ab18e4c2da0aebbfce8cb1 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Thu, 12 Oct 2023 18:13:12 +0000 Subject: [PATCH 51/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.11 - @injectivelabs/sdk-ts@1.14.1-beta.11 - @injectivelabs/sdk-ui-ts@1.14.1-beta.11 - @injectivelabs/token-metadata@1.14.1-beta.5 - @injectivelabs/wallet-ts@1.14.1-beta.12 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index b6cc92706..daf0680c8 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.10", + "version": "1.14.1-beta.11", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.10", + "@injectivelabs/sdk-ts": "^1.14.1-beta.11", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 8a7beb0e8..eb3510500 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.10", + "version": "1.14.1-beta.11", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.47", "@injectivelabs/networks": "^1.14.1-beta.1", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.4", + "@injectivelabs/token-metadata": "^1.14.1-beta.5", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index dadecd660..8e5d29bad 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.10", + "version": "1.14.1-beta.11", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -37,8 +37,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.10", - "@injectivelabs/token-metadata": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.11", + "@injectivelabs/token-metadata": "^1.14.1-beta.5", "@injectivelabs/token-utils": "^1.14.1-beta.0", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 15b6a4865..3f1ff744a 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 4eb4a4818..bd4dc9ffa 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.11", + "version": "1.14.1-beta.12", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.0", "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.10", + "@injectivelabs/sdk-ts": "^1.14.1-beta.11", "@injectivelabs/ts-types": "^1.14.1-beta.0", "@injectivelabs/utils": "^1.14.1-beta.0", "@keplr-wallet/cosmos": "^0.11.58", From 9158df298f18aef9a01eeb608c2c109632012d4e Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 13 Oct 2023 09:46:56 +0200 Subject: [PATCH 52/86] chore: update --- .gitbook/transactions/ethereum.md | 88 ++++++++------- .gitbook/transactions/transactions-cosmos.md | 110 ++++++++++--------- 2 files changed, 99 insertions(+), 99 deletions(-) diff --git a/.gitbook/transactions/ethereum.md b/.gitbook/transactions/ethereum.md index 843cc3e04..fa415f959 100644 --- a/.gitbook/transactions/ethereum.md +++ b/.gitbook/transactions/ethereum.md @@ -9,7 +9,7 @@ First of, we need to prepare the transaction for signing. To use Ethereum native Using our custom abstraction for the Messages which allows the developer to get EIP712 TypedData straight from the proto file of the particular message. ```ts -import { +import { MsgSend, ChainRestAuthApi, ChainRestTendermintApi, @@ -17,22 +17,24 @@ import { DEFAULT_STD_FEE, getEip712TypedData, } from '@injectivelabs/sdk-ts' -import { DEFAULT_STD_FEE, DEFAULT_BLOCK_TIMEOUT_HEIGHT } from '@injectivelabs/utils' +import { + DEFAULT_STD_FEE, + DEFAULT_BLOCK_TIMEOUT_HEIGHT, +} from '@injectivelabs/utils' import { ChainId } from '@injectivelabs/ts-types' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' const injectiveAddress = 'inj1' const chainId = 'injective-1' /* ChainId.Mainnet */ -const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ +const restEndpoint = + 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { amount: new BigNumberInBase(0.01).toWei().toFixed(), - denom: "inj", -}; + denom: 'inj', +} /** Account Details **/ -const chainRestAuthApi = new ChainRestAuthApi( - restEndpoint, -) +const chainRestAuthApi = new ChainRestAuthApi(restEndpoint) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( injectiveAddress, ) @@ -40,9 +42,7 @@ const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() /** Block Details */ -const chainRestTendermintApi = new ChainRestTendermintApi( - restEndpoint, -) +const chainRestTendermintApi = new ChainRestTendermintApi(restEndpoint) const latestBlock = await chainRestTendermintApi.fetchLatestBlock() const latestHeight = latestBlock.header.height const timeoutHeight = new BigNumberInBase(latestHeight).plus( @@ -54,7 +54,7 @@ const msg = MsgSend.fromJSON({ amount, srcInjectiveAddress: injectiveAddress, dstInjectiveAddress: injectiveAddress, -}); +}) /** EIP712 for signing on Ethereum wallets */ const eip712TypedData = getEip712TypedData({ @@ -77,14 +77,14 @@ Once we have prepared the EIP712 typed data, we proceed to signing. /** Use your preferred approach to sign EIP712 TypedData, example with Metamask */ const signature = await window.ethereum.request({ method: 'eth_signTypedData_v4', - params: [ethereumAddress, JSON.stringify(eip712TypedData /* from previous step */)], + params: [ + ethereumAddress, + JSON.stringify(eip712TypedData /* from previous step */), + ], }) /** Get Public Key of the signer */ -const publicKeyHex = recoverTypedSignaturePubKey( - eip712TypedData, - signature, -) +const publicKeyHex = recoverTypedSignaturePubKey(eip712TypedData, signature) const publicKeyBase64 = hexToBase64(publicKeyHex) ``` @@ -97,7 +97,11 @@ Once we have the signature ready, we need to broadcast the transaction to the In ```ts import { ChainId } from '@injectivelabs/ts-types' import { createTransaction, TxRestClient } from '@injectivelabs/sdk-ts' -import { SIGN_AMINO, Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { + SIGN_AMINO, + Network, + getNetworkEndpoints, +} from '@injectivelabs/networks' const { txRaw } = createTransaction({ message: msgs, @@ -119,19 +123,20 @@ const txRawEip712 = createTxRawEIP712(txRaw, web3Extension) txRawEip712.signatures = [signatureBuff /* From previous step */] /** Broadcast the Transaction */ -const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ +const restEndpoint = + 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const txRestClient = new TxRestClient(restEndpoint) const txHash = await txRestClient.broadcast(txRawEip712) -/** - * Once we get the txHash, because we use the Sync mode we - * are not sure that the transaction is included in the block, - * it can happen that it's still in the mempool so we need to query +/** + * Once we get the txHash, because we use the Sync mode we + * are not sure that the transaction is included in the block, + * it can happen that it's still in the mempool so we need to query * the chain to see when the transaction will be included */ - /** This will poll querying the transaction and await for it's inclusion in the block */ +/** This will poll querying the transaction and await for it's inclusion in the block */ const response = await txRestClient.fetchTxPoll(txHash) ``` @@ -140,7 +145,7 @@ const response = await txRestClient.fetchTxPoll(txHash) Let's have a look at the whole flow (using Metamask as a signing wallet) ```ts -import { +import { MsgSend, ChainRestAuthApi, ChainRestTendermintApi, @@ -148,22 +153,24 @@ import { DEFAULT_STD_FEE, getEip712TypedData, } from '@injectivelabs/sdk-ts' -import { DEFAULT_STD_FEE, DEFAULT_BLOCK_TIMEOUT_HEIGHT } from '@injectivelabs/utils' +import { + DEFAULT_STD_FEE, + DEFAULT_BLOCK_TIMEOUT_HEIGHT, +} from '@injectivelabs/utils' import { ChainId } from '@injectivelabs/ts-types' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' const injectiveAddress = 'inj1' const chainId = 'injective-1' /* ChainId.Mainnet */ -const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ +const restEndpoint = + 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { amount: new BigNumberInBase(0.01).toWei().toFixed(), - denom: "inj", -}; + denom: 'inj', +} /** Account Details **/ -const chainRestAuthApi = new ChainRestAuthApi( - restEndpoint, -) +const chainRestAuthApi = new ChainRestAuthApi(restEndpoint) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( injectiveAddress, ) @@ -171,9 +178,7 @@ const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() /** Block Details */ -const chainRestTendermintApi = new ChainRestTendermintApi( - restEndpoint, -) +const chainRestTendermintApi = new ChainRestTendermintApi(restEndpoint) const latestBlock = await chainRestTendermintApi.fetchLatestBlock() const latestHeight = latestBlock.header.height const timeoutHeight = new BigNumberInBase(latestHeight).plus( @@ -185,7 +190,7 @@ const msg = MsgSend.fromJSON({ amount, srcInjectiveAddress: injectiveAddress, dstInjectiveAddress: injectiveAddress, -}); +}) /** EIP712 for signing on Ethereum wallets */ const eip712TypedData = getEip712TypedData({ @@ -206,10 +211,7 @@ const signature = await window.ethereum.request({ }) /** Get Public Key of the signer */ -const publicKeyHex = recoverTypedSignaturePubKey( - eip712TypedData, - signature, -) +const publicKeyHex = recoverTypedSignaturePubKey(eip712TypedData, signature) const publicKeyBase64 = hexToBase64(publicKeyHex) const { txRaw } = createTransaction({ @@ -240,8 +242,4 @@ const response = await txRestClient.fetchTxPoll(txHash) ### Example with WalletStrategy (Prepare + Sign + Broadcast) -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 - -This part is currently under work in progress. - -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 +Example can be found [here](https://github.com/InjectiveLabs/injective-ts/blob/862e7c30d96120947b056abffbd01b4f378984a1/packages/wallet-ts/src/broadcaster/MsgBroadcaster.ts#L166-L248). diff --git a/.gitbook/transactions/transactions-cosmos.md b/.gitbook/transactions/transactions-cosmos.md index 3846e6124..1f6c6a6ae 100644 --- a/.gitbook/transactions/transactions-cosmos.md +++ b/.gitbook/transactions/transactions-cosmos.md @@ -10,31 +10,35 @@ At this point you **can't** use some online abstractions that provide a quick wa To resolve this, we have provided functions which can prepare the `txRaw` transaction within out `@injectivelabs/sdk-ts` package. `txRaw` is the transaction interface used in Cosmos that contains details about the transaction and the signer itself. +Getting a private key from cosmos wallets is usually done by taking the current key for the chainId and accessing the pubKey from there (ex: `const key = await window.keplr.getKey(chainId)` => `const pubKey = key.publicKey`). + ```ts -import { +import { MsgSend, - ChainRestAuthApi, - ChainRestTendermintApi, BaseAccount, DEFAULT_STD_FEE, + ChainRestAuthApi, createTransaction, + ChainRestTendermintApi, } from '@injectivelabs/sdk-ts' -import { DEFAULT_STD_FEE, DEFAULT_BLOCK_TIMEOUT_HEIGHT } from '@injectivelabs/utils' +import { + DEFAULT_STD_FEE, + DEFAULT_BLOCK_TIMEOUT_HEIGHT, +} from '@injectivelabs/utils' import { ChainId } from '@injectivelabs/ts-types' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' const injectiveAddress = 'inj1' const chainId = 'injective-1' /* ChainId.Mainnet */ -const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ +const restEndpoint = + 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { amount: new BigNumberInBase(0.01).toWei().toFixed(), - denom: "inj", -}; + denom: 'inj', +} /** Account Details **/ -const chainRestAuthApi = new ChainRestAuthApi( - restEndpoint, -) +const chainRestAuthApi = new ChainRestAuthApi(restEndpoint) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( injectiveAddress, ) @@ -42,9 +46,7 @@ const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() /** Block Details */ -const chainRestTendermintApi = new ChainRestTendermintApi( - restEndpoint, -) +const chainRestTendermintApi = new ChainRestTendermintApi(restEndpoint) const latestBlock = await chainRestTendermintApi.fetchLatestBlock() const latestHeight = latestBlock.header.height const timeoutHeight = new BigNumberInBase(latestHeight).plus( @@ -56,7 +58,7 @@ const msg = MsgSend.fromJSON({ amount, srcInjectiveAddress: injectiveAddress, dstInjectiveAddress: injectiveAddress, -}); +}) /** Get the PubKey of the Signer from the Wallet/Private Key */ const pubKey = await getPubKey() @@ -82,7 +84,7 @@ import { ChainId } from '@injectivelabs/ts-types' const getKeplr = async (chainId) => { await window.keplr.enable(chainId); - + const offlineSigner = window.keplr.getOfflineSigner(chainId); const accounts = await offlineSigner.getAccounts(); const key = await window.keplr.getKey(chainId); @@ -109,19 +111,19 @@ import { ChainId } from '@injectivelabs/ts-types' import { getTxRawFromTxRawOrDirectSignResponse, TxRestClient } from '@injectivelabs/sdk-ts' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' -/** - * IMPORTANT NOTE: - * If we use Keplr/Leap wallets - * after signing the transaction we get a `directSignResponse`, +/** + * IMPORTANT NOTE: + * If we use Keplr/Leap wallets + * after signing the transaction we get a `directSignResponse`, * and instead of adding the signature to the `txRaw` we create - * using the `createTransaction` function we need to append the - * signature from the `directSignResponse` to the transaction that - * got actually signed (i.e `directSignResponse.signed`) and + * using the `createTransaction` function we need to append the + * signature from the `directSignResponse` to the transaction that + * got actually signed (i.e `directSignResponse.signed`) and * the reason why is that the user can make some changes on the original - * transaction (i.e change gas limit or gas prices) and the transaction + * transaction (i.e change gas limit or gas prices) and the transaction * that get's signed and the one that gets broadcasted are not the same. */ -const directSignResponse = /* From the second step above */ +const directSignResponse = /* From the second step above */ const txRaw = getTxRawFromTxRawOrDirectSignResponse(directSignResponse) const broadcastTx = async (chainId, txRaw) => { @@ -150,10 +152,10 @@ const broadcastTx = async (chainId, txRaw) => { const txHash = await broadcastTx(ChainId.Mainnet, txRaw) -/** - * Once we get the txHash, because we use the Sync mode we - * are not sure that the transaction is included in the block, - * it can happen that it's still in the mempool so we need to query +/** + * Once we get the txHash, because we use the Sync mode we + * are not sure that the transaction is included in the block, + * it can happen that it's still in the mempool so we need to query * the chain to see when the transaction will be included */ const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ @@ -168,24 +170,28 @@ const response = await txRestClient.fetchTxPoll(txHash) Let's have a look at the whole flow (using Keplr as a signing wallet) ```ts -import { +import { MsgSend, - ChainRestAuthApi, - ChainRestTendermintApi, BaseAccount, DEFAULT_STD_FEE, + ChainRestAuthApi, createTransaction, + CosmosTxV1Beta1Tx, + ChainRestTendermintApi, } from '@injectivelabs/sdk-ts' -import { DEFAULT_STD_FEE, DEFAULT_BLOCK_TIMEOUT_HEIGHT } from '@injectivelabs/utils' +import { + DEFAULT_STD_FEE, + DEFAULT_BLOCK_TIMEOUT_HEIGHT, +} from '@injectivelabs/utils' import { ChainId } from '@injectivelabs/ts-types' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' const getKeplr = async (chainId) => { - await window.keplr.enable(chainId); - - const offlineSigner = window.keplr.getOfflineSigner(chainId); - const accounts = await offlineSigner.getAccounts(); - const key = await window.keplr.getKey(chainId); + await window.keplr.enable(chainId) + + const offlineSigner = window.keplr.getOfflineSigner(chainId) + const accounts = await offlineSigner.getAccounts() + const key = await window.keplr.getKey(chainId) return { offlineSigner, accounts, key } } @@ -194,7 +200,7 @@ const broadcastTx = async (chainId, txRaw) => { const keplr = await getKeplr(ChainId.Mainnet) const result = await keplr.sendTx( chainId, - txRaw.serializeBinary(), + CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(), BroadcastMode.Sync, ) @@ -210,16 +216,15 @@ const broadcastTx = async (chainId, txRaw) => { const injectiveAddress = 'inj1' const chainId = 'injective-1' /* ChainId.Mainnet */ -const restEndpoint = 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ +const restEndpoint = + 'https://lcd.injective.network' /* getNetworkEndpoints(Network.Mainnet).rest */ const amount = { amount: new BigNumberInBase(0.01).toWei().toFixed(), - denom: "inj", -}; + denom: 'inj', +} /** Account Details **/ -const chainRestAuthApi = new ChainRestAuthApi( - restEndpoint, -) +const chainRestAuthApi = new ChainRestAuthApi(restEndpoint) const accountDetailsResponse = await chainRestAuthApi.fetchAccount( injectiveAddress, ) @@ -227,9 +232,7 @@ const baseAccount = BaseAccount.fromRestApi(accountDetailsResponse) const accountDetails = baseAccount.toAccountDetails() /** Block Details */ -const chainRestTendermintApi = new ChainRestTendermintApi( - restEndpoint, -) +const chainRestTendermintApi = new ChainRestTendermintApi(restEndpoint) const latestBlock = await chainRestTendermintApi.fetchLatestBlock() const latestHeight = latestBlock.header.height const timeoutHeight = new BigNumberInBase(latestHeight).plus( @@ -241,7 +244,7 @@ const msg = MsgSend.fromJSON({ amount, srcInjectiveAddress: injectiveAddress, dstInjectiveAddress: injectiveAddress, -}); +}) /** Get the PubKey of the Signer from the Wallet/Private Key */ const pubKey = await getPubKey() @@ -257,7 +260,10 @@ const { txRaw, signDoc } = createTransaction({ accountNumber: baseAccount.accountNumber, }) -const directSignResponse = await offlineSigner.signDirect(injectiveAddress, signDoc) +const directSignResponse = await offlineSigner.signDirect( + injectiveAddress, + signDoc, +) const txRaw = getTxRawFromTxRawOrDirectSignResponse(directSignResponse) const txHash = await broadcastTx(ChainId.Mainnet, txRaw) const response = await new TxRestClient(restEndpoint).fetchTxPoll(txHash) @@ -265,8 +271,4 @@ const response = await new TxRestClient(restEndpoint).fetchTxPoll(txHash) ### Example with WalletStrategy (Prepare + Sign + Broadcast) -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 - -This part is currently under work in progress. - -🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 +Example can be found [here](https://github.com/InjectiveLabs/injective-ts/blob/862e7c30d96120947b056abffbd01b4f378984a1/packages/wallet-ts/src/broadcaster/MsgBroadcaster.ts#L301-L365). From 612c35652ad10650ef1610e639d417965c373b6f Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 13 Oct 2023 09:55:13 +0200 Subject: [PATCH 53/86] refactor: minor --- packages/sdk-ui-ts/src/services/ibc/tokens.ts | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/packages/sdk-ui-ts/src/services/ibc/tokens.ts b/packages/sdk-ui-ts/src/services/ibc/tokens.ts index 240b07190..0adcfb85b 100644 --- a/packages/sdk-ui-ts/src/services/ibc/tokens.ts +++ b/packages/sdk-ui-ts/src/services/ibc/tokens.ts @@ -24,19 +24,30 @@ const TOKEN_METADATA_PATH = 'ibc/chain/injective-1/tokens' function ibcTokenMetadataToToken( ibcTokenMetadata: IbcTokenMetadata[], ): Token[] { - return ibcTokenMetadata.map((token) => ({ - name: token.name || 'Unknown', - denom: token.contractAddr || '', - logo: token.imageUrl || 'untracked.svg', - symbol: token.symbol || 'Unknown', - decimals: token.decimals || 18, - coinGeckoId: '', - tokenType: TokenType.Ibc, - tokenVerification: TokenVerification.External, - })) + return ibcTokenMetadata.map((token) => { + return { + name: token.name || 'Unknown', + denom: token.contractAddr || '', + logo: token.imageUrl || 'untracked.svg', + symbol: token.symbol || 'Unknown', + decimals: token.decimals || 18, + coinGeckoId: '', + tokenType: TokenType.Ibc, + tokenVerification: TokenVerification.External, + ibc: { + hash: (token.contractAddr || '').replace('ibc/', ''), + path: '', + channelId: '', + decimals: token.decimals || 18, + symbol: token.symbol || 'Unknown', + baseDenom: token.symbol || 'Unknown', + isNative: false, + }, + } + }) } -const fetchIbcTokens = async () => { +;(async () => { try { const response = (await ibcTokenMetadataApi.get(TOKEN_METADATA_PATH)) as { data: IbcTokenMetadata[] @@ -57,6 +68,4 @@ const fetchIbcTokens = async () => { return } -} - -fetchIbcTokens() +})() From a68c7b4136410342d7474c710b917ebf17e34e3e Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 13 Oct 2023 08:19:13 +0000 Subject: [PATCH 54/86] GITBOOK-23: change request with no subject merged in GitBook --- .gitbook/transactions/transactions-cosmos.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitbook/transactions/transactions-cosmos.md b/.gitbook/transactions/transactions-cosmos.md index 1f6c6a6ae..f5e96c69c 100644 --- a/.gitbook/transactions/transactions-cosmos.md +++ b/.gitbook/transactions/transactions-cosmos.md @@ -108,7 +108,7 @@ Once we have the signature ready, we need to broadcast the transaction to the In ```ts import { ChainId } from '@injectivelabs/ts-types' -import { getTxRawFromTxRawOrDirectSignResponse, TxRestClient } from '@injectivelabs/sdk-ts' +import { CosmosTxV1Beta1Tx, getTxRawFromTxRawOrDirectSignResponse, TxRestClient } from '@injectivelabs/sdk-ts' import { Network, getNetworkEndpoints } from '@injectivelabs/networks' /** @@ -136,7 +136,7 @@ const broadcastTx = async (chainId, txRaw) => { const keplr = await getKeplr(ChainId.Mainnet) const result = await keplr.sendTx( chainId, - txRaw.serializeBinary(), + CosmosTxV1Beta1Tx.TxRaw.encode(txRaw).finish(), BroadcastMode.Sync, ) From 6b80b638106a082e4d54ab83b867d3d5f3b54794 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 16 Oct 2023 13:33:21 +0200 Subject: [PATCH 55/86] chore: minor --- .gitbook/SUMMARY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index 14701d6d0..bbcc75190 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -61,7 +61,7 @@ * [Core Modules](core-modules/README.md) * [Auction](core-modules/auction.md) * [AuthZ](core-modules/authz.md) - - [Feegrant](core-modules/feegrant.md) + * [Feegrant](core-modules/feegrant.md) * [Bank](core-modules/bank.md) * [Distribution](core-modules/distribution.md) * [Exchange](core-modules/exchange.md) From 969e92098be7a4a12cb0a09d881af2dae4576293 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 16 Oct 2023 13:42:41 +0200 Subject: [PATCH 56/86] fix: temp ibc token removed --- packages/sdk-ui-ts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 7dda200da..1ba741650 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -18,7 +18,7 @@ }, "scripts": { "postinstall": "link-module-alias", - "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files && yarn get-ibc-tokens", + "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files", "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post && link-module-alias", "build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json", "clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist", From 96219c199cfbe2237873deb6a8d94914e22c6cf9 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Mon, 16 Oct 2023 11:48:01 +0000 Subject: [PATCH 57/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.12 - @injectivelabs/contracts@1.14.1-beta.2 - @injectivelabs/exceptions@1.14.1-beta.1 - @injectivelabs/networks@1.14.1-beta.2 - @injectivelabs/sdk-ts@1.14.1-beta.12 - @injectivelabs/sdk-ui-ts@1.14.1-beta.12 - @injectivelabs/token-metadata@1.14.1-beta.6 - @injectivelabs/token-utils@1.14.1-beta.1 - @injectivelabs/ts-types@1.14.1-beta.1 - @injectivelabs/utils@1.14.1-beta.1 - @injectivelabs/wallet-ts@1.14.1-beta.13 --- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/package.json | 10 +++++----- packages/exceptions/package.json | 4 ++-- packages/networks/package.json | 8 ++++---- packages/sdk-ts/package.json | 12 ++++++------ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/package.json | 6 +++--- packages/ts-types/package.json | 2 +- packages/utils/package.json | 6 +++--- packages/wallet-ts/package.json | 12 ++++++------ 11 files changed, 50 insertions(+), 50 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index daf0680c8..5e986bca3 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.11", + "version": "1.14.1-beta.12", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.11", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.12", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index c1eb053b9..9e646ed3c 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 20f3877fa..3422580cf 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/ts-types": "^1.14.1-beta.1", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/package.json b/packages/networks/package.json index 38ed8a93f..cd3908fcf 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index eb3510500..7d7c1dcb4 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.11", + "version": "1.14.1-beta.12", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.47", - "@injectivelabs/networks": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.5", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/token-metadata": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 1ba741650..18b98f2a9 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.11", + "version": "1.14.1-beta.12", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -35,14 +35,14 @@ "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.1", - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.11", - "@injectivelabs/token-metadata": "^1.14.1-beta.5", - "@injectivelabs/token-utils": "^1.14.1-beta.0", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/contracts": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.12", + "@injectivelabs/token-metadata": "^1.14.1-beta.6", + "@injectivelabs/token-utils": "^1.14.1-beta.1", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 3f1ff744a..12e17e48e 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index ad393d4f3..fa9efdff0 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 59bab4566..0ca6cc300 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index f4f135c2c..d540a2046 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/ts-types": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/ts-types": "^1.14.1-beta.1", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index bd4dc9ffa..436896cb0 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.12", + "version": "1.14.1-beta.13", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.1-beta.0", - "@injectivelabs/networks": "^1.14.1-beta.1", - "@injectivelabs/sdk-ts": "^1.14.1-beta.11", - "@injectivelabs/ts-types": "^1.14.1-beta.0", - "@injectivelabs/utils": "^1.14.1-beta.0", + "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.2", + "@injectivelabs/sdk-ts": "^1.14.1-beta.12", + "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/utils": "^1.14.1-beta.1", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 90817b6bf12b94058279655ec03a85eaa8d463e0 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 16 Oct 2023 11:53:48 +0000 Subject: [PATCH 58/86] GITBOOK-25: change request with no subject merged in GitBook --- .gitbook/core-modules/wasm.md | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/.gitbook/core-modules/wasm.md b/.gitbook/core-modules/wasm.md index 39e5debe6..1f085d820 100644 --- a/.gitbook/core-modules/wasm.md +++ b/.gitbook/core-modules/wasm.md @@ -41,9 +41,9 @@ console.log(txHash); ### MsgExecuteContract (funds example) -In some scenario, depending on the smart contract's function we have to transfer tokens to the smart contract, following cosmwasm convention we use the funds field to transfer tokens to the smart contract from the user's bank module. +In some scenarios, depending on the smart contract's function we have to transfer tokens to the smart contract, following cosmwasm convention, we use the funds field to transfer tokens to the smart contract from the user's bank module. -Below is an example of how we can send the MsgExecuteContract using an `test` contract function. +Below is an example of how we can send the `MsgExecuteContract` using an `test` contract function. ```ts import { @@ -82,32 +82,11 @@ console.log(txHash); ### MsgExecuteContractCompact -There are some compatibility issue parsing the funds array in the previous example with EIP712. -Since MsgExecuteContract can't be converted to EIP712 and then signed by ethereum wallets, we introduced MsgExecuteContractCompact which converts the funds into a string and therefore allows for EIP712 transformation. -Note that the MsgExecuteContract and MsgExecuteContractCompat underlying messages are the same. MsgExecuteContractCompat will just format for EIP712 compatibility. +There are some compatibility issues parsing the `funds` array and `msgs` object in the previous example with EIP712. Since `MsgExecuteContract` can't be properly converted to EIP712 and then signed by Ethereum wallets, we introduced `MsgExecuteContractCompact` which is fully compatible with EIP712. -An array of funds: +_**Note:**_ _`MsgExecuteContract` and `MsgExecuteContractCompat` underlying messages are the same. `MsgExecuteContractCompat` is just EIP712 compatible._ -```ts -const funds = [ - { - denom: denom1, - amount: new BigNumberInBase(1).toWei().toFixed(), - }, - { - denom: denom2, - amount: new BigNumberInBase(1).toWei().toFixed(), - }, -]; -``` - -will be presented as a string like this: - -```ts -const funds = "100000000000000000 denom1, 100000000000000000 denom2"; -``` - -Below is an example of how we can send the MsgExecuteContractCompact using an `test` contract function. +Below is an example of how we can send the `MsgExecuteContractCompact` using an `test` contract function. ```ts import { From 00748275da574c5c849a8b114990e46a94349156 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 16 Oct 2023 15:11:12 -0700 Subject: [PATCH 59/86] chore: update versions --- packages/bridge-ts/package.json | 2 +- packages/contracts/package.json | 2 +- packages/exceptions/package.json | 2 +- packages/networks/package.json | 2 +- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 2 +- packages/test-utils/package.json | 2 +- packages/token-metadata/package.json | 2 +- packages/token-utils/package.json | 2 +- packages/ts-types/package.json | 2 +- packages/wallet-ts/package.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 5e986bca3..1e136d2e6 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.12", + "version": "1.14.1-beta.13", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 9e646ed3c..ce839b89e 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 3422580cf..f5855ec08 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/networks/package.json b/packages/networks/package.json index cd3908fcf..0de99419f 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 7d7c1dcb4..cfd65c17f 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.12", + "version": "1.14.1-beta.13", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 18b98f2a9..746c5fb93 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.12", + "version": "1.14.1-beta.13", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index d3f5124c3..e1eaa3068 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.0", + "version": "1.14.1-beta.1", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 12e17e48e..605afbf41 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index fa9efdff0..512f3bf2f 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 0ca6cc300..1d016270c 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 436896cb0..9c1e83c2b 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.13", + "version": "1.14.1-beta.14", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", From a1d9db3e45e6449522b4a5dd3db0e9d56c16ff1e Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 16 Oct 2023 22:15:37 +0000 Subject: [PATCH 60/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.14 - @injectivelabs/contracts@1.14.1-beta.4 - @injectivelabs/exceptions@1.14.1-beta.3 - @injectivelabs/networks@1.14.1-beta.4 - @injectivelabs/sdk-ts@1.14.1-beta.14 - @injectivelabs/sdk-ui-ts@1.14.1-beta.14 - @injectivelabs/test-utils@1.14.1-beta.2 - @injectivelabs/token-metadata@1.14.1-beta.8 - @injectivelabs/token-utils@1.14.1-beta.3 - @injectivelabs/ts-types@1.14.1-beta.3 - @injectivelabs/utils@1.14.1-beta.2 - @injectivelabs/wallet-ts@1.14.1-beta.15 --- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/package.json | 10 +++++----- packages/exceptions/package.json | 4 ++-- packages/networks/package.json | 8 ++++---- packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/package.json | 2 +- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/package.json | 6 +++--- packages/ts-types/package.json | 2 +- packages/utils/package.json | 6 +++--- packages/wallet-ts/package.json | 12 ++++++------ 12 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 1e136d2e6..afcf3c960 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.13", + "version": "1.14.1-beta.14", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/sdk-ts": "^1.14.1-beta.12", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.14", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index ce839b89e..1acbe80d6 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index f5855ec08..6942cb04e 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/ts-types": "^1.14.1-beta.3", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/package.json b/packages/networks/package.json index 0de99419f..0d7cd0947 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index cfd65c17f..e1a86d4a9 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.13", + "version": "1.14.1-beta.14", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.47", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/test-utils": "^1.14.1-beta.0", - "@injectivelabs/token-metadata": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/test-utils": "^1.14.1-beta.2", + "@injectivelabs/token-metadata": "^1.14.1-beta.8", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 746c5fb93..51e5e4950 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.13", + "version": "1.14.1-beta.14", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -35,14 +35,14 @@ "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.2", - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/sdk-ts": "^1.14.1-beta.12", - "@injectivelabs/token-metadata": "^1.14.1-beta.6", - "@injectivelabs/token-utils": "^1.14.1-beta.1", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/contracts": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.14", + "@injectivelabs/token-metadata": "^1.14.1-beta.8", + "@injectivelabs/token-utils": "^1.14.1-beta.3", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index e1eaa3068..86868e01c 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 605afbf41..41b4f0246 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 512f3bf2f..30a6c236f 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 1d016270c..349f3cc67 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index d540a2046..3f5d9d5a7 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.1", + "version": "1.14.1-beta.2", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/ts-types": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/ts-types": "^1.14.1-beta.3", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9c1e83c2b..e4a4b0d73 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.14", + "version": "1.14.1-beta.15", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.1-beta.1", - "@injectivelabs/networks": "^1.14.1-beta.2", - "@injectivelabs/sdk-ts": "^1.14.1-beta.12", - "@injectivelabs/ts-types": "^1.14.1-beta.1", - "@injectivelabs/utils": "^1.14.1-beta.1", + "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/networks": "^1.14.1-beta.4", + "@injectivelabs/sdk-ts": "^1.14.1-beta.14", + "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/utils": "^1.14.1-beta.2", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 5f2c151829726524c41c61cdcbedcdf14d7d33bb Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 16 Oct 2023 15:47:56 -0700 Subject: [PATCH 61/86] chore: update versions --- packages/bridge-ts/package.json | 2 +- packages/contracts/package.json | 2 +- packages/exceptions/package.json | 2 +- packages/networks/package.json | 2 +- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 2 +- packages/test-utils/package.json | 2 +- packages/token-metadata/package.json | 2 +- packages/token-utils/package.json | 2 +- packages/ts-types/package.json | 2 +- packages/utils/package.json | 2 +- packages/wallet-ts/package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index afcf3c960..acfeb9d6e 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.14", + "version": "1.14.1-beta.15", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 1acbe80d6..0a7f5fe64 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 6942cb04e..8fb5314c0 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/networks/package.json b/packages/networks/package.json index 0d7cd0947..947f9efe8 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index e1a86d4a9..f03cccd86 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.14", + "version": "1.14.1-beta.15", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 51e5e4950..68abfad52 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.14", + "version": "1.14.1-beta.15", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 86868e01c..b5ce8919c 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 41b4f0246..163bed135 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.8", + "version": "1.14.1-beta.9", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 30a6c236f..9cd793450 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 349f3cc67..ec12f5b15 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 3f5d9d5a7..72e088758 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.2", + "version": "1.14.1-beta.3", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index e4a4b0d73..9099ae8b2 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.15", + "version": "1.14.1-beta.16", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", From 9315d7cf56667d5947c97781c77614169b617e82 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 16 Oct 2023 22:52:14 +0000 Subject: [PATCH 62/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.16 - @injectivelabs/contracts@1.14.1-beta.6 - @injectivelabs/exceptions@1.14.1-beta.5 - @injectivelabs/networks@1.14.1-beta.6 - @injectivelabs/sdk-ts@1.14.1-beta.16 - @injectivelabs/sdk-ui-ts@1.14.1-beta.16 - @injectivelabs/test-utils@1.14.1-beta.4 - @injectivelabs/token-metadata@1.14.1-beta.10 - @injectivelabs/token-utils@1.14.1-beta.5 - @injectivelabs/ts-types@1.14.1-beta.5 - @injectivelabs/utils@1.14.1-beta.4 - @injectivelabs/wallet-ts@1.14.1-beta.17 --- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/package.json | 10 +++++----- packages/exceptions/package.json | 4 ++-- packages/networks/package.json | 8 ++++---- packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/package.json | 2 +- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/package.json | 6 +++--- packages/ts-types/package.json | 2 +- packages/utils/package.json | 6 +++--- packages/wallet-ts/package.json | 12 ++++++------ 12 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index acfeb9d6e..1197befad 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.15", + "version": "1.14.1-beta.16", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/sdk-ts": "^1.14.1-beta.14", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/sdk-ts": "^1.14.1-beta.16", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index 0a7f5fe64..b0cd8b5f4 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 8fb5314c0..210d7d05a 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/ts-types": "^1.14.1-beta.5", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/package.json b/packages/networks/package.json index 947f9efe8..e7f881d19 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index f03cccd86..b95a15c64 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.15", + "version": "1.14.1-beta.16", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.1-beta.3", + "@injectivelabs/exceptions": "^1.14.1-beta.5", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.47", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/test-utils": "^1.14.1-beta.2", - "@injectivelabs/token-metadata": "^1.14.1-beta.8", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/test-utils": "^1.14.1-beta.4", + "@injectivelabs/token-metadata": "^1.14.1-beta.10", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 68abfad52..27e77892a 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.15", + "version": "1.14.1-beta.16", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -35,14 +35,14 @@ "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.4", - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/sdk-ts": "^1.14.1-beta.14", - "@injectivelabs/token-metadata": "^1.14.1-beta.8", - "@injectivelabs/token-utils": "^1.14.1-beta.3", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/contracts": "^1.14.1-beta.6", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/sdk-ts": "^1.14.1-beta.16", + "@injectivelabs/token-metadata": "^1.14.1-beta.10", + "@injectivelabs/token-utils": "^1.14.1-beta.5", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index b5ce8919c..06660777d 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 163bed135..301eefe07 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.9", + "version": "1.14.1-beta.10", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index 9cd793450..b8aa48907 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index ec12f5b15..7961f4769 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 72e088758..94fe43c25 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.3", + "version": "1.14.1-beta.4", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/ts-types": "^1.14.1-beta.3", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/ts-types": "^1.14.1-beta.5", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9099ae8b2..16ec8121c 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.16", + "version": "1.14.1-beta.17", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.1-beta.3", - "@injectivelabs/networks": "^1.14.1-beta.4", - "@injectivelabs/sdk-ts": "^1.14.1-beta.14", - "@injectivelabs/ts-types": "^1.14.1-beta.3", - "@injectivelabs/utils": "^1.14.1-beta.2", + "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/sdk-ts": "^1.14.1-beta.16", + "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/utils": "^1.14.1-beta.4", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 8c3591ed19301e3bf26e6a81df89c3cc96311f52 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 16 Oct 2023 16:05:26 -0700 Subject: [PATCH 63/86] chore: update yml files for ibc tokens script --- .github/workflows/canary.yml | 12 +++++++++--- .github/workflows/dev.yaml | 12 +++++++++--- .github/workflows/stable.yaml | 12 +++++++++--- packages/sdk-ui-ts/package.json | 2 +- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index 90b29a576..25d3fa81b 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -24,6 +24,11 @@ jobs: - name: 'Setup lerna@6.6.1' run: yarn global add lerna@6.6.1 --ignore-engines + - name: Set up Git user + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + - name: Build dependencies run: | node etc/bootstrapEnv @@ -35,13 +40,14 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: 'Commit ibcTokenMetadata.json if changed' + run: | + git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json") + - name: Version and publish env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version prerelease --preid dev --force-git-tag --no-changelog --yes lerna publish from-git --force-git-tag --dist-tag dev --yes --summary-file diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index c4580baf7..2e1a6d374 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -24,6 +24,11 @@ jobs: - name: 'Setup lerna@6.6.1' run: yarn global add lerna@6.6.1 --ignore-engines + - name: Set up Git user + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + - name: Build dependencies run: | node etc/bootstrapEnv @@ -35,13 +40,14 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: 'Commit ibcTokenMetadata.json if changed' + run: | + git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json") + - name: Version and publish env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version prerelease --preid beta --force-git-tag --no-changelog --yes lerna publish from-git --force-git-tag --dist-tag next --yes --summary-file diff --git a/.github/workflows/stable.yaml b/.github/workflows/stable.yaml index 4b1579ac7..656c2bbcc 100644 --- a/.github/workflows/stable.yaml +++ b/.github/workflows/stable.yaml @@ -24,6 +24,11 @@ jobs: - name: 'Setup lerna@6.6.1' run: yarn global add lerna@6.6.1 --ignore-engines + - name: Set up Git user + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + - name: Build dependencies run: | node etc/bootstrapEnv @@ -35,13 +40,14 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: 'Commit ibcTokenMetadata.json if changed' + run: | + git diff --exit-code -- packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json || (git add packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json && git commit -m "Automatically update ibcTokenMetadata.json") + - name: Version and publish env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor}}@users.noreply.github.com" - lerna version patch --conventional-commits --conventional-graduate --force-git-tag --yes lerna publish from-git --force-git-tag --dist-tag latest --yes --summary-file diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 27e77892a..a592b9b80 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -18,7 +18,7 @@ }, "scripts": { "postinstall": "link-module-alias", - "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files", + "build": "tsc --build tsconfig.build.json && tsc --build tsconfig.build.esm.json && yarn build:post && link-module-alias && yarn copy-files && yarn get-ibc-tokens", "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post && link-module-alias", "build:post": "shx cp ../../etc/stub/package.json.stub dist/cjs/package.json && shx cp ../../etc/stub/package.esm.json.stub dist/esm/package.json", "clean": "tsc --build tsconfig.build.json --clean && tsc --build tsconfig.build.esm.json --clean && shx rm -rf coverage *.log junit.xml dist && jest --clearCache && shx mkdir -p dist", From 3ba6ec28c8ddca02b89d8258997f933c0d34dac3 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Tue, 17 Oct 2023 13:26:11 +0000 Subject: [PATCH 64/86] GITBOOK-26: change request with no subject merged in GitBook --- .gitbook/SUMMARY.md | 2 +- .gitbook/readme/token-metadata/creating-tokens.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index bbcc75190..f9fb2de00 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -3,7 +3,7 @@ * [Getting Started](README.md) * [Technical Concepts](readme/technical-concepts.md) * [Application Concepts](readme/application-concepts.md) - * [Token Metadata](readme/token-metadata/README.md) + * [Assets (Token Metadata)](readme/token-metadata/README.md) * [Creating Tokens](readme/token-metadata/creating-tokens.md) * [Denom Client](readme/token-metadata/denom-client.md) * [Networks](readme/networks.md) diff --git a/.gitbook/readme/token-metadata/creating-tokens.md b/.gitbook/readme/token-metadata/creating-tokens.md index a74e9c2aa..016ff789a 100644 --- a/.gitbook/readme/token-metadata/creating-tokens.md +++ b/.gitbook/readme/token-metadata/creating-tokens.md @@ -10,4 +10,4 @@ A single account can create multiple denoms, by providing a unique subdenom for * Change the admin. In the future, more admin capabilities may be added. Admins can choose to share admin privileges with other accounts using the authz module. The ChangeAdmin functionality allows changing the master admin account, or even setting it to "", meaning no account has admin privileges over the asset. * Set their token metadata on chain -To start creating your denoms, head to our [TokenFactory Core Module page](../../core-modules/token-factory.md) to see examples. +To start creating your denoms, head to our [TokenFactory Core Module page ](../../core-modules/token-factory.md)to see examples. From f85fed85c1eb31cd477f5e39d865ad93e171e42e Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Tue, 17 Oct 2023 16:48:59 +0200 Subject: [PATCH 65/86] chore: minor comments --- .../wasm/msgs/MsgExecuteContractCompat.ts | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/msgs/MsgExecuteContractCompat.ts b/packages/sdk-ts/src/core/modules/wasm/msgs/MsgExecuteContractCompat.ts index 24d059c8b..e2208e6fa 100644 --- a/packages/sdk-ts/src/core/modules/wasm/msgs/MsgExecuteContractCompat.ts +++ b/packages/sdk-ts/src/core/modules/wasm/msgs/MsgExecuteContractCompat.ts @@ -18,20 +18,38 @@ export declare namespace MsgExecuteContractCompat { }[] sender: string contractAddress: string + /* Used to provide type safety for execution messages */ execArgs?: ExecArgs - /* Pass any arbitrary message object to execute */ + /* + * Pass any arbitrary message object to execute + * example: + exec: { + action: "transfer", + msg: { + recipient: recipientAddress, + amount: 100000, + }, + }, + */ exec?: { - msg: object + msg: Record action: string } + /** * Same as exec but you don't pass * the action as a separate property * but as a whole object + * example: + msg: { + reset: { + count: 10 + }, + }, */ - msg?: object + msg?: Record } export type Proto = InjectiveWasmxV1Beta1Tx.MsgExecuteContractCompat From 57399f31ceb6098e1d98f79bf171721d870c7665 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Tue, 24 Oct 2023 15:26:34 +0000 Subject: [PATCH 66/86] GITBOOK-27: change request with no subject merged in GitBook --- .gitbook/core-modules/exchange.md | 41 ++++++++++++++----------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/.gitbook/core-modules/exchange.md b/.gitbook/core-modules/exchange.md index 0d854c63d..552e813dc 100644 --- a/.gitbook/core-modules/exchange.md +++ b/.gitbook/core-modules/exchange.md @@ -93,7 +93,7 @@ import { MsgCreateSpotLimitOrder, MsgBroadcasterWithPk, getEthereumAddress, - getDerivativeMarketTensMultiplier + getSpotMarketTensMultiplier } from '@injectivelabs/sdk-ts' import { BigNumberInBase, spotPriceToChainPriceToFixed, spotQuantityToChainQuantityToFixed } from '@injectivelabs/utils' import { Network } from '@injectivelabs/networks' @@ -107,8 +107,8 @@ const market = { quoteDecimals: 6, minPriceTickSize: '', /* fetched from the chain */ minQuantityTickSize: '', /* fetched from the chain */ - priceTensMultiplier: '', /** can be fetched from getDerivativeMarketTensMultiplier */ - quantityTensMultiplier: '', /** can be fetched from getDerivativeMarketTensMultiplier */ + priceTensMultiplier: '', /** can be fetched from getSpotMarketTensMultiplier */ + quantityTensMultiplier: '', /** can be fetched from getSpotMarketTensMultiplier */ } const order = { @@ -159,7 +159,7 @@ import { MsgCreateSpotMarketOrder, MsgBroadcasterWithPk, getEthereumAddress, - getDerivativeMarketTensMultiplier + getSpotMarketTensMultiplier } from '@injectivelabs/sdk-ts' import { BigNumberInBase, spotPriceToChainPriceToFixed, spotQuantityToChainQuantityToFixed } from '@injectivelabs/utils' import { Network } from '@injectivelabs/networks' @@ -173,8 +173,8 @@ const market = { quoteDecimals: 6, minPriceTickSize: '', /* fetched from the chain */ minQuantityTickSize: '', /* fetched from the chain */ - priceTensMultiplier: '', /** can be fetched from getDerivativeMarketTensMultiplier */ - quantityTensMultiplier: '', /** can be fetched from getDerivativeMarketTensMultiplier */ + priceTensMultiplier: '', /** can be fetched from getSpotMarketTensMultiplier */ + quantityTensMultiplier: '', /** can be fetched from getSpotMarketTensMultiplier */ } const order = { price: 10, @@ -475,18 +475,15 @@ import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' -const orders = [ - { +const orders = [{ marketId: '0x...', subaccountId: '0x...', orderHash: '0x...' - }, - { + },{ marketId: '0x...', subaccountId: '0x...', orderHash: '0x...' - } -] +}] const messages = orders.map((order) => MsgBatchCancelSpotOrders.fromJSON({ @@ -521,18 +518,15 @@ import { Network } from '@injectivelabs/networks' const privateKey = '0x...' const injectiveAddress = 'inj1...' -const orders = [ - { +const orders = [{ marketId: '0x...', subaccountId: '0x...', orderHash: '0x...' - }, - { + },{ marketId: '0x...', subaccountId: '0x...', orderHash: '0x...' - } -] +}] const messages = orders.map((order) => MsgBatchCancelDerivativeOrders.fromJSON({ @@ -589,14 +583,17 @@ console.log(txHash) This message is used to transfer balance from one subaccount to another subaccount. Note: -- You cannot transfer from your default subaccountId since that balance is now associated with your Injective address in the bank module. Therefore, in order for `MsgExternalTransfer` to work, you will need to transfer from a non-default subaccountId. + +* You cannot transfer from your default subaccountId since that balance is now associated with your Injective address in the bank module. Therefore, in order for `MsgExternalTransfer` to work, you will need to transfer from a non-default subaccountId. How to find the subaccountId that you will be transferring from: -- you can query your existing subaccountIds via the [account portfolio api](../querying/querying-api/querying-indexer-portfolio.md). + +* you can query your existing subaccountIds via the [account portfolio api](../querying/querying-api/querying-indexer-portfolio.md). How to use funds that are currently associated with your Injective Address in bank module: -- If you have existing non-default subaccounts, you'll want to do a [MsgDeposit](./exchange.md#MsgDeposit) to one of your existing non-default subaccountIds and use that subaccountId as the `srcSubaccountId` below. -- If you don't have existing non-default subaccounts, you can do a [MsgDeposit](./exchange.md#MsgDeposit) to a new default subaccountId, which would be done via importing `getSubaccountId` from `sdk-ts` and setting the `subaccountId` field in [MsgDeposit](./exchange.md#MsgDeposit) to `getSubaccountId(injectiveAddress, 1)`. + +* If you have existing non-default subaccounts, you'll want to do a [MsgDeposit](exchange.md#MsgDeposit) to one of your existing non-default subaccountIds and use that subaccountId as the `srcSubaccountId` below. +* If you don't have existing non-default subaccounts, you can do a [MsgDeposit](exchange.md#MsgDeposit) to a new default subaccountId, which would be done via importing `getSubaccountId` from `sdk-ts` and setting the `subaccountId` field in [MsgDeposit](exchange.md#MsgDeposit) to `getSubaccountId(injectiveAddress, 1)`. ```ts import { From e14f82f816610a73b950a6ccd2478e8da705612c Mon Sep 17 00:00:00 2001 From: "gitbook-com[bot]" Date: Tue, 24 Oct 2023 15:31:10 +0000 Subject: [PATCH 67/86] Automatically update ibcTokenMetadata.json --- .../src/services/ibc/ibcTokenMetadata.json | 891 ++++++++++++++++-- 1 file changed, 810 insertions(+), 81 deletions(-) diff --git a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json index 7e3d54334..e806afb1e 100644 --- a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json +++ b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json @@ -7,7 +7,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "inj", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "INJ", + "baseDenom": "INJ", + "isNative": false + } }, { "name": "Stride", @@ -17,7 +26,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "3FDD002A3A4019B05A33D324B2F29748E77AF501BEA5C96D1F28B2D6755F9F25", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "STRD", + "baseDenom": "STRD", + "isNative": false + } }, { "name": "stATOM", @@ -27,7 +45,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "A8F39212ED30B6A8C2AC736665835720D3D7BE4A1D18D68566525EC25ECF1C9B", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stATOM", + "baseDenom": "stATOM", + "isNative": false + } }, { "name": "stSTARS", @@ -37,7 +64,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "DD0F92D576A9A60487F17685A987AB6EDB359E661D281ED31F3AE560650ECFCB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stSTARS", + "baseDenom": "stSTARS", + "isNative": false + } }, { "name": "stOSMO", @@ -47,7 +83,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "6D821F3CFAE78E9EBD872FAEC61C400C0D9B72E77FA14614CF1B775A528854FD", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stOSMO", + "baseDenom": "stOSMO", + "isNative": false + } }, { "name": "stJUNO", @@ -57,7 +102,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "580E52A2C2DB126EE2160D1BDBBA33B5839D53B5E59D04D4FF438AE9BB7BFAAB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stJUNO", + "baseDenom": "stJUNO", + "isNative": false + } }, { "name": "stLUNA", @@ -67,7 +121,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E98796F283A8B56A221011C2EDF7079BB62D1EA3EEF3E7CF4C679E91C6D97D08", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stLUNA", + "baseDenom": "stLUNA", + "isNative": false + } }, { "name": "stEVMOS", @@ -77,7 +140,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "75F64E20A70C5059F8EA792F1C47260DC7C6CBAC69DBA60E151AD5416E93C34C", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "stEVMOS", + "baseDenom": "stEVMOS", + "isNative": false + } }, { "name": "stINJ", @@ -87,7 +159,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "AC87717EA002B0123B10A05063E69BCA274BA2C44D842AEEB41558D2856DCE93", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "stINJ", + "baseDenom": "stINJ", + "isNative": false + } }, { "name": "stUMEE", @@ -97,7 +178,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "FC8E98DF998AE88129183094E49383F94B3E5F1844C939D380AF18061FEF41EB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stUMEE", + "baseDenom": "stUMEE", + "isNative": false + } }, { "name": "Osmosis", @@ -107,7 +197,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "92E0120F15D037353CFB73C14651FC8930ADC05B93100FD7754D3A689E53B333", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "OSMO", + "baseDenom": "OSMO", + "isNative": false + } }, { "name": "Ion", @@ -117,7 +216,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "1B2D7E4261A7E2130E8E3506058E3081D3154998413F0DB2F82B04035B3FE676", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ION", + "baseDenom": "ION", + "isNative": false + } }, { "name": "IBCX", @@ -127,7 +235,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "491C92BEEAFE513BABA355275C7AE3AC47AA7FD57285AC1D910CE874D2DC7CA0", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "IBCX", + "baseDenom": "IBCX", + "isNative": false + } }, { "name": "Evmos", @@ -137,7 +254,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "EVMOS", + "baseDenom": "EVMOS", + "isNative": false + } }, { "name": "Kuji", @@ -147,7 +273,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "KUJI", + "baseDenom": "KUJI", + "isNative": false + } }, { "name": "USK", @@ -157,7 +292,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "45D5C97124CFD8AD9CD88AB98815455A7DEDBD932BA725107AD1BE71B85EAF21", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USK", + "baseDenom": "USK", + "isNative": false + } }, { "name": "ampKUJI", @@ -167,7 +311,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "C5FA29CE50D543E193DBC6D3D944ACB3A660C96C340F800CFA4BFCF876F9DD74", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampKUJI", + "baseDenom": "ampKUJI", + "isNative": false + } }, { "name": "MNTA", @@ -177,7 +330,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E517983388553858495A0E716406CF2FD4FE9BCE1EC3C9A71742282448674F10", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "MNTA", + "baseDenom": "MNTA", + "isNative": false + } }, { "name": "WINK", @@ -187,7 +349,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "495694322A85155314DBA1238FDCA84F989E3A3B5A30D5D81FF7865D6445C7E5", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "WINK", + "baseDenom": "WINK", + "isNative": false + } }, { "name": "Axelar", @@ -197,7 +368,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "B68C1D2682A8B69E20BB921E34C6A3A2B6D1E13E3E8C0092E373826F546DEE65", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "AXL", + "baseDenom": "AXL", + "isNative": false + } }, { "name": "USD Coin", @@ -207,7 +387,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "7E1AF94AD246BE522892751046F0C959B768642E5671CC3742264068D49553C0", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } }, { "name": "Frax", @@ -217,7 +406,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "3E5504815B2D69DCC32B1FF54CDAC28D7DA2C445BD29C496A83732DC1D52DB90", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "FRAX", + "baseDenom": "FRAX", + "isNative": false + } }, { "name": "Dai Stablecoin", @@ -227,7 +425,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "265ABC4B9F767AF45CAC6FB76E930548D835EDA3E94BC56B70582A55A73D8C90", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "DAI", + "baseDenom": "DAI", + "isNative": false + } }, { "name": "Tether USD", @@ -237,7 +444,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "90C6F06139D663CFD7949223D257C5B5D241E72ED61EBD12FFDDA6F068715E47", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDT", + "baseDenom": "USDT", + "isNative": false + } }, { "name": "Wrapped Ether", @@ -247,7 +463,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "65A6973F7A4013335AE5FFE623FE019A78A1FEEE9B8982985099978837D764A7", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WETH", + "baseDenom": "WETH", + "isNative": false + } }, { "name": "Wrapped Bitcoin", @@ -257,7 +482,16 @@ "decimals": 8, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "4C8A332AE4FDE42709649B5F9A2A336192158C4465DF74B4513F5AD0C583EA6F", + "path": "", + "channelId": "", + "decimals": 8, + "symbol": "WBTC", + "baseDenom": "WBTC", + "isNative": false + } }, { "name": "Aave", @@ -267,7 +501,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "49265FCAA6CC20B59652C0B45B2283A260BB19FC183DE95C29CCA8E01F8B004C", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "AAVE", + "baseDenom": "AAVE", + "isNative": false + } }, { "name": "ApeCoin", @@ -277,7 +520,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "8A13F5DA968B4D526E9DC5AE20B584FE62462E80AF06B9D0EA0B0DB35ABBBF27", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "APE", + "baseDenom": "APE", + "isNative": false + } }, { "name": "Axie Infinity Shard", @@ -287,7 +539,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "EB519ECF709F0DB6BA1359F91BA2DDC5A07FB9869E1768D377EFEF9DF33DC4AB", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "AXS", + "baseDenom": "AXS", + "isNative": false + } }, { "name": "Chainlink", @@ -297,7 +558,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "AC447F1D6EDAF817589C5FECECB6CD3B9E9EFFD33C7E16FE8820009F92A2F585", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "LINK", + "baseDenom": "LINK", + "isNative": false + } }, { "name": "Maker", @@ -307,7 +577,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E8C65EFAB7804152191B8311F61877A36779277E316883D8812D3CBEFC79AE4F", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "MKR", + "baseDenom": "MKR", + "isNative": false + } }, { "name": "Rai Reflex Index", @@ -317,7 +596,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "27817BAE3958FFB2BFBD8F4F6165153DFD230779994A7C42A91E0E45E8201768", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "RAI", + "baseDenom": "RAI", + "isNative": false + } }, { "name": "Shiba Inu", @@ -327,7 +615,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E68343A4DEF4AFBE7C5A9004D4C11888EE755A7B43B3F1AFA52F2C34C07990D5", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "SHIB", + "baseDenom": "SHIB", + "isNative": false + } }, { "name": "Lido Staked Ether", @@ -337,7 +634,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "FB1B967C690FEA7E9AD7CF76AE2255169D4EA2937D6694B2C0E61A370F76D9FB", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "stETH", + "baseDenom": "stETH", + "isNative": false + } }, { "name": "Uniswap", @@ -347,7 +653,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "3E3A8A403AE81114F4341962A6D73162D586C9DF4CE3BE7C7B459108430675F7", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "UNI", + "baseDenom": "UNI", + "isNative": false + } }, { "name": "Chain", @@ -357,7 +672,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "79D01DE88DFFC0610003439D38200E77A3D2A1CCCBE4B1958D685026ABB01814", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "XCN", + "baseDenom": "XCN", + "isNative": false + } }, { "name": "Wrapped Polkadot", @@ -367,7 +691,16 @@ "decimals": 10, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4", + "path": "", + "channelId": "", + "decimals": 10, + "symbol": "DOT", + "baseDenom": "DOT", + "isNative": false + } }, { "name": "Wrapped Moonbeam", @@ -377,7 +710,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "8FF72FB47F07B4AFA8649500A168683BEFCB9EE164BD331FA597D26224D51055", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WGLMR", + "baseDenom": "WGLMR", + "isNative": false + } }, { "name": "Wrapped Matic", @@ -387,7 +729,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "7E23647941230DA0AB4ED10F599647D9BE34E1C991D0DA032B5A1522941EBA73", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WMATIC", + "baseDenom": "WMATIC", + "isNative": false + } }, { "name": "Wrapped BNB", @@ -397,7 +748,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "B877B8EF095028B807370AB5C7790CA0C328777C9FF09AA7F5436BA7FAE4A86F", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WBNB", + "baseDenom": "WBNB", + "isNative": false + } }, { "name": "Binance USD", @@ -407,7 +767,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "A62F794AAEC56B6828541224D91DA3E21423AB0DC4D21ECB05E4588A07BD934C", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "BUSD", + "baseDenom": "BUSD", + "isNative": false + } }, { "name": "Wrapped AVAX", @@ -417,7 +786,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "A4FF8E161D2835BA06A7522684E874EFC91004AD0CD14E038F37940562158D73", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WAVAX", + "baseDenom": "WAVAX", + "isNative": false + } }, { "name": "Wrapped FTM", @@ -427,7 +805,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "31E8DDA49D53535F358B29CFCBED1B9224DAAFE82788C0477930DCDE231DA878", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "WFTM", + "baseDenom": "WFTM", + "isNative": false + } }, { "name": "USD Coin from Polygon", @@ -437,7 +824,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "2E93E8914CA07B73A794657DA76170A016057D1C6B0DC42D969918D4F22D95A3", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } }, { "name": "USD Coin from Avalanche", @@ -447,7 +843,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "705E7E25F94467E363B2EB324A5A6FF4C683A4A6D20AAD2AEEABA2D9EB1B897F", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } }, { "name": "Wrapped FIL from Filecoin", @@ -457,7 +862,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "9D1889339AEC850B1D719CCF19BD813955C086BE1ED323ED68318A273922E40D", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "axlFIL", + "baseDenom": "axlFIL", + "isNative": false + } }, { "name": "Arbitrum", @@ -467,7 +881,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "F28C5C931D2673B7A2F06FC74934F7BDC0D2906D2AF40D582ED27D1E5C48D475", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "ARB", + "baseDenom": "ARB", + "isNative": false + } }, { "name": "Pepe", @@ -477,7 +900,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "9144D78830C5ABD7B7D9E219EA7600E3A0E0AD5FC50C007668160595E94789AB", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "PEPE", + "baseDenom": "PEPE", + "isNative": false + } }, { "name": "Coinbase Wrapped Staked ETH", @@ -487,7 +919,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "545E97C6EFB2633645720DEBCA78B2BE6F5382C4693EA7DEB2D4C456371EA4F0", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "cbETH", + "baseDenom": "cbETH", + "isNative": false + } }, { "name": "Rocket Pool Ether", @@ -497,7 +938,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "8906BF683A89D1ABE075A49EFA35A3128D7E9D809775B8E9D5AEEAA55D2889DD", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "rETH", + "baseDenom": "rETH", + "isNative": false + } }, { "name": "Staked Frax Ether", @@ -507,7 +957,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E918585C09958BD328DD9E7215E4726623E7A9A94342FEA5BE126A2AAF920730", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "sfrxETH", + "baseDenom": "sfrxETH", + "isNative": false + } }, { "name": "Wrapped Lido Staked Ether", @@ -517,7 +976,16 @@ "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "1E0FC59FB8495BF927B10E9D515661494B1BBEDAA15D80E52FE2BADA64656D16", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "wstETH", + "baseDenom": "wstETH", + "isNative": false + } }, { "name": "Cosmos Hub Atom", @@ -527,7 +995,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ATOM", + "baseDenom": "ATOM", + "isNative": false + } }, { "name": "Persistence", @@ -537,7 +1014,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "B786E7CBBF026F6F15A8DA248E0F18C62A0F7A70CB2DABD9239398C8B5150ABB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "XPRT", + "baseDenom": "XPRT", + "isNative": false + } }, { "name": "PSTAKE staked ATOM", @@ -547,7 +1033,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "B8E30AECB0FB5BA1B02747BE003E55934A9E42488495412C7E9934FBEC06B201", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stkATOM", + "baseDenom": "stkATOM", + "isNative": false + } }, { "name": "Whale", @@ -557,7 +1052,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "D6E6A20ABDD600742D22464340A7701558027759CE14D12590F8EA869CCCF445", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "WHALE", + "baseDenom": "WHALE", + "isNative": false + } }, { "name": "ampWHALE", @@ -567,7 +1071,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "168C3904C45C6FE3539AE85A8892DF87371D00EA7942515AFC50AA43C4BB0A32", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampWHALE", + "baseDenom": "ampWHALE", + "isNative": false + } }, { "name": "boneWHALE", @@ -577,7 +1090,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "ECB0AA28D6001EF985047558C410B65581FC85BD92D4E3CFCCA0D3D964C67CC2", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "bWHALE", + "baseDenom": "bWHALE", + "isNative": false + } }, { "name": "FABLE", @@ -587,7 +1109,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "5FE5E50EA0DF6D68C29EDFB7992EB81CD40B6780C33834A8AB3712FB148E1313", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "FABLE", + "baseDenom": "FABLE", + "isNative": false + } }, { "name": "Somm", @@ -597,7 +1128,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "34346A60A95EB030D62D6F5BDD4B745BE18E8A693372A8A347D5D53DBBB1328B", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "SOMM", + "baseDenom": "SOMM", + "isNative": false + } }, { "name": "Crescent", @@ -607,7 +1147,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "3A6DD3358D9F7ADD18CDE79BA10B400511A5DE4AE2C037D7C9639B52ADAF35C6", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "CRE", + "baseDenom": "CRE", + "isNative": false + } }, { "name": "Bonded Crescent", @@ -617,7 +1166,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "D9E839DE6F40C036592B6CEDB73841EE9A18987BC099DD112762A46AFE72159B", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "bCRE", + "baseDenom": "bCRE", + "isNative": false + } }, { "name": "Secret Network", @@ -627,7 +1185,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "SCRT", + "baseDenom": "SCRT", + "isNative": false + } }, { "name": "Astroport", @@ -637,7 +1204,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ASTRO", + "baseDenom": "ASTRO", + "isNative": false + } }, { "name": "ERIS Amplified LUNA", @@ -647,7 +1223,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "751CCECAF75D686B1DC8708BE62F8C7411B211750E6009C6AC4C93881F0543E8", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampLUNA", + "baseDenom": "ampLUNA", + "isNative": false + } }, { "name": "Lion DAO", @@ -657,7 +1242,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "E6CFB0AC1D339A8CBA3353DF0D7E080B4B14D026D1C90F63F666C223B04D548C", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ROAR", + "baseDenom": "ROAR", + "isNative": false + } }, { "name": "boneLuna", @@ -667,7 +1261,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "C9D55B62C9D9CA84DD94DC019009B840DDFD861BF2F33F7CF2A8A74933797680", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "bLUNA", + "baseDenom": "bLUNA", + "isNative": false + } }, { "name": "Lion Cub DAO", @@ -677,7 +1280,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "5CB35B165F689DD57F836C6C5ED3AB268493AA5A810740446C4F2141664714F4", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "CUB", + "baseDenom": "CUB", + "isNative": false + } }, { "name": "sayve", @@ -687,7 +1299,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "DF2B99CF1FEA6B292E79617BD6F7EF735C0B47CEF09D7104E270956E96C38B12", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "SAYVE", + "baseDenom": "SAYVE", + "isNative": false + } }, { "name": "stCMDX", @@ -697,7 +1318,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stCMDX", + "baseDenom": "stCMDX", + "isNative": false + } }, { "name": "stIBCX Core ", @@ -707,7 +1337,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stIBCX", + "baseDenom": "stIBCX", + "isNative": false + } }, { "name": "BLUE CUB DAO", @@ -717,7 +1356,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "B692197280D4E62F8D9F8E5C0B697DC4C2C680ED6DE8FFF0368E0552C9215607", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "BLUE", + "baseDenom": "BLUE", + "isNative": false + } }, { "name": "ERIS Amplified OSMO", @@ -727,7 +1375,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampOSMO", + "baseDenom": "ampOSMO", + "isNative": false + } }, { "name": "ASH", @@ -737,7 +1394,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ASH", + "baseDenom": "ASH", + "isNative": false + } }, { "name": "RAC", @@ -747,7 +1413,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "RAC", + "baseDenom": "RAC", + "isNative": false + } }, { "name": "Kava", @@ -757,7 +1432,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "57AA1A70A4BC9769C525EBF6386F7A21536E04A79D62E1981EFCEF9428EBB205", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "KAVA", + "baseDenom": "KAVA", + "isNative": false + } }, { "name": "Hard", @@ -767,7 +1451,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "D6C28E07F7343360AC41E15DDD44D79701DDCA2E0C2C41279739C8D4AE5264BC", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "HARD", + "baseDenom": "HARD", + "isNative": false + } }, { "name": "Swap", @@ -777,7 +1470,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "70CF1A54E23EA4E480DEDA9E12082D3FD5684C3483CBDCE190C5C807227688C5", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "SWP", + "baseDenom": "SWP", + "isNative": false + } }, { "name": "USDX", @@ -787,7 +1489,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "C78F65E1648A3DFE0BAEB6C4CDA69CC2A75437F1793C0E6386DFDA26393790AE", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDX", + "baseDenom": "USDX", + "isNative": false + } }, { "name": "Tether USD", @@ -797,7 +1508,16 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "58D95D27C82FAC8D0F9F00C3F6097FD70DD6276423768EA95DBFAA2AF8DAE9A2", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDT", + "baseDenom": "USDT", + "isNative": false + } }, { "name": "Tether USD", @@ -807,6 +1527,15 @@ "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", - "tokenVerification": "external" + "tokenVerification": "external", + "ibc": { + "hash": "4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDT", + "baseDenom": "USDT", + "isNative": false + } } ] \ No newline at end of file From 68358bedddb3b285d5c080f8910354f0f5772bc0 Mon Sep 17 00:00:00 2001 From: "gitbook-com[bot]" Date: Tue, 24 Oct 2023 15:31:15 +0000 Subject: [PATCH 68/86] chore(release): publish - @injectivelabs/sdk-ui-ts@1.14.1-beta.17 --- packages/sdk-ui-ts/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index a592b9b80..dc2f2b61a 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.16", + "version": "1.14.1-beta.17", "sideEffects": false, "license": "Apache-2.0", "author": { From 1c71791ad91ffc2778873fa7002fcc6358957e83 Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Wed, 25 Oct 2023 17:32:34 +0200 Subject: [PATCH 69/86] chore: add noble bridge --- packages/sdk-ui-ts/src/types/bridge.ts | 2 ++ packages/sdk-ui-ts/src/utils/bridge.ts | 17 +++++++++++++++++ packages/token-metadata/src/ibc/channels.ts | 3 +++ .../token-metadata/src/tokens/tokens/tokens.ts | 11 +++++++++++ packages/ts-types/src/cosmos.ts | 1 + .../src/utils/wallets/cosmos/endpoints.ts | 5 +++++ 6 files changed, 39 insertions(+) diff --git a/packages/sdk-ui-ts/src/types/bridge.ts b/packages/sdk-ui-ts/src/types/bridge.ts index bad8b07d7..b35abb330 100644 --- a/packages/sdk-ui-ts/src/types/bridge.ts +++ b/packages/sdk-ui-ts/src/types/bridge.ts @@ -31,6 +31,7 @@ export enum BridgingNetwork { Sui = 'sui', Kava = 'kava', Oraichain = 'oraichain', + Noble = 'noble', } export const MintScanExplorerUrl = { @@ -46,6 +47,7 @@ export const MintScanExplorerUrl = { [BridgingNetwork.Sommelier]: 'sommelier', [BridgingNetwork.Canto]: 'canto', [BridgingNetwork.Kava]: 'kava', + [BridgingNetwork.Noble]: 'noble', } as Record export enum BridgeTransactionState { diff --git a/packages/sdk-ui-ts/src/utils/bridge.ts b/packages/sdk-ui-ts/src/utils/bridge.ts index e30f99863..361daf466 100644 --- a/packages/sdk-ui-ts/src/utils/bridge.ts +++ b/packages/sdk-ui-ts/src/utils/bridge.ts @@ -49,6 +49,7 @@ export const KeplrNetworks = [ BridgingNetwork.Sommelier, BridgingNetwork.Kava, BridgingNetwork.Oraichain, + BridgingNetwork.Noble, ] export const LeapNetworks = [ @@ -263,6 +264,12 @@ export const tokenDenomsPerNetwork = [ denoms: [], symbols: ['WMATIC'], }, + + { + network: BridgingNetwork.Noble, + denoms: ['uusdc'], + symbols: ['USDCnb'], + }, ] as NetworkConfig[] export const cosmosNativeDenomsFromChainId = { @@ -432,6 +439,12 @@ export const cosmosNativeDenomsFromChainId = { tokenType: TokenType.Ibc, denom: 'inj', }, + + [CosmosChainId.Noble]: { + ...tokenMetaUtils.getMetaBySymbol('USDCnb'), + tokenType: TokenType.Ibc, + denom: 'USDTnb', + }, } as Record export const ibcHashToNativeInjPerNetwork = { @@ -634,6 +647,10 @@ export const getNetworkFromAddress = (sender: string): BridgingNetwork => { return BridgingNetwork.Ethereum } + if (sender.startsWith('noble')) { + return BridgingNetwork.Secret + } + return BridgingNetwork.CosmosHub } diff --git a/packages/token-metadata/src/ibc/channels.ts b/packages/token-metadata/src/ibc/channels.ts index 0f8db3796..6064e679e 100644 --- a/packages/token-metadata/src/ibc/channels.ts +++ b/packages/token-metadata/src/ibc/channels.ts @@ -14,6 +14,7 @@ export enum CanonicalChannelToDestinationChannel { Migaloo = 'channel-102', Kava = 'channel-143', Oraichain = 'channel-147', + Noble = 'channel-148', } /** @@ -103,6 +104,7 @@ export const canonicalChannelsToChainList = [ { channelId: 'channel-105', chainA: 'Injective', chainB: 'Terra2' }, { channelId: 'channel-143', chainA: 'Injective', chainB: 'Kava' }, { channelId: 'channel-147', chainA: 'Injective', chainB: 'Oraichain' }, + { channelId: 'channel-148', chainA: 'Injective', chainB: 'Noble' }, ] export default legacyCanonicalChannels @@ -130,6 +132,7 @@ export const canonicalChannelIds = [ 'channel-105', 'channel-143', 'channel-147', + 'channel-148', ] export const channelIbcDenomToBaseDenomMap = { diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index f96187625..f6544a09a 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -118,6 +118,7 @@ export default { address: 'inj1q6zlut7gtkzknkk773jecujwsdkgq882akqksk', tokenType: TokenType.Cw20, }, + { decimals: 6, symbol: 'USDCso', @@ -126,6 +127,16 @@ export default { tokenType: TokenType.Cw20, }, ], + + ibc: { + decimals: 6, + symbol: 'USDCnb', + baseDenom: 'uusdc', + isNative: true, + channelId: 'channel-148', + path: 'transfer/channel-148', + hash: '2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E', + }, }, GRT: { diff --git a/packages/ts-types/src/cosmos.ts b/packages/ts-types/src/cosmos.ts index d1642e74b..2966e0977 100644 --- a/packages/ts-types/src/cosmos.ts +++ b/packages/ts-types/src/cosmos.ts @@ -21,6 +21,7 @@ export enum CosmosChainId { Canto = 'canto_7700-1', Kava = 'kava_2222-10', Oraichain = 'Oraichain', + Noble = 'noble-1', } export enum TestnetCosmosChainId { diff --git a/packages/wallet-ts/src/utils/wallets/cosmos/endpoints.ts b/packages/wallet-ts/src/utils/wallets/cosmos/endpoints.ts index 6096a2cac..455fff24a 100644 --- a/packages/wallet-ts/src/utils/wallets/cosmos/endpoints.ts +++ b/packages/wallet-ts/src/utils/wallets/cosmos/endpoints.ts @@ -111,6 +111,11 @@ export const getEndpointsFromChainId = ( rpc: 'https://testnet.tm.cosmos.injective.dev', rest: 'https://testnet.lcd.cosmos.injective.dev', } + case CosmosChainId.Noble: + return { + rpc: 'https://rpc.cosmos.directory/noble', + rest: 'https://rest.cosmos.directory/noble', + } default: throw new GeneralException( new Error(`Endpoints for ${chainId} not found`), From 6c4c78261b058ed658cca6ed0711c03c3c4d556c Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Wed, 25 Oct 2023 19:38:58 +0200 Subject: [PATCH 70/86] chore: resolve comments --- packages/sdk-ui-ts/src/utils/bridge.ts | 13 +++++++++---- packages/token-metadata/src/ibc/channels.ts | 1 + 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/sdk-ui-ts/src/utils/bridge.ts b/packages/sdk-ui-ts/src/utils/bridge.ts index 361daf466..99ed37f0b 100644 --- a/packages/sdk-ui-ts/src/utils/bridge.ts +++ b/packages/sdk-ui-ts/src/utils/bridge.ts @@ -62,6 +62,7 @@ export const LeapNetworks = [ BridgingNetwork.Sommelier, BridgingNetwork.Canto, BridgingNetwork.Kava, + BridgingNetwork.Noble, ] export const CosmostationNetworks = [ @@ -78,6 +79,7 @@ export const CosmostationNetworks = [ BridgingNetwork.Sommelier, BridgingNetwork.Canto, BridgingNetwork.Kava, + BridgingNetwork.Noble, ] export const CosmosNetworks = [ @@ -95,6 +97,7 @@ export const CosmosNetworks = [ BridgingNetwork.Canto, BridgingNetwork.Kava, BridgingNetwork.Oraichain, + BridgingNetwork.Noble, ] export const EvmWormholeNetworks = [ @@ -267,7 +270,9 @@ export const tokenDenomsPerNetwork = [ { network: BridgingNetwork.Noble, - denoms: ['uusdc'], + denoms: [ + 'ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E', + ], symbols: ['USDCnb'], }, ] as NetworkConfig[] @@ -439,11 +444,11 @@ export const cosmosNativeDenomsFromChainId = { tokenType: TokenType.Ibc, denom: 'inj', }, - [CosmosChainId.Noble]: { ...tokenMetaUtils.getMetaBySymbol('USDCnb'), tokenType: TokenType.Ibc, - denom: 'USDTnb', + denom: + 'ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E', }, } as Record @@ -648,7 +653,7 @@ export const getNetworkFromAddress = (sender: string): BridgingNetwork => { } if (sender.startsWith('noble')) { - return BridgingNetwork.Secret + return BridgingNetwork.Noble } return BridgingNetwork.CosmosHub diff --git a/packages/token-metadata/src/ibc/channels.ts b/packages/token-metadata/src/ibc/channels.ts index 6064e679e..95bc21ea8 100644 --- a/packages/token-metadata/src/ibc/channels.ts +++ b/packages/token-metadata/src/ibc/channels.ts @@ -85,6 +85,7 @@ export const canonicalChannelsToChainList = [ { channelId: 'channel-3', chainA: 'Migaloo', chainB: 'Injective' }, { channelId: 'channel-122', chainA: 'Kava', chainB: 'Injective' }, { channelId: 'channel-146', chainA: 'Oraichain', chainB: 'Injective' }, + { channelId: 'channel-31', chainA: 'Noble', chainB: 'Injective' }, { channelId: 'channel-1', chainA: 'Injective', chainB: 'CosmosHub' }, { channelId: 'channel-83', chainA: 'Injective', chainB: 'Evmos' }, { channelId: 'channel-8', chainA: 'Injective', chainB: 'Osmosis' }, From 5e434346bbcd5054db858ca1132ffa87cf3c651c Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Wed, 25 Oct 2023 18:34:55 +0000 Subject: [PATCH 71/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.17 - @injectivelabs/contracts@1.14.1-beta.7 - @injectivelabs/exceptions@1.14.1-beta.6 - @injectivelabs/networks@1.14.1-beta.7 - @injectivelabs/sdk-ts@1.14.1-beta.17 - @injectivelabs/sdk-ui-ts@1.14.1-beta.18 - @injectivelabs/token-metadata@1.14.1-beta.11 - @injectivelabs/token-utils@1.14.1-beta.6 - @injectivelabs/ts-types@1.14.1-beta.6 - @injectivelabs/utils@1.14.1-beta.5 - @injectivelabs/wallet-ts@1.14.1-beta.18 --- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/package.json | 10 +++++----- packages/exceptions/package.json | 4 ++-- packages/networks/package.json | 8 ++++---- packages/sdk-ts/package.json | 12 ++++++------ packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/package.json | 6 +++--- packages/ts-types/package.json | 2 +- packages/utils/package.json | 6 +++--- packages/wallet-ts/package.json | 12 ++++++------ 11 files changed, 50 insertions(+), 50 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 1197befad..7849f8bba 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.16", + "version": "1.14.1-beta.17", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/networks": "^1.14.1-beta.6", - "@injectivelabs/sdk-ts": "^1.14.1-beta.16", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.17", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index b0cd8b5f4..ddbc250f5 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/networks": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 210d7d05a..2790f6027 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/ts-types": "^1.14.1-beta.6", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/package.json b/packages/networks/package.json index e7f881d19..80776e0a9 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index b95a15c64..666e3c84d 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.16", + "version": "1.14.1-beta.17", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.6", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.47", - "@injectivelabs/networks": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", "@injectivelabs/test-utils": "^1.14.1-beta.4", - "@injectivelabs/token-metadata": "^1.14.1-beta.10", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/token-metadata": "^1.14.1-beta.11", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index dc2f2b61a..42674ab02 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.17", + "version": "1.14.1-beta.18", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -35,14 +35,14 @@ "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.6", - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/networks": "^1.14.1-beta.6", - "@injectivelabs/sdk-ts": "^1.14.1-beta.16", - "@injectivelabs/token-metadata": "^1.14.1-beta.10", - "@injectivelabs/token-utils": "^1.14.1-beta.5", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/contracts": "^1.14.1-beta.7", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.17", + "@injectivelabs/token-metadata": "^1.14.1-beta.11", + "@injectivelabs/token-utils": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 301eefe07..1cc5899da 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.10", + "version": "1.14.1-beta.11", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/networks": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index b8aa48907..a2dae3738 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 7961f4769..68ad5f278 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 94fe43c25..27e2631ed 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/ts-types": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.6", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 16ec8121c..ab620e63e 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.17", + "version": "1.14.1-beta.18", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.1-beta.5", - "@injectivelabs/networks": "^1.14.1-beta.6", - "@injectivelabs/sdk-ts": "^1.14.1-beta.16", - "@injectivelabs/ts-types": "^1.14.1-beta.5", - "@injectivelabs/utils": "^1.14.1-beta.4", + "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/networks": "^1.14.1-beta.7", + "@injectivelabs/sdk-ts": "^1.14.1-beta.17", + "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/utils": "^1.14.1-beta.5", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From d3d7d9c8c367f69874f06ce6229d91c838a6dcfc Mon Sep 17 00:00:00 2001 From: Ivan Angelkoski Date: Thu, 26 Oct 2023 00:01:53 +0200 Subject: [PATCH 72/86] fix: USDCnb token --- packages/token-metadata/src/tokens/tokens/tokens.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index f6544a09a..df6cf6c4a 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -127,6 +127,14 @@ export default { tokenType: TokenType.Cw20, }, ], + }, + + USDCnb: { + symbol: 'USDCnb', + name: 'USD Coin', + decimals: 6, + logo: 'usdc.svg', + coinGeckoId: 'usd-coin', ibc: { decimals: 6, From ed5dcf8625228897c41a45ca7c98b6143eed9ff8 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Wed, 25 Oct 2023 22:06:42 +0000 Subject: [PATCH 73/86] Automatically update ibcTokenMetadata.json --- .../src/services/ibc/ibcTokenMetadata.json | 910 ++++++++++++++---- 1 file changed, 740 insertions(+), 170 deletions(-) diff --git a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json index e806afb1e..0d3eaa694 100644 --- a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json +++ b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json @@ -189,6 +189,25 @@ "isNative": false } }, + { + "name": "stCMDX", + "denom": "ibc/0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stcmdx.png", + "symbol": "stCMDX", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stCMDX", + "baseDenom": "stCMDX", + "isNative": false + } + }, { "name": "Osmosis", "denom": "ibc/92E0120F15D037353CFB73C14651FC8930ADC05B93100FD7754D3A689E53B333", @@ -228,7 +247,7 @@ } }, { - "name": "IBCX", + "name": "IBCX Core ", "denom": "ibc/491C92BEEAFE513BABA355275C7AE3AC47AA7FD57285AC1D910CE874D2DC7CA0", "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/ibcx.svg", "symbol": "IBCX", @@ -247,116 +266,78 @@ } }, { - "name": "Evmos", - "denom": "ibc/16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/evmos/images/evmos.png", - "symbol": "EVMOS", - "decimals": 18, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", - "path": "", - "channelId": "", - "decimals": 18, - "symbol": "EVMOS", - "baseDenom": "EVMOS", - "isNative": false - } - }, - { - "name": "Kuji", - "denom": "ibc/9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/kuji.png", - "symbol": "KUJI", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "KUJI", - "baseDenom": "KUJI", - "isNative": false - } - }, - { - "name": "USK", - "denom": "ibc/45D5C97124CFD8AD9CD88AB98815455A7DEDBD932BA725107AD1BE71B85EAF21", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/usk.png", - "symbol": "USK", + "name": "stIBCX Core ", + "denom": "ibc/0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/stibcx.png", + "symbol": "stIBCX", "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "45D5C97124CFD8AD9CD88AB98815455A7DEDBD932BA725107AD1BE71B85EAF21", + "hash": "0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", "path": "", "channelId": "", "decimals": 6, - "symbol": "USK", - "baseDenom": "USK", + "symbol": "stIBCX", + "baseDenom": "stIBCX", "isNative": false } }, { - "name": "ampKUJI", - "denom": "ibc/C5FA29CE50D543E193DBC6D3D944ACB3A660C96C340F800CFA4BFCF876F9DD74", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/ampKUJI.png", - "symbol": "ampKUJI", + "name": "ERIS Amplified OSMO", + "denom": "ibc/012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/amp.osmo.png", + "symbol": "ampOSMO", "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "C5FA29CE50D543E193DBC6D3D944ACB3A660C96C340F800CFA4BFCF876F9DD74", + "hash": "012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", "path": "", "channelId": "", "decimals": 6, - "symbol": "ampKUJI", - "baseDenom": "ampKUJI", + "symbol": "ampOSMO", + "baseDenom": "ampOSMO", "isNative": false } }, { - "name": "MNTA", - "denom": "ibc/E517983388553858495A0E716406CF2FD4FE9BCE1EC3C9A71742282448674F10", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/mnta.png", - "symbol": "MNTA", - "decimals": 6, + "name": "Evmos", + "denom": "ibc/16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/evmos/images/evmos.png", + "symbol": "EVMOS", + "decimals": 18, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "E517983388553858495A0E716406CF2FD4FE9BCE1EC3C9A71742282448674F10", + "hash": "16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821", "path": "", "channelId": "", - "decimals": 6, - "symbol": "MNTA", - "baseDenom": "MNTA", + "decimals": 18, + "symbol": "EVMOS", + "baseDenom": "EVMOS", "isNative": false } }, { - "name": "WINK", - "denom": "ibc/495694322A85155314DBA1238FDCA84F989E3A3B5A30D5D81FF7865D6445C7E5", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/wink.png", - "symbol": "WINK", + "name": "Kuji", + "denom": "ibc/9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/kuji.png", + "symbol": "KUJI", "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "495694322A85155314DBA1238FDCA84F989E3A3B5A30D5D81FF7865D6445C7E5", + "hash": "9A115B56E769B92621FFF90567E2D60EFD146E86E867491DB69EEDA9ADC36204", "path": "", "channelId": "", "decimals": 6, - "symbol": "WINK", - "baseDenom": "WINK", + "symbol": "KUJI", + "baseDenom": "KUJI", "isNative": false } }, @@ -1120,6 +1101,44 @@ "isNative": false } }, + { + "name": "RAC", + "denom": "ibc/0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/rac.png", + "symbol": "RAC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "RAC", + "baseDenom": "RAC", + "isNative": false + } + }, + { + "name": "ASH", + "denom": "ibc/EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/ash.svg", + "symbol": "ASH", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ASH", + "baseDenom": "ASH", + "isNative": false + } + }, { "name": "Somm", "denom": "ibc/34346A60A95EB030D62D6F5BDD4B745BE18E8A693372A8A347D5D53DBBB1328B", @@ -1196,6 +1215,25 @@ "isNative": false } }, + { + "name": "Real Yield Eth", + "denom": "ibc/6B7E243C586784E1BE150B71F541A3880F0409E994365AF31FF63A2764B72556", + "logo": "untracked.svg", + "symbol": "YieldETH", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "6B7E243C586784E1BE150B71F541A3880F0409E994365AF31FF63A2764B72556", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "YieldETH", + "baseDenom": "YieldETH", + "isNative": false + } + }, { "name": "Astroport", "denom": "ibc/EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839", @@ -1310,44 +1348,6 @@ "isNative": false } }, - { - "name": "stCMDX", - "denom": "ibc/0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stcmdx.png", - "symbol": "stCMDX", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "0CAB2CA45981598C95B6BE18252AEFE1E9E1691D8B4C661997AD7B836FD904D6", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "stCMDX", - "baseDenom": "stCMDX", - "isNative": false - } - }, - { - "name": "stIBCX Core ", - "denom": "ibc/0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/stibcx.png", - "symbol": "stIBCX", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "0A6B424A8207047D9FD499F59177BABD8DB08BBC2316B29B702A403BFB414419", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "stIBCX", - "baseDenom": "stIBCX", - "isNative": false - } - }, { "name": "BLUE CUB DAO", "denom": "ibc/B692197280D4E62F8D9F8E5C0B697DC4C2C680ED6DE8FFF0368E0552C9215607", @@ -1367,63 +1367,6 @@ "isNative": false } }, - { - "name": "ERIS Amplified OSMO", - "denom": "ibc/012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/amp.osmo.png", - "symbol": "ampOSMO", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "012D069D557C4DD59A670AA17E809CB7A790D778E364D0BC0A3248105DA6432D", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "ampOSMO", - "baseDenom": "ampOSMO", - "isNative": false - } - }, - { - "name": "ASH", - "denom": "ibc/EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/ash.svg", - "symbol": "ASH", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "EED40547772504DF629EFEC08892E689CD14498B1C0AD766CD5075BBBEE3D808", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "ASH", - "baseDenom": "ASH", - "isNative": false - } - }, - { - "name": "RAC", - "denom": "ibc/0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", - "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/rac.png", - "symbol": "RAC", - "decimals": 6, - "coinGeckoId": "", - "tokenType": "ibc", - "tokenVerification": "external", - "ibc": { - "hash": "0F3A724673F682CF7812D0ED1A0C41D344C09E94C939E79D12712DC7C0676E80", - "path": "", - "channelId": "", - "decimals": 6, - "symbol": "RAC", - "baseDenom": "RAC", - "isNative": false - } - }, { "name": "Kava", "denom": "ibc/57AA1A70A4BC9769C525EBF6386F7A21536E04A79D62E1981EFCEF9428EBB205", @@ -1502,15 +1445,186 @@ }, { "name": "Tether USD", - "denom": "ibc/58D95D27C82FAC8D0F9F00C3F6097FD70DD6276423768EA95DBFAA2AF8DAE9A2", - "logo": "untracked.svg", + "denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdt.png", + "symbol": "USDT (Cosmos)", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDT (Cosmos)", + "baseDenom": "USDT (Cosmos)", + "isNative": false + } + }, + { + "name": "Neokingdom DAO", + "denom": "ibc/F6CC233E5C0EA36B1F74AB1AF98471A2D6A80E2542856639703E908B4D93E7C4", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/evmos/images/neok.png", + "symbol": "NEOK", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "F6CC233E5C0EA36B1F74AB1AF98471A2D6A80E2542856639703E908B4D93E7C4", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "NEOK", + "baseDenom": "NEOK", + "isNative": false + } + }, + { + "name": "stSOMM", + "denom": "ibc/9C234DA49B8DDAFB8F71F21BEB109F6255ECA146A32FD3A36CB9210647CBD037", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/stsomm.png", + "symbol": "stSOMM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "9C234DA49B8DDAFB8F71F21BEB109F6255ECA146A32FD3A36CB9210647CBD037", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "stSOMM", + "baseDenom": "stSOMM", + "isNative": false + } + }, + { + "name": "USK", + "denom": "ibc/58BC643F2EB5758C08D8B1569C7948A5DA796802576005F676BBFB7526E520EB", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/usk.png", + "symbol": "USK", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "58BC643F2EB5758C08D8B1569C7948A5DA796802576005F676BBFB7526E520EB", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USK", + "baseDenom": "USK", + "isNative": false + } + }, + { + "name": "ampKUJI", + "denom": "ibc/34E48C7C43383203519D996D1D93FE80ED50153E28FB6A9465DE463AEF2EC9EC", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/ampKUJI.png", + "symbol": "ampKUJI", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "34E48C7C43383203519D996D1D93FE80ED50153E28FB6A9465DE463AEF2EC9EC", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampKUJI", + "baseDenom": "ampKUJI", + "isNative": false + } + }, + { + "name": "MNTA", + "denom": "ibc/A4495880A4A2E3C242F63C710F447BAE072E1A4C2A22F1851E0BB7ABDD26B43D", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/mnta.png", + "symbol": "MNTA", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "A4495880A4A2E3C242F63C710F447BAE072E1A4C2A22F1851E0BB7ABDD26B43D", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "MNTA", + "baseDenom": "MNTA", + "isNative": false + } + }, + { + "name": "WINK", + "denom": "ibc/325300CEF4149AD1BBFEB540FF07699CDEEFBB653401E872532030CFB31CD767", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/wink.png", + "symbol": "WINK", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "325300CEF4149AD1BBFEB540FF07699CDEEFBB653401E872532030CFB31CD767", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "WINK", + "baseDenom": "WINK", + "isNative": false + } + }, + { + "name": "USDC", + "denom": "ibc/DF32F083238097AD2CA5444BFB8F338534C32865EFE0696C5AF89AFB3A0144D6", + "logo": "untracked.svg", + "symbol": "USDC", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "DF32F083238097AD2CA5444BFB8F338534C32865EFE0696C5AF89AFB3A0144D6", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } + }, + { + "name": "Multichain USDC", + "denom": "ibc/610D4A1B3F3198C35C09E9AF7C8FB81707912463357C9398B02C7F13049678A8", + "logo": "untracked.svg", + "symbol": "USDC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "610D4A1B3F3198C35C09E9AF7C8FB81707912463357C9398B02C7F13049678A8", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } + }, + { + "name": "USDT", + "denom": "ibc/24E5D0825D3D71BF00C4A01CD8CA8F2D27B1DD32B7446CF633534AEA25379271", + "logo": "untracked.svg", "symbol": "USDT", "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "58D95D27C82FAC8D0F9F00C3F6097FD70DD6276423768EA95DBFAA2AF8DAE9A2", + "hash": "24E5D0825D3D71BF00C4A01CD8CA8F2D27B1DD32B7446CF633534AEA25379271", "path": "", "channelId": "", "decimals": 6, @@ -1520,16 +1634,339 @@ } }, { - "name": "Tether USD", - "denom": "ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "name": "DAI", + "denom": "ibc/433133545CF68587777A01C3EFCF720EFE1B42F14AB2153D349DC4559984F2E8", "logo": "untracked.svg", + "symbol": "DAI", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "433133545CF68587777A01C3EFCF720EFE1B42F14AB2153D349DC4559984F2E8", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "DAI", + "baseDenom": "DAI", + "isNative": false + } + }, + { + "name": "WBTC", + "denom": "ibc/64431EE79F3216B8F7773A630549ADA852EA8E4B545D22BD35B0BF56FD5D5201", + "logo": "untracked.svg", + "symbol": "WBTC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "64431EE79F3216B8F7773A630549ADA852EA8E4B545D22BD35B0BF56FD5D5201", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "WBTC", + "baseDenom": "WBTC", + "isNative": false + } + }, + { + "name": "axlWBTC", + "denom": "ibc/F57B53E102171E6DC254532ECC184228BB8E23B755AD55FA6FDCBD70464A9A54", + "logo": "untracked.svg", + "symbol": "axlWBTC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "F57B53E102171E6DC254532ECC184228BB8E23B755AD55FA6FDCBD70464A9A54", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "axlWBTC", + "baseDenom": "axlWBTC", + "isNative": false + } + }, + { + "name": "BLEND", + "denom": "ibc/45C0FE8ACE1C9C8BA38D3D6FDEBDE4F7198A434B6C63ADCEFC3D32D12443BB84", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kujira/images/blend.svg", + "symbol": "BLEND", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "45C0FE8ACE1C9C8BA38D3D6FDEBDE4F7198A434B6C63ADCEFC3D32D12443BB84", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "BLEND", + "baseDenom": "BLEND", + "isNative": false + } + }, + { + "name": "Oraichain", + "denom": "ibc/C20C0A822BD22B2CEF0D067400FCCFB6FAEEE9E91D360B4E0725BD522302D565", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/oraichain/images/orai-white.png", + "symbol": "ORAI", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "C20C0A822BD22B2CEF0D067400FCCFB6FAEEE9E91D360B4E0725BD522302D565", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ORAI", + "baseDenom": "ORAI", + "isNative": false + } + }, + { + "name": "Pica", + "denom": "ibc/9C2212CB87241A8D038222CF66BBCFABDD08330DFA0AC9B451135287DCBDC7A8", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/composable/images/pica.svg", + "symbol": "PICA", + "decimals": 12, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "9C2212CB87241A8D038222CF66BBCFABDD08330DFA0AC9B451135287DCBDC7A8", + "path": "", + "channelId": "", + "decimals": 12, + "symbol": "PICA", + "baseDenom": "PICA", + "isNative": false + } + }, + { + "name": "OSMO", + "denom": "ibc/C2025C1D34ED74CD6F9DF86CD650D92219AF645E9D0ADFFACF4E2CBECE649536", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.png", + "symbol": "OSMO", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "C2025C1D34ED74CD6F9DF86CD650D92219AF645E9D0ADFFACF4E2CBECE649536", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "OSMO", + "baseDenom": "OSMO", + "isNative": false + } + }, + { + "name": "STRD", + "denom": "ibc/02683677B1A58ECF74FFF25711E09735C44153FE9490BE5EF9FD21DE82BCB542", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/strd.png", + "symbol": "STRD", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "02683677B1A58ECF74FFF25711E09735C44153FE9490BE5EF9FD21DE82BCB542", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "STRD", + "baseDenom": "STRD", + "isNative": false + } + }, + { + "name": "BLD", + "denom": "ibc/B7933C59879BFE059942C6F76CAF4B1609D441AD22D54D42DAC00CE7918CAF1F", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/agoric/images/bld.png", + "symbol": "BLD", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "B7933C59879BFE059942C6F76CAF4B1609D441AD22D54D42DAC00CE7918CAF1F", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "BLD", + "baseDenom": "BLD", + "isNative": false + } + }, + { + "name": "stATOM", + "denom": "ibc/B024EC4AE846F690CB46C1CE886BE7DCE27CBBB6CE1E4EFBA4AA764E07B81A69", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stride/images/statom.png", + "symbol": "stATOM", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "B024EC4AE846F690CB46C1CE886BE7DCE27CBBB6CE1E4EFBA4AA764E07B81A69", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "stATOM", + "baseDenom": "stATOM", + "isNative": false + } + }, + { + "name": "NTRN", + "denom": "ibc/E8E84092B9063AAC97846712D43D6555928073B8A0BFFCC2549E55EE224F1610", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/ntrn.png", + "symbol": "NTRN", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "E8E84092B9063AAC97846712D43D6555928073B8A0BFFCC2549E55EE224F1610", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "NTRN", + "baseDenom": "NTRN", + "isNative": false + } + }, + { + "name": "UMEE", + "denom": "ibc/221E9E20795E6E250532A6A871E7F6310FCEDFC69B681037BBA6561270360D86", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/umee/images/umee.png", + "symbol": "UMEE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "221E9E20795E6E250532A6A871E7F6310FCEDFC69B681037BBA6561270360D86", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "UMEE", + "baseDenom": "UMEE", + "isNative": false + } + }, + { + "name": "CRE", + "denom": "ibc/DDE000907D85FB1F358B3FBB1143452BE13F68E0BEA0DFFD8787095B76EEE0A1", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/images/cre.png", + "symbol": "CRE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "DDE000907D85FB1F358B3FBB1143452BE13F68E0BEA0DFFD8787095B76EEE0A1", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "CRE", + "baseDenom": "CRE", + "isNative": false + } + }, + { + "name": "SCRT", + "denom": "ibc/7C4A4847D6898FA8744A8F2A4FC287E98CA5A95E05842B897B3FB301103C8AB6", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/secretnetwork/images/scrt.png", + "symbol": "SCRT", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "7C4A4847D6898FA8744A8F2A4FC287E98CA5A95E05842B897B3FB301103C8AB6", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "SCRT", + "baseDenom": "SCRT", + "isNative": false + } + }, + { + "name": "STARS", + "denom": "ibc/4D29F082A3C083C85C886B92A1EB438C3FC0632E5F9E4D875479BEB7B9511BD5", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/stargaze/images/stars.png", + "symbol": "STARS", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "4D29F082A3C083C85C886B92A1EB438C3FC0632E5F9E4D875479BEB7B9511BD5", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "STARS", + "baseDenom": "STARS", + "isNative": false + } + }, + { + "name": "bCRE", + "denom": "ibc/83D54420DD46764F2ED5EE511DAA63EC28012480A245D8E33AA1F7D1FB15D736", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/images/bcre.png", + "symbol": "bCRE", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "83D54420DD46764F2ED5EE511DAA63EC28012480A245D8E33AA1F7D1FB15D736", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "bCRE", + "baseDenom": "bCRE", + "isNative": false + } + }, + { + "name": "HUAHUA", + "denom": "ibc/9D9B59CA222E54842555DBD81B22EEABE61796D4C6EC8AB47A97C388333AC340", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/chihuahua/images/huahua.png", + "symbol": "HUAHUA", + "decimals": 18, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "9D9B59CA222E54842555DBD81B22EEABE61796D4C6EC8AB47A97C388333AC340", + "path": "", + "channelId": "", + "decimals": 18, + "symbol": "HUAHUA", + "baseDenom": "HUAHUA", + "isNative": false + } + }, + { + "name": "USDT", + "denom": "ibc/7965483148018AFAA12DC569959897E7A5E474F4B41A87FFC5513B552C108DB5", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/_non-cosmos/ethereum/images/usdt.png", "symbol": "USDT", "decimals": 6, "coinGeckoId": "", "tokenType": "ibc", "tokenVerification": "external", "ibc": { - "hash": "4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB", + "hash": "7965483148018AFAA12DC569959897E7A5E474F4B41A87FFC5513B552C108DB5", "path": "", "channelId": "", "decimals": 6, @@ -1537,5 +1974,138 @@ "baseDenom": "USDT", "isNative": false } + }, + { + "name": "ATOM", + "denom": "ibc/377F82FD1E4F6408B1CB7C8BFF9134A1F2C5D5E5CC2760BAD972AF0F7F6D4675", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.png", + "symbol": "ATOM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "377F82FD1E4F6408B1CB7C8BFF9134A1F2C5D5E5CC2760BAD972AF0F7F6D4675", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ATOM", + "baseDenom": "ATOM", + "isNative": false + } + }, + { + "name": "Dot", + "denom": "ibc/B0442E32E21ED4228301A2B1B247D3F3355B73BF288470F9643AAD0CA07DD593", + "logo": "untracked.svg", + "symbol": "DOT", + "decimals": 10, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "B0442E32E21ED4228301A2B1B247D3F3355B73BF288470F9643AAD0CA07DD593", + "path": "", + "channelId": "", + "decimals": 10, + "symbol": "DOT", + "baseDenom": "DOT", + "isNative": false + } + }, + { + "name": "ATOM", + "denom": "ibc/8D311D92BCD4E87F145DEB9DDA339416DEF7E13571D92A3521CAB0BF62760FBE", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/cosmoshub/images/atom.png", + "symbol": "ATOM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "8D311D92BCD4E87F145DEB9DDA339416DEF7E13571D92A3521CAB0BF62760FBE", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ATOM", + "baseDenom": "ATOM", + "isNative": false + } + }, + { + "name": "ERIS Amplified INJ", + "denom": "factory/inj1cdwt8g7nxgtg2k4fn8sj363mh9ahkw2qt0vrnc/ampINJ", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/injective/images/ampinj.png", + "symbol": "ampINJ", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "factory/inj1cdwt8g7nxgtg2k4fn8sj363mh9ahkw2qt0vrnc/ampINJ", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "ampINJ", + "baseDenom": "ampINJ", + "isNative": false + } + }, + { + "name": "CDT", + "denom": "ibc/25288BA0C7D146D37373657ECA719B9AADD49DA9E514B4172D08F7C88D56C9EF", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/CDT.svg", + "symbol": "CDT", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "25288BA0C7D146D37373657ECA719B9AADD49DA9E514B4172D08F7C88D56C9EF", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "CDT", + "baseDenom": "CDT", + "isNative": false + } + }, + { + "name": "MBRN", + "denom": "ibc/7AF90EDF6F5328C6C33B03DB7E33445708A46FF006932472D00D5076F5504B67", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/MBRN.svg", + "symbol": "MBRN", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "7AF90EDF6F5328C6C33B03DB7E33445708A46FF006932472D00D5076F5504B67", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "MBRN", + "baseDenom": "MBRN", + "isNative": false + } + }, + { + "name": "GEM DAO", + "denom": "ibc/8AE86084C0D921352F711EF42CCA7BA4C8238C244FE4CC3E4E995D9782FB0E2B", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/terra2/images/gem.png", + "symbol": "GEM", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "8AE86084C0D921352F711EF42CCA7BA4C8238C244FE4CC3E4E995D9782FB0E2B", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "GEM", + "baseDenom": "GEM", + "isNative": false + } } ] \ No newline at end of file From 4c6d5468de90f6a8e745ce438e914f88e9bdf5c3 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Wed, 25 Oct 2023 22:06:47 +0000 Subject: [PATCH 74/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.18 - @injectivelabs/sdk-ts@1.14.1-beta.18 - @injectivelabs/sdk-ui-ts@1.14.1-beta.19 - @injectivelabs/token-metadata@1.14.1-beta.12 - @injectivelabs/wallet-ts@1.14.1-beta.19 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 7849f8bba..a5e71e1df 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.17", + "version": "1.14.1-beta.18", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.6", "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.17", + "@injectivelabs/sdk-ts": "^1.14.1-beta.18", "@injectivelabs/ts-types": "^1.14.1-beta.6", "@injectivelabs/utils": "^1.14.1-beta.5", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 666e3c84d..18cbbb12c 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.17", + "version": "1.14.1-beta.18", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.47", "@injectivelabs/networks": "^1.14.1-beta.7", "@injectivelabs/test-utils": "^1.14.1-beta.4", - "@injectivelabs/token-metadata": "^1.14.1-beta.11", + "@injectivelabs/token-metadata": "^1.14.1-beta.12", "@injectivelabs/ts-types": "^1.14.1-beta.6", "@injectivelabs/utils": "^1.14.1-beta.5", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 42674ab02..8e49d33d6 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.18", + "version": "1.14.1-beta.19", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,8 +38,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.7", "@injectivelabs/exceptions": "^1.14.1-beta.6", "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.17", - "@injectivelabs/token-metadata": "^1.14.1-beta.11", + "@injectivelabs/sdk-ts": "^1.14.1-beta.18", + "@injectivelabs/token-metadata": "^1.14.1-beta.12", "@injectivelabs/token-utils": "^1.14.1-beta.6", "@injectivelabs/ts-types": "^1.14.1-beta.6", "@injectivelabs/utils": "^1.14.1-beta.5", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 1cc5899da..5adedee7d 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.11", + "version": "1.14.1-beta.12", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index ab620e63e..c1841a096 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.18", + "version": "1.14.1-beta.19", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.6", "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.17", + "@injectivelabs/sdk-ts": "^1.14.1-beta.18", "@injectivelabs/ts-types": "^1.14.1-beta.6", "@injectivelabs/utils": "^1.14.1-beta.5", "@keplr-wallet/cosmos": "^0.11.58", From dc969044de556a7606ce8759966ec0f30a82bf7f Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Thu, 26 Oct 2023 11:51:26 -0400 Subject: [PATCH 75/86] fix: ibc symbol addition --- .gitbook/core-modules/ibc.md | 8 ++-- packages/sdk-ui-ts/src/utils/bridge.ts | 4 +- .../src/tokens/mappings/mapBySymbol.ts | 3 ++ .../src/tokens/tokens/tokens.ts | 38 ++++++------------- 4 files changed, 21 insertions(+), 32 deletions(-) diff --git a/.gitbook/core-modules/ibc.md b/.gitbook/core-modules/ibc.md index 5bc2cfebb..1ab09d1de 100644 --- a/.gitbook/core-modules/ibc.md +++ b/.gitbook/core-modules/ibc.md @@ -17,9 +17,9 @@ import { MsgTransfer, } from '@injectivelabs/sdk-ts' import { - cosmosNativeDenomsFromChainId, TokenService, UiBankTransformer, + cosmosChainTokenMetaMap, } from '@injectivelabs/sdk-ui-ts' import { BigNumberInBase } from '@injectivelabs/utils' import { ChainId, CosmosChainId } from '@injectivelabs/ts-types' @@ -46,7 +46,7 @@ const ibcSupplyWithToken = (await tokenService.getIbcSupplyWithToken( /* get metadata for canonical denoms available for transfer between chains */ const cosmosHubBaseDenom = 'uatom' -const tokenMeta = cosmosNativeDenomsFromChainId[destinationChainId] +const tokenMeta = cosmosChainTokenMetaMap[destinationChainId] const atomToken = ( Array.isArray(tokenMeta) ? tokenMeta.find((token) => token.denom === cosmosHubBaseDenom) @@ -105,9 +105,9 @@ const privateKey = '0x...' /* broadcast transaction */ const txHash = await new MsgBroadcasterWithPk({ privateKey, - network: Network.Mainnet + network: Network.Mainnet, }).broadcast({ - msgs: msg + msgs: msg, }) console.log(txHash) diff --git a/packages/sdk-ui-ts/src/utils/bridge.ts b/packages/sdk-ui-ts/src/utils/bridge.ts index 99ed37f0b..b3cc4cdba 100644 --- a/packages/sdk-ui-ts/src/utils/bridge.ts +++ b/packages/sdk-ui-ts/src/utils/bridge.ts @@ -273,11 +273,11 @@ export const tokenDenomsPerNetwork = [ denoms: [ 'ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E', ], - symbols: ['USDCnb'], + symbols: ['usdcnb'], }, ] as NetworkConfig[] -export const cosmosNativeDenomsFromChainId = { +export const cosmosChainTokenMetaMap = { [CosmosChainId.Cosmoshub]: { ...tokenMetaUtils.getMetaBySymbol('ATOM'), tokenType: TokenType.Ibc, diff --git a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts index 403bfbdaf..47e88ae01 100644 --- a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts +++ b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts @@ -16,6 +16,9 @@ export const getMappedTokensBySymbol = (tokens: Record) => ...(symbolDiffs && { [symbolKey.toUpperCase()]: tokenMeta, }), + ...(tokenMeta.ibc.symbol && { + [tokenMeta.ibc.symbol.toUpperCase()]: tokenMeta, + }), } } diff --git a/packages/token-metadata/src/tokens/tokens/tokens.ts b/packages/token-metadata/src/tokens/tokens/tokens.ts index df6cf6c4a..ad5b08c3c 100644 --- a/packages/token-metadata/src/tokens/tokens/tokens.ts +++ b/packages/token-metadata/src/tokens/tokens/tokens.ts @@ -94,6 +94,17 @@ export default { address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', tokenType: TokenType.Erc20, }, + + ibc: { + decimals: 6, + symbol: 'USDTkv', + isNative: true, + baseDenom: 'erc20/tether/usdt', + path: 'transfer/channel-143', + channelId: 'channel-143', + hash: '4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB', + tokenType: TokenType.Ibc, + }, }, USDC: { @@ -127,14 +138,6 @@ export default { tokenType: TokenType.Cw20, }, ], - }, - - USDCnb: { - symbol: 'USDCnb', - name: 'USD Coin', - decimals: 6, - logo: 'usdc.svg', - coinGeckoId: 'usd-coin', ibc: { decimals: 6, @@ -144,6 +147,7 @@ export default { channelId: 'channel-148', path: 'transfer/channel-148', hash: '2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E', + tokenType: TokenType.Ibc, }, }, @@ -1730,24 +1734,6 @@ export default { }, }, - USDTkv: { - name: 'Tether', - symbol: 'USDTkv', - decimals: 6, - logo: 'usdt.svg', - coinGeckoId: 'tether', - - ibc: { - decimals: 6, - isNative: true, - baseDenom: 'erc20/tether/usdt', - path: 'transfer/channel-143', - channelId: 'channel-143', - hash: '4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB', - tokenType: TokenType.Ibc, - }, - }, - SEI: { name: 'SEI', symbol: 'SEI', From c4447fae717b54c9821aec63087af0fcf0d67f5a Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Thu, 26 Oct 2023 15:55:56 +0000 Subject: [PATCH 76/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.19 - @injectivelabs/contracts@1.14.1-beta.8 - @injectivelabs/exceptions@1.14.1-beta.7 - @injectivelabs/networks@1.14.1-beta.8 - @injectivelabs/sdk-ts@1.14.1-beta.19 - @injectivelabs/sdk-ui-ts@1.14.1-beta.20 - @injectivelabs/test-utils@1.14.1-beta.5 - @injectivelabs/token-metadata@1.14.1-beta.13 - @injectivelabs/token-utils@1.14.1-beta.7 - @injectivelabs/ts-types@1.14.1-beta.7 - @injectivelabs/utils@1.14.1-beta.6 - @injectivelabs/wallet-ts@1.14.1-beta.20 --- packages/bridge-ts/package.json | 12 ++++++------ packages/contracts/package.json | 10 +++++----- packages/exceptions/package.json | 4 ++-- packages/networks/package.json | 8 ++++---- packages/sdk-ts/package.json | 14 +++++++------- packages/sdk-ui-ts/package.json | 18 +++++++++--------- packages/test-utils/package.json | 2 +- packages/token-metadata/package.json | 10 +++++----- packages/token-utils/package.json | 6 +++--- packages/ts-types/package.json | 2 +- packages/utils/package.json | 6 +++--- packages/wallet-ts/package.json | 12 ++++++------ 12 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index a5e71e1df..cfc2bacbc 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.18", + "version": "1.14.1-beta.19", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -32,11 +32,11 @@ }, "dependencies": { "@axelar-network/axelarjs-sdk": "^0.11.7", - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.18", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", "@solana/spl-token": "^0.3.6", "@solana/wallet-adapter-base": "^0.9.18", diff --git a/packages/contracts/package.json b/packages/contracts/package.json index ddbc250f5..cbace7abb 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/contracts", "description": "Contracts wrapper that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -31,10 +31,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "ethers": "^5.7.2", "link-module-alias": "^1.2.0", "shx": "^0.3.3" diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 2790f6027..4d56f22b6 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/exceptions", "description": "List of exceptions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", @@ -32,7 +32,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/ts-types": "^1.14.1-beta.7", "http-status-codes": "^2.2.0", "link-module-alias": "^1.2.0", "shx": "^0.3.2" diff --git a/packages/networks/package.json b/packages/networks/package.json index 80776e0a9..69ff16673 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/networks", "description": "Endpoints, networks, etc. Can be reused throughout Injective's projects.", - "version": "1.14.1-beta.7", + "version": "1.14.1-beta.8", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -31,9 +31,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 18cbbb12c..aa4a3aac5 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.18", + "version": "1.14.1-beta.19", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -40,17 +40,17 @@ "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", - "@injectivelabs/exceptions": "^1.14.1-beta.6", + "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", "@injectivelabs/mito-proto-ts": "1.0.47", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/test-utils": "^1.14.1-beta.4", - "@injectivelabs/token-metadata": "^1.14.1-beta.12", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/test-utils": "^1.14.1-beta.5", + "@injectivelabs/token-metadata": "^1.14.1-beta.13", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "@metamask/eth-sig-util": "^4.0.0", "axios": "^0.27.2", "bech32": "^2.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 8e49d33d6..0233a8efb 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.19", + "version": "1.14.1-beta.20", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -35,14 +35,14 @@ "get-ibc-tokens": "ts-node-dev ./src/services/ibc/tokens.ts" }, "dependencies": { - "@injectivelabs/contracts": "^1.14.1-beta.7", - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.18", - "@injectivelabs/token-metadata": "^1.14.1-beta.12", - "@injectivelabs/token-utils": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/contracts": "^1.14.1-beta.8", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/token-metadata": "^1.14.1-beta.13", + "@injectivelabs/token-utils": "^1.14.1-beta.7", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "alchemy-sdk": "^2.6.3", "copyfiles": "^2.4.1", "link-module-alias": "^1.2.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 06660777d..7585b7392 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/test-utils", "description": "List of test-utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.4", + "version": "1.14.1-beta.5", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 5adedee7d..9856651fc 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.12", + "version": "1.14.1-beta.13", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -32,10 +32,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "@types/lodash.values": "^4.3.6", "copyfiles": "^2.4.1", "jsonschema": "^1.4.0", diff --git a/packages/token-utils/package.json b/packages/token-utils/package.json index a2dae3738..c4b47079e 100644 --- a/packages/token-utils/package.json +++ b/packages/token-utils/package.json @@ -1,6 +1,6 @@ { "name": "@injectivelabs/token-utils", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "description": "Token Utils is a package for querying different data about tokens", "sideEffects": false, "author": { @@ -30,8 +30,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "link-module-alias": "^1.2.0", "shx": "^0.3.2" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 68ad5f278..0fdb0e9f4 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/ts-types", "description": "List of types that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.6", + "version": "1.14.1-beta.7", "sideEffects": false, "license": "Apache-2.0", "main": "dist/cjs/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 27e2631ed..cf13d2800 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/utils", "description": "List of utils and helper functions that can be reused throughout Injective's projects.", - "version": "1.14.1-beta.5", + "version": "1.14.1-beta.6", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -31,8 +31,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/ts-types": "^1.14.1-beta.6", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/ts-types": "^1.14.1-beta.7", "axios": "^0.21.1", "bignumber.js": "^9.0.1", "http-status-codes": "^2.2.0", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index c1841a096..296a7c65c 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.19", + "version": "1.14.1-beta.20", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -37,11 +37,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.1-beta.6", - "@injectivelabs/networks": "^1.14.1-beta.7", - "@injectivelabs/sdk-ts": "^1.14.1-beta.18", - "@injectivelabs/ts-types": "^1.14.1-beta.6", - "@injectivelabs/utils": "^1.14.1-beta.5", + "@injectivelabs/exceptions": "^1.14.1-beta.7", + "@injectivelabs/networks": "^1.14.1-beta.8", + "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/ts-types": "^1.14.1-beta.7", + "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58", "@keplr-wallet/types": "^0.11.58", "@ledgerhq/hw-app-eth": "6.33.2", From 27d26619cf47b3e12e343db1d075c0c25fa65f05 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Fri, 27 Oct 2023 01:02:35 +0800 Subject: [PATCH 77/86] chore: package bump --- packages/sdk-ts/package.json | 2 +- .../indexer/grpc/IndexerGrpcMitoApi.spec.ts | 4 +- .../client/indexer/grpc/IndexerGrpcMitoApi.ts | 24 ++++++------ .../IndexerGrpcMitoTransformer.ts | 32 ++++++++++------ .../src/services/ibc/ibcTokenMetadata.json | 38 +++++++++++++++++++ yarn.lock | 8 ++-- 6 files changed, 78 insertions(+), 30 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index aa4a3aac5..99f3114a6 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -45,7 +45,7 @@ "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.11.10", - "@injectivelabs/mito-proto-ts": "1.0.47", + "@injectivelabs/mito-proto-ts": "1.0.50", "@injectivelabs/networks": "^1.14.1-beta.8", "@injectivelabs/test-utils": "^1.14.1-beta.5", "@injectivelabs/token-metadata": "^1.14.1-beta.13", diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts index 890a0ee40..98c103414 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.spec.ts @@ -106,7 +106,7 @@ describe('IndexerGrpcMitoApi', () => { holderAddress: injectiveAddress, }) - if (response.length === 0) { + if (response.subscriptions.length === 0) { console.warn('fetchVaultsByHolderAddress.responseIsEmptyArray') } @@ -133,7 +133,7 @@ describe('IndexerGrpcMitoApi', () => { stakingContractAddress, }) - if (response.length === 0) { + if (response.holders.length === 0) { console.warn('fetchLPHolders.responseIsEmptyArray') } diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts index b63c16e4c..fc615225a 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcMitoApi.ts @@ -201,13 +201,13 @@ export class IndexerGrpcMitoApi extends BaseGrpcConsumer { } async fetchVaultsByHolderAddress({ + skip, limit, - pageIndex, holderAddress, vaultAddress, }: { + skip?: number limit?: number - pageIndex?: number holderAddress: string vaultAddress?: string }) { @@ -219,12 +219,12 @@ export class IndexerGrpcMitoApi extends BaseGrpcConsumer { request.vaultAddress = vaultAddress } - if (limit) { - request.limit = limit + if (skip) { + request.skip = skip } - if (pageIndex) { - request.pageIndex = pageIndex + if (limit) { + request.limit = limit } try { @@ -253,13 +253,13 @@ export class IndexerGrpcMitoApi extends BaseGrpcConsumer { } async fetchLPHolders({ + skip, limit, - pageIndex, vaultAddress, stakingContractAddress, }: { + skip?: number limit?: number - pageIndex?: number vaultAddress: string stakingContractAddress: string }) { @@ -268,12 +268,12 @@ export class IndexerGrpcMitoApi extends BaseGrpcConsumer { request.vaultAddress = vaultAddress request.stakingContractAddress = stakingContractAddress - if (limit) { - request.limit = limit + if (skip) { + request.skip = skip } - if (pageIndex) { - request.pageIndex = pageIndex + if (limit) { + request.limit = limit } try { diff --git a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts index 43079163d..bfeb92ae5 100644 --- a/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts +++ b/packages/sdk-ts/src/client/indexer/transformers/IndexerGrpcMitoTransformer.ts @@ -266,7 +266,9 @@ export class IndexerGrpcMitoTransformer { } } - static mitoSubscriptionToSubscription(subscription: MitoApi.Subscription) { + static mitoSubscriptionToSubscription( + subscription: MitoApi.Subscription, + ): MitoSubscription { const vaultInfo = subscription.vaultInfo ? IndexerGrpcMitoTransformer.mitoVaultToVault(subscription.vaultInfo) : undefined @@ -472,18 +474,26 @@ export class IndexerGrpcMitoTransformer { static vaultsByHolderAddressResponseToVaultsByHolderAddress( response: MitoApi.VaultsByHolderAddressResponse, - ): MitoSubscription[] { - return response.subscriptions.map( - IndexerGrpcMitoTransformer.mitoSubscriptionToSubscription, - ) + ) { + return { + subscriptions: response.subscriptions.map( + IndexerGrpcMitoTransformer.mitoSubscriptionToSubscription, + ), + pagination: IndexerGrpcMitoTransformer.mitoPaginationToPagination( + response.pagination, + ), + } } - static lpHoldersResponseToLPHolders( - response: MitoApi.LPHoldersResponse, - ): MitoHolders[] { - return response.holders.map( - IndexerGrpcMitoTransformer.mitoLpHolderToLPHolder, - ) + static lpHoldersResponseToLPHolders(response: MitoApi.LPHoldersResponse) { + return { + holders: response.holders.map( + IndexerGrpcMitoTransformer.mitoLpHolderToLPHolder, + ), + pagination: IndexerGrpcMitoTransformer.mitoPaginationToPagination( + response.pagination, + ), + } } static transferHistoryResponseToTransfer( diff --git a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json index 0d3eaa694..c2a44c69c 100644 --- a/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json +++ b/packages/sdk-ui-ts/src/services/ibc/ibcTokenMetadata.json @@ -341,6 +341,44 @@ "isNative": false } }, + { + "name": "USDC", + "denom": "ibc/2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/axelar/images/usdc.png", + "symbol": "USDC", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "2CBC2EA121AE42563B08028466F37B600F2D7D4282342DE938283CC3FB2BC00E", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "USDC", + "baseDenom": "USDC", + "isNative": false + } + }, + { + "name": "Frienzies", + "denom": "ibc/CDD7374B312BEF9723AAEBDE622206490E112CE2B5F49275683CCCD86C7D4BCE", + "logo": "https://raw.githubusercontent.com/cosmos/chain-registry/master/noble/images/frnz.png", + "symbol": "FRNZ", + "decimals": 6, + "coinGeckoId": "", + "tokenType": "ibc", + "tokenVerification": "external", + "ibc": { + "hash": "CDD7374B312BEF9723AAEBDE622206490E112CE2B5F49275683CCCD86C7D4BCE", + "path": "", + "channelId": "", + "decimals": 6, + "symbol": "FRNZ", + "baseDenom": "FRNZ", + "isNative": false + } + }, { "name": "Axelar", "denom": "ibc/B68C1D2682A8B69E20BB921E34C6A3A2B6D1E13E3E8C0092E373826F546DEE65", diff --git a/yarn.lock b/yarn.lock index e24122371..31fedaa98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2176,10 +2176,10 @@ protobufjs "^7.0.0" rxjs "^7.4.0" -"@injectivelabs/mito-proto-ts@1.0.47": - version "1.0.47" - resolved "https://registry.yarnpkg.com/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.47.tgz#bcc53839a7204530a3d585772b42aa6c3d14cd9e" - integrity sha512-MJpxbvxUImjmowqB4Ny5BY7vv2x8lU5+cgchTzhT71jaLWTPL4VzjSjUPA1M/MHopaTemEZqDKOOmbRJwA5OZg== +"@injectivelabs/mito-proto-ts@1.0.50": + version "1.0.50" + resolved "https://registry.yarnpkg.com/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.50.tgz#23ad82b24eafc56906126c064fc39547de239aa0" + integrity sha512-OMMfrGAgibB+NIbaeLN1b25WvdV+FfFW0WBXp7zbrgXXOkPLXZHMzg6oBtI6eUxqg9j4qH+hDQn22os6eW2ZcA== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From 1316c59589ce0ba7bc9c16c438c05e0d9b6d0021 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Thu, 26 Oct 2023 17:08:21 +0000 Subject: [PATCH 78/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.20 - @injectivelabs/sdk-ts@1.14.1-beta.20 - @injectivelabs/sdk-ui-ts@1.14.1-beta.21 - @injectivelabs/wallet-ts@1.14.1-beta.21 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index cfc2bacbc..04e6c5d41 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.19", + "version": "1.14.1-beta.20", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/sdk-ts": "^1.14.1-beta.20", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 99f3114a6..548a696ff 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.19", + "version": "1.14.1-beta.20", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 0233a8efb..186d8afbd 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.20", + "version": "1.14.1-beta.21", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,7 +38,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.8", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/sdk-ts": "^1.14.1-beta.20", "@injectivelabs/token-metadata": "^1.14.1-beta.13", "@injectivelabs/token-utils": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.7", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 296a7c65c..824bc5a97 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.20", + "version": "1.14.1-beta.21", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.19", + "@injectivelabs/sdk-ts": "^1.14.1-beta.20", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58", From fc2fdba4603a221182e6ae59f3831c35b35a797b Mon Sep 17 00:00:00 2001 From: shane-moore Date: Thu, 26 Oct 2023 16:51:40 -0700 Subject: [PATCH 79/86] chore: mapBySymbol support multiple token types --- .../src/tokens/mappings/mapBySymbol.ts | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts index 47e88ae01..0d15f88e9 100644 --- a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts +++ b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts @@ -8,9 +8,13 @@ export const getMappedTokensBySymbol = (tokens: Record) => const symbol = tokenMeta.symbol.toUpperCase() const symbolDiffs = symbol !== symbolKey + let ibcResults = {} + let cw20Results = {} + let splResults = {} + let cw20sResults = {} + if (tokenMeta.ibc && tokenMeta.ibc.baseDenom) { - return { - ...result, + ibcResults = { [tokenMeta.ibc.baseDenom.toUpperCase()]: tokenMeta, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { @@ -23,8 +27,7 @@ export const getMappedTokensBySymbol = (tokens: Record) => } if (tokenMeta.cw20 && tokenMeta.cw20.address) { - return { - ...result, + cw20Results = { [tokenMeta.cw20.address.toUpperCase()]: tokenMeta, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { @@ -34,8 +37,7 @@ export const getMappedTokensBySymbol = (tokens: Record) => } if (tokenMeta.spl && tokenMeta.spl.address) { - return { - ...result, + splResults = { [tokenMeta.spl.address.toUpperCase()]: tokenMeta, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { @@ -53,8 +55,7 @@ export const getMappedTokensBySymbol = (tokens: Record) => {} as Record, ) - return { - ...result, + cw20sResults = { ...cw20Maps, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { @@ -65,6 +66,10 @@ export const getMappedTokensBySymbol = (tokens: Record) => return { ...result, + ...ibcResults, + ...cw20Results, + ...splResults, + ...cw20sResults, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { [symbolKey.toUpperCase()]: tokenMeta, From e5c0e498d3c4c1a0abffc662c001ccdd96893548 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 27 Oct 2023 05:26:18 +0000 Subject: [PATCH 80/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.21 - @injectivelabs/sdk-ts@1.14.1-beta.21 - @injectivelabs/sdk-ui-ts@1.14.1-beta.22 - @injectivelabs/token-metadata@1.14.1-beta.14 - @injectivelabs/wallet-ts@1.14.1-beta.22 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 04e6c5d41..21a41ef01 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.20", + "version": "1.14.1-beta.21", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.20", + "@injectivelabs/sdk-ts": "^1.14.1-beta.21", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 548a696ff..97d9a843d 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.20", + "version": "1.14.1-beta.21", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.50", "@injectivelabs/networks": "^1.14.1-beta.8", "@injectivelabs/test-utils": "^1.14.1-beta.5", - "@injectivelabs/token-metadata": "^1.14.1-beta.13", + "@injectivelabs/token-metadata": "^1.14.1-beta.14", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 186d8afbd..9a544f986 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.21", + "version": "1.14.1-beta.22", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,8 +38,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.8", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.20", - "@injectivelabs/token-metadata": "^1.14.1-beta.13", + "@injectivelabs/sdk-ts": "^1.14.1-beta.21", + "@injectivelabs/token-metadata": "^1.14.1-beta.14", "@injectivelabs/token-utils": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 9856651fc..24c032477 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.13", + "version": "1.14.1-beta.14", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 824bc5a97..bafd519a0 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.21", + "version": "1.14.1-beta.22", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.20", + "@injectivelabs/sdk-ts": "^1.14.1-beta.21", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58", From 1d3062392e856b558424378ad8dd7130ad3c0640 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 27 Oct 2023 08:39:05 -0400 Subject: [PATCH 81/86] chore: added cid --- packages/sdk-ts/package.json | 2 +- .../msgs/MsgBatchCancelBinaryOptionsOrders.ts | 2 ++ .../msgs/MsgBatchCancelDerivativeOrders.ts | 2 ++ .../exchange/msgs/MsgBatchCancelSpotOrders.ts | 2 ++ .../exchange/msgs/MsgBatchUpdateOrders.ts | 18 +++++++++++++++--- .../msgs/MsgCancelBinaryOptionsOrder.ts | 2 ++ .../exchange/msgs/MsgCancelDerivativeOrder.ts | 2 ++ .../exchange/msgs/MsgCancelSpotOrder.ts | 2 ++ .../msgs/MsgCreateBinaryOptionsLimitOrder.ts | 2 ++ .../msgs/MsgCreateBinaryOptionsMarketOrder.ts | 2 ++ .../msgs/MsgCreateDerivativeLimitOrder.ts | 2 ++ .../msgs/MsgCreateDerivativeMarketOrder.ts | 2 ++ .../exchange/msgs/MsgCreateSpotLimitOrder.ts | 2 ++ .../exchange/msgs/MsgCreateSpotMarketOrder.ts | 2 ++ yarn.lock | 8 ++++---- 15 files changed, 44 insertions(+), 8 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 97d9a843d..efc28e2e4 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -38,7 +38,7 @@ "@ensdomains/ens-validation": "^0.1.0", "@ensdomains/eth-ens-namehash": "^2.0.15", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/core-proto-ts": "^0.0.18", + "@injectivelabs/core-proto-ts": "^0.0.19", "@injectivelabs/dmm-proto-ts": "1.0.16", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/grpc-web": "^0.0.1", diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts index 07936cbd6..386e544fb 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts @@ -13,6 +13,7 @@ export declare namespace MsgBatchCancelBinaryOptionsOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask + cid?: string }[] } @@ -41,6 +42,7 @@ export default class MsgBatchCancelBinaryOptionsOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId + orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts index 1aa1cc357..fe6309bb8 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts @@ -13,6 +13,7 @@ export declare namespace MsgBatchCancelDerivativeOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask + cid?: string }[] } @@ -40,6 +41,7 @@ export default class MsgBatchCancelDerivativeOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId + orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts index 5bec98fff..947fd45b4 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts @@ -13,6 +13,7 @@ export declare namespace MsgBatchCancelSpotOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask + cid?: string }[] } @@ -40,6 +41,7 @@ export default class MsgBatchCancelSpotOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId + orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts index 67152f663..1965b1216 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts @@ -16,16 +16,19 @@ export declare namespace MsgBatchUpdateOrders { marketId: string subaccountId: string orderHash: string + cid?: string }[] derivativeOrdersToCancel?: { marketId: string subaccountId: string orderHash: string + cid?: string }[] binaryOptionsOrdersToCancel?: { marketId: string subaccountId: string orderHash: string + cid?: string }[] spotOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -34,6 +37,7 @@ export declare namespace MsgBatchUpdateOrders { feeRecipient: string price: string quantity: string + cid?: string }[] derivativeOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -43,6 +47,7 @@ export declare namespace MsgBatchUpdateOrders { price: string margin: string quantity: string + cid?: string }[] binaryOptionsOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -52,6 +57,7 @@ export declare namespace MsgBatchUpdateOrders { price: string margin: string quantity: string + cid?: string }[] injectiveAddress: string } @@ -104,11 +110,12 @@ export default class MsgBatchUpdateOrders extends MsgBase< if (params.spotOrdersToCancel && params.spotOrdersToCancel.length > 0) { const orderData = params.spotOrdersToCancel.map( - ({ marketId, subaccountId, orderHash }) => { + ({ marketId, subaccountId, orderHash, cid }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash + orderData.cid = cid || '' return orderData }, @@ -122,11 +129,12 @@ export default class MsgBatchUpdateOrders extends MsgBase< params.derivativeOrdersToCancel.length > 0 ) { const orderData = params.derivativeOrdersToCancel.map( - ({ marketId, subaccountId, orderHash }) => { + ({ marketId, subaccountId, orderHash, cid }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash + orderData.cid = cid || '' return orderData }, @@ -139,11 +147,12 @@ export default class MsgBatchUpdateOrders extends MsgBase< params.binaryOptionsOrdersToCancel.length > 0 ) { const orderData = params.binaryOptionsOrdersToCancel.map( - ({ marketId, subaccountId, orderHash }) => { + ({ marketId, subaccountId, orderHash, cid }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash + orderData.cid = cid || '' return orderData }, @@ -168,6 +177,7 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity + orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() order.marketId = paramsFromArgs.marketId @@ -204,6 +214,7 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity + orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() order.marketId = paramsFromArgs.marketId @@ -239,6 +250,7 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity + orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() order.marketId = paramsFromArgs.marketId diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts index 61762663f..7182dffdd 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts @@ -12,6 +12,7 @@ export declare namespace MsgCancelBinaryOptionsOrder { injectiveAddress: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelBinaryOptionsOrder @@ -39,6 +40,7 @@ export default class MsgCancelBinaryOptionsOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId + message.cid = params.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. message.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts index d860699c3..3092ba310 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts @@ -12,6 +12,7 @@ export declare namespace MsgCancelDerivativeOrder { injectiveAddress: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelDerivativeOrder @@ -35,6 +36,7 @@ export default class MsgCancelDerivativeOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId + message.cid = params.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. message.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts index 5d72761a2..28aac2f58 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts @@ -8,6 +8,7 @@ export declare namespace MsgCancelSpotOrder { subaccountId: string injectiveAddress: string orderHash: string + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelSpotOrder @@ -32,6 +33,7 @@ export default class MsgCancelSpotOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId + message.cid = params.cid || '' // TODO: message.setOrderMask does not exist yet, enable this once it does. diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts index 8a01b64e1..775182e32 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts @@ -17,6 +17,7 @@ export declare namespace MsgCreateBinaryOptionsLimitOrder { price: string margin: string quantity: string + cid?: string } export type Proto = @@ -29,6 +30,7 @@ const createLimitOrder = (params: MsgCreateBinaryOptionsLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts index f07c5365e..befd8fc1e 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts @@ -17,6 +17,7 @@ export declare namespace MsgCreateBinaryOptionsMarketOrder { price: string margin: string quantity: string + cid?: string } export type Proto = @@ -31,6 +32,7 @@ const createMarketOrder = ( orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts index 7ffc9cfa9..dafc3acd0 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts @@ -17,6 +17,7 @@ export declare namespace MsgCreateDerivativeLimitOrder { price: string margin: string quantity: string + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateDerivativeLimitOrder @@ -28,6 +29,7 @@ const createLimitOrder = (params: MsgCreateDerivativeLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts index 419bbff7c..abb101c3a 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts @@ -17,6 +17,7 @@ export declare namespace MsgCreateDerivativeMarketOrder { price: string margin: string quantity: string + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateDerivativeMarketOrder @@ -28,6 +29,7 @@ const createMarketOrder = (params: MsgCreateDerivativeMarketOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts index efc9dd2b9..3c3bdfa3e 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts @@ -16,6 +16,7 @@ export declare namespace MsgCreateSpotLimitOrder { feeRecipient: string price: string quantity: string + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateSpotLimitOrder @@ -27,6 +28,7 @@ const createLimitOrder = (params: MsgCreateSpotLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const spotOrder = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() spotOrder.marketId = params.marketId diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts index 7b4afd516..3069923c6 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts @@ -16,6 +16,7 @@ export declare namespace MsgCreateSpotMarketOrder { feeRecipient: string price: string quantity: string + cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateSpotMarketOrder @@ -27,6 +28,7 @@ const createMarketOrder = (params: MsgCreateSpotMarketOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity + orderInfo.cid = params.cid || '' const spotOrder = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() spotOrder.marketId = params.marketId diff --git a/yarn.lock b/yarn.lock index 31fedaa98..2cb416822 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2129,10 +2129,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/core-proto-ts@^0.0.18": - version "0.0.18" - resolved "https://registry.yarnpkg.com/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.18.tgz#aa60ffde2b52cbbf80a18ba77833ecad605d8fd6" - integrity sha512-WSZS7SQ+I/m8jdc7fhzkMTUhA7i5nVTeKbN6QGqKmOwQ/F+PqM75vDHD9Y9NbLPx9P+m7hyUzSHz4zmajth5jw== +"@injectivelabs/core-proto-ts@^0.0.19": + version "0.0.19" + resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.19.tgz#566ea05761e328502647ad9bd32258fa404a430b" + integrity sha512-WV5fBPiGC8Fdx/ga5B+wagqf5B++eGdGCt9HbHnhQkoqRamel01INChJIKwsJrMGsJd5TyHSq0NRnp+N+IIjZA== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From 5173e6154b46cd2dc0b8fe69aa42b23dbf0871dc Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 27 Oct 2023 12:52:01 +0000 Subject: [PATCH 82/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.22 - @injectivelabs/sdk-ts@1.14.1-beta.22 - @injectivelabs/sdk-ui-ts@1.14.1-beta.23 - @injectivelabs/wallet-ts@1.14.1-beta.23 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 21a41ef01..8ce8d139d 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.21", + "version": "1.14.1-beta.22", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.21", + "@injectivelabs/sdk-ts": "^1.14.1-beta.22", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index efc28e2e4..c7625c079 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.21", + "version": "1.14.1-beta.22", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index 9a544f986..ac90f4b51 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.22", + "version": "1.14.1-beta.23", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,7 +38,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.8", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.21", + "@injectivelabs/sdk-ts": "^1.14.1-beta.22", "@injectivelabs/token-metadata": "^1.14.1-beta.14", "@injectivelabs/token-utils": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.7", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index bafd519a0..f39cd180f 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.22", + "version": "1.14.1-beta.23", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.21", + "@injectivelabs/sdk-ts": "^1.14.1-beta.22", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58", From 30af4a22d00a04d0378fdcd0dd83cd8dc63646a0 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 27 Oct 2023 09:06:22 -0400 Subject: [PATCH 83/86] Revert "chore: added cid" This reverts commit 1d3062392e856b558424378ad8dd7130ad3c0640. --- packages/sdk-ts/package.json | 2 +- .../msgs/MsgBatchCancelBinaryOptionsOrders.ts | 2 -- .../msgs/MsgBatchCancelDerivativeOrders.ts | 2 -- .../exchange/msgs/MsgBatchCancelSpotOrders.ts | 2 -- .../exchange/msgs/MsgBatchUpdateOrders.ts | 18 +++--------------- .../msgs/MsgCancelBinaryOptionsOrder.ts | 2 -- .../exchange/msgs/MsgCancelDerivativeOrder.ts | 2 -- .../exchange/msgs/MsgCancelSpotOrder.ts | 2 -- .../msgs/MsgCreateBinaryOptionsLimitOrder.ts | 2 -- .../msgs/MsgCreateBinaryOptionsMarketOrder.ts | 2 -- .../msgs/MsgCreateDerivativeLimitOrder.ts | 2 -- .../msgs/MsgCreateDerivativeMarketOrder.ts | 2 -- .../exchange/msgs/MsgCreateSpotLimitOrder.ts | 2 -- .../exchange/msgs/MsgCreateSpotMarketOrder.ts | 2 -- yarn.lock | 8 ++++---- 15 files changed, 8 insertions(+), 44 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index efc28e2e4..97d9a843d 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -38,7 +38,7 @@ "@ensdomains/ens-validation": "^0.1.0", "@ensdomains/eth-ens-namehash": "^2.0.15", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/core-proto-ts": "^0.0.19", + "@injectivelabs/core-proto-ts": "^0.0.18", "@injectivelabs/dmm-proto-ts": "1.0.16", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/grpc-web": "^0.0.1", diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts index 386e544fb..07936cbd6 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelBinaryOptionsOrders.ts @@ -13,7 +13,6 @@ export declare namespace MsgBatchCancelBinaryOptionsOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask - cid?: string }[] } @@ -42,7 +41,6 @@ export default class MsgBatchCancelBinaryOptionsOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId - orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts index fe6309bb8..1aa1cc357 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelDerivativeOrders.ts @@ -13,7 +13,6 @@ export declare namespace MsgBatchCancelDerivativeOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask - cid?: string }[] } @@ -41,7 +40,6 @@ export default class MsgBatchCancelDerivativeOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId - orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts index 947fd45b4..5bec98fff 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchCancelSpotOrders.ts @@ -13,7 +13,6 @@ export declare namespace MsgBatchCancelSpotOrders { subaccountId: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask - cid?: string }[] } @@ -41,7 +40,6 @@ export default class MsgBatchCancelSpotOrders extends MsgBase< orderData.marketId = order.marketId orderData.orderHash = order.orderHash orderData.subaccountId = order.subaccountId - orderData.cid = order.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. orderData.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts index 1965b1216..67152f663 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgBatchUpdateOrders.ts @@ -16,19 +16,16 @@ export declare namespace MsgBatchUpdateOrders { marketId: string subaccountId: string orderHash: string - cid?: string }[] derivativeOrdersToCancel?: { marketId: string subaccountId: string orderHash: string - cid?: string }[] binaryOptionsOrdersToCancel?: { marketId: string subaccountId: string orderHash: string - cid?: string }[] spotOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -37,7 +34,6 @@ export declare namespace MsgBatchUpdateOrders { feeRecipient: string price: string quantity: string - cid?: string }[] derivativeOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -47,7 +43,6 @@ export declare namespace MsgBatchUpdateOrders { price: string margin: string quantity: string - cid?: string }[] binaryOptionsOrdersToCreate?: { orderType: InjectiveExchangeV1Beta1Exchange.OrderType @@ -57,7 +52,6 @@ export declare namespace MsgBatchUpdateOrders { price: string margin: string quantity: string - cid?: string }[] injectiveAddress: string } @@ -110,12 +104,11 @@ export default class MsgBatchUpdateOrders extends MsgBase< if (params.spotOrdersToCancel && params.spotOrdersToCancel.length > 0) { const orderData = params.spotOrdersToCancel.map( - ({ marketId, subaccountId, orderHash, cid }) => { + ({ marketId, subaccountId, orderHash }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash - orderData.cid = cid || '' return orderData }, @@ -129,12 +122,11 @@ export default class MsgBatchUpdateOrders extends MsgBase< params.derivativeOrdersToCancel.length > 0 ) { const orderData = params.derivativeOrdersToCancel.map( - ({ marketId, subaccountId, orderHash, cid }) => { + ({ marketId, subaccountId, orderHash }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash - orderData.cid = cid || '' return orderData }, @@ -147,12 +139,11 @@ export default class MsgBatchUpdateOrders extends MsgBase< params.binaryOptionsOrdersToCancel.length > 0 ) { const orderData = params.binaryOptionsOrdersToCancel.map( - ({ marketId, subaccountId, orderHash, cid }) => { + ({ marketId, subaccountId, orderHash }) => { const orderData = InjectiveExchangeV1Beta1Tx.OrderData.create() orderData.marketId = marketId orderData.subaccountId = subaccountId orderData.orderHash = orderHash - orderData.cid = cid || '' return orderData }, @@ -177,7 +168,6 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity - orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() order.marketId = paramsFromArgs.marketId @@ -214,7 +204,6 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity - orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() order.marketId = paramsFromArgs.marketId @@ -250,7 +239,6 @@ export default class MsgBatchUpdateOrders extends MsgBase< orderInfo.feeRecipient = paramsFromArgs.feeRecipient orderInfo.price = paramsFromArgs.price orderInfo.quantity = paramsFromArgs.quantity - orderInfo.cid = paramsFromArgs.cid || '' const order = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() order.marketId = paramsFromArgs.marketId diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts index 7182dffdd..61762663f 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelBinaryOptionsOrder.ts @@ -12,7 +12,6 @@ export declare namespace MsgCancelBinaryOptionsOrder { injectiveAddress: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelBinaryOptionsOrder @@ -40,7 +39,6 @@ export default class MsgCancelBinaryOptionsOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId - message.cid = params.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. message.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts index 3092ba310..d860699c3 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelDerivativeOrder.ts @@ -12,7 +12,6 @@ export declare namespace MsgCancelDerivativeOrder { injectiveAddress: string orderHash: string orderMask?: InjectiveExchangeV1Beta1Exchange.OrderMask - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelDerivativeOrder @@ -36,7 +35,6 @@ export default class MsgCancelDerivativeOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId - message.cid = params.cid || '' // TODO: Send order.orderMask instead when chain handles order mask properly. message.orderMask = InjectiveExchangeV1Beta1Exchange.OrderMask.ANY diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts index 28aac2f58..5d72761a2 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.ts @@ -8,7 +8,6 @@ export declare namespace MsgCancelSpotOrder { subaccountId: string injectiveAddress: string orderHash: string - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCancelSpotOrder @@ -33,7 +32,6 @@ export default class MsgCancelSpotOrder extends MsgBase< message.marketId = params.marketId message.orderHash = params.orderHash message.subaccountId = params.subaccountId - message.cid = params.cid || '' // TODO: message.setOrderMask does not exist yet, enable this once it does. diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts index 775182e32..8a01b64e1 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsLimitOrder.ts @@ -17,7 +17,6 @@ export declare namespace MsgCreateBinaryOptionsLimitOrder { price: string margin: string quantity: string - cid?: string } export type Proto = @@ -30,7 +29,6 @@ const createLimitOrder = (params: MsgCreateBinaryOptionsLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts index befd8fc1e..f07c5365e 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateBinaryOptionsMarketOrder.ts @@ -17,7 +17,6 @@ export declare namespace MsgCreateBinaryOptionsMarketOrder { price: string margin: string quantity: string - cid?: string } export type Proto = @@ -32,7 +31,6 @@ const createMarketOrder = ( orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts index dafc3acd0..7ffc9cfa9 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeLimitOrder.ts @@ -17,7 +17,6 @@ export declare namespace MsgCreateDerivativeLimitOrder { price: string margin: string quantity: string - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateDerivativeLimitOrder @@ -29,7 +28,6 @@ const createLimitOrder = (params: MsgCreateDerivativeLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts index abb101c3a..419bbff7c 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateDerivativeMarketOrder.ts @@ -17,7 +17,6 @@ export declare namespace MsgCreateDerivativeMarketOrder { price: string margin: string quantity: string - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateDerivativeMarketOrder @@ -29,7 +28,6 @@ const createMarketOrder = (params: MsgCreateDerivativeMarketOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const derivativeOrder = InjectiveExchangeV1Beta1Exchange.DerivativeOrder.create() diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts index 3c3bdfa3e..efc9dd2b9 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotLimitOrder.ts @@ -16,7 +16,6 @@ export declare namespace MsgCreateSpotLimitOrder { feeRecipient: string price: string quantity: string - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateSpotLimitOrder @@ -28,7 +27,6 @@ const createLimitOrder = (params: MsgCreateSpotLimitOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const spotOrder = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() spotOrder.marketId = params.marketId diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts index 3069923c6..7b4afd516 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCreateSpotMarketOrder.ts @@ -16,7 +16,6 @@ export declare namespace MsgCreateSpotMarketOrder { feeRecipient: string price: string quantity: string - cid?: string } export type Proto = InjectiveExchangeV1Beta1Tx.MsgCreateSpotMarketOrder @@ -28,7 +27,6 @@ const createMarketOrder = (params: MsgCreateSpotMarketOrder.Params) => { orderInfo.feeRecipient = params.feeRecipient orderInfo.price = params.price orderInfo.quantity = params.quantity - orderInfo.cid = params.cid || '' const spotOrder = InjectiveExchangeV1Beta1Exchange.SpotOrder.create() spotOrder.marketId = params.marketId diff --git a/yarn.lock b/yarn.lock index 2cb416822..31fedaa98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2129,10 +2129,10 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/core-proto-ts@^0.0.19": - version "0.0.19" - resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.19.tgz#566ea05761e328502647ad9bd32258fa404a430b" - integrity sha512-WV5fBPiGC8Fdx/ga5B+wagqf5B++eGdGCt9HbHnhQkoqRamel01INChJIKwsJrMGsJd5TyHSq0NRnp+N+IIjZA== +"@injectivelabs/core-proto-ts@^0.0.18": + version "0.0.18" + resolved "https://registry.yarnpkg.com/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.18.tgz#aa60ffde2b52cbbf80a18ba77833ecad605d8fd6" + integrity sha512-WSZS7SQ+I/m8jdc7fhzkMTUhA7i5nVTeKbN6QGqKmOwQ/F+PqM75vDHD9Y9NbLPx9P+m7hyUzSHz4zmajth5jw== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From 69d1f589d0e06234fc41941ad9a9f7190b51ef63 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 27 Oct 2023 13:10:48 +0000 Subject: [PATCH 84/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.23 - @injectivelabs/sdk-ts@1.14.1-beta.23 - @injectivelabs/sdk-ui-ts@1.14.1-beta.24 - @injectivelabs/wallet-ts@1.14.1-beta.24 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 2 +- packages/sdk-ui-ts/package.json | 4 ++-- packages/wallet-ts/package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index 8ce8d139d..c0eb63c79 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.22", + "version": "1.14.1-beta.23", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.22", + "@injectivelabs/sdk-ts": "^1.14.1-beta.23", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 40c00c94c..543341986 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.22", + "version": "1.14.1-beta.23", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index ac90f4b51..e3f4ee5a7 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.23", + "version": "1.14.1-beta.24", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,7 +38,7 @@ "@injectivelabs/contracts": "^1.14.1-beta.8", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.22", + "@injectivelabs/sdk-ts": "^1.14.1-beta.23", "@injectivelabs/token-metadata": "^1.14.1-beta.14", "@injectivelabs/token-utils": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.7", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index f39cd180f..717d889df 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.23", + "version": "1.14.1-beta.24", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.22", + "@injectivelabs/sdk-ts": "^1.14.1-beta.23", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58", From bd7fe6a27ca26d6ede07e0ef8c7649794d1e9138 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 27 Oct 2023 13:08:53 -0400 Subject: [PATCH 85/86] fix: mapBySymbol missing evm --- .../src/tokens/mappings/mapBySymbol.ts | 45 +++++++------------ 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts index 0d15f88e9..8868aad08 100644 --- a/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts +++ b/packages/token-metadata/src/tokens/mappings/mapBySymbol.ts @@ -11,41 +11,19 @@ export const getMappedTokensBySymbol = (tokens: Record) => let ibcResults = {} let cw20Results = {} let splResults = {} + let evmResults = {} + let erc20Results = {} let cw20sResults = {} if (tokenMeta.ibc && tokenMeta.ibc.baseDenom) { ibcResults = { [tokenMeta.ibc.baseDenom.toUpperCase()]: tokenMeta, - [symbol.toUpperCase()]: tokenMeta, - ...(symbolDiffs && { - [symbolKey.toUpperCase()]: tokenMeta, - }), ...(tokenMeta.ibc.symbol && { [tokenMeta.ibc.symbol.toUpperCase()]: tokenMeta, }), } } - if (tokenMeta.cw20 && tokenMeta.cw20.address) { - cw20Results = { - [tokenMeta.cw20.address.toUpperCase()]: tokenMeta, - [symbol.toUpperCase()]: tokenMeta, - ...(symbolDiffs && { - [symbolKey.toUpperCase()]: tokenMeta, - }), - } - } - - if (tokenMeta.spl && tokenMeta.spl.address) { - splResults = { - [tokenMeta.spl.address.toUpperCase()]: tokenMeta, - [symbol.toUpperCase()]: tokenMeta, - ...(symbolDiffs && { - [symbolKey.toUpperCase()]: tokenMeta, - }), - } - } - if (tokenMeta.cw20s) { const cw20Maps = tokenMeta.cw20s.reduce( (result, cw20) => ({ @@ -58,18 +36,29 @@ export const getMappedTokensBySymbol = (tokens: Record) => cw20sResults = { ...cw20Maps, [symbol.toUpperCase()]: tokenMeta, - ...(symbolDiffs && { - [symbolKey.toUpperCase()]: tokenMeta, - }), + } + } + + if (tokenMeta.evm && tokenMeta.evm.symbol) { + evmResults = { + [tokenMeta.evm.symbol.toUpperCase()]: tokenMeta, + } + } + + if (tokenMeta.erc20 && tokenMeta.erc20.symbol) { + erc20Results = { + [tokenMeta.erc20.symbol.toUpperCase()]: tokenMeta, } } return { ...result, + ...splResults, + ...evmResults, ...ibcResults, ...cw20Results, - ...splResults, ...cw20sResults, + ...erc20Results, [symbol.toUpperCase()]: tokenMeta, ...(symbolDiffs && { [symbolKey.toUpperCase()]: tokenMeta, From f6793b6021f9b07f3391753376532b7aa917c0bd Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 27 Oct 2023 17:15:27 +0000 Subject: [PATCH 86/86] chore(release): publish - @injectivelabs/bridge-ts@1.14.1-beta.24 - @injectivelabs/sdk-ts@1.14.1-beta.24 - @injectivelabs/sdk-ui-ts@1.14.1-beta.25 - @injectivelabs/token-metadata@1.14.1-beta.15 - @injectivelabs/wallet-ts@1.14.1-beta.25 --- packages/bridge-ts/package.json | 4 ++-- packages/sdk-ts/package.json | 4 ++-- packages/sdk-ui-ts/package.json | 6 +++--- packages/token-metadata/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/bridge-ts/package.json b/packages/bridge-ts/package.json index c0eb63c79..c557e81db 100644 --- a/packages/bridge-ts/package.json +++ b/packages/bridge-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/bridge-ts", "description": "Bridge utilities and abstractions in TypeScript to be used in Injective products", - "version": "1.14.1-beta.23", + "version": "1.14.1-beta.24", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -34,7 +34,7 @@ "@axelar-network/axelarjs-sdk": "^0.11.7", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.23", + "@injectivelabs/sdk-ts": "^1.14.1-beta.24", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@injectivelabs/wormhole-sdk": "^1.12.0-beta.0", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 543341986..2055eda61 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ts", "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.", - "version": "1.14.1-beta.23", + "version": "1.14.1-beta.24", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -48,7 +48,7 @@ "@injectivelabs/mito-proto-ts": "1.0.50", "@injectivelabs/networks": "^1.14.1-beta.8", "@injectivelabs/test-utils": "^1.14.1-beta.5", - "@injectivelabs/token-metadata": "^1.14.1-beta.14", + "@injectivelabs/token-metadata": "^1.14.1-beta.15", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/sdk-ui-ts/package.json b/packages/sdk-ui-ts/package.json index e3f4ee5a7..9b89e098a 100644 --- a/packages/sdk-ui-ts/package.json +++ b/packages/sdk-ui-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/sdk-ui-ts", "description": "SDK in TypeScript for building Injective UI applications in a browser environment.", - "version": "1.14.1-beta.24", + "version": "1.14.1-beta.25", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -38,8 +38,8 @@ "@injectivelabs/contracts": "^1.14.1-beta.8", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.23", - "@injectivelabs/token-metadata": "^1.14.1-beta.14", + "@injectivelabs/sdk-ts": "^1.14.1-beta.24", + "@injectivelabs/token-metadata": "^1.14.1-beta.15", "@injectivelabs/token-utils": "^1.14.1-beta.7", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", diff --git a/packages/token-metadata/package.json b/packages/token-metadata/package.json index 24c032477..01a9415f5 100644 --- a/packages/token-metadata/package.json +++ b/packages/token-metadata/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/token-metadata", "description": "ERC20 token metadata. Name, symbol, decimals, etc.", - "version": "1.14.1-beta.14", + "version": "1.14.1-beta.15", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 717d889df..439b07df9 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ts", "description": "A convenient way to use and interact with different types of wallets on Injective.", - "version": "1.14.1-beta.24", + "version": "1.14.1-beta.25", "sideEffects": false, "author": { "name": "Bojan Angjelkoski", @@ -39,7 +39,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.1-beta.7", "@injectivelabs/networks": "^1.14.1-beta.8", - "@injectivelabs/sdk-ts": "^1.14.1-beta.23", + "@injectivelabs/sdk-ts": "^1.14.1-beta.24", "@injectivelabs/ts-types": "^1.14.1-beta.7", "@injectivelabs/utils": "^1.14.1-beta.6", "@keplr-wallet/cosmos": "^0.11.58",