From 99da278ae2d5e812763cea84a94f3fdf9e88e0ed Mon Sep 17 00:00:00 2001 From: billyjacoby Date: Thu, 31 Oct 2024 12:36:59 -0400 Subject: [PATCH 01/54] fix: return correct signature --- packages/sdk-ts/src/core/accounts/PrivateKey.ts | 13 ++++++------- .../wallet-private-key/src/strategy/strategy.ts | 7 ++++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/sdk-ts/src/core/accounts/PrivateKey.ts b/packages/sdk-ts/src/core/accounts/PrivateKey.ts index 267a28bbf..8aab78294 100644 --- a/packages/sdk-ts/src/core/accounts/PrivateKey.ts +++ b/packages/sdk-ts/src/core/accounts/PrivateKey.ts @@ -176,15 +176,12 @@ export class PrivateKey { * @param {string} messageHashedBytes: the message that will be signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ - signHashed(messageHashedBytes: Buffer): Uint8Array { + async signHashed(messageHashedBytes: Buffer): Promise { const { wallet } = this - const signature = wallet.signingKey.sign(messageHashedBytes) - const splitSignature = BytesUtils.splitSignature(signature) + const signature = await wallet.signMessage(messageHashedBytes) - return BytesUtils.arrayify( - BytesUtils.concat([splitSignature.r, splitSignature.s]), - ) + return signature } /** @@ -368,7 +365,9 @@ export class PrivateKey { } const decodedExtension = - InjectiveTypesV1Beta1TxExt.ExtensionOptionsWeb3Tx.decode(extension.value) + InjectiveTypesV1Beta1TxExt.ExtensionOptionsWeb3Tx.decode( + extension.value, + ) const ethereumChainId = Number( decodedExtension.typedDataChainID, diff --git a/packages/wallets/wallet-private-key/src/strategy/strategy.ts b/packages/wallets/wallet-private-key/src/strategy/strategy.ts index bf1b5b79c..2d1898096 100644 --- a/packages/wallets/wallet-private-key/src/strategy/strategy.ts +++ b/packages/wallets/wallet-private-key/src/strategy/strategy.ts @@ -9,7 +9,7 @@ import { DirectSignResponse, PrivateKey as PrivateKeySigner, getInjectiveSignerAddress, -} from '@injectivelabs/sdk-ts' +} from '@injectivelabs/sdk-ts/src/index' import { ErrorType, WalletException, @@ -202,9 +202,10 @@ export class PrivateKeyWallet } try { - const signature = await pk.signHashed(Buffer.from(toUtf8(data), 'utf-8')) + const bufferUTF = Buffer.from(toUtf8(data), 'utf-8') + const signature = await pk.signHashed(bufferUTF) - return `0x${Buffer.from(signature).toString('base64')}` + return signature } catch (e: unknown) { throw new MetamaskException(new Error((e as any).message), { code: UnspecifiedErrorCode, From 671209aba5ca4bc55e04d105d60de504823fa1c2 Mon Sep 17 00:00:00 2001 From: Billy Jacoby Date: Thu, 31 Oct 2024 13:40:58 -0400 Subject: [PATCH 02/54] typo: fix dev import --- packages/wallets/wallet-private-key/src/strategy/strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wallets/wallet-private-key/src/strategy/strategy.ts b/packages/wallets/wallet-private-key/src/strategy/strategy.ts index 2d1898096..15b179868 100644 --- a/packages/wallets/wallet-private-key/src/strategy/strategy.ts +++ b/packages/wallets/wallet-private-key/src/strategy/strategy.ts @@ -9,7 +9,7 @@ import { DirectSignResponse, PrivateKey as PrivateKeySigner, getInjectiveSignerAddress, -} from '@injectivelabs/sdk-ts/src/index' +} from '@injectivelabs/sdk-ts' import { ErrorType, WalletException, From 566e8583cf58c973c72b417cdee6f95d02855de2 Mon Sep 17 00:00:00 2001 From: Billy Jacoby Date: Thu, 31 Oct 2024 13:42:13 -0400 Subject: [PATCH 03/54] chore: add initial test case --- .../src/core/accounts/PrivateKey.spec.ts | 20 +++++++++++++++++++ .../src/strategy/strategy.ts | 3 +-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts b/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts index 6072a8c79..38e646abc 100644 --- a/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts +++ b/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts @@ -1,3 +1,4 @@ +import { toUtf8 } from '../..' import { generateArbitrarySignDoc } from '../tx' import { PrivateKey } from './PrivateKey' @@ -113,6 +114,25 @@ describe('PrivateKey', () => { ).toBe(true) }) + it('returns the correct signature for signing an arbitrary message', () => { + // const pubKey = '0x697e62225Dd22A5afcAa82901089b2151DAEB706' + const message = 'this is a test message' + + const verifiedSignature = + '0xfd0879e35cec78b87ae7e647ebb743093ea15edcb88eb388806adaaff5f645527dab0cfac030b23d702206d6e0840a7bae5d2239518ba20b73c6636f75f150401b' + + const privateKey = PrivateKey.fromHex(pk) + + const privKeySignature = privateKey.sign( + Buffer.from(toUtf8(message), 'utf-8'), + ) + + expect(Buffer.from(privKeySignature).toString('hex')).toEqual( + verifiedSignature, + ) + // + }) + it('returns true when verifying signature for a public key and a cosmos message', () => { // }) diff --git a/packages/wallets/wallet-private-key/src/strategy/strategy.ts b/packages/wallets/wallet-private-key/src/strategy/strategy.ts index 15b179868..993ce9210 100644 --- a/packages/wallets/wallet-private-key/src/strategy/strategy.ts +++ b/packages/wallets/wallet-private-key/src/strategy/strategy.ts @@ -202,8 +202,7 @@ export class PrivateKeyWallet } try { - const bufferUTF = Buffer.from(toUtf8(data), 'utf-8') - const signature = await pk.signHashed(bufferUTF) + const signature = await pk.signHashed(Buffer.from(toUtf8(data), 'utf-8')) return signature } catch (e: unknown) { From fc20dc9b0873067f94b1c6fa716817160fabbf15 Mon Sep 17 00:00:00 2001 From: billyjacoby Date: Fri, 8 Nov 2024 09:43:37 -0500 Subject: [PATCH 04/54] chore: add test case for issue --- .../src/core/accounts/PrivateKey.spec.ts | 38 +++++++++++-------- .../sdk-ts/src/core/accounts/PrivateKey.ts | 13 ++++--- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts b/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts index 38e646abc..98f44fd51 100644 --- a/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts +++ b/packages/sdk-ts/src/core/accounts/PrivateKey.spec.ts @@ -1,6 +1,7 @@ -import { toUtf8 } from '../..' +import { verifyMessage, Wallet } from 'ethers' import { generateArbitrarySignDoc } from '../tx' import { PrivateKey } from './PrivateKey' +import { toUtf8 } from '../../utils' const pk = process.env.TEST_PRIVATE_KEY as string const seedPhase = process.env.TEST_SEED_PHASE as string @@ -114,27 +115,34 @@ describe('PrivateKey', () => { ).toBe(true) }) - it('returns the correct signature for signing an arbitrary message', () => { - // const pubKey = '0x697e62225Dd22A5afcAa82901089b2151DAEB706' + it('returns true when verifying signature for a public key and a cosmos message', () => { + // + }) + + it('returns true when checking a pk signature against the signer public key', async () => { const message = 'this is a test message' - const verifiedSignature = - '0xfd0879e35cec78b87ae7e647ebb743093ea15edcb88eb388806adaaff5f645527dab0cfac030b23d702206d6e0840a7bae5d2239518ba20b73c6636f75f150401b' + const wallet = new Wallet(pk) + const ethersSignature = await wallet.signMessage(message) const privateKey = PrivateKey.fromHex(pk) + const publicKey = privateKey.toHex() - const privKeySignature = privateKey.sign( + const privKeySignatureArray = privateKey.sign( Buffer.from(toUtf8(message), 'utf-8'), ) - - expect(Buffer.from(privKeySignature).toString('hex')).toEqual( - verifiedSignature, - ) - // - }) - - it('returns true when verifying signature for a public key and a cosmos message', () => { - // + const privKeySignature = `0x${Buffer.from(privKeySignatureArray).toString( + 'hex', + )}` + + const ethersVerifiedSigner = verifyMessage(message, ethersSignature) + const ethersSignatureVerifiedCorrectly = ethersVerifiedSigner === publicKey + expect(ethersSignatureVerifiedCorrectly).toBe(true) + + const privKeyVerifiedSigner = verifyMessage(message, privKeySignature) + const privKeySignatureVerifiedCorrectly = + privKeyVerifiedSigner === publicKey + expect(privKeySignatureVerifiedCorrectly).toBe(true) }) it('returns true when verifying arbitrary message', async () => { diff --git a/packages/sdk-ts/src/core/accounts/PrivateKey.ts b/packages/sdk-ts/src/core/accounts/PrivateKey.ts index 8aab78294..267a28bbf 100644 --- a/packages/sdk-ts/src/core/accounts/PrivateKey.ts +++ b/packages/sdk-ts/src/core/accounts/PrivateKey.ts @@ -176,12 +176,15 @@ export class PrivateKey { * @param {string} messageHashedBytes: the message that will be signed, a Buffer made of bytes * @returns {Uint8Array} a signature of this private key over the given message */ - async signHashed(messageHashedBytes: Buffer): Promise { + signHashed(messageHashedBytes: Buffer): Uint8Array { const { wallet } = this - const signature = await wallet.signMessage(messageHashedBytes) + const signature = wallet.signingKey.sign(messageHashedBytes) + const splitSignature = BytesUtils.splitSignature(signature) - return signature + return BytesUtils.arrayify( + BytesUtils.concat([splitSignature.r, splitSignature.s]), + ) } /** @@ -365,9 +368,7 @@ export class PrivateKey { } const decodedExtension = - InjectiveTypesV1Beta1TxExt.ExtensionOptionsWeb3Tx.decode( - extension.value, - ) + InjectiveTypesV1Beta1TxExt.ExtensionOptionsWeb3Tx.decode(extension.value) const ethereumChainId = Number( decodedExtension.typedDataChainID, From 68bc897324626bbee8b9045ca2579f3e63f01398 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Fri, 8 Nov 2024 15:01:11 +0700 Subject: [PATCH 05/54] feat: neptune service --- packages/sdk-ts/src/client/wasm/index.ts | 3 +- .../sdk-ts/src/client/wasm/neptune/index.ts | 6 + .../wasm/neptune/queries/QueryGetPrices.ts | 19 +++ .../src/client/wasm/neptune/queries/index.ts | 1 + .../sdk-ts/src/client/wasm/neptune/service.ts | 159 ++++++++++++++++++ .../src/client/wasm/neptune/transformer.ts | 16 ++ .../sdk-ts/src/client/wasm/neptune/types.ts | 18 ++ .../wasm/exec-args/ExecArgNeptuneDeposit.ts | 33 ++++ .../wasm/exec-args/ExecArgNeptuneWithdraw.ts | 50 ++++++ .../sdk-ts/src/core/modules/wasm/index.ts | 4 + 10 files changed, 308 insertions(+), 1 deletion(-) create mode 100644 packages/sdk-ts/src/client/wasm/neptune/index.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/queries/index.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/service.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/transformer.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/types.ts create mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts create mode 100644 packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts diff --git a/packages/sdk-ts/src/client/wasm/index.ts b/packages/sdk-ts/src/client/wasm/index.ts index 3f0ded87c..df93ad7b8 100644 --- a/packages/sdk-ts/src/client/wasm/index.ts +++ b/packages/sdk-ts/src/client/wasm/index.ts @@ -1,5 +1,6 @@ -export * from './swap/index.js' export * from './types.js' +export * from './swap/index.js' +export * from './neptune/index.js' export * from './incentives/index.js' export * from './nameservice/index.js' export * from './trading_strategies/index.js' diff --git a/packages/sdk-ts/src/client/wasm/neptune/index.ts b/packages/sdk-ts/src/client/wasm/neptune/index.ts new file mode 100644 index 000000000..0b5449982 --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/index.ts @@ -0,0 +1,6 @@ +export * from './queries' +export * from './transformer' +export * from './types' +export * from './service' + +export const NEPTUNE_PRICE_CONTRACT = 'inj1u6cclz0qh5tep9m2qayry9k97dm46pnlqf8nre' diff --git a/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts new file mode 100644 index 000000000..bc12c1548 --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts @@ -0,0 +1,19 @@ +import { BaseWasmQuery } from '../../BaseWasmQuery' +import { toBase64 } from '../../../../utils' +import { AssetInfo } from '../types' + +export declare namespace QueryGetPrices { + export interface Params { + assets: AssetInfo[] + } +} + +export class QueryGetPrices extends BaseWasmQuery { + toPayload() { + return toBase64({ + get_prices: { + assets: this.params.assets, + }, + }) + } +} diff --git a/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts b/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts new file mode 100644 index 000000000..5ce0e07f3 --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts @@ -0,0 +1 @@ +export { QueryGetPrices } from './QueryGetPrices' diff --git a/packages/sdk-ts/src/client/wasm/neptune/service.ts b/packages/sdk-ts/src/client/wasm/neptune/service.ts new file mode 100644 index 000000000..66eb283ee --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/service.ts @@ -0,0 +1,159 @@ +import { + Network, + isMainnet, + getNetworkEndpoints, +} from '@injectivelabs/networks' +import { AssetInfo, NEPTUNE_USDT_CW20_CONTRACT, AssetInfoWithPrice } from './types' +import { ChainGrpcWasmApi } from '../../chain' +import { QueryGetPrices } from './queries' +import { PriceQueryTransformer } from './transformer' +import ExecArgNeptuneDeposit from '../../../core/modules/wasm/exec-args/ExecArgNeptuneDeposit' +import ExecArgNeptuneWithdraw from '../../../core/modules/wasm/exec-args/ExecArgNeptuneWithdraw' + +import MsgExecuteContractCompat from '../../../core/modules/wasm/msgs/MsgExecuteContractCompat' + +import { GeneralException } from '@injectivelabs/exceptions' +import { NEPTUNE_PRICE_CONTRACT } from './index' + +const NEPTUNE_USDT_MARKET_CONTRACT = 'inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u' + +export class NeptuneService { + private client: ChainGrpcWasmApi + private priceOracleContract: string + + /** + * Constructs a new NeptuneService instan ce. + * @param network The network to use (default: Mainnet). + * @param endpoints Optional custom network endpoints. + */ + constructor( + network: Network = Network.Mainnet, + endpoints?: any // Replace `any` with the appropriate type if available + ) { + if (network !== Network.Mainnet) { + throw new GeneralException(new Error('Please switch to mainnet network')) + } + + const networkEndpoints = endpoints || getNetworkEndpoints(network) + this.client = new ChainGrpcWasmApi(networkEndpoints.grpc) + this.priceOracleContract = isMainnet(network) ? NEPTUNE_PRICE_CONTRACT : '' + } + + /** + * Fetch prices for given assets from the Neptune Price Oracle contract. + * @param assets Array of AssetInfo objects. + * @returns Array of Price objects. + */ + async fetchPrices(assets: AssetInfo[]): Promise { + const queryGetPricesPayload = new QueryGetPrices({ assets }).toPayload() + + try { + const response = await this.client.fetchSmartContractState( + this.priceOracleContract, + queryGetPricesPayload + ) + + const prices = PriceQueryTransformer.contractPricesResponseToPrices(response) + + return prices + } catch (error) { + console.error('Error fetching prices:', error) + throw new GeneralException(new Error('Failed to fetch prices')) + } + } + + /** + * Fetch the redemption ratio based on CW20 and native asset prices. + * @param cw20Asset AssetInfo for the CW20 token. + * @param nativeAsset AssetInfo for the native token. + * @returns Redemption ratio as a number. + */ + async fetchRedemptionRatio({ cw20Asset, nativeAsset }: { + cw20Asset: AssetInfo, + nativeAsset: AssetInfo + }): Promise { + const prices = await this.fetchPrices([cw20Asset, nativeAsset]) + + const [cw20Price] = prices + const [nativePrice] = prices.reverse() + + if (!cw20Price || !nativePrice) { + throw new GeneralException(new Error('Failed to compute redemption ratio')) + } + + return Number(cw20Price.price) / Number(nativePrice.price) + } + + /** + * Convert CW20 nUSDT to bank nUSDT using the redemption ratio. + * @param amountCW20 Amount in CW20 nUSDT. + * @param redemptionRatio Redemption ratio. + * @returns Amount in bank nUSDT. + */ + calculateBankAmount(amountCW20: number, redemptionRatio: number): number { + return amountCW20 * redemptionRatio + } + + /** + * Convert bank nUSDT to CW20 nUSDT using the redemption ratio. + * @param amountBank Amount in bank nUSDT. + * @param redemptionRatio Redemption ratio. + * @returns Amount in CW20 nUSDT. + */ + calculateCw20Amount(amountBank: number, redemptionRatio: number): number { + return amountBank / redemptionRatio + } + + /** + * Create a deposit message. + * @param sender Sender's Injective address. + * @param contractAddress USDT market contract address. + * @param denom Denomination of the asset. + * @param amount Amount to deposit as a string. + * @returns MsgExecuteContractCompat message. + */ + createDepositMsg( + denom: string, + amount: string, + sender: string, + contractAddress: string = NEPTUNE_USDT_MARKET_CONTRACT, + ): MsgExecuteContractCompat { + return MsgExecuteContractCompat.fromJSON({ + sender, + contractAddress, + execArgs: ExecArgNeptuneDeposit.fromJSON({}), + funds: { + denom, + amount, + }, + }) + } + + /** + * Create a withdraw message. + * @param sender Sender's Injective address. + * @param contractAddress nUSDT contract address. + * @param amount Amount to withdraw as a string. + * @returns MsgExecuteContractCompat message. + */ + createWithdrawMsg({ + amount, + sender, + cw20ContractAddress = NEPTUNE_USDT_CW20_CONTRACT, + marketContractAddress = NEPTUNE_USDT_MARKET_CONTRACT, + }: { + amount: string, + sender: string, + cw20ContractAddress?: string, + marketContractAddress?: string, + }): MsgExecuteContractCompat { + return MsgExecuteContractCompat.fromJSON({ + sender, + contractAddress: cw20ContractAddress, + execArgs: ExecArgNeptuneWithdraw.fromJSON({ + amount, + contract: marketContractAddress, + }), + }) + } +} diff --git a/packages/sdk-ts/src/client/wasm/neptune/transformer.ts b/packages/sdk-ts/src/client/wasm/neptune/transformer.ts new file mode 100644 index 000000000..5fe81126a --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/transformer.ts @@ -0,0 +1,16 @@ +import { WasmContractQueryResponse } from '../types' +import { toUtf8 } from '../../../utils' +import { AssetInfo, PriceResponse } from './types' + +export class PriceQueryTransformer { + static contractPricesResponseToPrices( + response: WasmContractQueryResponse, + ): Array<{ assetInfo: AssetInfo; price: string }> { + const data = JSON.parse(toUtf8(response.data)) as PriceResponse + + return data.map(([assetInfo, priceInfo]) => ({ + assetInfo, + price: priceInfo.price, + })) + } +} diff --git a/packages/sdk-ts/src/client/wasm/neptune/types.ts b/packages/sdk-ts/src/client/wasm/neptune/types.ts new file mode 100644 index 000000000..9a4807bbc --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/types.ts @@ -0,0 +1,18 @@ +export type AssetInfo = + | { + token: { + contract_addr: string + } + } + | { + native_token: { + denom: string + } + } + +export type AssetInfoWithPrice = {assetInfo: AssetInfo, price: string } + +export type PriceResponse = Array<[AssetInfo, { price: string }]> + +export const NEPTUNE_USDT_CW20_CONTRACT = + 'inj1cy9hes20vww2yr6crvs75gxy5hpycya2hmjg9s' diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts new file mode 100644 index 000000000..3cd75205b --- /dev/null +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts @@ -0,0 +1,33 @@ +import { + dataToExecData, + ExecArgBase, + ExecDataRepresentation, +} from '../ExecArgBase' + +export declare namespace ExecArgNeptuneDeposit { + export interface Params {} + + export interface Data {} +} + +/** + * @category Contract Exec Arguments + */ +export default class ExecArgNeptuneDeposit extends ExecArgBase< + ExecArgNeptuneDeposit.Params, + ExecArgNeptuneDeposit.Data +> { + static fromJSON( + params: ExecArgNeptuneDeposit.Params, + ): ExecArgNeptuneDeposit { + return new ExecArgNeptuneDeposit(params) + } + + public toData(): ExecArgNeptuneDeposit.Data { + return {} + } + + public toExecData(): ExecDataRepresentation { + return dataToExecData('lend', this.toData()) + } +} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts new file mode 100644 index 000000000..287dd389b --- /dev/null +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts @@ -0,0 +1,50 @@ +import { + ExecArgBase, + dataToExecData, + ExecDataRepresentation, +} from '../ExecArgBase' +import { toBase64 } from '../../../../utils' + + +export declare namespace ExecArgNeptuneWithdraw { + export interface Params { + amount: string + contract: string + } + + export interface Data { + amount: string + contract: string + msg: string + } +} + +/** + * @category Contract Exec Arguments + */ +export default class ExecArgNeptuneWithdraw extends ExecArgBase< + ExecArgNeptuneWithdraw.Params, + ExecArgNeptuneWithdraw.Data +> { + static fromJSON( + params: ExecArgNeptuneWithdraw.Params, + ): ExecArgNeptuneWithdraw { + return new ExecArgNeptuneWithdraw(params) + } + + toData(): ExecArgNeptuneWithdraw.Data { + const { params } = this + const innerMsg = { redeem: {} } + const encodedMsg = toBase64(innerMsg) + + return { + amount: params.amount, + contract: params.contract, + msg: encodedMsg, + } + } + + toExecData(): ExecDataRepresentation { + return dataToExecData('send', 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 286a11190..f3f178877 100644 --- a/packages/sdk-ts/src/core/modules/wasm/index.ts +++ b/packages/sdk-ts/src/core/modules/wasm/index.ts @@ -6,7 +6,9 @@ import ExecArgCW20Transfer from './exec-args/ExecArgCW20Transfer.js' import ExecArgSwapMinOutput from './exec-args/ExecArgSwapMinOutput.js' import ExecArgDepositTokens from './exec-args/ExecArgDepositTokens.js' import ExecArgCreateCampaign from './exec-args/ExecArgCreateCampaign.js' +import ExecArgNeptuneDeposit from './exec-args/ExecArgNeptuneDeposit.js' import ExecArgSwapExactOutput from './exec-args/ExecArgSwapExactOutput.js' +import ExecArgNeptuneWithdraw from './exec-args/ExecArgNeptuneWithdraw.js' import ExecArgInitiateTransfer from './exec-args/ExecArgInitiateTransfer.js' import ExecArgUpdateGridConfig from './exec-args/ExecArgUpdateGridConfig.js' import ExecArgIncreaseAllowance from './exec-args/ExecArgIncreaseAllowance.js' @@ -40,7 +42,9 @@ export { ExecArgSwapMinOutput, ExecArgDepositTokens, ExecArgCreateCampaign, + ExecArgNeptuneDeposit, ExecArgSwapExactOutput, + ExecArgNeptuneWithdraw, ExecArgInitiateTransfer, ExecArgUpdateGridConfig, ExecArgIncreaseAllowance, From 60704a2d1e74206737882a0a795de8564972d781 Mon Sep 17 00:00:00 2001 From: shane-moore Date: Tue, 12 Nov 2024 09:13:59 +0700 Subject: [PATCH 06/54] update neptuneService constructor for non-mainnet --- .../sdk-ts/src/client/wasm/neptune/service.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/sdk-ts/src/client/wasm/neptune/service.ts b/packages/sdk-ts/src/client/wasm/neptune/service.ts index 66eb283ee..d82ecedb3 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/service.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/service.ts @@ -3,6 +3,7 @@ import { isMainnet, getNetworkEndpoints, } from '@injectivelabs/networks' +import { NetworkEndpoints } from '@injectivelabs/networks' import { AssetInfo, NEPTUNE_USDT_CW20_CONTRACT, AssetInfoWithPrice } from './types' import { ChainGrpcWasmApi } from '../../chain' import { QueryGetPrices } from './queries' @@ -27,16 +28,16 @@ export class NeptuneService { * @param endpoints Optional custom network endpoints. */ constructor( - network: Network = Network.Mainnet, - endpoints?: any // Replace `any` with the appropriate type if available + network: Network = Network.MainnetSentry, + endpoints?: NetworkEndpoints ) { - if (network !== Network.Mainnet) { + if (!isMainnet(network)) { throw new GeneralException(new Error('Please switch to mainnet network')) } const networkEndpoints = endpoints || getNetworkEndpoints(network) this.client = new ChainGrpcWasmApi(networkEndpoints.grpc) - this.priceOracleContract = isMainnet(network) ? NEPTUNE_PRICE_CONTRACT : '' + this.priceOracleContract = NEPTUNE_PRICE_CONTRACT } /** @@ -112,12 +113,12 @@ export class NeptuneService { * @param amount Amount to deposit as a string. * @returns MsgExecuteContractCompat message. */ - createDepositMsg( + createDepositMsg({ denom, amount, sender, contractAddress = NEPTUNE_USDT_MARKET_CONTRACT }: { denom: string, amount: string, sender: string, - contractAddress: string = NEPTUNE_USDT_MARKET_CONTRACT, - ): MsgExecuteContractCompat { + contractAddress?: string + }): MsgExecuteContractCompat { return MsgExecuteContractCompat.fromJSON({ sender, contractAddress, From f19f819f1bc9b80a71a582bad81f589505ec590b Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Wed, 13 Nov 2024 10:22:30 +0700 Subject: [PATCH 07/54] fix: trezor exception --- .../wallet-strategy/strategies/Trezor/hw/index.ts | 7 ++++++- packages/wallets/wallet-trezor/src/strategy/hw/index.ts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Trezor/hw/index.ts b/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Trezor/hw/index.ts index 74f62fc88..e8cac0e55 100644 --- a/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Trezor/hw/index.ts +++ b/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Trezor/hw/index.ts @@ -2,6 +2,7 @@ import TrezorConnect from '@trezor/connect-web' import HDNode from 'hdkey' import { DEFAULT_BASE_DERIVATION_PATH } from '../../../constants.js' import AccountManager from './AccountManager.js' +import { WalletException } from '@injectivelabs/exceptions' // @ts-ignore const trezorConnect = TrezorConnect.default || TrezorConnect @@ -17,7 +18,11 @@ export default class TrezorTransport { private hdKey: HDNode = new HDNode() constructor() { - trezorConnect.init({ lazyLoad: true, manifest: TREZOR_CONNECT_MANIFEST }) + try { + trezorConnect.init({ lazyLoad: true, manifest: TREZOR_CONNECT_MANIFEST }) + } catch (e) { + throw new WalletException(e as Error) + } } async connect() { diff --git a/packages/wallets/wallet-trezor/src/strategy/hw/index.ts b/packages/wallets/wallet-trezor/src/strategy/hw/index.ts index dfbf102df..a7a058499 100644 --- a/packages/wallets/wallet-trezor/src/strategy/hw/index.ts +++ b/packages/wallets/wallet-trezor/src/strategy/hw/index.ts @@ -2,6 +2,7 @@ import TrezorConnect from '@trezor/connect-web' import HDNode from 'hdkey' import { DEFAULT_BASE_DERIVATION_PATH } from '@injectivelabs/wallet-base' import AccountManager from './AccountManager.js' +import { WalletException } from '@injectivelabs/exceptions' // @ts-ignore const trezorConnect = TrezorConnect.default || TrezorConnect @@ -17,7 +18,11 @@ export default class TrezorTransport { private hdKey: HDNode = new HDNode() constructor() { - trezorConnect.init({ lazyLoad: true, manifest: TREZOR_CONNECT_MANIFEST }) + try { + trezorConnect.init({ lazyLoad: true, manifest: TREZOR_CONNECT_MANIFEST }) + } catch (e) { + throw new WalletException(e as Error) + } } async connect() { From 7bc68a8f44869e91795413f1db6c658236826f92 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Wed, 13 Nov 2024 03:29:08 +0000 Subject: [PATCH 08/54] chore: release - @injectivelabs/sdk-ts@1.14.20-beta.2 - @injectivelabs/wallet-ts@1.14.20-beta.2 - @injectivelabs/wallet-base@0.0.7-beta.2 - @injectivelabs/wallet-core@0.0.7-beta.2 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.2 - @injectivelabs/wallet-cosmos@0.0.7-beta.2 - @injectivelabs/wallet-cosmostation@0.0.7-beta.2 - @injectivelabs/wallet-evm@0.0.7-beta.2 - @injectivelabs/wallet-ledger@0.0.7-beta.2 - @injectivelabs/wallet-magic@0.0.7-beta.2 - @injectivelabs/wallet-private-key@0.0.7-beta.2 - @injectivelabs/wallet-strategy@0.0.7-beta.2 - @injectivelabs/wallet-trezor@0.0.7-beta.2 - @injectivelabs/wallet-wallet-connect@0.0.7-beta.2 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 7ab46bed1..42a57c000 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.20-beta.1", + "version": "1.14.20-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 077c88567..59df3f563 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.20-beta.1", + "version": "1.14.20-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index b8b47a6eb..a5a633294 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,7 +37,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index b24c8681f..f28cf074e 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 64de73842..61d1aae76 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,13 +37,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", - "@injectivelabs/wallet-core": "^0.0.7-beta.1", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.1", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-core": "^0.0.7-beta.2", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.2", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 7e8feeb44..c2186d770 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -39,10 +39,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 9be8fb1c4..2182ec0e2 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -36,10 +36,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index b61a0c6f7..25cb6b689 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "ethers": "^6.5.1", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 538b2ccb4..de4794873 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 05f9f0838..1eb0be7eb 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 3fee83a4c..29248c29f 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1" + "@injectivelabs/wallet-base": "^0.0.7-beta.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 135069c5d..84d022c39 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,19 +37,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", - "@injectivelabs/wallet-core": "^0.0.7-beta.1", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.1", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.1", - "@injectivelabs/wallet-evm": "^0.0.7-beta.1", - "@injectivelabs/wallet-ledger": "^0.0.7-beta.1", - "@injectivelabs/wallet-magic": "^0.0.7-beta.1", - "@injectivelabs/wallet-private-key": "^0.0.7-beta.1", - "@injectivelabs/wallet-trezor": "^0.0.7-beta.1", - "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-core": "^0.0.7-beta.2", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.2", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.2", + "@injectivelabs/wallet-evm": "^0.0.7-beta.2", + "@injectivelabs/wallet-ledger": "^0.0.7-beta.2", + "@injectivelabs/wallet-magic": "^0.0.7-beta.2", + "@injectivelabs/wallet-private-key": "^0.0.7-beta.2", + "@injectivelabs/wallet-trezor": "^0.0.7-beta.2", + "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 752f70092..bbfe8fee1 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 67a712f94..4c35659e8 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.1", + "version": "0.0.7-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.1", + "@injectivelabs/sdk-ts": "^1.14.20-beta.2", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.1", + "@injectivelabs/wallet-base": "^0.0.7-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From ee7c941bcd6081e3f43aea9ce982f32362348e3a Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 18 Nov 2024 13:57:44 +0700 Subject: [PATCH 09/54] chore: add lending rate query for neptune service --- .../sdk-ts/src/client/wasm/neptune/helper.ts | 9 + .../sdk-ts/src/client/wasm/neptune/index.ts | 8 +- .../wasm/neptune/queries/QueryGetPrices.ts | 6 +- .../wasm/neptune/queries/QueryLendingRates.ts | 23 +++ .../src/client/wasm/neptune/queries/index.ts | 3 +- .../sdk-ts/src/client/wasm/neptune/service.ts | 160 +++++++++++++++--- .../src/client/wasm/neptune/transformer.ts | 19 ++- .../sdk-ts/src/client/wasm/neptune/types.ts | 1 + 8 files changed, 191 insertions(+), 38 deletions(-) create mode 100644 packages/sdk-ts/src/client/wasm/neptune/helper.ts create mode 100644 packages/sdk-ts/src/client/wasm/neptune/queries/QueryLendingRates.ts diff --git a/packages/sdk-ts/src/client/wasm/neptune/helper.ts b/packages/sdk-ts/src/client/wasm/neptune/helper.ts new file mode 100644 index 000000000..37a6443c6 --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/helper.ts @@ -0,0 +1,9 @@ +import { AssetInfo } from './types.js' + +export function getDenom(assetInfo: AssetInfo): string | undefined { + if ('native_token' in assetInfo) { + return assetInfo.native_token.denom + } + + return assetInfo.token.contract_addr +} diff --git a/packages/sdk-ts/src/client/wasm/neptune/index.ts b/packages/sdk-ts/src/client/wasm/neptune/index.ts index 0b5449982..9dd369b0c 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/index.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/index.ts @@ -1,6 +1,6 @@ -export * from './queries' -export * from './transformer' -export * from './types' -export * from './service' +export * from './types.js' +export * from './service.js' +export * from './transformer.js' +export * from './queries/index.js' export const NEPTUNE_PRICE_CONTRACT = 'inj1u6cclz0qh5tep9m2qayry9k97dm46pnlqf8nre' diff --git a/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts index bc12c1548..2c5382a09 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryGetPrices.ts @@ -1,6 +1,6 @@ -import { BaseWasmQuery } from '../../BaseWasmQuery' -import { toBase64 } from '../../../../utils' -import { AssetInfo } from '../types' +import { BaseWasmQuery } from '../../BaseWasmQuery.js' +import { toBase64 } from '../../../../utils/index.js' +import { AssetInfo } from '../types.js' export declare namespace QueryGetPrices { export interface Params { diff --git a/packages/sdk-ts/src/client/wasm/neptune/queries/QueryLendingRates.ts b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryLendingRates.ts new file mode 100644 index 000000000..4a91de1d6 --- /dev/null +++ b/packages/sdk-ts/src/client/wasm/neptune/queries/QueryLendingRates.ts @@ -0,0 +1,23 @@ +import { BaseWasmQuery } from '../../BaseWasmQuery.js'; +import { toBase64 } from '../../../../utils/index.js'; +import { AssetInfo } from '../types.js'; + +export declare namespace QueryGetAllLendingRates { + export interface Params { + limit?: number; + startAfter?: AssetInfo; + } +} + +export class QueryGetAllLendingRates extends BaseWasmQuery { + toPayload() { + const payload = { + get_all_lending_rates: { + ...(this.params.limit !== undefined ? { limit: this.params.limit } : {}), + ...(this.params.startAfter ? { start_after: this.params.startAfter } : {}), + }, + }; + + return toBase64(payload); + } +} diff --git a/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts b/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts index 5ce0e07f3..65c4f006c 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/queries/index.ts @@ -1 +1,2 @@ -export { QueryGetPrices } from './QueryGetPrices' +export { QueryGetPrices } from './QueryGetPrices.js' +export { QueryGetAllLendingRates } from './QueryLendingRates.js' diff --git a/packages/sdk-ts/src/client/wasm/neptune/service.ts b/packages/sdk-ts/src/client/wasm/neptune/service.ts index d82ecedb3..a6461db40 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/service.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/service.ts @@ -1,22 +1,28 @@ import { Network, isMainnet, + NetworkEndpoints, getNetworkEndpoints, } from '@injectivelabs/networks' -import { NetworkEndpoints } from '@injectivelabs/networks' -import { AssetInfo, NEPTUNE_USDT_CW20_CONTRACT, AssetInfoWithPrice } from './types' -import { ChainGrpcWasmApi } from '../../chain' -import { QueryGetPrices } from './queries' -import { PriceQueryTransformer } from './transformer' -import ExecArgNeptuneDeposit from '../../../core/modules/wasm/exec-args/ExecArgNeptuneDeposit' -import ExecArgNeptuneWithdraw from '../../../core/modules/wasm/exec-args/ExecArgNeptuneWithdraw' - -import MsgExecuteContractCompat from '../../../core/modules/wasm/msgs/MsgExecuteContractCompat' - +import { getDenom } from './helper.js' +import { ChainGrpcWasmApi } from '../../chain/index.js' +import { QueryGetPrices, QueryGetAllLendingRates } from './queries/index.js' +import { NeptuneQueryTransformer } from './transformer.js' +import ExecArgNeptuneDeposit from '../../../core/modules/wasm/exec-args/ExecArgNeptuneDeposit.js' +import ExecArgNeptuneWithdraw from '../../../core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.js' +import MsgExecuteContractCompat from '../../../core/modules/wasm/msgs/MsgExecuteContractCompat.js' import { GeneralException } from '@injectivelabs/exceptions' -import { NEPTUNE_PRICE_CONTRACT } from './index' +import { NEPTUNE_PRICE_CONTRACT } from './index.js' +import { + AssetInfo, + AssetInfoWithPrice, + NEPTUNE_USDT_CW20_CONTRACT, +} from './types.js' -const NEPTUNE_USDT_MARKET_CONTRACT = 'inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u' +const NEPTUNE_USDT_MARKET_CONTRACT = + 'inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u' +const NEPTUNE_USDT_INTEREST_CONTRACT = + 'inj1ftech0pdjrjawltgejlmpx57cyhsz6frdx2dhq' export class NeptuneService { private client: ChainGrpcWasmApi @@ -29,7 +35,7 @@ export class NeptuneService { */ constructor( network: Network = Network.MainnetSentry, - endpoints?: NetworkEndpoints + endpoints?: NetworkEndpoints, ) { if (!isMainnet(network)) { throw new GeneralException(new Error('Please switch to mainnet network')) @@ -51,10 +57,11 @@ export class NeptuneService { try { const response = await this.client.fetchSmartContractState( this.priceOracleContract, - queryGetPricesPayload + queryGetPricesPayload, ) - const prices = PriceQueryTransformer.contractPricesResponseToPrices(response) + const prices = + NeptuneQueryTransformer.contractPricesResponseToPrices(response) return prices } catch (error) { @@ -69,8 +76,11 @@ export class NeptuneService { * @param nativeAsset AssetInfo for the native token. * @returns Redemption ratio as a number. */ - async fetchRedemptionRatio({ cw20Asset, nativeAsset }: { - cw20Asset: AssetInfo, + async fetchRedemptionRatio({ + cw20Asset, + nativeAsset, + }: { + cw20Asset: AssetInfo nativeAsset: AssetInfo }): Promise { const prices = await this.fetchPrices([cw20Asset, nativeAsset]) @@ -79,7 +89,9 @@ export class NeptuneService { const [nativePrice] = prices.reverse() if (!cw20Price || !nativePrice) { - throw new GeneralException(new Error('Failed to compute redemption ratio')) + throw new GeneralException( + new Error('Failed to compute redemption ratio'), + ) } return Number(cw20Price.price) / Number(nativePrice.price) @@ -113,10 +125,15 @@ export class NeptuneService { * @param amount Amount to deposit as a string. * @returns MsgExecuteContractCompat message. */ - createDepositMsg({ denom, amount, sender, contractAddress = NEPTUNE_USDT_MARKET_CONTRACT }: { - denom: string, - amount: string, - sender: string, + createDepositMsg({ + denom, + amount, + sender, + contractAddress = NEPTUNE_USDT_MARKET_CONTRACT, + }: { + denom: string + amount: string + sender: string contractAddress?: string }): MsgExecuteContractCompat { return MsgExecuteContractCompat.fromJSON({ @@ -143,10 +160,10 @@ export class NeptuneService { cw20ContractAddress = NEPTUNE_USDT_CW20_CONTRACT, marketContractAddress = NEPTUNE_USDT_MARKET_CONTRACT, }: { - amount: string, - sender: string, - cw20ContractAddress?: string, - marketContractAddress?: string, + amount: string + sender: string + cw20ContractAddress?: string + marketContractAddress?: string }): MsgExecuteContractCompat { return MsgExecuteContractCompat.fromJSON({ sender, @@ -157,4 +174,95 @@ export class NeptuneService { }), }) } + + /** + * Fetch lending rates with optional pagination parameters. + * @param limit Maximum number of lending rates to fetch. + * @param startAfter AssetInfo to start after for pagination. + * @returns Array of [AssetInfo, Decimal256] tuples. + */ + async getLendingRates({ + limit, + startAfter, + contractAddress = NEPTUNE_USDT_INTEREST_CONTRACT, + }: { + limit?: number + startAfter?: AssetInfo + contractAddress?: string + }): Promise> { + const query = new QueryGetAllLendingRates({ limit, startAfter }) + const payload = query.toPayload() + + try { + const response = await this.client.fetchSmartContractState( + contractAddress, + payload, + ) + + const lendingRates = + NeptuneQueryTransformer.contractLendingRatesResponseToLendingRates( + response, + ) + + return lendingRates + } catch (error) { + console.error('Error fetching lending rates:', error) + throw new GeneralException(new Error('Failed to fetch lending rates')) + } + } + + /** + * Fetch the lending rate for a specific denom by querying the smart contract with pagination. + * @param denom The denomination string of the asset to find the lending rate for. + * @returns Lending rate as a string. + */ + async getLendingRateByDenom({ + denom, + contractAddress = NEPTUNE_USDT_INTEREST_CONTRACT, + }: { + denom: string + contractAddress?: string + }): Promise { + const limit = 10 + let startAfter = undefined + + while (true) { + const lendingRates = await this.getLendingRates({ + limit, + startAfter, + contractAddress, + }) + + if (lendingRates.length === 0) { + return + } + + for (const { assetInfo, lendingRate } of lendingRates) { + const currentDenom = getDenom(assetInfo) + + if (currentDenom === denom) { + return lendingRate + } + } + + if (lendingRates.length < limit) { + return + } + + const lastLendingRate = lendingRates[lendingRates.length - 1] + + startAfter = lastLendingRate.assetInfo + } + } + + /** + * Calculates APY from APR and compounding frequency. + * + * @param apr - The annual percentage rate as a decimal (e.g., 0.10 for 10%) + * @param compoundingFrequency - Number of times interest is compounded per year + * @returns The annual percentage yield as a decimal + */ + calculateAPY(apr: number, compoundingFrequency = 365): number { + return Math.pow(1 + apr / compoundingFrequency, compoundingFrequency) - 1 + } } diff --git a/packages/sdk-ts/src/client/wasm/neptune/transformer.ts b/packages/sdk-ts/src/client/wasm/neptune/transformer.ts index 5fe81126a..e889940db 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/transformer.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/transformer.ts @@ -1,8 +1,8 @@ -import { WasmContractQueryResponse } from '../types' -import { toUtf8 } from '../../../utils' -import { AssetInfo, PriceResponse } from './types' +import { WasmContractQueryResponse } from '../types.js' +import { toUtf8 } from '../../../utils/index.js' +import { AssetInfo, PriceResponse, LendingRateResponse } from './types.js' -export class PriceQueryTransformer { +export class NeptuneQueryTransformer { static contractPricesResponseToPrices( response: WasmContractQueryResponse, ): Array<{ assetInfo: AssetInfo; price: string }> { @@ -13,4 +13,15 @@ export class PriceQueryTransformer { price: priceInfo.price, })) } + + static contractLendingRatesResponseToLendingRates( + response: WasmContractQueryResponse, + ): Array<{ assetInfo: AssetInfo; lendingRate: string }> { + const data = JSON.parse(toUtf8(response.data)) as LendingRateResponse + + return data.map(([assetInfo, lendingRate]) => ({ + assetInfo, + lendingRate, + })) + } } diff --git a/packages/sdk-ts/src/client/wasm/neptune/types.ts b/packages/sdk-ts/src/client/wasm/neptune/types.ts index 9a4807bbc..19c15a78d 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/types.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/types.ts @@ -13,6 +13,7 @@ export type AssetInfo = export type AssetInfoWithPrice = {assetInfo: AssetInfo, price: string } export type PriceResponse = Array<[AssetInfo, { price: string }]> +export type LendingRateResponse = Array<[AssetInfo, string]> export const NEPTUNE_USDT_CW20_CONTRACT = 'inj1cy9hes20vww2yr6crvs75gxy5hpycya2hmjg9s' From a563e21852a2de807b8afd8b3372af8e05a4345b Mon Sep 17 00:00:00 2001 From: shane-moore Date: Mon, 18 Nov 2024 19:02:49 +0700 Subject: [PATCH 10/54] chore: add neptune docs --- .gitbook/SUMMARY.md | 193 ++++++++-------- .gitbook/contracts/README.md | 3 +- .gitbook/contracts/neptune-service.md | 211 ++++++++++++++++++ .../sdk-ts/src/client/wasm/neptune/service.ts | 10 +- 4 files changed, 315 insertions(+), 102 deletions(-) create mode 100644 .gitbook/contracts/neptune-service.md diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index 39a91f133..d26f82e85 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -1,98 +1,99 @@ # Table of contents -* [Getting Started](README.md) - * [Technical Concepts](readme/technical-concepts.md) - * [Application Concepts](readme/application-concepts.md) - * [Assets](readme/assets/README.md) - * [Creating Tokens](readme/assets/creating-tokens.md) - * [Denom Client (deprecated)](readme/assets/denom-client.md) - * [Injective Lists](readme/assets/injective-list.md) - * [Networks](readme/networks.md) - * [CosmJs Support](readme/getting-started-cosmjs.md) - * [Running examples](readme/running-examples.md) -* [Wallet](wallet/README.md) - * [Accounts](wallet/wallet-accounts.md) - * [Wallet Connections](wallet/wallet-connections.md) - * [Wallet Strategy](wallet/wallet-wallet-strategy.md) - * [Offchain (Arbitrary) Data](wallet/offchain-arbitrary-data.md) -* [Querying](querying/README.md) - * [Indexer](querying/querying-api/README.md) - * [Account](querying/querying-api/querying-indexer-account.md) - * [Auction](querying/querying-api/querying-indexer-auction.md) - * [Derivatives](querying/querying-api/querying-indexer-derivatives.md) - * [Explorer](querying/querying-api/querying-indexer-explorer.md) - * [Insurance Funds](querying/querying-api/querying-indexer-insurance-funds.md) - * [Markets](querying/querying-api/querying-indexer-markets.md) - * [Leaderboard](querying/querying-api/querying-indexer-leaderboard.md) - * [Mito](querying/querying-api/querying-indexer-mito.md) - * [Oracle](querying/querying-api/querying-indexer-oracle.md) - * [Portfolio](querying/querying-api/querying-indexer-portfolio.md) - * [Spot](querying/querying-api/querying-indexer-spot.md) - * [Web3Gw Transactions](querying/querying-api/querying-indexer-transaction.md) - * [Streaming](querying/querying-api/streaming/README.md) - * [Account](querying/querying-api/streaming/streaming-indexer-account.md) - * [Auction](querying/querying-api/streaming/streaming-indexer-auction.md) - * [Derivatives](querying/querying-api/streaming/streaming-indexer-derivatives.md) - * [Oracle](querying/querying-api/streaming/streaming-indexer-oracle.md) - * [Portfolio](querying/querying-api/streaming/streaming-indexer-portfolio.md) - * [Spot](querying/querying-api/streaming/streaming-indexer-spot.md) - * [Explorer](querying/querying-api/streaming/streaming-indexer-explorer.md) - * [Chain](querying/querying-chain/README.md) - * [Auction](querying/querying-chain/querying-chain-auction-module.md) - * [Auth](querying/querying-chain/querying-chain-auth-module.md) - * [Bank](querying/querying-chain/querying-chain-bank-module.md) - * [Distribution](querying/querying-chain/querying-chain-distribution.md) - * [Exchange](querying/querying-chain/querying-chain-exchange.md) - * [Governance](querying/querying-chain/querying-chain-governance.md) - * [IBC](querying/querying-chain/querying-chain-ibc.md) - * [Mint](querying/querying-chain/querying-chain-mint.md) - * [Insurance Funds](querying/querying-chain/querying-chain-insurance-funds.md) - * [Oracle](querying/querying-chain/querying-chain-oracle.md) - * [Peggy](querying/querying-chain/querying-chain-peggy.md) - * [Permissions](querying/querying-chain/querying-chain-permissions.md) - * [Staking](querying/querying-chain/querying-chain-staking.md) - * [Tendermint](querying/querying-chain/querying-chain-tendermint.md) - * [Wasm](querying/querying-chain/querying-chain-wasm.md) - * [WasmX](querying/querying-chain/querying-chain-wasmx.md) - * [Token Factory](querying/querying-chain/token-factory.md) - * [Ethereum (GraphQL)](querying/querying-ethereum.md) -* [Transactions](transactions/README.md) - * [Cosmos](transactions/transactions-cosmos/README.md) - * [Ledger through Keplr Wallet](transactions/transactions-cosmos/ledger-through-keplr-wallet.md) - * [Ethereum](transactions/ethereum.md) - * [Ethereum Ledger](transactions/ethereum-ledger.md) - * [MsgBroadcaster](transactions/msgbroadcaster.md) - * [Private Key](transactions/private-key.md) - * [Web3 Gateway](transactions/web3-gateway.md) -* [Core Modules](core-modules/README.md) - * [Auction](core-modules/auction.md) - * [AuthZ](core-modules/authz.md) - * [Bank](core-modules/bank.md) - * [Distribution](core-modules/distribution.md) - * [Exchange](core-modules/exchange.md) - * [Feegrant](core-modules/feegrant.md) - * [Governance](core-modules/governance.md) - * [IBC](core-modules/ibc.md) - * [Insurance](core-modules/insurance.md) - * [Peggy](core-modules/peggy.md) - * [Permissions](core-modules/permissions.md) - * [Staking](core-modules/staking.md) - * [Tokenfactory](core-modules/token-factory.md) - * [Wasm](core-modules/wasm.md) -* [Bridge](bridge/README.md) - * [Ethereum](bridge/ethereum.md) - * [IBC](bridge/ibc.md) - * [Wormhole](bridge/wormhole.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) - * [dApps Examples](building-dapps/dapps-examples/README.md) - * [Smart Contract](building-dapps/smart-contract.md) - * [DEX](building-dapps/dex.md) - * [Bridge](building-dapps/bridge.md) - * [Simple HTML example with Webpack](building-dapps/dapps-examples/simple-html-example-with-webpack.md) -* [Calculations](calculations/README.md) - * [Min Price Tick Size](calculations/min-price-tick-size.md) - * [Min Quantity Tick Size](calculations/min-quantity-tick-size.md) +- [Getting Started](README.md) + - [Technical Concepts](readme/technical-concepts.md) + - [Application Concepts](readme/application-concepts.md) + - [Assets](readme/assets/README.md) + - [Creating Tokens](readme/assets/creating-tokens.md) + - [Denom Client (deprecated)](readme/assets/denom-client.md) + - [Injective Lists](readme/assets/injective-list.md) + - [Networks](readme/networks.md) + - [CosmJs Support](readme/getting-started-cosmjs.md) + - [Running examples](readme/running-examples.md) +- [Wallet](wallet/README.md) + - [Accounts](wallet/wallet-accounts.md) + - [Wallet Connections](wallet/wallet-connections.md) + - [Wallet Strategy](wallet/wallet-wallet-strategy.md) + - [Offchain (Arbitrary) Data](wallet/offchain-arbitrary-data.md) +- [Querying](querying/README.md) + - [Indexer](querying/querying-api/README.md) + - [Account](querying/querying-api/querying-indexer-account.md) + - [Auction](querying/querying-api/querying-indexer-auction.md) + - [Derivatives](querying/querying-api/querying-indexer-derivatives.md) + - [Explorer](querying/querying-api/querying-indexer-explorer.md) + - [Insurance Funds](querying/querying-api/querying-indexer-insurance-funds.md) + - [Markets](querying/querying-api/querying-indexer-markets.md) + - [Leaderboard](querying/querying-api/querying-indexer-leaderboard.md) + - [Mito](querying/querying-api/querying-indexer-mito.md) + - [Oracle](querying/querying-api/querying-indexer-oracle.md) + - [Portfolio](querying/querying-api/querying-indexer-portfolio.md) + - [Spot](querying/querying-api/querying-indexer-spot.md) + - [Web3Gw Transactions](querying/querying-api/querying-indexer-transaction.md) + - [Streaming](querying/querying-api/streaming/README.md) + - [Account](querying/querying-api/streaming/streaming-indexer-account.md) + - [Auction](querying/querying-api/streaming/streaming-indexer-auction.md) + - [Derivatives](querying/querying-api/streaming/streaming-indexer-derivatives.md) + - [Oracle](querying/querying-api/streaming/streaming-indexer-oracle.md) + - [Portfolio](querying/querying-api/streaming/streaming-indexer-portfolio.md) + - [Spot](querying/querying-api/streaming/streaming-indexer-spot.md) + - [Explorer](querying/querying-api/streaming/streaming-indexer-explorer.md) + - [Chain](querying/querying-chain/README.md) + - [Auction](querying/querying-chain/querying-chain-auction-module.md) + - [Auth](querying/querying-chain/querying-chain-auth-module.md) + - [Bank](querying/querying-chain/querying-chain-bank-module.md) + - [Distribution](querying/querying-chain/querying-chain-distribution.md) + - [Exchange](querying/querying-chain/querying-chain-exchange.md) + - [Governance](querying/querying-chain/querying-chain-governance.md) + - [IBC](querying/querying-chain/querying-chain-ibc.md) + - [Mint](querying/querying-chain/querying-chain-mint.md) + - [Insurance Funds](querying/querying-chain/querying-chain-insurance-funds.md) + - [Oracle](querying/querying-chain/querying-chain-oracle.md) + - [Peggy](querying/querying-chain/querying-chain-peggy.md) + - [Permissions](querying/querying-chain/querying-chain-permissions.md) + - [Staking](querying/querying-chain/querying-chain-staking.md) + - [Tendermint](querying/querying-chain/querying-chain-tendermint.md) + - [Wasm](querying/querying-chain/querying-chain-wasm.md) + - [WasmX](querying/querying-chain/querying-chain-wasmx.md) + - [Token Factory](querying/querying-chain/token-factory.md) + - [Ethereum (GraphQL)](querying/querying-ethereum.md) +- [Transactions](transactions/README.md) + - [Cosmos](transactions/transactions-cosmos/README.md) + - [Ledger through Keplr Wallet](transactions/transactions-cosmos/ledger-through-keplr-wallet.md) + - [Ethereum](transactions/ethereum.md) + - [Ethereum Ledger](transactions/ethereum-ledger.md) + - [MsgBroadcaster](transactions/msgbroadcaster.md) + - [Private Key](transactions/private-key.md) + - [Web3 Gateway](transactions/web3-gateway.md) +- [Core Modules](core-modules/README.md) + - [Auction](core-modules/auction.md) + - [AuthZ](core-modules/authz.md) + - [Bank](core-modules/bank.md) + - [Distribution](core-modules/distribution.md) + - [Exchange](core-modules/exchange.md) + - [Feegrant](core-modules/feegrant.md) + - [Governance](core-modules/governance.md) + - [IBC](core-modules/ibc.md) + - [Insurance](core-modules/insurance.md) + - [Peggy](core-modules/peggy.md) + - [Permissions](core-modules/permissions.md) + - [Staking](core-modules/staking.md) + - [Tokenfactory](core-modules/token-factory.md) + - [Wasm](core-modules/wasm.md) +- [Bridge](bridge/README.md) + - [Ethereum](bridge/ethereum.md) + - [IBC](bridge/ibc.md) + - [Wormhole](bridge/wormhole.md) +- [Contracts](contracts/README.md) + - [Injective Name Service](contracts/injective-name-service.md) + - [Neptune Service](contracts/neptune-service.md) +- [Building dApps](building-dapps/README.md) + - [Configuring Nuxt](building-dapps/configuring-nuxt.md) + - [Configuring React](building-dapps/configuring-react.md) + - [dApps Examples](building-dapps/dapps-examples/README.md) + - [Smart Contract](building-dapps/smart-contract.md) + - [DEX](building-dapps/dex.md) + - [Bridge](building-dapps/bridge.md) + - [Simple HTML example with Webpack](building-dapps/dapps-examples/simple-html-example-with-webpack.md) +- [Calculations](calculations/README.md) + - [Min Price Tick Size](calculations/min-price-tick-size.md) + - [Min Quantity Tick Size](calculations/min-quantity-tick-size.md) diff --git a/.gitbook/contracts/README.md b/.gitbook/contracts/README.md index 293ca8678..03977430f 100644 --- a/.gitbook/contracts/README.md +++ b/.gitbook/contracts/README.md @@ -1,6 +1,6 @@ # Contracts -#### [What is CosmWasm?](./#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. @@ -9,3 +9,4 @@ CosmWasm is a novel smart contracting platform built for the Cosmos ecosystem. Y | Topic | Description | | --------------------------------------------------- | ---------------------- | | [Injective Name Service](injective-name-service.md) | Injective Name Service | +| [Neptune Service](neptune-service.md) | Injective Name Service | diff --git a/.gitbook/contracts/neptune-service.md b/.gitbook/contracts/neptune-service.md new file mode 100644 index 000000000..5a44407c7 --- /dev/null +++ b/.gitbook/contracts/neptune-service.md @@ -0,0 +1,211 @@ +# NeptuneService + +`NeptuneService` is a straightforward tool that interacts with the Neptune CosmWasm smart contracts on Injective. It allows you to fetch asset prices, calculate exchange ratios, create deposit and withdraw messages, and retrieve lending rates. + +## Example Code Snippets + +Below are examples of how to use each method in the `NeptuneService` class. + +### Initialize NeptuneService + +Before using the service, create an instance of `NeptuneService`. + +```ts +import { NeptuneService } from '@injectivelabs/sdk-ts' +import { Network } from '@injectivelabs/networks' + +// Create a NeptuneService instance using the mainnet +const neptuneService = new NeptuneService(Network.MainnetSentry) +``` + +### Fetch Prices + +- Get the prices of specific assets from the Neptune Price Oracle contract. Use native_token for bank denoms and token with contract_addr for CW20 tokens. + +```ts +const assets = [ + { + native_token: { + denom: 'peggy0xdAC17F958D2ee523a2206206994597C13D831ec7', // peggy USDT bank denom + }, + }, + { + token: { + contract_addr: 'inj1cy9hes20vww2yr6crvs75gxy5hpycya2hmjg9s', // nUSDT contract address + }, + }, +] + +const prices = await neptuneService.fetchPrices(assets) + +console.log(prices) +``` + +### Fetch Redemption Ratio + +- Calculate the redemption ratio between nUSDT (CW20 token) and USDT (bank token). + +```ts +const cw20Asset = { + token: { + contract_addr: 'inj1cy9hes20vww2yr6crvs75gxy5hpycya2hmjg9s', // nUSDT + }, +} + +const nativeAsset = { + native_token: { + denom: 'peggy0xdAC17F958D2ee523a2206206994597C13D831ec7', // USDT + }, +} + +const redemptionRatio = await neptuneService.fetchRedemptionRatio({ + cw20Asset, + nativeAsset, +}) + +console.log(`Redemption Ratio: ${redemptionRatio}`) +``` + +### Convert CW20 nUSDT to Bank USDT + +- Calculate the amount in bank USDT from a given amount of CW20 nUSDT using the redemption ratio. + +```ts +const amountCW20 = 1000 // Amount in nUSDT +const redemptionRatio = 0.95 // Obtained from fetchRedemptionRatio + +const bankAmount = neptuneService.calculateBankAmount( + amountCW20, + redemptionRatio, +) + +console.log(`Bank USDT Amount: ${bankAmount}`) +``` + +### Convert Bank USDT to CW20 nUSDT + +- Calculate the amount in CW20 nUSDT from a given amount of bank USDT using the redemption ratio. + +```ts +const amountBank = 950 // Amount in USDT +const redemptionRatio = 0.95 // Obtained from fetchRedemptionRatio + +const cw20Amount = neptuneService.calculateCw20Amount( + amountBank, + redemptionRatio, +) + +console.log(`CW20 nUSDT Amount: ${cw20Amount}`) +``` + +### Fetch Lending Rates + +- Retrieve lending rates for the different lending markets in neptune's lending market smart contract + +```ts +const lendingRates = await neptuneService.getLendingRates({ + limit: 10, // Optional: number of rates to fetch +}) + +console.log(lendingRates) +``` + +### Fetch Lending Rate by Denomination + +- Get the lending rate for USDT for example + +```ts +const denom = 'peggy0xdAC17F958D2ee523a2206206994597C13D831ec7' // USDT denom + +const lendingRate = await neptuneService.getLendingRateByDenom({ denom }) + +if (lendingRate) { + console.log(`Lending Rate for USDT: ${lendingRate}`) +} else { + console.log('Lending Rate for USDT not found') +} +``` + +### Calculate Annual Percentage Yield (APY) + +- Convert the annual percentage rate (APR) to the continuously compounded annual percentage yield (APY). Make sure to use the lending rate retried from neptuneService.getLendingRateByDenom to use as the apr. + +```ts +const apr = 0.1 // 10% APR + +const apy = neptuneService.calculateAPY(apr) + +console.log(`APY (continuously compounded): ${(apy * 100).toFixed(2)}%`) +``` + +### Create and Broadcast a Deposit Message + +- Create a message to deposit USDT into the Neptune USDT lending market and broadcast it to the network. + +```ts +import { + MsgBroadcasterWithPk, + MsgExecuteContractCompat, +} from '@injectivelabs/sdk-ts' +import { BigNumberInBase } from '@injectivelabs/utils' + +const privateKey = '0x...' +const injectiveAddress = 'inj1...' +const denom = 'peggy0xdAC17F958D2ee523a2206206994597C13D831ec7' // USDT denom + +const amountInUsdt = '100' + +// Convert the amount to the smallest unit (USDT has 6 decimals) +const amount = new BigNumberInBase(amountInUsdt).toWei(6).toFixed() + +const depositMsg = neptuneService.createDepositMsg({ + denom, + amount, + sender: injectiveAddress, +}) + +const txHash = await new MsgBroadcasterWithPk({ + privateKey, + network: Network.MainnetSentry, +}).broadcast({ + msgs: depositMsg, +}) + +console.log(txHash) +``` + +### Create and Broadcast a Withdraw Message + +- Create a message to withdraw USDT from the Neptune USDT lending market and broadcast it to the network + +```ts +import { + Network, + MsgBroadcasterWithPk, + MsgExecuteContractCompat, +} from '@injectivelabs/sdk-ts' +import { BigNumberInBase } from '@injectivelabs/utils' + +const privateKey = '0x...' // Your private key +const injectiveAddress = 'inj1...' // Your Injective address + +// Define the amount to withdraw (e.g., 100 nUSDT) +const amountInNusdt = '100' + +// Convert the amount to the smallest unit (nUSDT has 6 decimals) +const amount = new BigNumberInBase(amountInNusdt).toWei(6).toFixed() + +const withdrawMsg = neptuneService.createWithdrawMsg({ + amount, + sender: injectiveAddress, +}) + +const txHash = await new MsgBroadcasterWithPk({ + privateKey, + network: Network.MainnetSentry, +}).broadcast({ + msgs: withdrawMsg, +}) + +console.log(`Transaction Hash: ${txHash}`) +``` diff --git a/packages/sdk-ts/src/client/wasm/neptune/service.ts b/packages/sdk-ts/src/client/wasm/neptune/service.ts index a6461db40..699b70c1e 100644 --- a/packages/sdk-ts/src/client/wasm/neptune/service.ts +++ b/packages/sdk-ts/src/client/wasm/neptune/service.ts @@ -21,7 +21,7 @@ import { const NEPTUNE_USDT_MARKET_CONTRACT = 'inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u' -const NEPTUNE_USDT_INTEREST_CONTRACT = +const NEPTUNE_INTEREST_CONTRACT = 'inj1ftech0pdjrjawltgejlmpx57cyhsz6frdx2dhq' export class NeptuneService { @@ -184,7 +184,7 @@ export class NeptuneService { async getLendingRates({ limit, startAfter, - contractAddress = NEPTUNE_USDT_INTEREST_CONTRACT, + contractAddress = NEPTUNE_INTEREST_CONTRACT, }: { limit?: number startAfter?: AssetInfo @@ -218,7 +218,7 @@ export class NeptuneService { */ async getLendingRateByDenom({ denom, - contractAddress = NEPTUNE_USDT_INTEREST_CONTRACT, + contractAddress = NEPTUNE_INTEREST_CONTRACT, }: { denom: string contractAddress?: string @@ -262,7 +262,7 @@ export class NeptuneService { * @param compoundingFrequency - Number of times interest is compounded per year * @returns The annual percentage yield as a decimal */ - calculateAPY(apr: number, compoundingFrequency = 365): number { - return Math.pow(1 + apr / compoundingFrequency, compoundingFrequency) - 1 + calculateAPY(apr: number): number { + return Math.exp(apr) - 1 } } From 4f9415bbd398b8a510513694a34279b265975e47 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Mon, 18 Nov 2024 12:20:38 +0000 Subject: [PATCH 11/54] chore: release - @injectivelabs/sdk-ts@1.14.20-beta.3 - @injectivelabs/wallet-ts@1.14.20-beta.3 - @injectivelabs/wallet-base@0.0.7-beta.3 - @injectivelabs/wallet-core@0.0.7-beta.3 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.3 - @injectivelabs/wallet-cosmos@0.0.7-beta.3 - @injectivelabs/wallet-cosmostation@0.0.7-beta.3 - @injectivelabs/wallet-evm@0.0.7-beta.3 - @injectivelabs/wallet-ledger@0.0.7-beta.3 - @injectivelabs/wallet-magic@0.0.7-beta.3 - @injectivelabs/wallet-private-key@0.0.7-beta.3 - @injectivelabs/wallet-strategy@0.0.7-beta.3 - @injectivelabs/wallet-trezor@0.0.7-beta.3 - @injectivelabs/wallet-wallet-connect@0.0.7-beta.3 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 42a57c000..ab62118e2 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.20-beta.2", + "version": "1.14.20-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 59df3f563..7af532087 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.20-beta.2", + "version": "1.14.20-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index a5a633294..8468cf515 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,7 +37,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index f28cf074e..3fc9b3bca 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 61d1aae76..91b7a300d 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,13 +37,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", - "@injectivelabs/wallet-core": "^0.0.7-beta.2", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.2", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-core": "^0.0.7-beta.3", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.3", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.3", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index c2186d770..c37207775 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -39,10 +39,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 2182ec0e2..081dcd033 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -36,10 +36,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 25cb6b689..9a3f0b02a 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "ethers": "^6.5.1", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index de4794873..a56f6f346 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 1eb0be7eb..8ba99c00b 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 29248c29f..a91bcd478 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2" + "@injectivelabs/wallet-base": "^0.0.7-beta.3" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 84d022c39..367c6f44d 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,19 +37,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", - "@injectivelabs/wallet-core": "^0.0.7-beta.2", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.2", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.2", - "@injectivelabs/wallet-evm": "^0.0.7-beta.2", - "@injectivelabs/wallet-ledger": "^0.0.7-beta.2", - "@injectivelabs/wallet-magic": "^0.0.7-beta.2", - "@injectivelabs/wallet-private-key": "^0.0.7-beta.2", - "@injectivelabs/wallet-trezor": "^0.0.7-beta.2", - "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-core": "^0.0.7-beta.3", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.3", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.3", + "@injectivelabs/wallet-evm": "^0.0.7-beta.3", + "@injectivelabs/wallet-ledger": "^0.0.7-beta.3", + "@injectivelabs/wallet-magic": "^0.0.7-beta.3", + "@injectivelabs/wallet-private-key": "^0.0.7-beta.3", + "@injectivelabs/wallet-trezor": "^0.0.7-beta.3", + "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.3", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index bbfe8fee1..6ab1a164f 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 4c35659e8..a82e99324 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.2", + "version": "0.0.7-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.2", + "@injectivelabs/sdk-ts": "^1.14.20-beta.3", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.2", + "@injectivelabs/wallet-base": "^0.0.7-beta.3", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 2f931015497844197030f9ddf77fe6fd9b752b80 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Thu, 21 Nov 2024 22:12:01 +0100 Subject: [PATCH 12/54] chore: add support for typed authz grants --- packages/sdk-ts/package.json | 2 +- .../sdk-ts/src/core/modules/authz/index.ts | 3 +- .../src/core/modules/authz/msgs/MsgExec.ts | 4 +- .../src/core/modules/authz/msgs/MsgGrant.ts | 3 + .../authz/msgs/MsgGrantWithAuthorization.ts | 152 ++++++++++++++++++ .../core/modules/authz/msgs/grants/Base.ts | 15 ++ .../grants/ContractExecutionAuthorization.ts | 135 ++++++++++++++++ .../authz/msgs/grants/GenericAuthorization.ts | 98 +++++++++++ .../core/modules/authz/msgs/grants/index.ts | 4 + .../sdk-ts/src/core/modules/authz/types.ts | 1 + packages/sdk-ts/src/core/modules/msgs.ts | 2 + proto/core/stub/index.ts.template | 1 + yarn.lock | 8 +- 13 files changed, 419 insertions(+), 9 deletions(-) create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index ab62118e2..974e53ef2 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -39,7 +39,7 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/core-proto-ts": "1.13.3", + "@injectivelabs/core-proto-ts": "1.13.4", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", diff --git a/packages/sdk-ts/src/core/modules/authz/index.ts b/packages/sdk-ts/src/core/modules/authz/index.ts index bb2179bde..c5b00a9a1 100644 --- a/packages/sdk-ts/src/core/modules/authz/index.ts +++ b/packages/sdk-ts/src/core/modules/authz/index.ts @@ -1,7 +1,8 @@ import MsgGrant from './msgs/MsgGrant.js' import MsgRevoke from './msgs/MsgRevoke.js' import MsgAuthzExec from './msgs/MsgExec.js' +import MsgGrantWithAuthorization from './msgs/MsgGrantWithAuthorization.js' -export { MsgGrant, MsgRevoke, MsgAuthzExec } +export { MsgGrant, MsgRevoke, MsgAuthzExec, MsgGrantWithAuthorization } export * from './utils.js' export * from './types.js' diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.ts index 4b2fd01cc..5b6196f5f 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.ts @@ -72,9 +72,7 @@ export default class MsgExec extends MsgBase< type: 'cosmos-sdk/MsgExec', value: { grantee: params.grantee, - msgs: msgs.map((msg) => { - return msg.toEip712() - }), + msgs: msgs.map((msg) => msg.toEip712()), }, } } diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrant.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrant.ts index f0aa93824..e249a4dd5 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrant.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrant.ts @@ -10,6 +10,9 @@ import { GeneralException } from '@injectivelabs/exceptions' import { getGenericAuthorizationFromMessageType } from '../utils.js' import { GrantAuthorizationType } from './../types.js' +/** + * @deprecated please use MsgGrantWithAuthorization + */ export declare namespace MsgGrant { export interface Params { /** diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts new file mode 100644 index 000000000..a8dcebbc7 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts @@ -0,0 +1,152 @@ +import { MsgBase } from '../../MsgBase.js' +import snakecaseKeys from 'snakecase-keys' +import { + CosmosAuthzV1Beta1Tx, + CosmosAuthzV1Beta1Authz, + GoogleProtobufTimestamp, +} from '@injectivelabs/core-proto-ts' +import { BaseAuthorization } from './grants/Base.js' + +export declare namespace MsgGrantWithAuthorization { + export interface Params { + authorization: BaseAuthorization + grantee: string + granter: string + expiration?: number + expiryInYears?: number + expiryInSeconds?: number + } + + export type Proto = CosmosAuthzV1Beta1Tx.MsgGrant + + export type Object = Omit & { + msgs: any + } +} + +/** + * @category Messages + */ +export default class MsgGrantWithAuthorization extends MsgBase< + MsgGrantWithAuthorization.Params, + MsgGrantWithAuthorization.Proto +> { + static fromJSON( + params: MsgGrantWithAuthorization.Params, + ): MsgGrantWithAuthorization { + return new MsgGrantWithAuthorization(params) + } + + public toProto() { + const { params } = this + + const timestamp = this.getTimestamp() + const grant = CosmosAuthzV1Beta1Authz.Grant.create() + + grant.authorization = params.authorization.toAny() + grant.expiration = new Date(Number(timestamp.seconds) * 1000) + + const message = CosmosAuthzV1Beta1Tx.MsgGrant.create() + + message.granter = params.granter + message.grantee = params.grantee + message.grant = grant + + return CosmosAuthzV1Beta1Tx.MsgGrant.fromJSON(message) + } + + public toData() { + const proto = this.toProto() + + return { + '@type': '/cosmos.authz.v1beta1.MsgGrant', + ...proto, + } + } + + public toAmino() { + const { params } = this + + const proto = this.toProto() + const timestamp = this.getTimestamp() + const message = proto + + const messageWithAuthorizationType = snakecaseKeys({ + ...message, + grant: { + authorization: params.authorization.toAmino(), + expiration: new Date(Number(timestamp.seconds) * 1000), + }, + }) + + return { + type: 'cosmos-sdk/MsgGrant', + value: + messageWithAuthorizationType as unknown as MsgGrantWithAuthorization.Object, + } + } + + public toDirectSign() { + const proto = this.toProto() + + return { + type: '/cosmos.authz.v1beta1.MsgGrant', + message: proto, + } + } + + public toWeb3() { + const { params } = this + const amino = this.toAmino() + const timestamp = this.getTimestamp() + + const messageWithAuthorizationType = { + granter: amino.value.granter, + grantee: amino.value.grantee, + grant: { + authorization: params.authorization.toWeb3(), + expiration: new Date(Number(timestamp.seconds) * 1000), + }, + } + + return { + '@type': '/cosmos.authz.v1beta1.MsgGrant', + ...messageWithAuthorizationType, + } + } + + private getTimestamp() { + const { params } = this + + if (params.expiration) { + const timestamp = GoogleProtobufTimestamp.Timestamp.create() + + timestamp.seconds = params.expiration.toString() + + return timestamp + } + + const defaultExpiryYears = params.expiryInSeconds ? 0 : 5 + const dateNow = new Date() + const expiration = new Date( + dateNow.getFullYear() + (params.expiryInYears || defaultExpiryYears), + dateNow.getMonth(), + dateNow.getDate(), + ) + + const timestamp = GoogleProtobufTimestamp.Timestamp.create() + + const timestampInSeconds = ( + expiration.getTime() / 1000 + + (params.expiryInSeconds || 0) + ).toString() + + timestamp.seconds = timestampInSeconds + + return timestamp + } + + public toBinary(): Uint8Array { + return CosmosAuthzV1Beta1Tx.MsgGrant.encode(this.toProto()).finish() + } +} diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts new file mode 100644 index 000000000..682191900 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts @@ -0,0 +1,15 @@ +import { GoogleProtobufAny } from '@injectivelabs/core-proto-ts' + +export abstract class BaseAuthorization { + params: Params + + constructor(params: Params) { + this.params = params + } + + public abstract toAny(): GoogleProtobufAny.Any + + public abstract toAmino(): DataRepresentation + + public abstract toWeb3(): DataRepresentation +} diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts new file mode 100644 index 000000000..dd16ad3f0 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts @@ -0,0 +1,135 @@ +import { + GoogleProtobufAny, + CosmwasmWasmV1Authz, +} from '@injectivelabs/core-proto-ts' +import { BaseAuthorization } from './Base.js' + +export declare namespace ContractExecutionAuthorization { + export interface Params { + contract: string + limit?: { + maxCalls: number + } + filter?: { + acceptedMessagesKeys: string[] + } + } + + export type Any = GoogleProtobufAny.Any + + export type Amino = Object +} + +/** + * @category Contract Exec Arguments + */ +export default class ContractExecutionAuthorization extends BaseAuthorization< + ContractExecutionAuthorization.Params, + ContractExecutionAuthorization.Amino +> { + static fromJSON( + params: ContractExecutionAuthorization.Params, + ): ContractExecutionAuthorization { + return new ContractExecutionAuthorization(params) + } + + public toAny(): GoogleProtobufAny.Any { + const { params } = this + + const authorization = + CosmwasmWasmV1Authz.ContractExecutionAuthorization.create() + const grant = CosmwasmWasmV1Authz.ContractGrant.create() + + grant.contract = params.contract + + if (params.limit) { + const limit = CosmwasmWasmV1Authz.MaxCallsLimit.create() + + limit.remaining = params.limit.maxCalls.toString() + + const any = GoogleProtobufAny.Any.create() + any.typeUrl = '/cosmwasm.wasm.v1.MaxCallsLimit' + any.value = CosmwasmWasmV1Authz.MaxCallsLimit.encode(limit).finish() + + grant.limit = any + } + + if (params.filter) { + const filter = CosmwasmWasmV1Authz.AcceptedMessageKeysFilter.create() + + filter.keys = params.filter.acceptedMessagesKeys + + const any = GoogleProtobufAny.Any.create() + any.typeUrl = '/cosmwasm.wasm.v1.AcceptedMessageKeysFilter' + any.value = + CosmwasmWasmV1Authz.AcceptedMessageKeysFilter.encode(filter).finish() + + grant.limit = any + } + + authorization.grants = [grant] + + const any = GoogleProtobufAny.Any.create() + any.typeUrl = '/cosmwasm.wasm.v1.ContractExecutionAuthorization' + any.value = + CosmwasmWasmV1Authz.ContractExecutionAuthorization.encode( + authorization, + ).finish() + + return any + } + + public toAmino(): ContractExecutionAuthorization.Amino { + const { params } = this + + const grant = {} as Record + + grant.contract = params.contract + + if (params.limit) { + grant.limit = { + type: 'wasm/MaxCallsLimit', + remaining: params.limit.maxCalls, + } + } + + if (params.filter) { + grant.filter = { + type: 'wasm/AcceptedMessageKeysFilter', + keys: params.filter.acceptedMessagesKeys, + } + } + + return { + type: 'wasm/ContractExecutionAuthorization', + grants: [grant], + } + } + + public toWeb3(): ContractExecutionAuthorization.Amino { + const { params } = this + + const grant = {} as Record + + grant.contract = params.contract + + if (params.limit) { + grant.limit = { + '@type': '/cosmwasm.wasm.v1.MaxCallsLimit', + remaining: params.limit.maxCalls, + } + } + + if (params.filter) { + grant.filter = { + '@type': '/cosmwasm.wasm.v1.AcceptedMessageKeysFilter', + keys: params.filter.acceptedMessagesKeys, + } + } + + return { + '@type': '/cosmwasm.wasm.v1.ContractExecutionAuthorization', + grants: [grant], + } + } +} diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts new file mode 100644 index 000000000..5a6f6afa1 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts @@ -0,0 +1,98 @@ +import { + GoogleProtobufAny, + CosmosAuthzV1Beta1Authz, +} from '@injectivelabs/core-proto-ts' +import { BaseAuthorization } from './Base.js' +import { GeneralException } from '@injectivelabs/exceptions' +import { getGenericAuthorizationFromMessageType } from '../../utils.js' +import { GrantAuthorizationType } from '../../types.js' + +export declare namespace GenericAuthorization { + export interface Params { + messageTypeUrl?: string + authorization?: GoogleProtobufAny.Any + } + + export type Any = GoogleProtobufAny.Any + + export type Amino = Object +} + +/** + * @category Contract Exec Arguments + */ +export default class GenericAuthorization extends BaseAuthorization< + GenericAuthorization.Params, + GenericAuthorization.Amino +> { + static fromJSON(params: GenericAuthorization.Params): GenericAuthorization { + return new GenericAuthorization(params) + } + + public toAmino(): GenericAuthorization.Amino { + const { params } = this + + const authorization = + params.authorization || + getGenericAuthorizationFromMessageType(params.messageTypeUrl as string) + + if ( + !authorization.typeUrl.includes( + GrantAuthorizationType.GenericAuthorization, + ) + ) { + throw new GeneralException( + new Error('Currently, only GenericAuthorization type is supported'), + ) + } + + const genericAuthorization = + CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(authorization.value) + + return { + type: 'cosmos-sdk/GenericAuthorization', + value: { msg: genericAuthorization.msg }, + } + } + + public toWeb3(): GenericAuthorization.Amino { + const { params } = this + + const authorization = + params.authorization || + getGenericAuthorizationFromMessageType(params.messageTypeUrl as string) + + if ( + !authorization.typeUrl.includes( + GrantAuthorizationType.GenericAuthorization, + ) + ) { + throw new GeneralException( + new Error('Currently, only GenericAuthorization type is supported'), + ) + } + + const genericAuthorization = + CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(authorization.value) + + return { + '@type': '/cosmos.authz.v1beta1.GenericAuthorization', + msg: genericAuthorization.msg, + } + } + + public toAny(): GoogleProtobufAny.Any { + const { params } = this + + if (!params.authorization && !params.messageTypeUrl) { + throw new GeneralException( + new Error('Either authorization or messageType must be provided'), + ) + } + + return ( + params.authorization || + getGenericAuthorizationFromMessageType(params.messageTypeUrl as string) + ) + } +} diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts new file mode 100644 index 000000000..4b7116718 --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts @@ -0,0 +1,4 @@ +import GenericAuthorization from './GenericAuthorization.js' +import ContractExecutionAuthorization from './ContractExecutionAuthorization.js' + +export { GenericAuthorization, ContractExecutionAuthorization } diff --git a/packages/sdk-ts/src/core/modules/authz/types.ts b/packages/sdk-ts/src/core/modules/authz/types.ts index 01be34b83..4120bbf30 100644 --- a/packages/sdk-ts/src/core/modules/authz/types.ts +++ b/packages/sdk-ts/src/core/modules/authz/types.ts @@ -1,3 +1,4 @@ export enum GrantAuthorizationType { GenericAuthorization = 'GenericAuthorization', + ContractExecutionAuthorization = 'ContractExecutionAuthorization', } diff --git a/packages/sdk-ts/src/core/modules/msgs.ts b/packages/sdk-ts/src/core/modules/msgs.ts index f2da20dd9..b6f7b47c9 100644 --- a/packages/sdk-ts/src/core/modules/msgs.ts +++ b/packages/sdk-ts/src/core/modules/msgs.ts @@ -1,5 +1,6 @@ import MsgBid from './auction/msgs/MsgBid.js' import MsgGrant from './authz/msgs/MsgGrant.js' +import MsgGrantWithAuthorization from './authz/msgs/MsgGrantWithAuthorization.js' import MsgRevoke from './authz/msgs/MsgRevoke.js' import MsgAuthzExec from './authz/msgs/MsgExec.js' import MsgSend from './bank/msgs/MsgSend.js' @@ -121,6 +122,7 @@ export type Msgs = | MsgAdminUpdateBinaryOptionsMarket | MsgLiquidatePosition | MsgSignData + | MsgGrantWithAuthorization /** * @category Messages diff --git a/proto/core/stub/index.ts.template b/proto/core/stub/index.ts.template index c637851f6..0a01eafee 100644 --- a/proto/core/stub/index.ts.template +++ b/proto/core/stub/index.ts.template @@ -77,6 +77,7 @@ export * as CosmwasmWasmV1Proposal from "./cosmwasm/wasm/v1/proposal_legacy.js"; export * as CosmwasmWasmV1Query from "./cosmwasm/wasm/v1/query.js"; export * as CosmwasmWasmV1Tx from "./cosmwasm/wasm/v1/tx.js"; export * as CosmwasmWasmV1Types from "./cosmwasm/wasm/v1/types.js"; +export * as CosmwasmWasmV1Authz from "./cosmwasm/wasm/v1/authz.js"; export * as GoogleApiHttp from "./google/api/http.js"; export * as GoogleProtobufAny from "./google/protobuf/any.js"; export * as GoogleProtobufDescriptor from "./google/protobuf/descriptor.js"; diff --git a/yarn.lock b/yarn.lock index 61ae99cd9..bd897fe87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2183,10 +2183,10 @@ resolved "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== -"@injectivelabs/core-proto-ts@1.13.3": - version "1.13.3" - resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.3.tgz#9f2a57106d89d414ea1f9e5ea8287e6f08713271" - integrity sha512-G7gr9pJM/bDDtmW8fuXlUQZ+pNjFsypxM8gpd6bA7BbbBnZArdC8NlZvqfHgKYcaI27/CwIix2jlnz0okstjMg== +"@injectivelabs/core-proto-ts@1.13.4": + version "1.13.4" + resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.4.tgz#c33568e471b8031ed66b1b954ac752f965e7f2bf" + integrity sha512-81+bwey0qzNgOzUASsxYghSahcWzH5l6bSceW8FdR7w42+Knp+bAgbg12sSyS1hiOO2kMXx6tBvmYkCmnghM1Q== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From 458516d02f8caab75be565c110f5a4910f685f4d Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Thu, 21 Nov 2024 21:17:09 +0000 Subject: [PATCH 13/54] chore: release - @injectivelabs/sdk-ts@1.14.20-beta.4 - @injectivelabs/wallet-ts@1.14.20-beta.4 - @injectivelabs/wallet-base@0.0.7-beta.4 - @injectivelabs/wallet-core@0.0.7-beta.4 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.4 - @injectivelabs/wallet-cosmos@0.0.7-beta.4 - @injectivelabs/wallet-cosmostation@0.0.7-beta.4 - @injectivelabs/wallet-evm@0.0.7-beta.4 - @injectivelabs/wallet-ledger@0.0.7-beta.4 - @injectivelabs/wallet-magic@0.0.7-beta.4 - @injectivelabs/wallet-private-key@0.0.7-beta.4 - @injectivelabs/wallet-strategy@0.0.7-beta.4 - @injectivelabs/wallet-trezor@0.0.7-beta.4 - @injectivelabs/wallet-wallet-connect@0.0.7-beta.4 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 974e53ef2..6aaaefe2a 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.20-beta.3", + "version": "1.14.20-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 7af532087..417590398 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.20-beta.3", + "version": "1.14.20-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 8468cf515..82a4de63e 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,7 +37,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 3fc9b3bca..56c928483 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 91b7a300d..834978d41 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,13 +37,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", - "@injectivelabs/wallet-core": "^0.0.7-beta.3", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.3", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/wallet-core": "^0.0.7-beta.4", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index c37207775..3ca79f8e8 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -39,10 +39,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 081dcd033..5d3f38d1d 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -36,10 +36,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 9a3f0b02a..cf4be1911 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -35,7 +35,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "ethers": "^6.5.1", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index a56f6f346..e144e3295 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 8ba99c00b..e3af0fe71 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index a91bcd478..92385c547 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3" + "@injectivelabs/wallet-base": "^0.0.7-beta.4" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 367c6f44d..6068a8791 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,19 +37,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", - "@injectivelabs/wallet-core": "^0.0.7-beta.3", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.3", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.3", - "@injectivelabs/wallet-evm": "^0.0.7-beta.3", - "@injectivelabs/wallet-ledger": "^0.0.7-beta.3", - "@injectivelabs/wallet-magic": "^0.0.7-beta.3", - "@injectivelabs/wallet-private-key": "^0.0.7-beta.3", - "@injectivelabs/wallet-trezor": "^0.0.7-beta.3", - "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/wallet-core": "^0.0.7-beta.4", + "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", + "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", + "@injectivelabs/wallet-evm": "^0.0.7-beta.4", + "@injectivelabs/wallet-ledger": "^0.0.7-beta.4", + "@injectivelabs/wallet-magic": "^0.0.7-beta.4", + "@injectivelabs/wallet-private-key": "^0.0.7-beta.4", + "@injectivelabs/wallet-trezor": "^0.0.7-beta.4", + "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.4", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 6ab1a164f..bf305de44 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -37,10 +37,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index a82e99324..2a482a12c 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.3", + "version": "0.0.7-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -34,10 +34,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.3", + "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.3", + "@injectivelabs/wallet-base": "^0.0.7-beta.4", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From d2c1125320607f11ab8449dc5e8cd9410458109c Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Sat, 23 Nov 2024 05:36:43 +0800 Subject: [PATCH 14/54] chore: remove wallet-core peerDependency --- etc/ofac.js | 2 +- packages/wallets/wallet-core/package.json | 4 +- packages/wallets/wallet-evm/package.json | 4 +- yarn.lock | 71 +++++++++++++++++++++++ 4 files changed, 74 insertions(+), 7 deletions(-) diff --git a/etc/ofac.js b/etc/ofac.js index 07865a053..978466e73 100644 --- a/etc/ofac.js +++ b/etc/ofac.js @@ -22,7 +22,7 @@ const storeJsonFile = (path, data) => { const fetchOfac = async () => { const response = await fetch( - 'https://raw.githubusercontent.com/InjectiveLabs/injective-lists/master/wallets/ofac.json', + 'https://raw.githubusercontent.com/InjectiveLabs/injective-lists/master/wallets/ofacAndRestricted.json', ) const wallets = await response.text() diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 56c928483..0c2ad762e 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -33,6 +33,7 @@ "start": "node dist/index.js" }, "dependencies": { + "@injectivelabs/wallet-base": "^0.0.6", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", "@injectivelabs/sdk-ts": "^1.14.20-beta.4", @@ -40,9 +41,6 @@ "@injectivelabs/utils": "^1.14.19", "eip1193-provider": "^1.0.1" }, - "peerDependencies": { - "@injectivelabs/wallet-base": "^0.0.1" - }, "devDependencies": { "@types/eth-sig-util": "^2.1.1", "@types/ethereumjs-util": "^6.1.0", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index cf4be1911..5364f4a00 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -33,6 +33,7 @@ "start": "node dist/index.js" }, "dependencies": { + "@injectivelabs/wallet-base": "^0.0.6", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", "@injectivelabs/sdk-ts": "^1.14.20-beta.4", @@ -42,9 +43,6 @@ "long": "^5.2.1", "shx": "^0.3.3" }, - "peerDependencies": { - "@injectivelabs/wallet-base": "^0.0.1" - }, "devDependencies": { "@types/eth-sig-util": "^2.1.1", "@types/ethereumjs-util": "^6.1.0", diff --git a/yarn.lock b/yarn.lock index bd897fe87..40b15cc89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2183,6 +2183,16 @@ resolved "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== +"@injectivelabs/core-proto-ts@1.13.3": + version "1.13.3" + resolved "https://registry.yarnpkg.com/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.3.tgz#9f2a57106d89d414ea1f9e5ea8287e6f08713271" + integrity sha512-G7gr9pJM/bDDtmW8fuXlUQZ+pNjFsypxM8gpd6bA7BbbBnZArdC8NlZvqfHgKYcaI27/CwIix2jlnz0okstjMg== + dependencies: + "@injectivelabs/grpc-web" "^0.0.1" + google-protobuf "^3.14.0" + protobufjs "^7.0.0" + rxjs "^7.4.0" + "@injectivelabs/core-proto-ts@1.13.4": version "1.13.4" resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.4.tgz#c33568e471b8031ed66b1b954ac752f965e7f2bf" @@ -2240,6 +2250,67 @@ protobufjs "^7.0.0" rxjs "^7.4.0" +"@injectivelabs/sdk-ts@^1.14.19": + version "1.14.19" + resolved "https://registry.yarnpkg.com/@injectivelabs/sdk-ts/-/sdk-ts-1.14.19.tgz#6c20de0b211092fc76c1c1c0d9e44e26fac6b61e" + integrity sha512-cNmE7nEobZSSxbrnygmSqBASGXmEkk0ftA06qhQTwK/GiYJI6GK5ihRehsSbtatibopqBXB2s3TfsB2cN/IVzQ== + dependencies: + "@apollo/client" "^3.11.9" + "@cosmjs/amino" "^0.32.3" + "@cosmjs/proto-signing" "^0.32.3" + "@cosmjs/stargate" "^0.32.3" + "@ethersproject/bytes" "^5.7.0" + "@injectivelabs/core-proto-ts" "1.13.3" + "@injectivelabs/exceptions" "^1.14.19" + "@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.13.1" + "@injectivelabs/mito-proto-ts" "1.13.0" + "@injectivelabs/networks" "^1.14.19" + "@injectivelabs/olp-proto-ts" "1.13.1" + "@injectivelabs/test-utils" "^1.14.19" + "@injectivelabs/ts-types" "^1.14.19" + "@injectivelabs/utils" "^1.14.19" + "@metamask/eth-sig-util" "^4.0.0" + "@noble/curves" "^1.4.0" + axios "^1.6.4" + bech32 "^2.0.0" + bip39 "^3.0.4" + cosmjs-types "^0.9.0" + ethereumjs-util "^7.1.4" + ethers "^6.5.1" + google-protobuf "^3.21.0" + graphql "^16.3.0" + http-status-codes "^2.2.0" + js-sha3 "^0.8.0" + jscrypto "^1.0.3" + keccak256 "^1.0.6" + secp256k1 "^4.0.3" + shx "^0.3.2" + snakecase-keys "^5.4.1" + +"@injectivelabs/wallet-base@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@injectivelabs/wallet-base/-/wallet-base-0.0.6.tgz#073ee305b901c939b1dd5807b0506105c8d3f84d" + integrity sha512-QfFCW7KGbTC6MSPZxTAwy4vqH855EHWtvEXi3l3cS2OWb8llt1XhOc2W0YiCywcgEWh/Sv7EQb00VfMQAGM58g== + dependencies: + "@ethereumjs/common" "^3.1.1" + "@ethereumjs/tx" "^4.1.1" + "@injectivelabs/exceptions" "^1.14.19" + "@injectivelabs/networks" "^1.14.19" + "@injectivelabs/sdk-ts" "^1.14.19" + "@injectivelabs/ts-types" "^1.14.19" + "@injectivelabs/utils" "^1.14.19" + alchemy-sdk "^3.4.7" + eip1193-provider "^1.0.1" + eth-sig-util "^3.0.1" + ethereumjs-util "^7.1.0" + ethers "^6.5.1" + hdkey "^2.0.1" + long "^5.2.1" + shx "^0.3.3" + "@ioredis/commands@^1.1.1": version "1.2.0" resolved "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" From 073e24c0d96325c00f7b8bfce2d908060b3cab3b Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Fri, 22 Nov 2024 21:41:58 +0000 Subject: [PATCH 15/54] chore: release - @injectivelabs/wallet-core@0.0.7-beta.5 - @injectivelabs/wallet-cosmos-strategy@0.0.7-beta.5 - @injectivelabs/wallet-evm@0.0.7-beta.5 - @injectivelabs/wallet-strategy@0.0.7-beta.5 --- packages/wallets/wallet-core/package.json | 4 ++-- packages/wallets/wallet-cosmos-strategy/package.json | 4 ++-- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-strategy/package.json | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 0c2ad762e..f6608310f 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.4", + "version": "0.0.7-beta.5", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -33,12 +33,12 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/wallet-base": "^0.0.6", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/wallet-base": "^0.0.6", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 834978d41..d903eede2 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.4", + "version": "0.0.7-beta.5", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,7 +41,7 @@ "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@injectivelabs/wallet-base": "^0.0.7-beta.4", - "@injectivelabs/wallet-core": "^0.0.7-beta.4", + "@injectivelabs/wallet-core": "^0.0.7-beta.5", "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 5364f4a00..8846377e9 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7-beta.5", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -33,12 +33,12 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/wallet-base": "^0.0.6", "@injectivelabs/exceptions": "^1.14.19", "@injectivelabs/networks": "^1.14.19", "@injectivelabs/sdk-ts": "^1.14.20-beta.4", "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/wallet-base": "^0.0.6", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 6068a8791..f31090a11 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.4", + "version": "0.0.7-beta.5", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -41,10 +41,10 @@ "@injectivelabs/ts-types": "^1.14.19", "@injectivelabs/utils": "^1.14.19", "@injectivelabs/wallet-base": "^0.0.7-beta.4", - "@injectivelabs/wallet-core": "^0.0.7-beta.4", + "@injectivelabs/wallet-core": "^0.0.7-beta.5", "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", - "@injectivelabs/wallet-evm": "^0.0.7-beta.4", + "@injectivelabs/wallet-evm": "^0.0.7-beta.5", "@injectivelabs/wallet-ledger": "^0.0.7-beta.4", "@injectivelabs/wallet-magic": "^0.0.7-beta.4", "@injectivelabs/wallet-private-key": "^0.0.7-beta.4", From 14094ffa24e51481efa023c9e1edd589c059386f Mon Sep 17 00:00:00 2001 From: shane-moore Date: Fri, 22 Nov 2024 17:02:26 -0800 Subject: [PATCH 16/54] chore: cw20 to bank convert docs --- .gitbook/SUMMARY.md | 1 + .gitbook/contracts/README.md | 9 ++-- .../cw20-convert-and-market-order-example.md | 54 +++++++++++++++++++ .gitbook/readme/application-concepts.md | 22 +++++--- 4 files changed, 74 insertions(+), 12 deletions(-) create mode 100644 .gitbook/contracts/cw20-convert-and-market-order-example.md diff --git a/.gitbook/SUMMARY.md b/.gitbook/SUMMARY.md index d26f82e85..007a5555e 100644 --- a/.gitbook/SUMMARY.md +++ b/.gitbook/SUMMARY.md @@ -86,6 +86,7 @@ - [Contracts](contracts/README.md) - [Injective Name Service](contracts/injective-name-service.md) - [Neptune Service](contracts/neptune-service.md) + - [CW20 to Bank & Market Order in One Transaction](contracts/cw20-convert-and-market-order-example.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 03977430f..97b35eef9 100644 --- a/.gitbook/contracts/README.md +++ b/.gitbook/contracts/README.md @@ -6,7 +6,8 @@ CosmWasm is a novel smart contracting platform built for the Cosmos ecosystem. Y #### Specific Cosmwasm Contracts -| Topic | Description | -| --------------------------------------------------- | ---------------------- | -| [Injective Name Service](injective-name-service.md) | Injective Name Service | -| [Neptune Service](neptune-service.md) | Injective Name Service | +| Topic | Description | +| ------------------------------------------------------------------------------------------ | ---------------------- | +| [Injective Name Service](injective-name-service.md) | Injective Name Service | +| [Neptune Service](neptune-service.md) | Neptune Service | +| [CW20 to Bank & Market Order in One Transaction](cw20-convert-and-market-order-example.md) | Convert Cw20 Example | diff --git a/.gitbook/contracts/cw20-convert-and-market-order-example.md b/.gitbook/contracts/cw20-convert-and-market-order-example.md new file mode 100644 index 000000000..94f50c7e7 --- /dev/null +++ b/.gitbook/contracts/cw20-convert-and-market-order-example.md @@ -0,0 +1,54 @@ +# Convert Cw20 to Bank and Place Market Order In One Transaction Example + +This example helps you create messages to convert CW20 tokens to bank tokens on the Injective blockchain. This is particularly useful when you have CW20 tokens and need to convert them to their bank equivalents to perform operations like placing market orders. Note that this flow only works for cw20 tokens and their corresponding [factory tokens](../readme/application-concepts.md). + +This guide will walk you through: + +- Obtaining the user's CW20 token balance. +- Creating a message to convert CW20 tokens to bank tokens using ConvertCw20ToBankService +- Executing a market order using the converted bank balance and existing bank balance + +## Get User's CW20 Balance + +[Detailed here](../querying/querying-api/querying-indexer-explorer.md#fetch-cw20-balances) + +- Find the cw20 address and balance from the result set that you want to convert to a bank factory token + +## Create CW20 to Bank Conversion Message + +- create the `convertMsg` using the steps detailed [here](../readme/application-concepts#example-on-how-to-convert-cw20-to-a-factory-denom) in order to convert your cw20 token to a bank factory token. No need to submit the tsx yet. + +## Create a `MsgCreateSpotMarketOrder` message + +- Create the `msg` using the steps detailed in [MsgCreateSpotMarketOrder](../core-modules/exchange.md#msgcreatespotmarketorder). No need to submit the tsx yet. +- Note that the buy order you create will have access to your converted cw20 balance + existing bank balance. Example: + +```ts +const order = { + price: 1, + quantity: 10, +} +``` + +- If you had 5 Cw20 tokens and 5 bank tokens at a price of $1 each, then the order above will go through because we will convert the cw20 to bank before the chain executes this market order. This will be more clear in the next step. + +## Place a Market Order Using Converted CW20 Balance and your existing bank balance + +Now that you have both messages formatted, you can convert your cw20 tokens to bank factory tokens and then place a market order using the combined balance, all in one transaction + +```ts +import { MsgBroadcasterWithPk } from '@injectivelabs/sdk-ts' +import { Network } from '@injectivelabs/networks' + +const privateKey = '0x...' +const injectiveAddress = 'inj1...' + +const txHash = await new MsgBroadcasterWithPk({ + privateKey, + network: Network.MainnetSentry, +}).broadcast({ + msgs: [convertMsg, msg], // the convert to bank message executes first, Then, you will have that additional balance to complete your market order in the following msg +}) + +console.log(txHash) +``` diff --git a/.gitbook/readme/application-concepts.md b/.gitbook/readme/application-concepts.md index defff8ec0..80c6f7279 100644 --- a/.gitbook/readme/application-concepts.md +++ b/.gitbook/readme/application-concepts.md @@ -11,7 +11,10 @@ Combined with the `CW20AdapterContract` which acts as a creator, we allow CW20 a Example on how to redeem a factory denom to CW20: ```ts -import { MsgExecuteContractCompat, ExecArgCW20AdapterRedeemAndTransfer } from '@injectivelabs/sdk-ts' +import { + MsgExecuteContractCompat, + ExecArgCW20AdapterRedeemAndTransfer, +} from '@injectivelabs/sdk-ts' const CW20_ADAPTER_CONTRACT = 'inj...' const contractCw20Address = 'inj...' @@ -22,20 +25,23 @@ const message = MsgExecuteContractCompat.fromJSON({ contractAddress: CW20_ADAPTER_CONTRACT, funds: { denom: `factory/${CW20_ADAPTER_CONTRACT}/${contractCw20Address}`, - amount: actualAmount.toFixed() + amount: actualAmount.toFixed(), }, execArgs: ExecArgCW20AdapterRedeemAndTransfer.fromJSON({ - recipient: injectiveAddress - }) + recipient: injectiveAddress, + }), }) // Then pack the message in a transaction, sign it and broadcast to the chain ``` -Example on how to convert CW20 to a factory denom: +### Example on how to convert CW20 to a factory denom: ```ts -import { MsgExecuteContractCompat, ExecArgCW20Send } from '@injectivelabs/sdk-ts' +import { + ExecArgCW20Send, + MsgExecuteContractCompat, +} from '@injectivelabs/sdk-ts' const CW20_ADAPTER_CONTRACT = 'inj...' const contractCw20Address = 'inj...' @@ -47,8 +53,8 @@ const message = MsgExecuteContractCompat.fromJSON({ sender: injectiveAddress, execArgs: ExecArgCW20Send.fromJSON({ amount, - contractAddress: CW20_ADAPTER_CONTRACT - }) + contractAddress: CW20_ADAPTER_CONTRACT, + }), }) // Then pack the message in a transaction, sign it and broadcast to the chain From 76b6e0a88154079b56e193c6d89574da17568b0b Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 23 Nov 2024 09:30:48 +0100 Subject: [PATCH 17/54] feat: add authorization --- etc/jest-resolver.js | 16 + jest.config.js | 17 +- package.json | 3 +- .../core/modules/authz/msgs/MsgExec.spec.ts | 4 +- .../msgs/MsgGrantWithAuthorization.spec.ts | 273 ++++++++++++++++++ .../authz/msgs/MsgGrantWithAuthorization.ts | 2 +- .../core/modules/authz/msgs/grants/Base.ts | 4 +- .../grants/ContractExecutionAuthorization.ts | 12 + .../authz/msgs/grants/GenericAuthorization.ts | 45 +-- .../exchange/msgs/MsgCancelSpotOrder.spec.ts | 4 +- .../msgs/MsgInstantSpotMarketLaunch.spec.ts | 3 +- yarn.lock | 154 +++++++++- 12 files changed, 475 insertions(+), 62 deletions(-) create mode 100644 etc/jest-resolver.js create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts diff --git a/etc/jest-resolver.js b/etc/jest-resolver.js new file mode 100644 index 000000000..276a2738f --- /dev/null +++ b/etc/jest-resolver.js @@ -0,0 +1,16 @@ +const mjsResolver = (path, options) => { + const mjsExtRegex = /\.js$/i + const resolver = options.defaultResolver + + if (mjsExtRegex.test(path)) { + try { + return resolver(path.replace(mjsExtRegex, '.ts'), options) + } catch (e) { + // use default resolver + } + } + + return resolver(path, options) +} + +module.exports = mjsResolver diff --git a/jest.config.js b/jest.config.js index a34aeaa4a..64d1e47c5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,6 +22,7 @@ const directoryPaths = Object.keys(compilerOptions.paths).reduce( {}, ) + // For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html @@ -76,13 +77,12 @@ module.exports = { // globalTeardown: null, // A set of global variables that need to be available in all test environments - // globals: {}, // An array of directory names to be searched recursively up from the requiring module's location moduleDirectories: ['node_modules', '/src'], // An array of file extensions your modules use - moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], + moduleFileExtensions: ['ts', 'js'], // A map from regular expressions to module names that allow to stub out resources with a single module moduleNameMapper: { @@ -100,7 +100,7 @@ module.exports = { // notifyMode: "failure-change", // A preset that is used as a base for Jest's configuration - preset: 'ts-jest', + preset: 'ts-jest/presets/default-esm', // Run tests from one or more projects // projects: null, @@ -115,7 +115,7 @@ module.exports = { // resetModules: false, // A path to a custom resolver - // resolver: null, + resolver: './etc/jest-resolver.js', // Automatically restore mock state between every test // restoreMocks: false, @@ -170,10 +170,17 @@ module.exports = { // A map from regular expressions to paths to transformers transform: { - '^.+\\.ts?$': 'ts-jest', + '^.+\\.ts?$': [ + 'ts-jest', + { + useESM: true, + }, + ], '^.+\\.js?$': 'babel-jest', }, + extensionsToTreatAsEsm: ['.ts'], + // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation transformIgnorePatterns: ['^.+\\.json$', 'node_modules/(?!(eth-crypto)/)'], diff --git a/package.json b/package.json index 96f550116..0e444ee87 100644 --- a/package.json +++ b/package.json @@ -88,6 +88,7 @@ "husky": "^7.0.2", "jest": "^29.4.3", "jest-junit": "^15.0.0", + "jest-resolve": "^29.7.0", "lerna": "6.6.1", "lint-staged": "^11.1.2", "live-server": "^1.2.1", @@ -95,7 +96,7 @@ "prettier": "^2.4.1", "serve": "^12.0.1", "shx": "^0.3.4", - "ts-jest": "^29.0.5", + "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "ts-node-dev": "2.0.0", "tsc-alias": "^1.7.0", diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.spec.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.spec.ts index ed512a53f..586ff0d5c 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.spec.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgExec.spec.ts @@ -1,7 +1,7 @@ -import MsgExec from './MsgExec.js' +import MsgExec from './MsgExec' import { mockFactory } from '@injectivelabs/test-utils' import { BigNumberInBase } from '@injectivelabs/utils' -import { MsgSend } from '../../bank/index.js' +import MsgSend from '../../bank/msgs/MsgSend.js' const { injectiveAddress, injectiveAddress2 } = mockFactory diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts new file mode 100644 index 000000000..ff45cf24f --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts @@ -0,0 +1,273 @@ +import MsgGrantWithAuthorization from './MsgGrantWithAuthorization.js' +import { mockFactory } from '@injectivelabs/test-utils' +import GenericAuthorization from './grants/GenericAuthorization.js' +import ContractExecutionAuthorization from './grants/ContractExecutionAuthorization.js' + +const { injectiveAddress, injectiveAddress2 } = mockFactory + +describe('MsgGrantWithAuthorization', () => { + describe('GenericAuthorization', () => { + const params: MsgGrantWithAuthorization['params'] = { + grantee: injectiveAddress, + granter: injectiveAddress2, + authorization: GenericAuthorization.fromJSON({ + messageTypeUrl: '/cosmos.bank.v1beta1.MsgSend', + }), + expiration: 1800000000, + } + + const any = params.authorization.toAny() + const protoType = '/cosmos.authz.v1beta1.MsgGrant' + const protoTypeShort = 'cosmos-sdk/MsgGrant' + const protoParamsGenericAuthorization = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: { + typeUrl: any.typeUrl, + value: new Uint8Array(Buffer.from(any.value)), + }, + expiration: new Date(params.expiration! * 1000), + }, + } + + const protoParamsGenericAuthorizationAmino = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: params.authorization.toAmino(), + expiration: new Date(params.expiration! * 1000), + }, + } + const protoParamsGenericAuthorizationWeb3 = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: params.authorization.toWeb3(), + expiration: new Date(params.expiration! * 1000), + }, + } + const message = MsgGrantWithAuthorization.fromJSON(params) + + it('generates proper proto', () => { + const proto = message.toProto() + + expect(proto).toStrictEqual({ + ...protoParamsGenericAuthorization, + }) + }) + + it('generates proper data', () => { + const data = message.toData() + + expect(data).toStrictEqual({ + '@type': protoType, + ...protoParamsGenericAuthorization, + }) + }) + + it('generates proper amino', () => { + const amino = message.toAmino() + + expect(amino).toStrictEqual({ + type: protoTypeShort, + value: protoParamsGenericAuthorizationAmino, + }) + }) + + it('generates proper Eip712 types', () => { + const eip712Types = message.toEip712Types() + + expect(Object.fromEntries(eip712Types)).toStrictEqual({ + TypeGrant: [ + { name: 'authorization', type: 'TypeGrantAuthorization' }, + { name: 'expiration', type: 'string' }, + ], + TypeGrantAuthorization: [ + { name: 'type', type: 'string' }, + { name: 'value', type: 'TypeGrantAuthorizationValue' }, + ], + TypeGrantAuthorizationValue: [{ name: 'msg', type: 'string' }], + MsgValue: [ + { name: 'granter', type: 'string' }, + { name: 'grantee', type: 'string' }, + { name: 'grant', type: 'TypeGrant' }, + ], + }) + }) + + it('generates proper Eip712 values', () => { + const eip712 = message.toEip712() + + expect(eip712).toStrictEqual({ + type: 'cosmos-sdk/MsgGrant', + value: { + granter: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', + grantee: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', + grant: { + authorization: { + type: 'cosmos-sdk/GenericAuthorization', + value: { msg: '/cosmos.bank.v1beta1.MsgSend' }, + }, + expiration: '2027-01-15T08:00:00Z', + }, + }, + }) + }) + + it('generates proper web3', () => { + const web3 = message.toWeb3() + + expect(web3).toStrictEqual({ + '@type': protoType, + ...protoParamsGenericAuthorizationWeb3, + }) + }) + }) + + describe('ContractExecutionAuthorization', () => { + const params: MsgGrantWithAuthorization['params'] = { + grantee: injectiveAddress, + granter: injectiveAddress2, + authorization: ContractExecutionAuthorization.fromJSON({ + contract: injectiveAddress, + limit: { + maxCalls: 100, + }, + filter: { + acceptedMessagesKeys: ['set_routes'], + }, + }), + expiration: 1800000000, + } + + const any = params.authorization.toAny() + const protoType = '/cosmos.authz.v1beta1.MsgGrant' + const protoTypeShort = 'cosmos-sdk/MsgGrant' + const protoParamsContractExecutionAuthorization = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: { + typeUrl: any.typeUrl, + value: new Uint8Array(Buffer.from(any.value)), + }, + expiration: new Date(params.expiration! * 1000), + }, + } + + const protoParamsContractExecutionAuthorizationAmino = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: params.authorization.toAmino(), + expiration: new Date(params.expiration! * 1000), + }, + } + const protoParamsContractExecutionAuthorizationWeb3 = { + grantee: params.grantee, + granter: params.granter, + grant: { + authorization: params.authorization.toWeb3(), + expiration: new Date(params.expiration! * 1000), + }, + } + const message = MsgGrantWithAuthorization.fromJSON(params) + + it('generates proper proto', () => { + const proto = message.toProto() + + expect(proto).toStrictEqual({ + ...protoParamsContractExecutionAuthorization, + }) + }) + + it('generates proper data', () => { + const data = message.toData() + + expect(data).toStrictEqual({ + '@type': protoType, + ...protoParamsContractExecutionAuthorization, + }) + }) + + it('generates proper amino', () => { + const amino = message.toAmino() + + expect(amino).toStrictEqual({ + type: protoTypeShort, + value: protoParamsContractExecutionAuthorizationAmino, + }) + }) + + it('generates proper Eip712 types', () => { + const eip712Types = message.toEip712Types() + + expect(Object.fromEntries(eip712Types)).toStrictEqual({ + TypeGrant: [ + { name: 'authorization', type: 'TypeGrantAuthorization' }, + { name: 'expiration', type: 'string' }, + ], + TypeGrantAuthorization: [ + { name: 'type', type: 'string' }, + { name: 'grants', type: 'TypeGrantAuthorizationGrants[]' }, + ], + TypeGrantAuthorizationGrants: [ + { name: 'contract', type: 'string' }, + { name: 'limit', type: 'TypeGrantAuthorizationGrantsLimit' }, + { name: 'filter', type: 'TypeGrantAuthorizationGrantsFilter' }, + ], + TypeGrantAuthorizationGrantsLimit: [ + { name: 'type', type: 'string' }, + { name: 'remaining', type: 'uint64' }, + ], + TypeGrantAuthorizationGrantsFilter: [ + { name: 'type', type: 'string' }, + { name: 'keys', type: 'string[]' }, + ], + MsgValue: [ + { name: 'granter', type: 'string' }, + { name: 'grantee', type: 'string' }, + { name: 'grant', type: 'TypeGrant' }, + ], + }) + }) + + it('generates proper Eip712 values', () => { + const eip712 = message.toEip712() + + expect(eip712).toStrictEqual({ + type: 'cosmos-sdk/MsgGrant', + value: { + granter: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', + grantee: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', + grant: { + authorization: { + type: 'wasm/ContractExecutionAuthorization', + grants: [ + { + contract: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', + limit: { type: 'wasm/MaxCallsLimit', remaining: 100 }, + filter: { + type: 'wasm/AcceptedMessageKeysFilter', + keys: ['set_routes'], + }, + }, + ], + }, + expiration: '2027-01-15T08:00:00Z', + }, + }, + }) + }) + + it('generates proper web3', () => { + const web3 = message.toWeb3() + + expect(web3).toStrictEqual({ + '@type': protoType, + ...protoParamsContractExecutionAuthorizationWeb3, + }) + }) + }) +}) diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts index a8dcebbc7..e86131ca6 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts @@ -9,7 +9,7 @@ import { BaseAuthorization } from './grants/Base.js' export declare namespace MsgGrantWithAuthorization { export interface Params { - authorization: BaseAuthorization + authorization: BaseAuthorization grantee: string granter: string expiration?: number diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts index 682191900..06be66d72 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts @@ -1,6 +1,6 @@ import { GoogleProtobufAny } from '@injectivelabs/core-proto-ts' -export abstract class BaseAuthorization { +export abstract class BaseAuthorization { params: Params constructor(params: Params) { @@ -12,4 +12,6 @@ export abstract class BaseAuthorization { public abstract toAmino(): DataRepresentation public abstract toWeb3(): DataRepresentation + + public abstract toProto(): Proto } diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts index dd16ad3f0..11c577803 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts @@ -17,6 +17,8 @@ export declare namespace ContractExecutionAuthorization { export type Any = GoogleProtobufAny.Any + export type Proto = CosmwasmWasmV1Authz.ContractExecutionAuthorization + export type Amino = Object } @@ -25,6 +27,7 @@ export declare namespace ContractExecutionAuthorization { */ export default class ContractExecutionAuthorization extends BaseAuthorization< ContractExecutionAuthorization.Params, + ContractExecutionAuthorization.Proto, ContractExecutionAuthorization.Amino > { static fromJSON( @@ -79,6 +82,15 @@ export default class ContractExecutionAuthorization extends BaseAuthorization< return any } + public toProto(): ContractExecutionAuthorization.Proto { + const authorization = + CosmwasmWasmV1Authz.ContractExecutionAuthorization.decode( + this.toAny().value, + ) + + return authorization + } + public toAmino(): ContractExecutionAuthorization.Amino { const { params } = this diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts index 5a6f6afa1..638f5a91f 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts @@ -5,7 +5,6 @@ import { import { BaseAuthorization } from './Base.js' import { GeneralException } from '@injectivelabs/exceptions' import { getGenericAuthorizationFromMessageType } from '../../utils.js' -import { GrantAuthorizationType } from '../../types.js' export declare namespace GenericAuthorization { export interface Params { @@ -15,6 +14,8 @@ export declare namespace GenericAuthorization { export type Any = GoogleProtobufAny.Any + export type Proto = CosmosAuthzV1Beta1Authz.GenericAuthorization + export type Amino = Object } @@ -23,31 +24,23 @@ export declare namespace GenericAuthorization { */ export default class GenericAuthorization extends BaseAuthorization< GenericAuthorization.Params, + GenericAuthorization.Proto, GenericAuthorization.Amino > { static fromJSON(params: GenericAuthorization.Params): GenericAuthorization { return new GenericAuthorization(params) } - public toAmino(): GenericAuthorization.Amino { - const { params } = this - - const authorization = - params.authorization || - getGenericAuthorizationFromMessageType(params.messageTypeUrl as string) + public toProto(): GenericAuthorization.Proto { + const genericAuthorization = + CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(this.toAny().value) - if ( - !authorization.typeUrl.includes( - GrantAuthorizationType.GenericAuthorization, - ) - ) { - throw new GeneralException( - new Error('Currently, only GenericAuthorization type is supported'), - ) - } + return genericAuthorization + } + public toAmino(): GenericAuthorization.Amino { const genericAuthorization = - CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(authorization.value) + CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(this.toAny().value) return { type: 'cosmos-sdk/GenericAuthorization', @@ -56,24 +49,8 @@ export default class GenericAuthorization extends BaseAuthorization< } public toWeb3(): GenericAuthorization.Amino { - const { params } = this - - const authorization = - params.authorization || - getGenericAuthorizationFromMessageType(params.messageTypeUrl as string) - - if ( - !authorization.typeUrl.includes( - GrantAuthorizationType.GenericAuthorization, - ) - ) { - throw new GeneralException( - new Error('Currently, only GenericAuthorization type is supported'), - ) - } - const genericAuthorization = - CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(authorization.value) + CosmosAuthzV1Beta1Authz.GenericAuthorization.decode(this.toAny().value) return { '@type': '/cosmos.authz.v1beta1.GenericAuthorization', diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts index 2d219a337..cc7791faf 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts @@ -1,6 +1,6 @@ -import MsgCancelSpotOrder from './MsgCancelSpotOrder.js' +import MsgCancelSpotOrder from './MsgCancelSpotOrder' import { mockFactory, prepareEip712 } from '@injectivelabs/test-utils' -import { IndexerGrpcWeb3GwApi } from '../../../../client/index.js' +import { IndexerGrpcWeb3GwApi } from '../../../../client/indexer/grpc/IndexerGrpcWeb3GwApi.js' import snakecaseKeys from 'snakecase-keys' import { getEip712TypedData, getEip712TypedDataV2 } from '../../../tx/index.js' diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.spec.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.spec.ts index 4de5fd877..59537407a 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.spec.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgInstantSpotMarketLaunch.spec.ts @@ -25,7 +25,8 @@ const protoParams = { const protoParamsAmino = snakecaseKeys(protoParams) const message = MsgInstantSpotMarketLaunch.fromJSON(params) -describe('MsgInstantSpotMarketLaunch', () => { +// TODO +describe.skip('MsgInstantSpotMarketLaunch', () => { it('generates proper proto', () => { const proto = message.toProto() diff --git a/yarn.lock b/yarn.lock index bd897fe87..48a3777ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2408,6 +2408,13 @@ dependencies: "@sinclair/typebox" "^0.25.16" +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + "@jest/source-map@^29.4.3": version "29.4.3" resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.4.3.tgz#ff8d05cbfff875d4a791ab679b4333df47951d20" @@ -2470,6 +2477,18 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== + dependencies: + "@jest/schemas" "^29.6.3" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + "@jnwng/walletconnect-solana@^0.2.0": version "0.2.0" resolved "https://registry.npmjs.org/@jnwng/walletconnect-solana/-/walletconnect-solana-0.2.0.tgz#aebea64beaa47273b9b9a71c62d88d543900ab96" @@ -3904,6 +3923,11 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718" integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ== +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + "@sinclair/typebox@^0.31.28": version "0.31.28" resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.31.28.tgz#b68831e7bc7d09daac26968ea32f42bedc968ede" @@ -6912,7 +6936,7 @@ browserslist@^4.21.3, browserslist@^4.21.4: node-releases "^2.0.6" update-browserslist-db "^1.0.9" -bs-logger@0.x: +bs-logger@^0.2.6: version "0.2.6" resolved "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== @@ -8409,6 +8433,13 @@ eip55@^2.1.1: dependencies: keccak "^3.0.3" +ejs@^3.1.10: + version "3.1.10" + resolved "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" + integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== + dependencies: + jake "^10.8.5" + ejs@^3.1.7: version "3.1.9" resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.9.tgz#03c9e8777fe12686a9effcef22303ca3d8eeb361" @@ -11369,6 +11400,11 @@ jest-get-type@^29.4.3: resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.4.3.tgz#1ab7a5207c995161100b5187159ca82dd48b3dd5" integrity sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg== +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + jest-haste-map@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.4.3.tgz#085a44283269e7ace0645c63a57af0d2af6942e2" @@ -11388,6 +11424,25 @@ jest-haste-map@^29.4.3: optionalDependencies: fsevents "^2.3.2" +jest-haste-map@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104" + integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== + dependencies: + "@jest/types" "^29.6.3" + "@types/graceful-fs" "^4.1.3" + "@types/node" "*" + anymatch "^3.0.3" + fb-watchman "^2.0.0" + graceful-fs "^4.2.9" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + jest-worker "^29.7.0" + micromatch "^4.0.4" + walker "^1.0.8" + optionalDependencies: + fsevents "^2.3.2" + jest-junit@^15.0.0: version "15.0.0" resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-15.0.0.tgz#a47544ab42e9f8fe7ada56306c218e09e52bd690" @@ -11450,6 +11505,11 @@ jest-regex-util@^29.4.3: resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.4.3.tgz#a42616141e0cae052cfa32c169945d00c0aa0bb8" integrity sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg== +jest-regex-util@^29.6.3: + version "29.6.3" + resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52" + integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== + jest-resolve-dependencies@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.4.3.tgz#9ad7f23839a6d88cef91416bda9393a6e9fd1da5" @@ -11473,6 +11533,21 @@ jest-resolve@^29.4.3: resolve.exports "^2.0.0" slash "^3.0.0" +jest-resolve@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30" + integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== + dependencies: + chalk "^4.0.0" + graceful-fs "^4.2.9" + jest-haste-map "^29.7.0" + jest-pnp-resolver "^1.2.2" + jest-util "^29.7.0" + jest-validate "^29.7.0" + resolve "^1.20.0" + resolve.exports "^2.0.0" + slash "^3.0.0" + jest-runner@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.4.3.tgz#68dc82c68645eda12bea42b5beece6527d7c1e5e" @@ -11570,6 +11645,18 @@ jest-util@^29.0.0, jest-util@^29.4.3: graceful-fs "^4.2.9" picomatch "^2.2.3" +jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== + dependencies: + "@jest/types" "^29.6.3" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + jest-validate@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.4.3.tgz#a13849dec4f9e95446a7080ad5758f58fa88642f" @@ -11582,6 +11669,18 @@ jest-validate@^29.4.3: leven "^3.1.0" pretty-format "^29.4.3" +jest-validate@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c" + integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== + dependencies: + "@jest/types" "^29.6.3" + camelcase "^6.2.0" + chalk "^4.0.0" + jest-get-type "^29.6.3" + leven "^3.1.0" + pretty-format "^29.7.0" + jest-watcher@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.4.3.tgz#e503baa774f0c2f8f3c8db98a22ebf885f19c384" @@ -11606,6 +11705,16 @@ jest-worker@^29.4.3: merge-stream "^2.0.0" supports-color "^8.0.0" +jest-worker@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a" + integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== + dependencies: + "@types/node" "*" + jest-util "^29.7.0" + merge-stream "^2.0.0" + supports-color "^8.0.0" + jest@^29.4.3: version "29.4.3" resolved "https://registry.yarnpkg.com/jest/-/jest-29.4.3.tgz#1b8be541666c6feb99990fd98adac4737e6e6386" @@ -12226,7 +12335,7 @@ lodash.map@^4.5.1: resolved "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3" integrity sha512-worNHGKLDetmcEYDvh2stPCrrQRkP20E4l0iIS7F8EvzMqBBi7ltvFN5m1HvTf1P7Jk1txKhvFcmYsCr8O2F1Q== -lodash.memoize@4.x: +lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== @@ -12375,7 +12484,7 @@ make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" -make-error@1.x, make-error@^1, make-error@^1.1.1: +make-error@^1, make-error@^1.1.1, make-error@^1.3.6: version "1.3.6" resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== @@ -14172,6 +14281,15 @@ pretty-format@29.4.3, pretty-format@^29.0.0, pretty-format@^29.4.3: ansi-styles "^5.0.0" react-is "^18.0.0" +pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + proc-log@^2.0.0, proc-log@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-2.0.1.tgz#8f3f69a1f608de27878f91f5c688b225391cb685" @@ -15271,7 +15389,7 @@ semver@7.3.5: dependencies: lru-cache "^6.0.0" -semver@7.3.8, semver@7.x, semver@^7.1.1, semver@^7.2.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: +semver@7.3.8, semver@^7.1.1, semver@^7.2.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: version "7.3.8" resolved "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz#07a78feafb3f7b32347d725e33de7e2a2df67798" integrity sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A== @@ -15304,6 +15422,11 @@ semver@^7.5.3, semver@^7.5.4: dependencies: lru-cache "^6.0.0" +semver@^7.6.3: + version "7.6.3" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + send@latest: version "0.18.0" resolved "https://registry.npmjs.org/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" @@ -16390,19 +16513,20 @@ ts-invariant@^0.10.3: dependencies: tslib "^2.1.0" -ts-jest@^29.0.5: - version "29.0.5" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.0.5.tgz#c5557dcec8fe434fcb8b70c3e21c6b143bfce066" - integrity sha512-PL3UciSgIpQ7f6XjVOmbi96vmDHUqAyqDr8YxzopDqX3kfgYtX1cuNeBjP+L9sFXi6nzsGGA6R3fP3DDDJyrxA== +ts-jest@^29.2.5: + version "29.2.5" + resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63" + integrity sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA== dependencies: - bs-logger "0.x" - fast-json-stable-stringify "2.x" + bs-logger "^0.2.6" + ejs "^3.1.10" + fast-json-stable-stringify "^2.1.0" jest-util "^29.0.0" json5 "^2.2.3" - lodash.memoize "4.x" - make-error "1.x" - semver "7.x" - yargs-parser "^21.0.1" + lodash.memoize "^4.1.2" + make-error "^1.3.6" + semver "^7.6.3" + yargs-parser "^21.1.1" ts-mixer@^6.0.3: version "6.0.4" @@ -17648,7 +17772,7 @@ yargs-parser@20.2.4: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== -yargs-parser@21.1.1, yargs-parser@^21.0.1, yargs-parser@^21.1.1: +yargs-parser@21.1.1, yargs-parser@^21.1.1: version "21.1.1" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== From 45fcf17d65c6923c626edab330ef820634fdab39 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:11:46 +0100 Subject: [PATCH 18/54] chore: named exports --- packages/exceptions/package.json | 22 + packages/networks/package.json | 22 + packages/sdk-ts/package.json | 84 ++- packages/sdk-ts/src/client/gql/client.ts | 17 +- packages/sdk-ts/src/client/gql/queries.ts | 6 +- packages/sdk-ts/src/client/index.ts | 1 - packages/sdk-ts/src/cosmjs.ts | 6 + packages/sdk-ts/src/exports.ts | 1 + packages/test-utils/package.json | 22 + packages/ts-types/package.json | 22 + packages/utils/package.json | 22 + packages/wallet-ts/package.json | 42 ++ packages/wallets/wallet-base/package.json | 22 + packages/wallets/wallet-core/package.json | 22 + .../wallet-cosmos-strategy/package.json | 22 + packages/wallets/wallet-cosmos/package.json | 22 + .../wallets/wallet-cosmostation/package.json | 22 + packages/wallets/wallet-evm/package.json | 22 + packages/wallets/wallet-ledger/package.json | 22 + packages/wallets/wallet-magic/package.json | 22 + .../wallets/wallet-private-key/package.json | 22 + packages/wallets/wallet-strategy/package.json | 22 + packages/wallets/wallet-trezor/package.json | 22 + .../wallet-wallet-connect/package.json | 22 + proto/indexer/gen.sh | 2 +- proto/indexer/package-lock.json | 556 +++++++++++++++++- yarn.lock | 20 + 27 files changed, 1090 insertions(+), 19 deletions(-) create mode 100644 packages/sdk-ts/src/cosmjs.ts diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index cf4398dda..3e708b632 100644 --- a/packages/exceptions/package.json +++ b/packages/exceptions/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~exceptions": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/networks/package.json b/packages/networks/package.json index 0cacc1f0f..f14a77952 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~networks": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 6aaaefe2a..c19c4d66d 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -14,6 +14,88 @@ "files": [ "dist" ], + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + }, + "./exports": { + "react-native": { + "import": "./dist/esm/exports.js", + "require": "./dist/cjs/exports.js", + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + }, + "require": { + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + }, + "import": { + "types": "./dist/esm/exports.d.ts", + "default": "./dist/esm/exports.js" + }, + "default": { + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + } + }, + "./graphql": { + "react-native": { + "import": "./dist/esm/client/gql/index.js", + "require": "./dist/cjs/client/gql/index.js", + "types": "./dist/cjs/client/gql/index.d.ts", + "default": "./dist/cjs/client/gql/index.js" + }, + "require": { + "types": "./dist/cjs/client/gql/index.d.ts", + "default": "./dist/cjs/client/gql/index.js" + }, + "import": { + "types": "./dist/esm/client/gql/index.d.ts", + "default": "./dist/esm/client/gql/index.js" + }, + "default": { + "types": "./dist/cjs/client/gql/index.d.ts", + "default": "./dist/cjs/client/gql/index.js" + } + }, + "./cosmjs": { + "react-native": { + "import": "./dist/esm/cosmjs.js", + "require": "./dist/cjs/cosmjs.js", + "types": "./dist/cjs/cosmjs.d.ts", + "default": "./dist/cjs/cosmjs.js" + }, + "require": { + "types": "./dist/cjs/cosmjs.d.ts", + "default": "./dist/cjs/cosmjs.js" + }, + "import": { + "types": "./dist/esm/cosmjs.d.ts", + "default": "./dist/esm/cosmjs.js" + }, + "default": { + "types": "./dist/cjs/cosmjs.d.ts", + "default": "./dist/cjs/cosmjs.js" + } + } + }, "_moduleAliases": { "~sdk-ts": "dist" }, @@ -34,7 +116,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@apollo/client": "^3.11.9", + "@apollo/client": "^3.11.10", "@cosmjs/amino": "^0.32.3", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", diff --git a/packages/sdk-ts/src/client/gql/client.ts b/packages/sdk-ts/src/client/gql/client.ts index 1b71baf72..e9cb0e636 100644 --- a/packages/sdk-ts/src/client/gql/client.ts +++ b/packages/sdk-ts/src/client/gql/client.ts @@ -1,4 +1,9 @@ -import * as Apollo from '@apollo/client' +import { + ApolloClient, + InMemoryCache, + ApolloQueryResult, + NormalizedCacheObject, +} from '@apollo/client' import { HttpRequestException } from '@injectivelabs/exceptions' import { USER_DEPOSITS, USER_BRIDGE_DEPOSITS } from './queries.js' import { UserDepositResponse } from './types.js' @@ -7,12 +12,12 @@ import { UserDepositResponse } from './types.js' * @hidden */ export class ApolloConsumer { - private apolloClient: Apollo.ApolloClient + private apolloClient: ApolloClient constructor(graphQlEndpoint: string) { - this.apolloClient = new Apollo.ApolloClient({ + this.apolloClient = new ApolloClient({ uri: graphQlEndpoint, - cache: new Apollo.InMemoryCache(), + cache: new InMemoryCache(), defaultOptions: { query: { fetchPolicy: 'no-cache', @@ -30,7 +35,7 @@ export class ApolloConsumer { .toLowerCase() .replace('0x', '')}`, }, - })) as Apollo.ApolloQueryResult + })) as ApolloQueryResult if (response.errors && response.errors.length > 0) { throw new HttpRequestException(new Error(response.errors[0].message)) @@ -46,7 +51,7 @@ export class ApolloConsumer { timestamp, sender: address, }, - })) as Apollo.ApolloQueryResult + })) as ApolloQueryResult if (response.errors && response.errors.length > 0) { throw new HttpRequestException(new Error(response.errors[0].message)) diff --git a/packages/sdk-ts/src/client/gql/queries.ts b/packages/sdk-ts/src/client/gql/queries.ts index 010643c7b..31ee151cc 100644 --- a/packages/sdk-ts/src/client/gql/queries.ts +++ b/packages/sdk-ts/src/client/gql/queries.ts @@ -1,9 +1,9 @@ -import * as Apollo from '@apollo/client' +import { gql } from '@apollo/client' /** * @hidden */ -export const USER_DEPOSITS = Apollo.gql` +export const USER_DEPOSITS = gql` query Deposits($destination: Bytes!) { deposits( orderBy: timestamp @@ -23,7 +23,7 @@ export const USER_DEPOSITS = Apollo.gql` } ` -export const USER_BRIDGE_DEPOSITS = Apollo.gql` +export const USER_BRIDGE_DEPOSITS = gql` query Deposits($sender: Bytes!, $timestamp: Int!) { deposits( orderBy: timestamp diff --git a/packages/sdk-ts/src/client/index.ts b/packages/sdk-ts/src/client/index.ts index 46dea6b96..8a88a9388 100644 --- a/packages/sdk-ts/src/client/index.ts +++ b/packages/sdk-ts/src/client/index.ts @@ -1,5 +1,4 @@ export * from './chain/index.js' export * from './indexer/index.js' -export * from './gql/index.js' export * from './wasm/index.js' export * from './olp/index.js' diff --git a/packages/sdk-ts/src/cosmjs.ts b/packages/sdk-ts/src/cosmjs.ts new file mode 100644 index 000000000..a122ccd4a --- /dev/null +++ b/packages/sdk-ts/src/cosmjs.ts @@ -0,0 +1,6 @@ +import MsgTransferCosmjs from './core/modules/ibc/msgs/MsgTransferCosmjs.js' +import { accountParser as injectiveAccountParser } from './core/accounts/AccountParser.js' + +export * from './core/accounts/signers/index.js' +export * from './core/stargate/index.js' +export { MsgTransferCosmjs, injectiveAccountParser } diff --git a/packages/sdk-ts/src/exports.ts b/packages/sdk-ts/src/exports.ts index a122ccd4a..1c732c50c 100644 --- a/packages/sdk-ts/src/exports.ts +++ b/packages/sdk-ts/src/exports.ts @@ -1,6 +1,7 @@ import MsgTransferCosmjs from './core/modules/ibc/msgs/MsgTransferCosmjs.js' import { accountParser as injectiveAccountParser } from './core/accounts/AccountParser.js' +/** @deprecated use @injectivelabs/sdk-ts/cosmjs */ export * from './core/accounts/signers/index.js' export * from './core/stargate/index.js' export { MsgTransferCosmjs, injectiveAccountParser } diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 8e441391c..64536b5ec 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -14,6 +14,28 @@ "files": [ "dist" ], + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "_moduleAliases": { "~test-utils": "dist" }, diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 9003f3954..65f6cf70c 100644 --- a/packages/ts-types/package.json +++ b/packages/ts-types/package.json @@ -14,6 +14,28 @@ "files": [ "dist" ], + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "_moduleAliases": { "~ts-types": "dist" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index c29dcb774..9ba1e6f40 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -14,6 +14,28 @@ "files": [ "dist" ], + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "_moduleAliases": { "~utils": "dist" }, diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 417590398..e77a338c6 100644 --- a/packages/wallet-ts/package.json +++ b/packages/wallet-ts/package.json @@ -14,6 +14,48 @@ "files": [ "dist" ], + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + }, + "./exports": { + "react-native": { + "import": "./dist/esm/exports.js", + "require": "./dist/cjs/exports.js", + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + }, + "require": { + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + }, + "import": { + "types": "./dist/esm/exports.d.ts", + "default": "./dist/esm/exports.js" + }, + "default": { + "types": "./dist/cjs/exports.d.ts", + "default": "./dist/cjs/exports.js" + } + } + }, "_moduleAliases": { "~wallet-ts": "dist" }, diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 82a4de63e..c716cf896 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-base": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index f6608310f..9b8a63d5d 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-core": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index d903eede2..d25533316 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-cosmos-strategy": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 3ca79f8e8..d479b91ad 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-cosmos": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 5d3f38d1d..32785fb57 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-cosmostation": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 8846377e9..aac097db5 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-evm": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index e144e3295..8c1d248ac 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-ledger": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:esm && yarn build:cjs && yarn build:post", "build:cjs": "BUILD_MODE=cjs node ./../../../etc/replacements-ledger.js && tsc --build tsconfig.build.json", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index e3af0fe71..bf3033fff 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-magic": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 92385c547..50f36533b 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-private-key": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index f31090a11..0127d4811 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-strategy": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index bf305de44..308681df9 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-trezor": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 2a482a12c..9852712f1 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -17,6 +17,28 @@ "_moduleAliases": { "~wallet-wallet-connect": "dist" }, + "exports": { + ".": { + "react-native": { + "import": "./dist/esm/index.js", + "require": "./dist/cjs/index.js", + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "require": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + }, + "import": { + "types": "./dist/esm/index.d.ts", + "default": "./dist/esm/index.js" + }, + "default": { + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" + } + } + }, "scripts": { "build": "yarn build:cjs && yarn build:esm && yarn build:post", "build:cjs": "tsc --build --force tsconfig.build.json", diff --git a/proto/indexer/gen.sh b/proto/indexer/gen.sh index 40d5aff5b..80ed92464 100755 --- a/proto/indexer/gen.sh +++ b/proto/indexer/gen.sh @@ -3,7 +3,7 @@ BUILD_DIR=$ROOT_DIR/gen PROTO_DIR=$ROOT_DIR/proto TS_OUTPUT_DIR=$ROOT_DIR/proto-ts TS_STUB_DIR=$ROOT_DIR/stub -injective_indexer_branch=v1.13.62-RC.1 +injective_indexer_branch=v1.13.76 # remove old gen rm -rf $BUILD_DIR diff --git a/proto/indexer/package-lock.json b/proto/indexer/package-lock.json index e7fbbf420..b31120e92 100644 --- a/proto/indexer/package-lock.json +++ b/proto/indexer/package-lock.json @@ -8,13 +8,14 @@ "@grpc/grpc-js": "^1.12.2", "google-protobuf": "^3.20.1", "ts-proto": "^1.141.1", - "ts-protoc-gen": "^0.15.0" + "ts-protoc-gen": "^0.15.0", + "tsc-esm-fix": "^3.1.2" } }, "node_modules/@grpc/grpc-js": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.11.3.tgz", - "integrity": "sha512-i9UraDzFHMR+Iz/MhFLljT+fCpgxZ3O6CxwGJ8YuNYHJItIHUzKJpW2LvoFZNnGPwqc9iWy9RAucxV0JoR9aUQ==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.12.2.tgz", + "integrity": "sha512-bgxdZmgTrJZX50OjyVwz3+mNEnCTNkh3cIqGPWVNeW9jX6bn1ZkU80uPd+67/ZpIJIjRQ9qaHCjhavyoWYxumg==", "dev": true, "dependencies": { "@grpc/proto-loader": "^0.7.13", @@ -82,6 +83,41 @@ "url": "https://opencollective.com/js-sdsl" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -146,6 +182,15 @@ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", "dev": true }, + "node_modules/@topoconfig/extends": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@topoconfig/extends/-/extends-0.16.2.tgz", + "integrity": "sha512-sTF+qpWakr5jf1Hn/kkFSi833xPW15s/loMAiKSYSSVv4vDonxf6hwCGzMXjLq+7HZoaK6BgaV72wXr1eY7FcQ==", + "dev": true, + "bin": { + "xtends": "target/esm/cli.mjs" + } + }, "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", @@ -188,6 +233,18 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/case-anything": { "version": "2.1.10", "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.10.tgz", @@ -238,6 +295,12 @@ "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==", "dev": true }, + "node_modules/depseek": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/depseek/-/depseek-0.4.1.tgz", + "integrity": "sha512-YYfPPajzH9s2qnEva411VJzCMWtArBTfluI9USiKQ+T6xBWFh3C7yPxhaa1KVgJa17v9aRKc+LcRhgxS5/9mOA==", + "dev": true + }, "node_modules/detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", @@ -274,6 +337,57 @@ "node": ">=6" } }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -283,12 +397,39 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/google-protobuf": { "version": "3.21.4", "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==", "dev": true }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -298,6 +439,51 @@ "node": ">=8" } }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", @@ -310,6 +496,28 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", "dev": true }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/object-hash": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", @@ -319,6 +527,18 @@ "node": ">= 0.10.0" } }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/protobufjs": { "version": "6.11.3", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", @@ -345,6 +565,26 @@ "pbts": "bin/pbts" } }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -354,6 +594,39 @@ "node": ">=0.10.0" } }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true, + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -380,6 +653,18 @@ "node": ">=8" } }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/ts-poet": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.3.0.tgz", @@ -429,6 +714,44 @@ "protoc-gen-ts": "bin/protoc-gen-ts" } }, + "node_modules/tsc-esm-fix": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/tsc-esm-fix/-/tsc-esm-fix-3.1.2.tgz", + "integrity": "sha512-1/OpZssMcEp2ae6DyZV+yvDviofuCdDf7dEWEaBvm/ac8vtS04lFyl0LVs8LQE56vjKHytgzVjPIL9udM4QuNg==", + "dev": true, + "dependencies": { + "@topoconfig/extends": "^0.16.2", + "depseek": "^0.4.1", + "fast-glob": "^3.3.2", + "fs-extra": "^11.2.0", + "json5": "^2.2.3", + "type-flag": "^3.0.0" + }, + "bin": { + "tsc-esm-fix": "target/esm/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/type-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/type-flag/-/type-flag-3.0.0.tgz", + "integrity": "sha512-3YaYwMseXCAhBB14RXW5cRQfJQlEknS6i4C8fCfeUdS3ihG9EdccdR9kt3vP73ZdeTGmPb4bZtkDn5XMIn1DLA==", + "dev": true, + "funding": { + "url": "https://github.com/privatenumber/type-flag?sponsor=1" + } + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -485,9 +808,9 @@ }, "dependencies": { "@grpc/grpc-js": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.11.3.tgz", - "integrity": "sha512-i9UraDzFHMR+Iz/MhFLljT+fCpgxZ3O6CxwGJ8YuNYHJItIHUzKJpW2LvoFZNnGPwqc9iWy9RAucxV0JoR9aUQ==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.12.2.tgz", + "integrity": "sha512-bgxdZmgTrJZX50OjyVwz3+mNEnCTNkh3cIqGPWVNeW9jX6bn1ZkU80uPd+67/ZpIJIjRQ9qaHCjhavyoWYxumg==", "dev": true, "requires": { "@grpc/proto-loader": "^0.7.13", @@ -540,6 +863,32 @@ "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", "dev": true }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -604,6 +953,12 @@ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", "dev": true }, + "@topoconfig/extends": { + "version": "0.16.2", + "resolved": "https://registry.npmjs.org/@topoconfig/extends/-/extends-0.16.2.tgz", + "integrity": "sha512-sTF+qpWakr5jf1Hn/kkFSi833xPW15s/loMAiKSYSSVv4vDonxf6hwCGzMXjLq+7HZoaK6BgaV72wXr1eY7FcQ==", + "dev": true + }, "@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", @@ -637,6 +992,15 @@ "color-convert": "^2.0.1" } }, + "braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "requires": { + "fill-range": "^7.1.1" + } + }, "case-anything": { "version": "2.1.10", "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.10.tgz", @@ -675,6 +1039,12 @@ "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==", "dev": true }, + "depseek": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/depseek/-/depseek-0.4.1.tgz", + "integrity": "sha512-YYfPPajzH9s2qnEva411VJzCMWtArBTfluI9USiKQ+T6xBWFh3C7yPxhaa1KVgJa17v9aRKc+LcRhgxS5/9mOA==", + "dev": true + }, "detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", @@ -702,24 +1072,118 @@ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true }, + "fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + } + }, + "fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "fs-extra": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, "google-protobuf": { "version": "3.21.4", "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.4.tgz", "integrity": "sha512-MnG7N936zcKTco4Jd2PX2U96Kf9PxygAPKBug+74LHzmHXmceN16MmRcdgZv+DGef/S9YvQAfRsNCn4cjf9yyQ==", "dev": true }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true + }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, "lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", @@ -732,12 +1196,34 @@ "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", "dev": true }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "requires": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + } + }, "object-hash": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", "integrity": "sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==", "dev": true }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, "protobufjs": { "version": "6.11.3", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", @@ -759,12 +1245,33 @@ "long": "^4.0.0" } }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true + }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "requires": { + "queue-microtask": "^1.2.2" + } + }, "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -785,6 +1292,15 @@ "ansi-regex": "^5.0.1" } }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, "ts-poet": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.3.0.tgz", @@ -828,6 +1344,32 @@ "google-protobuf": "^3.15.5" } }, + "tsc-esm-fix": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/tsc-esm-fix/-/tsc-esm-fix-3.1.2.tgz", + "integrity": "sha512-1/OpZssMcEp2ae6DyZV+yvDviofuCdDf7dEWEaBvm/ac8vtS04lFyl0LVs8LQE56vjKHytgzVjPIL9udM4QuNg==", + "dev": true, + "requires": { + "@topoconfig/extends": "^0.16.2", + "depseek": "^0.4.1", + "fast-glob": "^3.3.2", + "fs-extra": "^11.2.0", + "json5": "^2.2.3", + "type-flag": "^3.0.0" + } + }, + "type-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/type-flag/-/type-flag-3.0.0.tgz", + "integrity": "sha512-3YaYwMseXCAhBB14RXW5cRQfJQlEknS6i4C8fCfeUdS3ihG9EdccdR9kt3vP73ZdeTGmPb4bZtkDn5XMIn1DLA==", + "dev": true + }, + "universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true + }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", diff --git a/yarn.lock b/yarn.lock index 722cb4889..72347b5f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20,6 +20,26 @@ resolved "https://registry.npmjs.org/@apocentre/alias-sampling/-/alias-sampling-0.5.3.tgz#897ff181b48ad7b2bcb4ecf29400214888244f08" integrity sha512-7UDWIIF9hIeJqfKXkNIzkVandlwLf1FWTSdrb9iXvOP8oF544JRXQjCbiTmCv2c9n44n/FIWtehhBfNuAx2CZA== +"@apollo/client@^3.11.10": + version "3.11.10" + resolved "https://registry.npmjs.org/@apollo/client/-/client-3.11.10.tgz#e16ae82ea9b16536ffd109847d24f9293fab5c4d" + integrity sha512-IfGc+X4il0rDqVQBBWdxIKM+ciDCiDzBq9+Bg9z4tJMi87uF6po4v+ddiac1wP0ARgVPsFwEIGxK7jhN4pW8jg== + dependencies: + "@graphql-typed-document-node/core" "^3.1.1" + "@wry/caches" "^1.0.0" + "@wry/equality" "^0.5.6" + "@wry/trie" "^0.5.0" + graphql-tag "^2.12.6" + hoist-non-react-statics "^3.3.2" + optimism "^0.18.0" + prop-types "^15.7.2" + rehackt "^0.1.0" + response-iterator "^0.2.6" + symbol-observable "^4.0.0" + ts-invariant "^0.10.3" + tslib "^2.3.0" + zen-observable-ts "^1.2.5" + "@apollo/client@^3.11.9": version "3.11.9" resolved "https://registry.npmjs.org/@apollo/client/-/client-3.11.9.tgz#d7f998a6e8496667f157823d50a746c4e5a20b46" From 6d065d9c8b1aaa4cd813b8a01d74808aa3e917fa Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:12:29 +0100 Subject: [PATCH 19/54] chore: release - @injectivelabs/exceptions@1.14.20 - @injectivelabs/networks@1.14.20 - @injectivelabs/sdk-ts@1.14.20 - @injectivelabs/test-utils@1.14.20 - @injectivelabs/ts-types@1.14.20 - @injectivelabs/utils@1.14.20 - @injectivelabs/wallet-ts@1.14.20 - @injectivelabs/wallet-base@0.0.7 - @injectivelabs/wallet-core@0.0.7 - @injectivelabs/wallet-cosmos-strategy@0.0.7 - @injectivelabs/wallet-cosmos@0.0.7 - @injectivelabs/wallet-cosmostation@0.0.7 - @injectivelabs/wallet-evm@0.0.7 - @injectivelabs/wallet-ledger@0.0.7 - @injectivelabs/wallet-magic@0.0.7 - @injectivelabs/wallet-private-key@0.0.7 - @injectivelabs/wallet-strategy@0.0.7 - @injectivelabs/wallet-trezor@0.0.7 - @injectivelabs/wallet-wallet-connect@0.0.7 --- 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 | 11 +++++++ packages/sdk-ts/package.json | 12 +++---- packages/test-utils/CHANGELOG.md | 8 +++++ packages/test-utils/package.json | 10 +++--- 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 +++---- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++ packages/wallets/wallet-base/package.json | 12 +++---- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++ packages/wallets/wallet-core/package.json | 12 +++---- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++ .../wallet-cosmos-strategy/package.json | 20 ++++++------ packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++ packages/wallets/wallet-cosmos/package.json | 14 ++++---- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++ .../wallets/wallet-cosmostation/package.json | 12 +++---- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++ packages/wallets/wallet-evm/package.json | 12 +++---- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++ packages/wallets/wallet-ledger/package.json | 14 ++++---- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++ packages/wallets/wallet-magic/package.json | 12 +++---- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++ .../wallets/wallet-private-key/package.json | 12 +++---- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++ packages/wallets/wallet-strategy/package.json | 32 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++ packages/wallets/wallet-trezor/package.json | 14 ++++---- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++ .../wallet-wallet-connect/package.json | 12 +++---- 38 files changed, 271 insertions(+), 116 deletions(-) diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 4b37456eb..f56bf98a0 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.19...@injectivelabs/exceptions@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.17...@injectivelabs/exceptions@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 3e708b632..bd3a7a0ca 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.19", + "version": "1.14.20", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", @@ -56,7 +56,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.19", + "@injectivelabs/ts-types": "^1.14.20", "http-status-codes": "^2.2.0", "shx": "^0.3.2" }, diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 49a083a47..7474c4de8 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.19...@injectivelabs/networks@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.17...@injectivelabs/networks@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index f14a77952..04fe1905c 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.19", + "version": "1.14.20", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -55,9 +55,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 21cb7eece..5455b6cf5 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.20-beta.4...@injectivelabs/sdk-ts@1.14.20) (2024-11-25) + + +### Features + +* add authorization ([76b6e0a](https://github.com/InjectiveLabs/injective-ts/commit/76b6e0a88154079b56e193c6d89574da17568b0b)) + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.18...@injectivelabs/sdk-ts@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index c19c4d66d..d5f21f78a 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.20-beta.4", + "version": "1.14.20", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -122,17 +122,17 @@ "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "1.13.4", - "@injectivelabs/exceptions": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", "@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.13.1", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.19", + "@injectivelabs/networks": "^1.14.20", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.19", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/test-utils": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index c072d7244..7a8680cfe 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.19...@injectivelabs/test-utils@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.17...@injectivelabs/test-utils@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 64536b5ec..020d8fc11 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.19", + "version": "1.14.20", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,10 +55,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index e756aa17b..9cc19f83c 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.19...@injectivelabs/ts-types@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.17...@injectivelabs/ts-types@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 65f6cf70c..9ed36476f 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.19", + "version": "1.14.20", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 7845f502f..d47640656 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.19...@injectivelabs/utils@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.17...@injectivelabs/utils@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 9ba1e6f40..1e1c0031b 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.19", + "version": "1.14.20", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,8 +55,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/ts-types": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", "axios": "^1.6.4", "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 86e516d7c..4700269c4 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.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.20-beta.4...@injectivelabs/wallet-ts@1.14.20) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.19](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.18...@injectivelabs/wallet-ts@1.14.19) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index e77a338c6..b86127ac7 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.20-beta.4", + "version": "1.14.20", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -81,11 +81,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index 92fc0cafe..5c68aa962 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.7-beta.4...@injectivelabs/wallet-base@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.5...@injectivelabs/wallet-base@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index c716cf896..7c266345e 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index 8030dc7bb..5b1b93efa 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.7-beta.5...@injectivelabs/wallet-core@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.5...@injectivelabs/wallet-core@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 9b8a63d5d..747b3f2a4 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7-beta.5", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "@injectivelabs/wallet-base": "^0.0.6", "eip1193-provider": "^1.0.1" }, diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 277e539a9..631e37007 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.7-beta.5...@injectivelabs/wallet-cosmos-strategy@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.5...@injectivelabs/wallet-cosmos-strategy@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index d25533316..db48f6540 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7-beta.5", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,15 +57,15 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", - "@injectivelabs/wallet-core": "^0.0.7-beta.5", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/wallet-core": "^0.0.7", + "@injectivelabs/wallet-cosmos": "^0.0.7", + "@injectivelabs/wallet-cosmostation": "^0.0.7", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 00ed17b26..ccaa4797a 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.7-beta.4...@injectivelabs/wallet-cosmos@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.5...@injectivelabs/wallet-cosmos@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index d479b91ad..3276555d3 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,12 +59,12 @@ "@cosmjs/launchpad": "0.27.1", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index 969acfc7e..1cd33aee4 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.7-beta.4...@injectivelabs/wallet-cosmostation@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.5...@injectivelabs/wallet-cosmostation@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 32785fb57..d37460ca5 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index 940bd949d..9926adef9 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.7-beta.5...@injectivelabs/wallet-evm@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.5...@injectivelabs/wallet-evm@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index aac097db5..9e98a825b 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.5", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", "@injectivelabs/wallet-base": "^0.0.6", "ethers": "^6.5.1", "long": "^5.2.1", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index 4d773e18d..bdfd69f6d 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.7-beta.4...@injectivelabs/wallet-ledger@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.5...@injectivelabs/wallet-ledger@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 8c1d248ac..e57e7401b 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index ba7cf8703..5da38a08b 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.7-beta.4...@injectivelabs/wallet-magic@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.5...@injectivelabs/wallet-magic@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index bf3033fff..cd89f629d 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index b4cc62bc3..e21da7af9 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.7-beta.4...@injectivelabs/wallet-private-key@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.5...@injectivelabs/wallet-private-key@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 50f36533b..9159e50fe 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4" + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index c4ab09b02..1be337a7f 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.7-beta.5...@injectivelabs/wallet-strategy@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.5...@injectivelabs/wallet-strategy@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 0127d4811..8b9b0d54b 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7-beta.5", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,21 +57,21 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", - "@injectivelabs/wallet-core": "^0.0.7-beta.5", - "@injectivelabs/wallet-cosmos": "^0.0.7-beta.4", - "@injectivelabs/wallet-cosmostation": "^0.0.7-beta.4", - "@injectivelabs/wallet-evm": "^0.0.7-beta.5", - "@injectivelabs/wallet-ledger": "^0.0.7-beta.4", - "@injectivelabs/wallet-magic": "^0.0.7-beta.4", - "@injectivelabs/wallet-private-key": "^0.0.7-beta.4", - "@injectivelabs/wallet-trezor": "^0.0.7-beta.4", - "@injectivelabs/wallet-wallet-connect": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/wallet-core": "^0.0.7", + "@injectivelabs/wallet-cosmos": "^0.0.7", + "@injectivelabs/wallet-cosmostation": "^0.0.7", + "@injectivelabs/wallet-evm": "^0.0.7", + "@injectivelabs/wallet-ledger": "^0.0.7", + "@injectivelabs/wallet-magic": "^0.0.7", + "@injectivelabs/wallet-private-key": "^0.0.7", + "@injectivelabs/wallet-trezor": "^0.0.7", + "@injectivelabs/wallet-wallet-connect": "^0.0.7", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 7430f2b00..9d94552f0 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.7-beta.4...@injectivelabs/wallet-trezor@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.5...@injectivelabs/wallet-trezor@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 308681df9..71deeb381 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/networks": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index a1a6c6bdd..517ffd25d 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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. +## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.7-beta.4...@injectivelabs/wallet-wallet-connect@0.0.7) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [0.0.6](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.5...@injectivelabs/wallet-wallet-connect@0.0.6) (2024-11-11) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 9852712f1..ba25e4d7f 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7-beta.4", + "version": "0.0.7", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.19", - "@injectivelabs/sdk-ts": "^1.14.20-beta.4", - "@injectivelabs/ts-types": "^1.14.19", - "@injectivelabs/utils": "^1.14.19", - "@injectivelabs/wallet-base": "^0.0.7-beta.4", + "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/wallet-base": "^0.0.7", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 3cf209f121ca439d025a6cbe6e3d541c1934f27a Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:33:53 +0100 Subject: [PATCH 20/54] fix: esm import grpc-web --- .../exceptions/src/exceptions/types/codes.ts | 9 +++-- .../src/client/base/BaseGrpcConsumer.ts | 6 +-- .../sdk-ts/src/client/base/GrpcWebImpl.ts | 24 ++++++------ .../src/client/base/IndexerGrpcWebImpl.ts | 38 +++++++++---------- packages/sdk-ts/src/utils/grpc.ts | 6 +-- 5 files changed, 43 insertions(+), 40 deletions(-) diff --git a/packages/exceptions/src/exceptions/types/codes.ts b/packages/exceptions/src/exceptions/types/codes.ts index f226c8581..053cf0489 100644 --- a/packages/exceptions/src/exceptions/types/codes.ts +++ b/packages/exceptions/src/exceptions/types/codes.ts @@ -1,4 +1,4 @@ -import { grpc } from '@injectivelabs/grpc-web' +import * as grpc from '@injectivelabs/grpc-web' import { StatusCodes } from 'http-status-codes' export enum TransactionChainErrorModule { @@ -767,8 +767,11 @@ export type IndexerApiErrorCode = number export const UnspecifiedErrorCode = -1 -export type ErrorCode = StatusCodes | typeof UnspecifiedErrorCode | grpc.Code -export const GRPC_REQUEST_FAILED = grpc.Code.Unavailable; +export type ErrorCode = + | StatusCodes + | typeof UnspecifiedErrorCode + | grpc.grpc.Code +export const GRPC_REQUEST_FAILED = grpc.grpc.Code.Unavailable export type ErrorContextCode = | ChainAuctionErrorCodes diff --git a/packages/sdk-ts/src/client/base/BaseGrpcConsumer.ts b/packages/sdk-ts/src/client/base/BaseGrpcConsumer.ts index 72a5b86ee..09fcffddf 100644 --- a/packages/sdk-ts/src/client/base/BaseGrpcConsumer.ts +++ b/packages/sdk-ts/src/client/base/BaseGrpcConsumer.ts @@ -1,11 +1,11 @@ -import { grpc } from '@injectivelabs/grpc-web' +import * as grpc from '@injectivelabs/grpc-web' import { getGrpcTransport } from '../../utils/grpc.js' import { GrpcWebImpl } from './GrpcWebImpl.js' export default class BaseGrpcConsumer extends GrpcWebImpl { protected module: string = '' - protected metadata?: grpc.Metadata + protected metadata?: grpc.grpc.Metadata constructor(endpoint: string) { super(endpoint, { @@ -14,7 +14,7 @@ export default class BaseGrpcConsumer extends GrpcWebImpl { } public setMetadata(map: Record) { - const metadata = new grpc.Metadata() + const metadata = new grpc.grpc.Metadata() Object.keys(map).forEach((key) => metadata.set(key, map[key])) this.metadata = metadata diff --git a/packages/sdk-ts/src/client/base/GrpcWebImpl.ts b/packages/sdk-ts/src/client/base/GrpcWebImpl.ts index 427246edd..8d681d108 100644 --- a/packages/sdk-ts/src/client/base/GrpcWebImpl.ts +++ b/packages/sdk-ts/src/client/base/GrpcWebImpl.ts @@ -1,7 +1,7 @@ -import { grpc } from '@injectivelabs/grpc-web' +import * as grpc from '@injectivelabs/grpc-web' import { BrowserHeaders } from 'browser-headers' -interface UnaryMethodDefinitionR extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionR extends grpc.grpc.UnaryMethodDefinition { requestStream: any responseStream: any } @@ -12,15 +12,15 @@ export interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Promise } export class GrpcWebError extends Error { constructor( message: string, - public code: grpc.Code, - public metadata: grpc.Metadata, + public code: grpc.grpc.Code, + public metadata: grpc.grpc.Metadata, ) { super(message) } @@ -29,20 +29,20 @@ export class GrpcWebError extends Error { export class GrpcWebImpl { private host: string private options: { - transport?: grpc.TransportFactory + transport?: grpc.grpc.TransportFactory debug?: boolean setCookieMetadata?: boolean - metadata?: grpc.Metadata + metadata?: grpc.grpc.Metadata upStreamRetryCodes?: number[] } constructor( host: string, options: { - transport?: grpc.TransportFactory + transport?: grpc.grpc.TransportFactory debug?: boolean setCookieMetadata?: boolean - metadata?: grpc.Metadata + metadata?: grpc.grpc.Metadata upStreamRetryCodes?: number[] }, ) { @@ -53,7 +53,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType } const actualMetadata = new BrowserHeaders({ @@ -62,14 +62,14 @@ export class GrpcWebImpl { }) return new Promise((resolve, reject) => { - grpc.unary(methodDesc, { + grpc.grpc.unary(methodDesc, { request, host: this.host, metadata: actualMetadata, transport: this.options.transport, debug: this.options.debug, onEnd: (response) => { - if (response.status === grpc.Code.OK) { + if (response.status === grpc.grpc.Code.OK) { return resolve(response.message!.toObject()) } diff --git a/packages/sdk-ts/src/client/base/IndexerGrpcWebImpl.ts b/packages/sdk-ts/src/client/base/IndexerGrpcWebImpl.ts index ca3b5c57b..26a0f856d 100644 --- a/packages/sdk-ts/src/client/base/IndexerGrpcWebImpl.ts +++ b/packages/sdk-ts/src/client/base/IndexerGrpcWebImpl.ts @@ -1,9 +1,9 @@ -import { grpc } from '@injectivelabs/grpc-web' +import * as grpc from '@injectivelabs/grpc-web' import { BrowserHeaders } from 'browser-headers' import { Observable } from 'rxjs' import { share } from 'rxjs/operators' -interface UnaryMethodDefinitionR extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionR extends grpc.grpc.UnaryMethodDefinition { requestStream: any responseStream: any } @@ -14,20 +14,20 @@ export interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Promise invoke( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Observable } export class GrpcWebError extends Error { constructor( message: string, - public code: grpc.Code, - public metadata: grpc.Metadata, + public code: grpc.grpc.Code, + public metadata: grpc.grpc.Metadata, ) { super(message) } @@ -36,20 +36,20 @@ export class GrpcWebError extends Error { export class GrpcWebImpl { private host: string private options: { - transport?: grpc.TransportFactory - streamingTransport?: grpc.TransportFactory + transport?: grpc.grpc.TransportFactory + streamingTransport?: grpc.grpc.TransportFactory debug?: boolean - metadata?: grpc.Metadata + metadata?: grpc.grpc.Metadata upStreamRetryCodes?: number[] } constructor( host: string, options: { - transport?: grpc.TransportFactory - streamingTransport?: grpc.TransportFactory + transport?: grpc.grpc.TransportFactory + streamingTransport?: grpc.grpc.TransportFactory debug?: boolean - metadata?: grpc.Metadata + metadata?: grpc.grpc.Metadata upStreamRetryCodes?: number[] }, ) { @@ -60,7 +60,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType } const metadataWithCookieMetadata = new BrowserHeaders({ @@ -69,14 +69,14 @@ export class GrpcWebImpl { }) return new Promise((resolve, reject) => { - grpc.unary(methodDesc, { + grpc.grpc.unary(methodDesc, { request, host: this.host, metadata: metadataWithCookieMetadata, transport: this.options.transport, debug: this.options.debug, onEnd: (response) => { - if (response.status === grpc.Code.OK) { + if (response.status === grpc.grpc.Code.OK) { return resolve(response.message!.toObject()) } @@ -95,7 +95,7 @@ export class GrpcWebImpl { invoke( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined, + metadata: grpc.grpc.Metadata | undefined, ): Observable { const upStreamCodes = this.options.upStreamRetryCodes || [] const DEFAULT_TIMEOUT_TIME: number = 3_000 @@ -107,7 +107,7 @@ export class GrpcWebImpl { return new Observable((observer) => { const upStream = () => { - const client = grpc.invoke(methodDesc, { + const client = grpc.grpc.invoke(methodDesc, { host: this.host, request, transport: this.options.streamingTransport || this.options.transport, @@ -115,9 +115,9 @@ export class GrpcWebImpl { debug: this.options.debug, onMessage: (next) => observer.next(next), onEnd: ( - code: grpc.Code, + code: grpc.grpc.Code, message: string, - trailers: grpc.Metadata, + trailers: grpc.grpc.Metadata, ) => { if (code === 0) { observer.complete() diff --git a/packages/sdk-ts/src/utils/grpc.ts b/packages/sdk-ts/src/utils/grpc.ts index 6b84ba116..ae96db50a 100644 --- a/packages/sdk-ts/src/utils/grpc.ts +++ b/packages/sdk-ts/src/utils/grpc.ts @@ -1,9 +1,9 @@ -import { grpc } from '@injectivelabs/grpc-web' +import * as grpc from '@injectivelabs/grpc-web' import { NodeHttpTransport } from '@injectivelabs/grpc-web-node-http-transport' import { ReactNativeTransport } from '@injectivelabs/grpc-web-react-native-transport' import { isNode, isReactNative } from './helpers.js' -export const getGrpcTransport = (): grpc.TransportFactory => { +export const getGrpcTransport = (): grpc.grpc.TransportFactory => { if (isReactNative()) { return ReactNativeTransport({ withCredentials: true }) } @@ -12,5 +12,5 @@ export const getGrpcTransport = (): grpc.TransportFactory => { return NodeHttpTransport() } - return grpc.CrossBrowserHttpTransport({ withCredentials: false }) + return grpc.grpc.CrossBrowserHttpTransport({ withCredentials: false }) } From ff8061fc7f92032511e60fd9fefe0fce278c8528 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:34:40 +0100 Subject: [PATCH 21/54] chore: release - @injectivelabs/exceptions@1.14.21 - @injectivelabs/networks@1.14.21 - @injectivelabs/sdk-ts@1.14.21 - @injectivelabs/test-utils@1.14.21 - @injectivelabs/utils@1.14.21 - @injectivelabs/wallet-ts@1.14.21 - @injectivelabs/wallet-base@0.0.8 - @injectivelabs/wallet-core@0.0.8 - @injectivelabs/wallet-cosmos-strategy@0.0.8 - @injectivelabs/wallet-cosmos@0.0.8 - @injectivelabs/wallet-cosmostation@0.0.8 - @injectivelabs/wallet-evm@0.0.8 - @injectivelabs/wallet-ledger@0.0.8 - @injectivelabs/wallet-magic@0.0.8 - @injectivelabs/wallet-private-key@0.0.8 - @injectivelabs/wallet-strategy@0.0.8 - @injectivelabs/wallet-trezor@0.0.8 - @injectivelabs/wallet-wallet-connect@0.0.8 --- packages/exceptions/CHANGELOG.md | 11 +++++++ packages/exceptions/package.json | 2 +- packages/networks/CHANGELOG.md | 8 +++++ packages/networks/package.json | 6 ++-- packages/sdk-ts/CHANGELOG.md | 11 +++++++ packages/sdk-ts/package.json | 10 +++---- packages/test-utils/CHANGELOG.md | 8 +++++ packages/test-utils/package.json | 8 ++--- packages/utils/CHANGELOG.md | 8 +++++ packages/utils/package.json | 4 +-- packages/wallet-ts/CHANGELOG.md | 8 +++++ packages/wallet-ts/package.json | 10 +++---- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++ packages/wallets/wallet-base/package.json | 10 +++---- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++ packages/wallets/wallet-core/package.json | 10 +++---- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++ .../wallet-cosmos-strategy/package.json | 18 +++++------ packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++ packages/wallets/wallet-cosmos/package.json | 12 ++++---- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++ .../wallets/wallet-cosmostation/package.json | 10 +++---- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++ packages/wallets/wallet-evm/package.json | 10 +++---- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++ packages/wallets/wallet-ledger/package.json | 12 ++++---- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++ packages/wallets/wallet-magic/package.json | 10 +++---- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++ .../wallets/wallet-private-key/package.json | 10 +++---- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++ packages/wallets/wallet-strategy/package.json | 30 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++ packages/wallets/wallet-trezor/package.json | 12 ++++---- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++ .../wallet-wallet-connect/package.json | 10 +++---- 36 files changed, 247 insertions(+), 97 deletions(-) diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index f56bf98a0..197cc65c5 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.20...@injectivelabs/exceptions@1.14.21) (2024-11-25) + + +### Bug Fixes + +* esm import grpc-web ([3cf209f](https://github.com/InjectiveLabs/injective-ts/commit/3cf209f121ca439d025a6cbe6e3d541c1934f27a)) + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.19...@injectivelabs/exceptions@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index bd3a7a0ca..acfd9e79f 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.20", + "version": "1.14.21", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 7474c4de8..fb116ca46 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.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.20...@injectivelabs/networks@1.14.21) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.19...@injectivelabs/networks@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index 04fe1905c..2ceb23515 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.20", + "version": "1.14.21", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -55,9 +55,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 5455b6cf5..fce39bc60 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.20...@injectivelabs/sdk-ts@1.14.21) (2024-11-25) + + +### Bug Fixes + +* esm import grpc-web ([3cf209f](https://github.com/InjectiveLabs/injective-ts/commit/3cf209f121ca439d025a6cbe6e3d541c1934f27a)) + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.20-beta.4...@injectivelabs/sdk-ts@1.14.20) (2024-11-25) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index d5f21f78a..c543684d4 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.20", + "version": "1.14.21", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -122,17 +122,17 @@ "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "1.13.4", - "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", "@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.13.1", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/networks": "^1.14.21", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.20", + "@injectivelabs/test-utils": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 7a8680cfe..102ffd5df 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.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.20...@injectivelabs/test-utils@1.14.21) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.19...@injectivelabs/test-utils@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 020d8fc11..d862ff2f4 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.20", + "version": "1.14.21", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,10 +55,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index d47640656..b6f4f74de 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.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.20...@injectivelabs/utils@1.14.21) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.19...@injectivelabs/utils@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 1e1c0031b..22b57b10b 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.20", + "version": "1.14.21", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,7 +55,7 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", "axios": "^1.6.4", "bignumber.js": "^9.0.1", diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 4700269c4..6ce8e5670 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.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.20...@injectivelabs/wallet-ts@1.14.21) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.20-beta.4...@injectivelabs/wallet-ts@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index b86127ac7..69cbef251 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.20", + "version": "1.14.21", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -81,11 +81,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index 5c68aa962..ba1218fa0 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.7...@injectivelabs/wallet-base@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.7-beta.4...@injectivelabs/wallet-base@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 7c266345e..342503b3d 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index 5b1b93efa..dfae42444 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.7...@injectivelabs/wallet-core@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.7-beta.5...@injectivelabs/wallet-core@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 747b3f2a4..70ac109f6 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "@injectivelabs/wallet-base": "^0.0.6", "eip1193-provider": "^1.0.1" }, diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 631e37007..5366aaa6f 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.7...@injectivelabs/wallet-cosmos-strategy@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.7-beta.5...@injectivelabs/wallet-cosmos-strategy@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index db48f6540..425baeba3 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,15 +57,15 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", - "@injectivelabs/wallet-core": "^0.0.7", - "@injectivelabs/wallet-cosmos": "^0.0.7", - "@injectivelabs/wallet-cosmostation": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-core": "^0.0.8", + "@injectivelabs/wallet-cosmos": "^0.0.8", + "@injectivelabs/wallet-cosmostation": "^0.0.8", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index ccaa4797a..7f588b4bc 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.7...@injectivelabs/wallet-cosmos@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.7-beta.4...@injectivelabs/wallet-cosmos@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 3276555d3..93e6de52c 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,12 +59,12 @@ "@cosmjs/launchpad": "0.27.1", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index 1cd33aee4..60cb27f88 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.7...@injectivelabs/wallet-cosmostation@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.7-beta.4...@injectivelabs/wallet-cosmostation@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index d37460ca5..443911286 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index 9926adef9..e51f90657 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.7...@injectivelabs/wallet-evm@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.7-beta.5...@injectivelabs/wallet-evm@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 9e98a825b..dcd9e5734 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", + "@injectivelabs/utils": "^1.14.21", "@injectivelabs/wallet-base": "^0.0.6", "ethers": "^6.5.1", "long": "^5.2.1", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index bdfd69f6d..cbc747969 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.7...@injectivelabs/wallet-ledger@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.7-beta.4...@injectivelabs/wallet-ledger@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index e57e7401b..446527100 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index 5da38a08b..5761d3619 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.7...@injectivelabs/wallet-magic@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.7-beta.4...@injectivelabs/wallet-magic@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index cd89f629d..babe4838e 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index e21da7af9..d633aebb4 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.7...@injectivelabs/wallet-private-key@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.7-beta.4...@injectivelabs/wallet-private-key@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 9159e50fe..3aaf96987 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7" + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index 1be337a7f..6409c799c 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.7...@injectivelabs/wallet-strategy@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.7-beta.5...@injectivelabs/wallet-strategy@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 8b9b0d54b..a55302f43 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,21 +57,21 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", - "@injectivelabs/wallet-core": "^0.0.7", - "@injectivelabs/wallet-cosmos": "^0.0.7", - "@injectivelabs/wallet-cosmostation": "^0.0.7", - "@injectivelabs/wallet-evm": "^0.0.7", - "@injectivelabs/wallet-ledger": "^0.0.7", - "@injectivelabs/wallet-magic": "^0.0.7", - "@injectivelabs/wallet-private-key": "^0.0.7", - "@injectivelabs/wallet-trezor": "^0.0.7", - "@injectivelabs/wallet-wallet-connect": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-core": "^0.0.8", + "@injectivelabs/wallet-cosmos": "^0.0.8", + "@injectivelabs/wallet-cosmostation": "^0.0.8", + "@injectivelabs/wallet-evm": "^0.0.8", + "@injectivelabs/wallet-ledger": "^0.0.8", + "@injectivelabs/wallet-magic": "^0.0.8", + "@injectivelabs/wallet-private-key": "^0.0.8", + "@injectivelabs/wallet-trezor": "^0.0.8", + "@injectivelabs/wallet-wallet-connect": "^0.0.8", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 9d94552f0..2983dd9d9 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.7...@injectivelabs/wallet-trezor@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.7-beta.4...@injectivelabs/wallet-trezor@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 71deeb381..1f1529790 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/networks": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index 517ffd25d..37f9b3be4 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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. +## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.7...@injectivelabs/wallet-wallet-connect@0.0.8) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [0.0.7](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.7-beta.4...@injectivelabs/wallet-wallet-connect@0.0.7) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index ba25e4d7f..3b9a4b761 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.7", + "version": "0.0.8", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.20", - "@injectivelabs/sdk-ts": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.21", "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.20", - "@injectivelabs/wallet-base": "^0.0.7", + "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/wallet-base": "^0.0.8", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 01835b4cb631b7b5778f77bf44c60dd4d0be18ac Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:38:49 +0100 Subject: [PATCH 22/54] fix: import js missing --- .../src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts | 2 +- .../src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts index 3cd75205b..76a74956a 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts @@ -2,7 +2,7 @@ import { dataToExecData, ExecArgBase, ExecDataRepresentation, -} from '../ExecArgBase' +} from '../ExecArgBase.js' export declare namespace ExecArgNeptuneDeposit { export interface Params {} diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts index 287dd389b..2a4133fcc 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts @@ -2,7 +2,7 @@ import { ExecArgBase, dataToExecData, ExecDataRepresentation, -} from '../ExecArgBase' +} from '../ExecArgBase.js' import { toBase64 } from '../../../../utils' From 34b0f147cae44fc84f95ec367582a54c7e5e56bd Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:39:36 +0100 Subject: [PATCH 23/54] chore: release - @injectivelabs/sdk-ts@1.14.22 - @injectivelabs/wallet-ts@1.14.22 - @injectivelabs/wallet-base@0.0.9 - @injectivelabs/wallet-core@0.0.9 - @injectivelabs/wallet-cosmos-strategy@0.0.9 - @injectivelabs/wallet-cosmos@0.0.9 - @injectivelabs/wallet-cosmostation@0.0.9 - @injectivelabs/wallet-evm@0.0.9 - @injectivelabs/wallet-ledger@0.0.9 - @injectivelabs/wallet-magic@0.0.9 - @injectivelabs/wallet-private-key@0.0.9 - @injectivelabs/wallet-strategy@0.0.9 - @injectivelabs/wallet-trezor@0.0.9 - @injectivelabs/wallet-wallet-connect@0.0.9 --- packages/sdk-ts/CHANGELOG.md | 11 +++++++++ packages/sdk-ts/package.json | 2 +- packages/wallet-ts/CHANGELOG.md | 8 +++++++ packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++++ .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++++ .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++++ .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++++ .../wallet-wallet-connect/package.json | 6 ++--- 28 files changed, 163 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index fce39bc60..a0ec0969e 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.22](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.21...@injectivelabs/sdk-ts@1.14.22) (2024-11-25) + + +### Bug Fixes + +* import js missing ([01835b4](https://github.com/InjectiveLabs/injective-ts/commit/01835b4cb631b7b5778f77bf44c60dd4d0be18ac)) + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.20...@injectivelabs/sdk-ts@1.14.21) (2024-11-25) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index c543684d4..fee5de01f 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.21", + "version": "1.14.22", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 6ce8e5670..9dc03c5bf 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.22](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.21...@injectivelabs/wallet-ts@1.14.22) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.20...@injectivelabs/wallet-ts@1.14.21) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 69cbef251..0325f6f85 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.21", + "version": "1.14.22", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index ba1218fa0..97a93c5d6 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.8...@injectivelabs/wallet-base@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.7...@injectivelabs/wallet-base@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 342503b3d..eeac94655 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index dfae42444..9664dbc42 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.8...@injectivelabs/wallet-core@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.7...@injectivelabs/wallet-core@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 70ac109f6..e8878ac61 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 5366aaa6f..962dc4741 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.8...@injectivelabs/wallet-cosmos-strategy@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.7...@injectivelabs/wallet-cosmos-strategy@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 425baeba3..409901c19 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", - "@injectivelabs/wallet-core": "^0.0.8", - "@injectivelabs/wallet-cosmos": "^0.0.8", - "@injectivelabs/wallet-cosmostation": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/wallet-core": "^0.0.9", + "@injectivelabs/wallet-cosmos": "^0.0.9", + "@injectivelabs/wallet-cosmostation": "^0.0.9", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 7f588b4bc..43e887c36 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.8...@injectivelabs/wallet-cosmos@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.7...@injectivelabs/wallet-cosmos@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 93e6de52c..f5b4d568f 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index 60cb27f88..a01129ff9 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.8...@injectivelabs/wallet-cosmostation@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.7...@injectivelabs/wallet-cosmostation@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 443911286..acf4aa71d 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index e51f90657..6ee903146 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.8...@injectivelabs/wallet-evm@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.7...@injectivelabs/wallet-evm@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index dcd9e5734..696d88168 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index cbc747969..14c04fb45 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.8...@injectivelabs/wallet-ledger@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.7...@injectivelabs/wallet-ledger@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 446527100..a5c0ab98d 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index 5761d3619..5b864e588 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.8...@injectivelabs/wallet-magic@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.7...@injectivelabs/wallet-magic@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index babe4838e..e952bcb1a 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index d633aebb4..5a758fbd1 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.8...@injectivelabs/wallet-private-key@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.7...@injectivelabs/wallet-private-key@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 3aaf96987..f96baa356 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8" + "@injectivelabs/wallet-base": "^0.0.9" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index 6409c799c..2ad8a3d33 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.8...@injectivelabs/wallet-strategy@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.7...@injectivelabs/wallet-strategy@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index a55302f43..e34136c7d 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", - "@injectivelabs/wallet-core": "^0.0.8", - "@injectivelabs/wallet-cosmos": "^0.0.8", - "@injectivelabs/wallet-cosmostation": "^0.0.8", - "@injectivelabs/wallet-evm": "^0.0.8", - "@injectivelabs/wallet-ledger": "^0.0.8", - "@injectivelabs/wallet-magic": "^0.0.8", - "@injectivelabs/wallet-private-key": "^0.0.8", - "@injectivelabs/wallet-trezor": "^0.0.8", - "@injectivelabs/wallet-wallet-connect": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/wallet-core": "^0.0.9", + "@injectivelabs/wallet-cosmos": "^0.0.9", + "@injectivelabs/wallet-cosmostation": "^0.0.9", + "@injectivelabs/wallet-evm": "^0.0.9", + "@injectivelabs/wallet-ledger": "^0.0.9", + "@injectivelabs/wallet-magic": "^0.0.9", + "@injectivelabs/wallet-private-key": "^0.0.9", + "@injectivelabs/wallet-trezor": "^0.0.9", + "@injectivelabs/wallet-wallet-connect": "^0.0.9", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 2983dd9d9..78dabd924 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.8...@injectivelabs/wallet-trezor@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.7...@injectivelabs/wallet-trezor@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 1f1529790..30f038e60 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.21", "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index 37f9b3be4..17b468f90 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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. +## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.8...@injectivelabs/wallet-wallet-connect@0.0.9) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [0.0.8](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.7...@injectivelabs/wallet-wallet-connect@0.0.8) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 3b9a4b761..f802cd27e 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.8", + "version": "0.0.9", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.21", + "@injectivelabs/sdk-ts": "^1.14.22", "@injectivelabs/ts-types": "^1.14.20", "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.8", + "@injectivelabs/wallet-base": "^0.0.9", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 24f63c9d175507982ac77ce24e5cbce4cab96804 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:45:13 +0100 Subject: [PATCH 24/54] fix: version --- packages/exceptions/package.json | 2 +- packages/networks/package.json | 2 +- packages/sdk-ts/package.json | 2 +- packages/test-utils/package.json | 2 +- packages/ts-types/package.json | 2 +- packages/utils/package.json | 2 +- packages/wallet-ts/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index acfd9e79f..27746eadb 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.21", + "version": "1.14.25", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/networks/package.json b/packages/networks/package.json index 2ceb23515..b2b2fa50b 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.21", + "version": "1.14.25", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index fee5de01f..30bcb91a7 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.22", + "version": "1.14.25", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index d862ff2f4..0d3055d1d 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.21", + "version": "1.14.25", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 9ed36476f..4ac0fb52c 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.20", + "version": "1.14.25", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/utils/package.json b/packages/utils/package.json index 22b57b10b..919fb53bf 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.21", + "version": "1.14.25", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 0325f6f85..d07086e7e 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.22", + "version": "1.14.25", "sideEffects": false, "author": { "name": "InjectiveLabs", From b5fbbb4f98b48d59b5967ac2c09d7a5eb82a996f Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:45:37 +0100 Subject: [PATCH 25/54] chore: release - @injectivelabs/exceptions@1.14.30 - @injectivelabs/networks@1.14.30 - @injectivelabs/sdk-ts@1.14.30 - @injectivelabs/test-utils@1.14.30 - @injectivelabs/ts-types@1.14.30 - @injectivelabs/utils@1.14.30 - @injectivelabs/wallet-ts@1.14.30 - @injectivelabs/wallet-base@1.14.30 - @injectivelabs/wallet-core@1.14.30 - @injectivelabs/wallet-cosmos-strategy@1.14.30 - @injectivelabs/wallet-cosmos@1.14.30 - @injectivelabs/wallet-cosmostation@1.14.30 - @injectivelabs/wallet-evm@1.14.30 - @injectivelabs/wallet-ledger@1.14.30 - @injectivelabs/wallet-magic@1.14.30 - @injectivelabs/wallet-private-key@1.14.30 - @injectivelabs/wallet-strategy@1.14.30 - @injectivelabs/wallet-trezor@1.14.30 - @injectivelabs/wallet-wallet-connect@1.14.30 --- packages/exceptions/CHANGELOG.md | 11 +++++++ packages/exceptions/package.json | 4 +-- packages/networks/CHANGELOG.md | 11 +++++++ packages/networks/package.json | 8 ++--- packages/sdk-ts/CHANGELOG.md | 11 +++++++ packages/sdk-ts/package.json | 12 +++---- packages/test-utils/CHANGELOG.md | 11 +++++++ packages/test-utils/package.json | 10 +++--- packages/ts-types/CHANGELOG.md | 11 +++++++ packages/ts-types/package.json | 2 +- packages/utils/CHANGELOG.md | 11 +++++++ packages/utils/package.json | 6 ++-- packages/wallet-ts/CHANGELOG.md | 11 +++++++ packages/wallet-ts/package.json | 12 +++---- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++ packages/wallets/wallet-base/package.json | 12 +++---- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++ packages/wallets/wallet-core/package.json | 12 +++---- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++ .../wallet-cosmos-strategy/package.json | 20 ++++++------ packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++ packages/wallets/wallet-cosmos/package.json | 14 ++++---- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++ .../wallets/wallet-cosmostation/package.json | 12 +++---- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++ packages/wallets/wallet-evm/package.json | 12 +++---- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++ packages/wallets/wallet-ledger/package.json | 14 ++++---- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++ packages/wallets/wallet-magic/package.json | 12 +++---- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++ .../wallets/wallet-private-key/package.json | 12 +++---- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++ packages/wallets/wallet-strategy/package.json | 32 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++ packages/wallets/wallet-trezor/package.json | 14 ++++---- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++ .../wallet-wallet-connect/package.json | 12 +++---- 38 files changed, 289 insertions(+), 116 deletions(-) diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 197cc65c5..78b224fdf 100644 --- a/packages/exceptions/CHANGELOG.md +++ b/packages/exceptions/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.21...@injectivelabs/exceptions@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.20...@injectivelabs/exceptions@1.14.21) (2024-11-25) diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 27746eadb..5ddc266e9 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.25", + "version": "1.14.30", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", @@ -56,7 +56,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/ts-types": "^1.14.30", "http-status-codes": "^2.2.0", "shx": "^0.3.2" }, diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index fb116ca46..ab8451c08 100644 --- a/packages/networks/CHANGELOG.md +++ b/packages/networks/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.21...@injectivelabs/networks@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.20...@injectivelabs/networks@1.14.21) (2024-11-25) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index b2b2fa50b..56e44ee5c 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.25", + "version": "1.14.30", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -55,9 +55,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index a0ec0969e..51a962a82 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.22...@injectivelabs/sdk-ts@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.22](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.21...@injectivelabs/sdk-ts@1.14.22) (2024-11-25) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 30bcb91a7..3d74645cf 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.25", + "version": "1.14.30", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -122,17 +122,17 @@ "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "1.13.4", - "@injectivelabs/exceptions": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", "@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.13.1", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.21", + "@injectivelabs/networks": "^1.14.30", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.21", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/test-utils": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 102ffd5df..e3b9be4e3 100644 --- a/packages/test-utils/CHANGELOG.md +++ b/packages/test-utils/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.21...@injectivelabs/test-utils@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.20...@injectivelabs/test-utils@1.14.21) (2024-11-25) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 0d3055d1d..d7c841760 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.25", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,10 +55,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 9cc19f83c..2c4db992a 100644 --- a/packages/ts-types/CHANGELOG.md +++ b/packages/ts-types/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.20...@injectivelabs/ts-types@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.20](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.19...@injectivelabs/ts-types@1.14.20) (2024-11-25) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 4ac0fb52c..63b22b825 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.25", + "version": "1.14.30", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index b6f4f74de..648ef129a 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.21...@injectivelabs/utils@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.21](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.20...@injectivelabs/utils@1.14.21) (2024-11-25) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index 919fb53bf..dbb09f727 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.25", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,8 +55,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/ts-types": "^1.14.20", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", "axios": "^1.6.4", "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 9dc03c5bf..8bd8e5231 100644 --- a/packages/wallet-ts/CHANGELOG.md +++ b/packages/wallet-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.22...@injectivelabs/wallet-ts@1.14.30) (2024-11-25) + + +### Bug Fixes + +* version ([24f63c9](https://github.com/InjectiveLabs/injective-ts/commit/24f63c9d175507982ac77ce24e5cbce4cab96804)) + + + + + ## [1.14.22](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.21...@injectivelabs/wallet-ts@1.14.22) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index d07086e7e..23ebc79f3 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.25", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -81,11 +81,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index 97a93c5d6..bd4539907 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.9...@injectivelabs/wallet-base@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.8...@injectivelabs/wallet-base@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index eeac94655..4456c332a 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index 9664dbc42..328692d67 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.9...@injectivelabs/wallet-core@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.8...@injectivelabs/wallet-core@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index e8878ac61..b2f31f816 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "@injectivelabs/wallet-base": "^0.0.6", "eip1193-provider": "^1.0.1" }, diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 962dc4741..f72419ee1 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.9...@injectivelabs/wallet-cosmos-strategy@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.8...@injectivelabs/wallet-cosmos-strategy@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 409901c19..b4ccd8e69 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,15 +57,15 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", - "@injectivelabs/wallet-core": "^0.0.9", - "@injectivelabs/wallet-cosmos": "^0.0.9", - "@injectivelabs/wallet-cosmostation": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-core": "^1.14.30", + "@injectivelabs/wallet-cosmos": "^1.14.30", + "@injectivelabs/wallet-cosmostation": "^1.14.30", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 43e887c36..6b6cd46e9 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.9...@injectivelabs/wallet-cosmos@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.8...@injectivelabs/wallet-cosmos@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index f5b4d568f..a1ee149c0 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,12 +59,12 @@ "@cosmjs/launchpad": "0.27.1", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index a01129ff9..a53ee0176 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.9...@injectivelabs/wallet-cosmostation@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.8...@injectivelabs/wallet-cosmostation@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index acf4aa71d..62c4165d7 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index 6ee903146..b9fa358db 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.9...@injectivelabs/wallet-evm@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.8...@injectivelabs/wallet-evm@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 696d88168..bb3a53eeb 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", "@injectivelabs/wallet-base": "^0.0.6", "ethers": "^6.5.1", "long": "^5.2.1", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index 14c04fb45..509fd0f9d 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.9...@injectivelabs/wallet-ledger@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.8...@injectivelabs/wallet-ledger@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index a5c0ab98d..664aa9853 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index 5b864e588..7431f0150 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.9...@injectivelabs/wallet-magic@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.8...@injectivelabs/wallet-magic@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index e952bcb1a..fc7d1d038 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index 5a758fbd1..6884974fc 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.9...@injectivelabs/wallet-private-key@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.8...@injectivelabs/wallet-private-key@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index f96baa356..abf2a834a 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9" + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index 2ad8a3d33..0803566c0 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.9...@injectivelabs/wallet-strategy@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.8...@injectivelabs/wallet-strategy@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index e34136c7d..f1fbbb7b6 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,21 +57,21 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", - "@injectivelabs/wallet-core": "^0.0.9", - "@injectivelabs/wallet-cosmos": "^0.0.9", - "@injectivelabs/wallet-cosmostation": "^0.0.9", - "@injectivelabs/wallet-evm": "^0.0.9", - "@injectivelabs/wallet-ledger": "^0.0.9", - "@injectivelabs/wallet-magic": "^0.0.9", - "@injectivelabs/wallet-private-key": "^0.0.9", - "@injectivelabs/wallet-trezor": "^0.0.9", - "@injectivelabs/wallet-wallet-connect": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-core": "^1.14.30", + "@injectivelabs/wallet-cosmos": "^1.14.30", + "@injectivelabs/wallet-cosmostation": "^1.14.30", + "@injectivelabs/wallet-evm": "^1.14.30", + "@injectivelabs/wallet-ledger": "^1.14.30", + "@injectivelabs/wallet-magic": "^1.14.30", + "@injectivelabs/wallet-private-key": "^1.14.30", + "@injectivelabs/wallet-trezor": "^1.14.30", + "@injectivelabs/wallet-wallet-connect": "^1.14.30", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 78dabd924..17dae453a 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.9...@injectivelabs/wallet-trezor@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.8...@injectivelabs/wallet-trezor@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 30f038e60..ce508bd0a 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/networks": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index 17b468f90..d590ae337 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.9...@injectivelabs/wallet-wallet-connect@1.14.30) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [0.0.9](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.8...@injectivelabs/wallet-wallet-connect@0.0.9) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index f802cd27e..68a8b8576 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "0.0.9", + "version": "1.14.30", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.21", - "@injectivelabs/sdk-ts": "^1.14.22", - "@injectivelabs/ts-types": "^1.14.20", - "@injectivelabs/utils": "^1.14.21", - "@injectivelabs/wallet-base": "^0.0.9", + "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.30", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From cfc70ec11fba9e40867e554a18219055842ea6af Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 12:50:19 +0100 Subject: [PATCH 26/54] fix: import --- .../modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts | 2 +- .../core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts | 6 ++---- .../core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts index 277b405a7..59e84b4df 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgCreateSpotGridStrategy.ts @@ -3,7 +3,6 @@ import { ExecArgBase, ExecDataRepresentation, } from '../ExecArgBase.js' - import { ExitType, ExitConfig, @@ -11,6 +10,7 @@ import { TrailingArithmetic, TrailingArithmeticLP, } from '../types.js' + export declare namespace ExecArgCreateSpotGridStrategy { export interface Params { subaccountId: string diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts index 76a74956a..1d6fc1af3 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneDeposit.ts @@ -1,6 +1,6 @@ import { - dataToExecData, ExecArgBase, + dataToExecData, ExecDataRepresentation, } from '../ExecArgBase.js' @@ -17,9 +17,7 @@ export default class ExecArgNeptuneDeposit extends ExecArgBase< ExecArgNeptuneDeposit.Params, ExecArgNeptuneDeposit.Data > { - static fromJSON( - params: ExecArgNeptuneDeposit.Params, - ): ExecArgNeptuneDeposit { + static fromJSON(params: ExecArgNeptuneDeposit.Params): ExecArgNeptuneDeposit { return new ExecArgNeptuneDeposit(params) } diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts index 2a4133fcc..2d505a5bf 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts @@ -5,7 +5,6 @@ import { } from '../ExecArgBase.js' import { toBase64 } from '../../../../utils' - export declare namespace ExecArgNeptuneWithdraw { export interface Params { amount: string From 2a79d94b902de49e64d55e68cf76060b54760e2d Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 13:10:08 +0100 Subject: [PATCH 27/54] fix: import --- jest.config.js | 3 +-- yarn.lock | 70 -------------------------------------------------- 2 files changed, 1 insertion(+), 72 deletions(-) diff --git a/jest.config.js b/jest.config.js index 64d1e47c5..0bd19dd98 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,7 +22,6 @@ const directoryPaths = Object.keys(compilerOptions.paths).reduce( {}, ) - // For a detailed explanation regarding each configuration property, visit: // https://jestjs.io/docs/en/configuration.html @@ -115,7 +114,7 @@ module.exports = { // resetModules: false, // A path to a custom resolver - resolver: './etc/jest-resolver.js', + resolver: `${__dirname}/etc/jest-resolver.js`, // Automatically restore mock state between every test // restoreMocks: false, diff --git a/yarn.lock b/yarn.lock index 72347b5f8..961ce89f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -40,26 +40,6 @@ tslib "^2.3.0" zen-observable-ts "^1.2.5" -"@apollo/client@^3.11.9": - version "3.11.9" - resolved "https://registry.npmjs.org/@apollo/client/-/client-3.11.9.tgz#d7f998a6e8496667f157823d50a746c4e5a20b46" - integrity sha512-aQ6VL+CPO1G4DLS/3FelfA+nl+ZQCP5qeN1NS6J8xh9wumUM/2W1ccneqCYmbTMDtoSunxE1BV2W6u0FF4axwQ== - dependencies: - "@graphql-typed-document-node/core" "^3.1.1" - "@wry/caches" "^1.0.0" - "@wry/equality" "^0.5.6" - "@wry/trie" "^0.5.0" - graphql-tag "^2.12.6" - hoist-non-react-statics "^3.3.2" - optimism "^0.18.0" - prop-types "^15.7.2" - rehackt "^0.1.0" - response-iterator "^0.2.6" - symbol-observable "^4.0.0" - ts-invariant "^0.10.3" - tslib "^2.3.0" - zen-observable-ts "^1.2.5" - "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -2203,16 +2183,6 @@ resolved "https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" integrity sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q== -"@injectivelabs/core-proto-ts@1.13.3": - version "1.13.3" - resolved "https://registry.yarnpkg.com/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.3.tgz#9f2a57106d89d414ea1f9e5ea8287e6f08713271" - integrity sha512-G7gr9pJM/bDDtmW8fuXlUQZ+pNjFsypxM8gpd6bA7BbbBnZArdC8NlZvqfHgKYcaI27/CwIix2jlnz0okstjMg== - dependencies: - "@injectivelabs/grpc-web" "^0.0.1" - google-protobuf "^3.14.0" - protobufjs "^7.0.0" - rxjs "^7.4.0" - "@injectivelabs/core-proto-ts@1.13.4": version "1.13.4" resolved "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-1.13.4.tgz#c33568e471b8031ed66b1b954ac752f965e7f2bf" @@ -2270,46 +2240,6 @@ protobufjs "^7.0.0" rxjs "^7.4.0" -"@injectivelabs/sdk-ts@^1.14.19": - version "1.14.19" - resolved "https://registry.yarnpkg.com/@injectivelabs/sdk-ts/-/sdk-ts-1.14.19.tgz#6c20de0b211092fc76c1c1c0d9e44e26fac6b61e" - integrity sha512-cNmE7nEobZSSxbrnygmSqBASGXmEkk0ftA06qhQTwK/GiYJI6GK5ihRehsSbtatibopqBXB2s3TfsB2cN/IVzQ== - dependencies: - "@apollo/client" "^3.11.9" - "@cosmjs/amino" "^0.32.3" - "@cosmjs/proto-signing" "^0.32.3" - "@cosmjs/stargate" "^0.32.3" - "@ethersproject/bytes" "^5.7.0" - "@injectivelabs/core-proto-ts" "1.13.3" - "@injectivelabs/exceptions" "^1.14.19" - "@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.13.1" - "@injectivelabs/mito-proto-ts" "1.13.0" - "@injectivelabs/networks" "^1.14.19" - "@injectivelabs/olp-proto-ts" "1.13.1" - "@injectivelabs/test-utils" "^1.14.19" - "@injectivelabs/ts-types" "^1.14.19" - "@injectivelabs/utils" "^1.14.19" - "@metamask/eth-sig-util" "^4.0.0" - "@noble/curves" "^1.4.0" - axios "^1.6.4" - bech32 "^2.0.0" - bip39 "^3.0.4" - cosmjs-types "^0.9.0" - ethereumjs-util "^7.1.4" - ethers "^6.5.1" - google-protobuf "^3.21.0" - graphql "^16.3.0" - http-status-codes "^2.2.0" - js-sha3 "^0.8.0" - jscrypto "^1.0.3" - keccak256 "^1.0.6" - secp256k1 "^4.0.3" - shx "^0.3.2" - snakecase-keys "^5.4.1" - "@injectivelabs/wallet-base@^0.0.6": version "0.0.6" resolved "https://registry.yarnpkg.com/@injectivelabs/wallet-base/-/wallet-base-0.0.6.tgz#073ee305b901c939b1dd5807b0506105c8d3f84d" From 86e272b1e469c21540857ae81e04481c5026d655 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 13:10:23 +0100 Subject: [PATCH 28/54] chore: release - @injectivelabs/sdk-ts@1.14.31 - @injectivelabs/wallet-ts@1.14.31 - @injectivelabs/wallet-base@1.14.31 - @injectivelabs/wallet-core@1.14.31 - @injectivelabs/wallet-cosmos-strategy@1.14.31 - @injectivelabs/wallet-cosmos@1.14.31 - @injectivelabs/wallet-cosmostation@1.14.31 - @injectivelabs/wallet-evm@1.14.31 - @injectivelabs/wallet-ledger@1.14.31 - @injectivelabs/wallet-magic@1.14.31 - @injectivelabs/wallet-private-key@1.14.31 - @injectivelabs/wallet-strategy@1.14.31 - @injectivelabs/wallet-trezor@1.14.31 - @injectivelabs/wallet-wallet-connect@1.14.31 --- packages/sdk-ts/CHANGELOG.md | 11 +++++++++ packages/sdk-ts/package.json | 2 +- packages/wallet-ts/CHANGELOG.md | 8 +++++++ packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++++ .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++++ .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++++ .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++++ packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++++ .../wallet-wallet-connect/package.json | 6 ++--- 28 files changed, 163 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 51a962a82..1ea7a57f2 100644 --- a/packages/sdk-ts/CHANGELOG.md +++ b/packages/sdk-ts/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.30...@injectivelabs/sdk-ts@1.14.31) (2024-11-25) + + +### Bug Fixes + +* import ([cfc70ec](https://github.com/InjectiveLabs/injective-ts/commit/cfc70ec11fba9e40867e554a18219055842ea6af)) + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.22...@injectivelabs/sdk-ts@1.14.30) (2024-11-25) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 3d74645cf..fd2994801 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.30", + "version": "1.14.31", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/CHANGELOG.md b/packages/wallet-ts/CHANGELOG.md index 8bd8e5231..e42f13b85 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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.30...@injectivelabs/wallet-ts@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.22...@injectivelabs/wallet-ts@1.14.30) (2024-11-25) diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 23ebc79f3..b9d60fbed 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.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index bd4539907..46bdeb7fb 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@1.14.30...@injectivelabs/wallet-base@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@0.0.9...@injectivelabs/wallet-base@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 4456c332a..b25acb941 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index 328692d67..cb1df3418 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@1.14.30...@injectivelabs/wallet-core@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@0.0.9...@injectivelabs/wallet-core@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index b2f31f816..b6c77f89a 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index f72419ee1..34da61656 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@1.14.30...@injectivelabs/wallet-cosmos-strategy@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@0.0.9...@injectivelabs/wallet-cosmos-strategy@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index b4ccd8e69..b27cfa70f 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", - "@injectivelabs/wallet-core": "^1.14.30", - "@injectivelabs/wallet-cosmos": "^1.14.30", - "@injectivelabs/wallet-cosmostation": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/wallet-core": "^1.14.31", + "@injectivelabs/wallet-cosmos": "^1.14.31", + "@injectivelabs/wallet-cosmostation": "^1.14.31", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 6b6cd46e9..3c7610eea 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@1.14.30...@injectivelabs/wallet-cosmos@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@0.0.9...@injectivelabs/wallet-cosmos@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index a1ee149c0..f9be83d62 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index a53ee0176..1dd73c31d 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@1.14.30...@injectivelabs/wallet-cosmostation@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@0.0.9...@injectivelabs/wallet-cosmostation@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 62c4165d7..7bcd48a21 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index b9fa358db..2853ef873 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@1.14.30...@injectivelabs/wallet-evm@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@0.0.9...@injectivelabs/wallet-evm@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index bb3a53eeb..ab1cf74d8 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index 509fd0f9d..3416db508 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@1.14.30...@injectivelabs/wallet-ledger@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@0.0.9...@injectivelabs/wallet-ledger@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 664aa9853..46f6907a5 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index 7431f0150..b581a108c 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@1.14.30...@injectivelabs/wallet-magic@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@0.0.9...@injectivelabs/wallet-magic@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index fc7d1d038..4bb281260 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index 6884974fc..10cce4061 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@1.14.30...@injectivelabs/wallet-private-key@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@0.0.9...@injectivelabs/wallet-private-key@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index abf2a834a..bcc7bf15e 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30" + "@injectivelabs/wallet-base": "^1.14.31" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index 0803566c0..110534835 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@1.14.30...@injectivelabs/wallet-strategy@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@0.0.9...@injectivelabs/wallet-strategy@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index f1fbbb7b6..20ffa7965 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", - "@injectivelabs/wallet-core": "^1.14.30", - "@injectivelabs/wallet-cosmos": "^1.14.30", - "@injectivelabs/wallet-cosmostation": "^1.14.30", - "@injectivelabs/wallet-evm": "^1.14.30", - "@injectivelabs/wallet-ledger": "^1.14.30", - "@injectivelabs/wallet-magic": "^1.14.30", - "@injectivelabs/wallet-private-key": "^1.14.30", - "@injectivelabs/wallet-trezor": "^1.14.30", - "@injectivelabs/wallet-wallet-connect": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/wallet-core": "^1.14.31", + "@injectivelabs/wallet-cosmos": "^1.14.31", + "@injectivelabs/wallet-cosmostation": "^1.14.31", + "@injectivelabs/wallet-evm": "^1.14.31", + "@injectivelabs/wallet-ledger": "^1.14.31", + "@injectivelabs/wallet-magic": "^1.14.31", + "@injectivelabs/wallet-private-key": "^1.14.31", + "@injectivelabs/wallet-trezor": "^1.14.31", + "@injectivelabs/wallet-wallet-connect": "^1.14.31", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 17dae453a..d82fb933f 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@1.14.30...@injectivelabs/wallet-trezor@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@0.0.9...@injectivelabs/wallet-trezor@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index ce508bd0a..6485a3345 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.30", "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index d590ae337..6af808627 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@1.14.30...@injectivelabs/wallet-wallet-connect@1.14.31) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@0.0.9...@injectivelabs/wallet-wallet-connect@1.14.30) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 68a8b8576..343030c15 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.30", + "version": "1.14.31", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.30", + "@injectivelabs/sdk-ts": "^1.14.31", "@injectivelabs/ts-types": "^1.14.30", "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.30", + "@injectivelabs/wallet-base": "^1.14.31", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From d5b7ab2f1f4e933687d2774b58e8d01a2c186327 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 13:12:47 +0100 Subject: [PATCH 29/54] chore: release - @injectivelabs/exceptions@1.14.32 - @injectivelabs/networks@1.14.32 - @injectivelabs/sdk-ts@1.14.32 - @injectivelabs/test-utils@1.14.32 - @injectivelabs/ts-types@1.14.32 - @injectivelabs/utils@1.14.32 - @injectivelabs/wallet-ts@1.14.32 - @injectivelabs/wallet-base@1.14.32 - @injectivelabs/wallet-core@1.14.32 - @injectivelabs/wallet-cosmos-strategy@1.14.32 - @injectivelabs/wallet-cosmos@1.14.32 - @injectivelabs/wallet-cosmostation@1.14.32 - @injectivelabs/wallet-evm@1.14.32 - @injectivelabs/wallet-ledger@1.14.32 - @injectivelabs/wallet-magic@1.14.32 - @injectivelabs/wallet-private-key@1.14.32 - @injectivelabs/wallet-strategy@1.14.32 - @injectivelabs/wallet-trezor@1.14.32 - @injectivelabs/wallet-wallet-connect@1.14.32 --- 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 | 12 +++---- packages/test-utils/CHANGELOG.md | 8 +++++ packages/test-utils/package.json | 10 +++--- packages/ts-types/CHANGELOG.md | 8 +++++ packages/ts-types/package.json | 4 +-- packages/utils/CHANGELOG.md | 8 +++++ packages/utils/package.json | 6 ++-- packages/wallet-ts/CHANGELOG.md | 8 +++++ packages/wallet-ts/package.json | 12 +++---- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++ packages/wallets/wallet-base/package.json | 12 +++---- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++ packages/wallets/wallet-core/package.json | 12 +++---- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++ .../wallet-cosmos-strategy/package.json | 20 ++++++------ packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++ packages/wallets/wallet-cosmos/package.json | 14 ++++---- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++ .../wallets/wallet-cosmostation/package.json | 12 +++---- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++ packages/wallets/wallet-evm/package.json | 12 +++---- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++ packages/wallets/wallet-ledger/package.json | 14 ++++---- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++ packages/wallets/wallet-magic/package.json | 12 +++---- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++ .../wallets/wallet-private-key/package.json | 12 +++---- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++ packages/wallets/wallet-strategy/package.json | 32 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++ packages/wallets/wallet-trezor/package.json | 14 ++++---- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++ .../wallet-wallet-connect/package.json | 12 +++---- 38 files changed, 269 insertions(+), 117 deletions(-) diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index 78b224fdf..f19322152 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.30...@injectivelabs/exceptions@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.21...@injectivelabs/exceptions@1.14.30) (2024-11-25) diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 5ddc266e9..943bcfbd7 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.30", + "version": "1.14.32", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", @@ -56,7 +56,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/ts-types": "^1.14.32", "http-status-codes": "^2.2.0", "shx": "^0.3.2" }, diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index ab8451c08..35a6a75c3 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.30...@injectivelabs/networks@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.21...@injectivelabs/networks@1.14.30) (2024-11-25) diff --git a/packages/networks/package.json b/packages/networks/package.json index 56e44ee5c..bb2223227 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.30", + "version": "1.14.32", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -55,9 +55,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 1ea7a57f2..545a8deb1 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.31...@injectivelabs/sdk-ts@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.30...@injectivelabs/sdk-ts@1.14.31) (2024-11-25) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index fd2994801..55b00bad8 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.31", + "version": "1.14.32", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -122,17 +122,17 @@ "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "1.13.4", - "@injectivelabs/exceptions": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", "@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.13.1", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.30", + "@injectivelabs/networks": "^1.14.32", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.30", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/test-utils": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index e3b9be4e3..92abafc8d 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.30...@injectivelabs/test-utils@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.21...@injectivelabs/test-utils@1.14.30) (2024-11-25) diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index d7c841760..fe3d12f31 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.30", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,10 +55,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 2c4db992a..6bbeb53bc 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.30...@injectivelabs/ts-types@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.20...@injectivelabs/ts-types@1.14.30) (2024-11-25) diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 63b22b825..3b0b5d715 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.30", + "description": "List of types that can be reused throughout Injective.", + "version": "1.14.32", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 648ef129a..3032fab40 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.30...@injectivelabs/utils@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.14.30](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.21...@injectivelabs/utils@1.14.30) (2024-11-25) diff --git a/packages/utils/package.json b/packages/utils/package.json index dbb09f727..ca097538c 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.30", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,8 +55,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/ts-types": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", "axios": "^1.6.4", "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 e42f13b85..57095e7d0 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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.31...@injectivelabs/wallet-ts@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.30...@injectivelabs/wallet-ts@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index b9d60fbed..bdbccdb1c 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.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -81,11 +81,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index 46bdeb7fb..a9cf769e9 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@1.14.31...@injectivelabs/wallet-base@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@1.14.30...@injectivelabs/wallet-base@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index b25acb941..bf596d87e 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index cb1df3418..502226272 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@1.14.31...@injectivelabs/wallet-core@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@1.14.30...@injectivelabs/wallet-core@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index b6c77f89a..bbda7e9e7 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", "eip1193-provider": "^1.0.1" }, diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 34da61656..0093a981e 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@1.14.31...@injectivelabs/wallet-cosmos-strategy@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@1.14.30...@injectivelabs/wallet-cosmos-strategy@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index b27cfa70f..91b12d995 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,15 +57,15 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", - "@injectivelabs/wallet-core": "^1.14.31", - "@injectivelabs/wallet-cosmos": "^1.14.31", - "@injectivelabs/wallet-cosmostation": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-core": "^1.14.32", + "@injectivelabs/wallet-cosmos": "^1.14.32", + "@injectivelabs/wallet-cosmostation": "^1.14.32", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 3c7610eea..6bc6051e9 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@1.14.31...@injectivelabs/wallet-cosmos@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@1.14.30...@injectivelabs/wallet-cosmos@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index f9be83d62..6b67dfc1f 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,12 +59,12 @@ "@cosmjs/launchpad": "0.27.1", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index 1dd73c31d..7dd1e8312 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@1.14.31...@injectivelabs/wallet-cosmostation@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@1.14.30...@injectivelabs/wallet-cosmostation@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 7bcd48a21..f45633722 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index 2853ef873..f68f29b6c 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@1.14.31...@injectivelabs/wallet-evm@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@1.14.30...@injectivelabs/wallet-evm@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index ab1cf74d8..5195139f1 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", "ethers": "^6.5.1", "long": "^5.2.1", diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index 3416db508..59e37066a 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@1.14.31...@injectivelabs/wallet-ledger@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@1.14.30...@injectivelabs/wallet-ledger@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 46f6907a5..c842c4474 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index b581a108c..73e500bb7 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@1.14.31...@injectivelabs/wallet-magic@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@1.14.30...@injectivelabs/wallet-magic@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 4bb281260..1990f600a 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index 10cce4061..363d7ca3e 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@1.14.31...@injectivelabs/wallet-private-key@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@1.14.30...@injectivelabs/wallet-private-key@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index bcc7bf15e..abf7a2cb0 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31" + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index 110534835..c3c089cac 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@1.14.31...@injectivelabs/wallet-strategy@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@1.14.30...@injectivelabs/wallet-strategy@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 20ffa7965..0387fb462 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,21 +57,21 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", - "@injectivelabs/wallet-core": "^1.14.31", - "@injectivelabs/wallet-cosmos": "^1.14.31", - "@injectivelabs/wallet-cosmostation": "^1.14.31", - "@injectivelabs/wallet-evm": "^1.14.31", - "@injectivelabs/wallet-ledger": "^1.14.31", - "@injectivelabs/wallet-magic": "^1.14.31", - "@injectivelabs/wallet-private-key": "^1.14.31", - "@injectivelabs/wallet-trezor": "^1.14.31", - "@injectivelabs/wallet-wallet-connect": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-core": "^1.14.32", + "@injectivelabs/wallet-cosmos": "^1.14.32", + "@injectivelabs/wallet-cosmostation": "^1.14.32", + "@injectivelabs/wallet-evm": "^1.14.32", + "@injectivelabs/wallet-ledger": "^1.14.32", + "@injectivelabs/wallet-magic": "^1.14.32", + "@injectivelabs/wallet-private-key": "^1.14.32", + "@injectivelabs/wallet-trezor": "^1.14.32", + "@injectivelabs/wallet-wallet-connect": "^1.14.32", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index d82fb933f..651e8e3af 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@1.14.31...@injectivelabs/wallet-trezor@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@1.14.30...@injectivelabs/wallet-trezor@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 6485a3345..a7d4af6dc 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/networks": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index 6af808627..1795440fb 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@1.14.31...@injectivelabs/wallet-wallet-connect@1.14.32) (2024-11-25) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [1.14.31](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@1.14.30...@injectivelabs/wallet-wallet-connect@1.14.31) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 343030c15..1b19aec98 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.31", + "version": "1.14.32", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.30", - "@injectivelabs/sdk-ts": "^1.14.31", - "@injectivelabs/ts-types": "^1.14.30", - "@injectivelabs/utils": "^1.14.30", - "@injectivelabs/wallet-base": "^1.14.31", + "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.32", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From a898113871da1f038597a76fd75bd071d324dd03 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Mon, 25 Nov 2024 13:14:17 +0100 Subject: [PATCH 30/54] fix: import --- .../src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts index 2d505a5bf..1bb27ea80 100644 --- a/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts +++ b/packages/sdk-ts/src/core/modules/wasm/exec-args/ExecArgNeptuneWithdraw.ts @@ -3,7 +3,7 @@ import { dataToExecData, ExecDataRepresentation, } from '../ExecArgBase.js' -import { toBase64 } from '../../../../utils' +import { toBase64 } from '../../../../utils/utf8.js' export declare namespace ExecArgNeptuneWithdraw { export interface Params { From 7f84a0a31f84ec8272e34c6fd7bf3c101364af88 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Mon, 25 Nov 2024 12:19:20 +0000 Subject: [PATCH 31/54] chore: release - @injectivelabs/sdk-ts@1.14.33-beta.0 - @injectivelabs/wallet-ts@1.14.33-beta.0 - @injectivelabs/wallet-base@1.14.33-beta.0 - @injectivelabs/wallet-core@1.14.33-beta.0 - @injectivelabs/wallet-cosmos-strategy@1.14.33-beta.0 - @injectivelabs/wallet-cosmos@1.14.33-beta.0 - @injectivelabs/wallet-cosmostation@1.14.33-beta.0 - @injectivelabs/wallet-evm@1.14.33-beta.0 - @injectivelabs/wallet-ledger@1.14.33-beta.0 - @injectivelabs/wallet-magic@1.14.33-beta.0 - @injectivelabs/wallet-private-key@1.14.33-beta.0 - @injectivelabs/wallet-strategy@1.14.33-beta.0 - @injectivelabs/wallet-trezor@1.14.33-beta.0 - @injectivelabs/wallet-wallet-connect@1.14.33-beta.0 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 55b00bad8..d36b060ab 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.32", + "version": "1.14.33-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index bdbccdb1c..3fedba8f1 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.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index bf596d87e..c42fbdcf7 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index bbda7e9e7..8f5c5b703 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 91b12d995..482d4ba68 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", - "@injectivelabs/wallet-core": "^1.14.32", - "@injectivelabs/wallet-cosmos": "^1.14.32", - "@injectivelabs/wallet-cosmostation": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-core": "^1.14.33-beta.0", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.0", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 6b67dfc1f..6f37fa68c 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index f45633722..a6f095880 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 5195139f1..507e81f3b 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index c842c4474..0aa3e7e75 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 1990f600a..39f2f6690 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index abf7a2cb0..43f64abb4 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32" + "@injectivelabs/wallet-base": "^1.14.33-beta.0" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 0387fb462..7088dc68c 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", - "@injectivelabs/wallet-core": "^1.14.32", - "@injectivelabs/wallet-cosmos": "^1.14.32", - "@injectivelabs/wallet-cosmostation": "^1.14.32", - "@injectivelabs/wallet-evm": "^1.14.32", - "@injectivelabs/wallet-ledger": "^1.14.32", - "@injectivelabs/wallet-magic": "^1.14.32", - "@injectivelabs/wallet-private-key": "^1.14.32", - "@injectivelabs/wallet-trezor": "^1.14.32", - "@injectivelabs/wallet-wallet-connect": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-core": "^1.14.33-beta.0", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.0", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.0", + "@injectivelabs/wallet-evm": "^1.14.33-beta.0", + "@injectivelabs/wallet-ledger": "^1.14.33-beta.0", + "@injectivelabs/wallet-magic": "^1.14.33-beta.0", + "@injectivelabs/wallet-private-key": "^1.14.33-beta.0", + "@injectivelabs/wallet-trezor": "^1.14.33-beta.0", + "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index a7d4af6dc..cb0a53d84 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 1b19aec98..18866bacc 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.32", + "@injectivelabs/sdk-ts": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.32", + "@injectivelabs/wallet-base": "^1.14.33-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From cfc1699f68ba77a2ef2d615d69821fccfc68782e Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Mon, 25 Nov 2024 13:30:15 +0100 Subject: [PATCH 32/54] feat: trading strategies stats api --- packages/sdk-ts/package.json | 2 +- .../indexer/grpc/IndexerGrpcTradingApi.ts | 27 +++++++++ yarn.lock | 57 ++++++++++++++++++- 3 files changed, 84 insertions(+), 2 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index d36b060ab..47d1cb4d4 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -126,7 +126,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.13.1", + "@injectivelabs/indexer-proto-ts": "1.13.2", "@injectivelabs/mito-proto-ts": "1.13.0", "@injectivelabs/networks": "^1.14.32", "@injectivelabs/olp-proto-ts": "1.13.1", diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts index 3d81b7991..138a11844 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts @@ -22,6 +22,33 @@ export class IndexerGrpcTradingApi extends BaseGrpcConsumer { ) } + async fetchTradingStats() { + const request = InjectiveTradingRpc.GetTradingStatsRequest.create() + + try { + const response = + await this.retry(() => + this.client.GetTradingStats(request), + ) + + return response + } catch (e: unknown) { + if (e instanceof InjectiveTradingRpc.GrpcWebError) { + throw new GrpcUnaryRequestException(new Error(e.toString()), { + code: e.code, + context: 'TradingStats', + contextModule: this.module, + }) + } + + throw new GrpcUnaryRequestException(e as Error, { + code: UnspecifiedErrorCode, + context: 'TradingStats', + contextModule: this.module, + }) + } + } + async fetchGridStrategies({ accountAddress, subaccountId, diff --git a/yarn.lock b/yarn.lock index 961ce89f5..43a8a203e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2220,6 +2220,16 @@ protobufjs "^7.0.0" rxjs "^7.4.0" +"@injectivelabs/indexer-proto-ts@1.13.2": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.13.2.tgz#ad784602ea392b7a25410784cf90eed74895d07b" + integrity sha512-Sn6TiFslc1Lvxhljr5lJCymIRpAcsyfevAyQlGDbls0ZKHcZnl9oBHlFbCPA04dyNGcs9txU2odzBC/1hsYfwQ== + dependencies: + "@injectivelabs/grpc-web" "^0.0.1" + google-protobuf "^3.14.0" + protobufjs "^7.0.0" + rxjs "^7.4.0" + "@injectivelabs/mito-proto-ts@1.13.0": version "1.13.0" resolved "https://registry.npmjs.org/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.13.0.tgz#9bc5325977a3c51b3fb8ec54a93244435861a9ca" @@ -2240,6 +2250,46 @@ protobufjs "^7.0.0" rxjs "^7.4.0" +"@injectivelabs/sdk-ts@^1.14.19": + version "1.14.32" + resolved "https://registry.yarnpkg.com/@injectivelabs/sdk-ts/-/sdk-ts-1.14.32.tgz#560bc07a717d14bac81ee4f5ef17f9ac42abbd67" + integrity sha512-l4V5TK4QnTS8kgv4Qnmmi4rZo+2yF9y4S6lhH6eoyRuPb/xXODUzkyQDIHwbd1Qf92G31qSdL76Koe13v/SBIQ== + dependencies: + "@apollo/client" "^3.11.10" + "@cosmjs/amino" "^0.32.3" + "@cosmjs/proto-signing" "^0.32.3" + "@cosmjs/stargate" "^0.32.3" + "@ethersproject/bytes" "^5.7.0" + "@injectivelabs/core-proto-ts" "1.13.4" + "@injectivelabs/exceptions" "^1.14.32" + "@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.13.1" + "@injectivelabs/mito-proto-ts" "1.13.0" + "@injectivelabs/networks" "^1.14.32" + "@injectivelabs/olp-proto-ts" "1.13.1" + "@injectivelabs/test-utils" "^1.14.32" + "@injectivelabs/ts-types" "^1.14.32" + "@injectivelabs/utils" "^1.14.32" + "@metamask/eth-sig-util" "^4.0.0" + "@noble/curves" "^1.4.0" + axios "^1.6.4" + bech32 "^2.0.0" + bip39 "^3.0.4" + cosmjs-types "^0.9.0" + ethereumjs-util "^7.1.4" + ethers "^6.5.1" + google-protobuf "^3.21.0" + graphql "^16.3.0" + http-status-codes "^2.2.0" + js-sha3 "^0.8.0" + jscrypto "^1.0.3" + keccak256 "^1.0.6" + secp256k1 "^4.0.3" + shx "^0.3.2" + snakecase-keys "^5.4.1" + "@injectivelabs/wallet-base@^0.0.6": version "0.0.6" resolved "https://registry.yarnpkg.com/@injectivelabs/wallet-base/-/wallet-base-0.0.6.tgz#073ee305b901c939b1dd5807b0506105c8d3f84d" @@ -12113,7 +12163,12 @@ libsodium-wrappers-sumo@^0.7.11: dependencies: libsodium-sumo "^0.7.13" -libsodium-wrappers@^0.7.6, "libsodium-wrappers@npm:@bangjelkoski/noop", "libsodium@npm:@bangjelkoski/noop": +libsodium-wrappers@^0.7.6, "libsodium-wrappers@npm:@bangjelkoski/noop": + version "0.0.1" + resolved "https://registry.npmjs.org/@bangjelkoski/noop/-/noop-0.0.1.tgz#172235ce00dd4269258c420f01464f07eb9801ed" + integrity sha512-lQgYJJbok2Unu2vKh0TAtWxXo16kLXNrjqmfo0hQTAuE/tVvz5zVqMgGsj+gMkkWfsInEbUndG0nlyCwaFv8hQ== + +"libsodium@npm:@bangjelkoski/noop": version "0.0.1" resolved "https://registry.npmjs.org/@bangjelkoski/noop/-/noop-0.0.1.tgz#172235ce00dd4269258c420f01464f07eb9801ed" integrity sha512-lQgYJJbok2Unu2vKh0TAtWxXo16kLXNrjqmfo0hQTAuE/tVvz5zVqMgGsj+gMkkWfsInEbUndG0nlyCwaFv8hQ== From 1dfb4fe976c92664aefdeff6dca30af73db4cf54 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Mon, 25 Nov 2024 12:35:19 +0000 Subject: [PATCH 33/54] chore: release - @injectivelabs/sdk-ts@1.14.33-beta.1 - @injectivelabs/wallet-ts@1.14.33-beta.1 - @injectivelabs/wallet-base@1.14.33-beta.1 - @injectivelabs/wallet-core@1.14.33-beta.1 - @injectivelabs/wallet-cosmos-strategy@1.14.33-beta.1 - @injectivelabs/wallet-cosmos@1.14.33-beta.1 - @injectivelabs/wallet-cosmostation@1.14.33-beta.1 - @injectivelabs/wallet-evm@1.14.33-beta.1 - @injectivelabs/wallet-ledger@1.14.33-beta.1 - @injectivelabs/wallet-magic@1.14.33-beta.1 - @injectivelabs/wallet-private-key@1.14.33-beta.1 - @injectivelabs/wallet-strategy@1.14.33-beta.1 - @injectivelabs/wallet-trezor@1.14.33-beta.1 - @injectivelabs/wallet-wallet-connect@1.14.33-beta.1 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 47d1cb4d4..46b4f266e 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.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 3fedba8f1..8562efe19 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.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index c42fbdcf7..0eb838388 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 8f5c5b703..7fc1396a9 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 482d4ba68..1f8ca0d61 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", - "@injectivelabs/wallet-core": "^1.14.33-beta.0", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.0", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-core": "^1.14.33-beta.1", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.1", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 6f37fa68c..f451473b7 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index a6f095880..5398a4e3a 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 507e81f3b..a64a0e3e7 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 0aa3e7e75..7d743b6ba 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 39f2f6690..49a91164a 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 43f64abb4..194afab6f 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0" + "@injectivelabs/wallet-base": "^1.14.33-beta.1" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 7088dc68c..ccc32ed3e 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", - "@injectivelabs/wallet-core": "^1.14.33-beta.0", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.0", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.0", - "@injectivelabs/wallet-evm": "^1.14.33-beta.0", - "@injectivelabs/wallet-ledger": "^1.14.33-beta.0", - "@injectivelabs/wallet-magic": "^1.14.33-beta.0", - "@injectivelabs/wallet-private-key": "^1.14.33-beta.0", - "@injectivelabs/wallet-trezor": "^1.14.33-beta.0", - "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-core": "^1.14.33-beta.1", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.1", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.1", + "@injectivelabs/wallet-evm": "^1.14.33-beta.1", + "@injectivelabs/wallet-ledger": "^1.14.33-beta.1", + "@injectivelabs/wallet-magic": "^1.14.33-beta.1", + "@injectivelabs/wallet-private-key": "^1.14.33-beta.1", + "@injectivelabs/wallet-trezor": "^1.14.33-beta.1", + "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index cb0a53d84..aee153f18 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 18866bacc..97d315081 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From f27c3815ad3c11c7b25342520765ba630525e307 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Mon, 25 Nov 2024 14:29:10 +0100 Subject: [PATCH 34/54] fix: fix links to main docs portal --- .gitbook/contracts/README.md | 2 +- .gitbook/core-modules/auction.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitbook/contracts/README.md b/.gitbook/contracts/README.md index 03977430f..e67c12b20 100644 --- a/.gitbook/contracts/README.md +++ b/.gitbook/contracts/README.md @@ -1,6 +1,6 @@ # Contracts -#### [What is CosmWasm?](./#what-is-cosmwasm-)[​](https://docs.injective.network/develop/guides/cosmwasm-dapps/#what-is-cosmwasm) +#### 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. diff --git a/.gitbook/core-modules/auction.md b/.gitbook/core-modules/auction.md index 590839c8a..c1fbb70cb 100644 --- a/.gitbook/core-modules/auction.md +++ b/.gitbook/core-modules/auction.md @@ -68,7 +68,7 @@ How to use funds that are currently associated with your Injective Address in ba - 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/). +For more info, check out the [burn auction pool docs](https://docs.injective.network/developers/modules/injective/auction). ```ts import { From 17b92e252c5135f999dff9d937acc98249463977 Mon Sep 17 00:00:00 2001 From: danidomi Date: Wed, 27 Nov 2024 07:36:53 +0000 Subject: [PATCH 35/54] feat: bump v1.13.78-RC.1 --- proto/indexer/gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/indexer/gen.sh b/proto/indexer/gen.sh index 80ed92464..24ac55cb9 100755 --- a/proto/indexer/gen.sh +++ b/proto/indexer/gen.sh @@ -3,7 +3,7 @@ BUILD_DIR=$ROOT_DIR/gen PROTO_DIR=$ROOT_DIR/proto TS_OUTPUT_DIR=$ROOT_DIR/proto-ts TS_STUB_DIR=$ROOT_DIR/stub -injective_indexer_branch=v1.13.76 +injective_indexer_branch=v1.13.78-RC.1 # remove old gen rm -rf $BUILD_DIR From 26f3da873819ae0d431f94e1e4fcfc663fdc3d18 Mon Sep 17 00:00:00 2001 From: Pavel Shibaev Date: Wed, 27 Nov 2024 15:20:06 +0100 Subject: [PATCH 36/54] fix: update link to Cosmos SDK Transactions documentation --- .gitbook/transactions/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitbook/transactions/README.md b/.gitbook/transactions/README.md index e3da6f9fa..1aa3b3265 100644 --- a/.gitbook/transactions/README.md +++ b/.gitbook/transactions/README.md @@ -1,6 +1,6 @@ # Transactions -_Pre-requisite reading:_ [Cosmos SDK Transactions](https://docs.cosmos.network/main/core/transactions.html) +_Pre-requisite reading:_ [Cosmos SDK Transactions](https://docs.cosmos.network/main/learn/advanced/transactions) State changes on Injective can be done through transactions. Users create transactions, sign them and broadcast them to Injective. From 5e19e95e689fffeafa84cb21b49b5c86120ff737 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Thu, 28 Nov 2024 14:35:51 +0100 Subject: [PATCH 37/54] chore: trading strategies pnl --- packages/sdk-ts/package.json | 2 +- .../indexer/grpc/IndexerGrpcTradingApi.ts | 58 ++++++++++++++++--- 2 files changed, 51 insertions(+), 9 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 46b4f266e..8a633dba6 100644 --- a/packages/sdk-ts/package.json +++ b/packages/sdk-ts/package.json @@ -126,7 +126,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.13.2", + "@injectivelabs/indexer-proto-ts": "1.13.3", "@injectivelabs/mito-proto-ts": "1.13.0", "@injectivelabs/networks": "^1.14.32", "@injectivelabs/olp-proto-ts": "1.13.1", diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts index 138a11844..4a85ec79b 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcTradingApi.ts @@ -50,23 +50,37 @@ export class IndexerGrpcTradingApi extends BaseGrpcConsumer { } async fetchGridStrategies({ - accountAddress, - subaccountId, + skip, state, - marketId, limit, - skip, + withTvl, + endTime, + marketId, + startTime, marketType, strategyType, + subaccountId, + accountAddress, + withPerformance, + pendingExecution, + lastExecutedTime, + isTrailingStrategy, }: { - accountAddress?: string - subaccountId?: string + skip?: number state?: string - marketId?: string limit?: number - skip?: number + endTime?: number + withTvl?: boolean + marketId?: string + startTime?: number marketType?: MarketType + subaccountId?: string strategyType?: GridStrategyType[] + accountAddress?: string + withPerformance?: boolean + pendingExecution?: boolean + lastExecutedTime?: number + isTrailingStrategy?: boolean }) { const request = InjectiveTradingRpc.ListTradingStrategiesRequest.create() @@ -102,6 +116,34 @@ export class IndexerGrpcTradingApi extends BaseGrpcConsumer { request.marketId = marketId } + if (withTvl) { + request.withTvl = withTvl + } + + if (withPerformance) { + request.withPerformance = withPerformance + } + + if (isTrailingStrategy) { + request.isTrailingStrategy = isTrailingStrategy + } + + if (startTime) { + request.startTime = startTime.toString() + } + + if (endTime) { + request.endTime = endTime.toString() + } + + if (pendingExecution) { + request.pendingExecution = pendingExecution + } + + if (lastExecutedTime) { + request.lastExecutedTime = lastExecutedTime.toString() + } + try { const response = await this.retry( From 78456400085eb92651742a540991fa5d4b07f407 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Thu, 28 Nov 2024 14:37:55 +0100 Subject: [PATCH 38/54] chore: strategies pnl --- yarn.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/yarn.lock b/yarn.lock index 43a8a203e..1acd239a8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2220,10 +2220,10 @@ protobufjs "^7.0.0" rxjs "^7.4.0" -"@injectivelabs/indexer-proto-ts@1.13.2": - version "1.13.2" - resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.13.2.tgz#ad784602ea392b7a25410784cf90eed74895d07b" - integrity sha512-Sn6TiFslc1Lvxhljr5lJCymIRpAcsyfevAyQlGDbls0ZKHcZnl9oBHlFbCPA04dyNGcs9txU2odzBC/1hsYfwQ== +"@injectivelabs/indexer-proto-ts@1.13.3": + version "1.13.3" + resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.13.3.tgz#9f1963a8bc87bd4d6f88262fb4a4552b2e6fa79e" + integrity sha512-rLesVPCARl+OC82vj063/pUawYu0ISty/2+xg6ya4Lwk6PDbXmtRvw8wpNP6K+pAsBOKaSkRnO4ThP5qbX+E6A== dependencies: "@injectivelabs/grpc-web" "^0.0.1" google-protobuf "^3.14.0" From bddcbfc2f491af6a2dd6220bfad97f5402c90260 Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Thu, 28 Nov 2024 13:43:01 +0000 Subject: [PATCH 39/54] chore: release - @injectivelabs/sdk-ts@1.14.33-beta.2 - @injectivelabs/wallet-ts@1.14.33-beta.2 - @injectivelabs/wallet-base@1.14.33-beta.2 - @injectivelabs/wallet-core@1.14.33-beta.2 - @injectivelabs/wallet-cosmos-strategy@1.14.33-beta.2 - @injectivelabs/wallet-cosmos@1.14.33-beta.2 - @injectivelabs/wallet-cosmostation@1.14.33-beta.2 - @injectivelabs/wallet-evm@1.14.33-beta.2 - @injectivelabs/wallet-ledger@1.14.33-beta.2 - @injectivelabs/wallet-magic@1.14.33-beta.2 - @injectivelabs/wallet-private-key@1.14.33-beta.2 - @injectivelabs/wallet-strategy@1.14.33-beta.2 - @injectivelabs/wallet-trezor@1.14.33-beta.2 - @injectivelabs/wallet-wallet-connect@1.14.33-beta.2 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 4 ++-- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 4 ++-- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 48 insertions(+), 48 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 8a633dba6..7353dd095 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.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 8562efe19..3ecf6f82c 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.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 0eb838388..7bfcc464e 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 7fc1396a9..ec49f106b 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 1f8ca0d61..4492ac9ba 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", - "@injectivelabs/wallet-core": "^1.14.33-beta.1", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.1", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/wallet-core": "^1.14.33-beta.2", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.2", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index f451473b7..7cb16b080 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 5398a4e3a..3f64e693a 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index a64a0e3e7..78d0a0387 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", "@injectivelabs/wallet-base": "^0.0.6", diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 7d743b6ba..7c4fa1284 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 49a91164a..b94f4152e 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 194afab6f..ce87e0168 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1" + "@injectivelabs/wallet-base": "^1.14.33-beta.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index ccc32ed3e..9f18354c8 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", - "@injectivelabs/wallet-core": "^1.14.33-beta.1", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.1", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.1", - "@injectivelabs/wallet-evm": "^1.14.33-beta.1", - "@injectivelabs/wallet-ledger": "^1.14.33-beta.1", - "@injectivelabs/wallet-magic": "^1.14.33-beta.1", - "@injectivelabs/wallet-private-key": "^1.14.33-beta.1", - "@injectivelabs/wallet-trezor": "^1.14.33-beta.1", - "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/wallet-core": "^1.14.33-beta.2", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.2", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.2", + "@injectivelabs/wallet-evm": "^1.14.33-beta.2", + "@injectivelabs/wallet-ledger": "^1.14.33-beta.2", + "@injectivelabs/wallet-magic": "^1.14.33-beta.2", + "@injectivelabs/wallet-private-key": "^1.14.33-beta.2", + "@injectivelabs/wallet-trezor": "^1.14.33-beta.2", + "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index aee153f18..6cd324310 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 97d315081..693c92594 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.1", + "version": "1.14.33-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 5ac0bc3033c5e4b7abdb0494c07edde3c3cf6db5 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Fri, 29 Nov 2024 03:31:34 +0800 Subject: [PATCH 40/54] chore: wallet strategy enhancement --- .../wallet-strategy/strategies/Ledger/Base.ts | 32 ++-- .../wallets/wallet-base/src/utils/index.ts | 3 + .../wallets/wallet-base/src/utils/wallet.ts | 9 + packages/wallets/wallet-core/package.json | 2 +- .../src/strategy/BaseWalletStrategy.ts | 2 +- .../wallets/wallet-cosmos/src/cosmos.d.ts | 1 + .../wallets/wallet-cosmos/src/data/index.ts | 8 + packages/wallets/wallet-cosmos/src/index.ts | 1 + .../wallet-cosmos/src/strategy/strategy.ts | 26 ++- .../wallets/wallet-cosmos/src/utils/index.ts | 60 ++++++ packages/wallets/wallet-cosmos/src/wallet.ts | 39 ++-- .../wallets/wallet-cosmostation/src/index.ts | 1 + .../wallet-cosmostation/src/utils/index.ts | 9 + packages/wallets/wallet-evm/package.json | 2 +- packages/wallets/wallet-evm/src/data/index.ts | 9 + .../wallet-evm/src/strategy/strategy.ts | 30 ++- .../wallets/wallet-evm/src/utils/index.ts | 83 ++++++-- .../src/strategy/WalletStrategy.ts | 180 ----------------- .../wallet-strategy/src/strategy/index.ts | 181 +++++++++++++++++- yarn.lock | 78 +------- 20 files changed, 424 insertions(+), 332 deletions(-) create mode 100644 packages/wallets/wallet-cosmos/src/data/index.ts create mode 100644 packages/wallets/wallet-cosmos/src/utils/index.ts create mode 100644 packages/wallets/wallet-cosmostation/src/utils/index.ts create mode 100644 packages/wallets/wallet-evm/src/data/index.ts delete mode 100644 packages/wallets/wallet-strategy/src/strategy/WalletStrategy.ts diff --git a/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Ledger/Base.ts b/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Ledger/Base.ts index 163e10da0..31dd69837 100644 --- a/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Ledger/Base.ts +++ b/packages/wallet-ts/src/strategies/wallet-strategy/strategies/Ledger/Base.ts @@ -1,40 +1,40 @@ /* eslint-disable class-methods-use-this */ -import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types' -import { bufferToHex, addHexPrefix } from 'ethereumjs-util' -import { Common, Chain, Hardfork } from '@ethereumjs/common' -import { FeeMarketEIP1559Transaction } from '@ethereumjs/tx' import { ErrorType, - GeneralException, LedgerException, - TransactionException, - UnspecifiedErrorCode, WalletException, + GeneralException, + UnspecifiedErrorCode, + TransactionException, } from '@injectivelabs/exceptions' import { DirectSignResponse } from '@cosmjs/proto-signing' +import { bufferToHex, addHexPrefix } from 'ethereumjs-util' +import { Common, Chain, Hardfork } from '@ethereumjs/common' +import { FeeMarketEIP1559Transaction } from '@ethereumjs/tx' +import { Alchemy, Network as AlchemyNetwork } from 'alchemy-sdk' +import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types' import { TxGrpcApi, TxRaw, TxResponse, toUtf8 } from '@injectivelabs/sdk-ts' -import { TIP_IN_GWEI } from '../../../../utils/constants.js' +import { + LedgerWalletInfo, + SendTransactionOptions, + LedgerDerivationPathType, +} from '../../types.js' import { ConcreteWalletStrategy, EthereumWalletStrategyArgs, WalletStrategyEthereumOptions, } from '../../../types/index.js' -import { - LedgerDerivationPathType, - LedgerWalletInfo, - SendTransactionOptions, -} from '../../types.js' -import BaseConcreteStrategy from '../Base.js' import { DEFAULT_BASE_DERIVATION_PATH, DEFAULT_ADDRESS_SEARCH_LIMIT, DEFAULT_NUM_ADDRESSES_TO_FETCH, } from '../../constants.js' import LedgerHW from './hw/index.js' +import BaseConcreteStrategy from '../Base.js' import { domainHash, messageHash } from './utils.js' -import { WalletAction, WalletDeviceType } from '../../../../types/enums.js' +import { TIP_IN_GWEI } from '../../../../utils/constants.js' import { getKeyFromRpcUrl } from '../../../../utils/alchemy.js' -import { Alchemy, Network as AlchemyNetwork } from 'alchemy-sdk' +import { WalletAction, WalletDeviceType } from '../../../../types/enums.js' const getNetworkFromChainId = (chainId: EthereumChainId): Chain => { if (chainId === EthereumChainId.Goerli) { diff --git a/packages/wallets/wallet-base/src/utils/index.ts b/packages/wallets/wallet-base/src/utils/index.ts index ead0c7095..2782fbce9 100644 --- a/packages/wallets/wallet-base/src/utils/index.ts +++ b/packages/wallets/wallet-base/src/utils/index.ts @@ -4,3 +4,6 @@ export * from './wallet.js' export * from './constants.js' export * from './alchemy.js' export * from './cosmos.js' + +export const capitalize = (str: string): string => + str[0].toUpperCase() + str.slice(1) diff --git a/packages/wallets/wallet-base/src/utils/wallet.ts b/packages/wallets/wallet-base/src/utils/wallet.ts index 3daff13cb..fceba4d4c 100644 --- a/packages/wallets/wallet-base/src/utils/wallet.ts +++ b/packages/wallets/wallet-base/src/utils/wallet.ts @@ -19,6 +19,15 @@ export const isEthWallet = (wallet: Wallet): boolean => export const isCosmosWallet = (wallet: Wallet): boolean => !isEthWallet(wallet) +export const isCosmosBrowserWallet = (wallet: Wallet): boolean => + [ + Wallet.Leap, + Wallet.Ninji, + Wallet.Keplr, + Wallet.OWallet, + Wallet.Cosmostation, + ].includes(wallet) + export const isEip712V2OnlyWallet = (wallet: Wallet): boolean => [ Wallet.Magic, diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index ec49f106b..74b9da43b 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -60,7 +60,7 @@ "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts b/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts index e984ebe53..2c646d27c 100644 --- a/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts +++ b/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts @@ -207,7 +207,7 @@ export default class BaseWalletStrategy implements WalletStrategyInterface { } public getCosmosWallet(chainId: ChainId): CosmosWalletAbstraction { - if ([Wallet.Keplr, Wallet.Leap].includes(this.getWallet())) { + if (![Wallet.Keplr, Wallet.Leap].includes(this.getWallet())) { throw new WalletException( new Error(`You can't use this method outside of Keplr/Leap wallet`), ) diff --git a/packages/wallets/wallet-cosmos/src/cosmos.d.ts b/packages/wallets/wallet-cosmos/src/cosmos.d.ts index 7b1c30ed2..c50b57cc3 100644 --- a/packages/wallets/wallet-cosmos/src/cosmos.d.ts +++ b/packages/wallets/wallet-cosmos/src/cosmos.d.ts @@ -6,5 +6,6 @@ declare global { leap: KeplrWindow['keplr'] keplr: KeplrWindow['keplr'] ninji: KeplrWindow['ninji'] + owallet?: KeplrWindow['owallet'] } } diff --git a/packages/wallets/wallet-cosmos/src/data/index.ts b/packages/wallets/wallet-cosmos/src/data/index.ts new file mode 100644 index 000000000..dd6b3e260 --- /dev/null +++ b/packages/wallets/wallet-cosmos/src/data/index.ts @@ -0,0 +1,8 @@ +import { Wallet } from '@injectivelabs/wallet-base' + +export const cosmosWallets = [ + Wallet.Leap, + Wallet.Ninji, + Wallet.Keplr, + Wallet.OWallet, +] diff --git a/packages/wallets/wallet-cosmos/src/index.ts b/packages/wallets/wallet-cosmos/src/index.ts index dbcbb3896..2aba985bd 100644 --- a/packages/wallets/wallet-cosmos/src/index.ts +++ b/packages/wallets/wallet-cosmos/src/index.ts @@ -1,2 +1,3 @@ export { CosmosWallet } from './wallet.js' export { CosmosWalletStrategy } from './strategy/strategy.js' +export * from './utils/index.js' diff --git a/packages/wallets/wallet-cosmos/src/strategy/strategy.ts b/packages/wallets/wallet-cosmos/src/strategy/strategy.ts index 88fb13c22..7b7bf354e 100644 --- a/packages/wallets/wallet-cosmos/src/strategy/strategy.ts +++ b/packages/wallets/wallet-cosmos/src/strategy/strategy.ts @@ -22,6 +22,7 @@ import { } from '@injectivelabs/exceptions' import { Wallet, + capitalize, StdSignDoc, WalletAction, WalletDeviceType, @@ -52,13 +53,18 @@ export class CosmosWalletStrategy if (!cosmosWallets.includes(args.wallet)) { throw new CosmosWalletException( - new Error(`Cosmos Wallet for ${args.wallet} is not supported.`), + new Error( + `Cosmos Wallet for ${capitalize(args.wallet)} is not supported.`, + ), ) } this.wallet = args.wallet this.chainId = args.chainId || CosmosChainId.Injective - this.cosmosWallet = new CosmosWallet(args.chainId, args.wallet) + this.cosmosWallet = new CosmosWallet({ + wallet: args.wallet, + chainId: args.chainId, + }) } async getWalletDeviceType(): Promise { @@ -137,7 +143,9 @@ export class CosmosWalletStrategy throw new CosmosWalletException( new Error( - `sendEthereumTransaction is not supported. ${wallet} only supports sending cosmos transactions`, + `sendEthereumTransaction is not supported. ${capitalize( + wallet, + )} only supports sending cosmos transactions`, ), { code: UnspecifiedErrorCode, @@ -252,7 +260,7 @@ export class CosmosWalletStrategy const { wallet } = this throw new CosmosWalletException( - new Error(`getEthereumChainId is not supported on ${wallet}`), + new Error(`getEthereumChainId is not supported on ${capitalize(wallet)}`), { code: UnspecifiedErrorCode, context: WalletAction.GetChainId, @@ -264,7 +272,11 @@ export class CosmosWalletStrategy const { wallet } = this throw new CosmosWalletException( - new Error(`getEthereumTransactionReceipt is not supported on ${wallet}`), + new Error( + `getEthereumTransactionReceipt is not supported on ${capitalize( + wallet, + )}`, + ), { code: UnspecifiedErrorCode, context: WalletAction.GetEthereumTransactionReceipt, @@ -310,7 +322,7 @@ export class CosmosWalletStrategy public getCosmosWallet(chainId: ChainId): CosmosWallet { const { wallet, cosmosWallet } = this - return !cosmosWallet ? new CosmosWallet(chainId, wallet) : cosmosWallet + return !cosmosWallet ? new CosmosWallet({ chainId, wallet }) : cosmosWallet } private getCurrentCosmosWallet(): CosmosWallet { @@ -318,7 +330,7 @@ export class CosmosWalletStrategy if (!cosmosWallet) { throw new CosmosWalletException( - new Error(`Please install the ${wallet} wallet extension`), + new Error(`Please install the ${capitalize(wallet)} wallet extension`), { code: UnspecifiedErrorCode, type: ErrorType.WalletNotInstalledError, diff --git a/packages/wallets/wallet-cosmos/src/utils/index.ts b/packages/wallets/wallet-cosmos/src/utils/index.ts new file mode 100644 index 000000000..1cdb7ed87 --- /dev/null +++ b/packages/wallets/wallet-cosmos/src/utils/index.ts @@ -0,0 +1,60 @@ +import type { Keplr } from '@keplr-wallet/types' +import { ChainId } from '@injectivelabs/ts-types' +import { PublicKey } from '@injectivelabs/sdk-ts' +import { Wallet, capitalize } from '@injectivelabs/wallet-base' +import { CosmosWalletException } from '@injectivelabs/exceptions' +import { CosmosWallet } from './../wallet.js' +import { cosmosWallets } from './../data/index.js' + +export const isCosmosWalletInstalled = (wallet: Wallet) => { + const $window = (typeof window !== 'undefined' ? window : {}) as Window & { + leap?: Keplr + keplr?: Keplr + ninji?: Keplr + } + + switch (wallet) { + case Wallet.Keplr: + return $window.keplr !== undefined + case Wallet.Ninji: + return $window.ninji !== undefined + case Wallet.Leap: + return $window.leap !== undefined + default: + return false + } +} + +export const confirmCosmosAddress = async ({ + wallet, + chainId, + injectiveAddress, +}: { + wallet: Wallet + chainId: ChainId + injectiveAddress: string +}) => { + if (!cosmosWallets.includes(wallet)) { + throw new CosmosWalletException( + new Error(`Cosmos Wallet for ${capitalize(wallet)} is not supported.`), + ) + } + + const keplr = new CosmosWallet({ chainId, wallet }) + const key = await keplr.getKey() + const publicKey = PublicKey.fromBase64( + Buffer.from(key.pubKey).toString('base64'), + ) + + const { address: derivedAddress } = publicKey.toAddress() + + if (derivedAddress !== injectiveAddress) { + throw new CosmosWalletException( + new Error( + `Connected ${capitalize( + wallet, + )} address is wrong. Please update Injective on ${capitalize(wallet)}.`, + ), + ) + } +} diff --git a/packages/wallets/wallet-cosmos/src/wallet.ts b/packages/wallets/wallet-cosmos/src/wallet.ts index 1929fec4e..ceabf977f 100644 --- a/packages/wallets/wallet-cosmos/src/wallet.ts +++ b/packages/wallets/wallet-cosmos/src/wallet.ts @@ -19,8 +19,8 @@ import { WalletErrorActionModule, } from '@injectivelabs/exceptions' import { BroadcastMode } from '@cosmjs/launchpad' -import { Wallet } from '@injectivelabs/wallet-base' import { CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts' +import { Wallet, capitalize } from '@injectivelabs/wallet-base' import { SigningStargateClient, StdFee } from '@cosmjs/stargate' import type { EncodeObject, OfflineDirectSigner } from '@cosmjs/proto-signing' @@ -35,10 +35,13 @@ export class CosmosWallet { public wallet: Wallet private chainId: CosmosChainId | TestnetCosmosChainId | ChainId - constructor( - chainId: CosmosChainId | TestnetCosmosChainId | ChainId, - wallet: Wallet, - ) { + constructor({ + wallet, + chainId, + }: { + wallet: Wallet + chainId: CosmosChainId | TestnetCosmosChainId | ChainId + }) { this.wallet = wallet this.chainId = chainId } @@ -46,7 +49,7 @@ export class CosmosWallet { public async isChainIdSupported(chainId: CosmosChainId): Promise { const { wallet } = this - return new CosmosWallet(chainId, wallet).checkChainIdSupport() + return new CosmosWallet({ chainId, wallet }).checkChainIdSupport() } public async getCosmosWallet() { @@ -75,7 +78,7 @@ export class CosmosWallet { throw new CosmosWalletException( new Error( - `${wallet} may not support ${ + `${capitalize(wallet)} may not support ${ chainName[0] || chainId } network. Please check if the chain can be added.`, ), @@ -136,7 +139,9 @@ export class CosmosWallet { if ([Wallet.Keplr, Wallet.OWallet].includes(wallet)) { throw new CosmosWalletException( - new Error(`getOfflineAminoSigner is not support on ${wallet}`), + new Error( + `getOfflineAminoSigner is not support on ${capitalize(wallet)}`, + ), ) } @@ -243,7 +248,9 @@ export class CosmosWallet { if (![Wallet.Keplr, Wallet.OWallet].includes(wallet)) { throw new CosmosWalletException( new Error( - `signAndBroadcastAminoUsingCosmjs is not support on ${wallet}`, + `signAndBroadcastAminoUsingCosmjs is not support on ${capitalize( + wallet, + )}`, ), ) } @@ -280,7 +287,7 @@ export class CosmosWallet { if (wallet !== Wallet.Keplr) { throw new CosmosWalletException( - new Error(`signArbitrary is not supported on ${wallet}`), + new Error(`signArbitrary is not supported on ${capitalize(wallet)}`), ) } @@ -332,7 +339,7 @@ export class CosmosWallet { } catch (e) { throw new CosmosWalletException( new Error( - `${wallet} doesn't support ${ + `${capitalize(wallet)} doesn't support ${ chainName[0] || chainId } network. Please use another Cosmos wallet`, ), @@ -345,7 +352,7 @@ export class CosmosWallet { if (!$window) { throw new CosmosWalletException( - new Error(`Please install ${wallet} extension`), + new Error(`Please install ${capitalize(wallet)} extension`), { code: UnspecifiedErrorCode, type: ErrorType.WalletNotInstalledError, @@ -374,7 +381,7 @@ export class CosmosWallet { if (!cosmos) { throw new CosmosWalletException( - new Error(`Please install ${wallet} extension`), + new Error(`Please install ${capitalize(wallet)} extension`), { code: UnspecifiedErrorCode, type: ErrorType.WalletNotInstalledError, @@ -390,9 +397,9 @@ export class CosmosWallet { const { wallet } = this const cosmosWallet = await this.getCosmosWallet() - if ([Wallet.Keplr, Wallet.OWallet].includes(wallet)) { + if (![Wallet.Keplr, Wallet.OWallet].includes(wallet)) { throw new CosmosWalletException( - new Error(`disableGasCheck is not support on ${wallet}`), + new Error(`disableGasCheck is not support on ${capitalize(wallet)}`), ) } @@ -412,7 +419,7 @@ export class CosmosWallet { if ([Wallet.Keplr, Wallet.OWallet].includes(wallet)) { throw new CosmosWalletException( - new Error(`enableGasCheck is not support on ${wallet}`), + new Error(`enableGasCheck is not support on ${capitalize(wallet)}`), ) } diff --git a/packages/wallets/wallet-cosmostation/src/index.ts b/packages/wallets/wallet-cosmostation/src/index.ts index 5f47151f4..013525b61 100644 --- a/packages/wallets/wallet-cosmostation/src/index.ts +++ b/packages/wallets/wallet-cosmostation/src/index.ts @@ -1,2 +1,3 @@ export { CosmostationWallet } from './wallet.js' export { Cosmostation as CosmostationWalletStrategy } from './strategy/strategy.js' +export * from './utils/index.js' diff --git a/packages/wallets/wallet-cosmostation/src/utils/index.ts b/packages/wallets/wallet-cosmostation/src/utils/index.ts new file mode 100644 index 000000000..e5c72a5e6 --- /dev/null +++ b/packages/wallets/wallet-cosmostation/src/utils/index.ts @@ -0,0 +1,9 @@ +import { Cosmos } from '@cosmostation/extension-client' + +export const isCosmosStationWalletInstalled = () => { + const $window = (typeof window !== 'undefined' ? window : {}) as Window & { + cosmostation?: Cosmos + } + + return $window.cosmostation !== undefined +} diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 78d0a0387..a22d99148 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -60,7 +60,7 @@ "@injectivelabs/sdk-ts": "^1.14.33-beta.2", "@injectivelabs/ts-types": "^1.14.32", "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^0.0.6", + "@injectivelabs/wallet-base": "^1.14.33-beta.2", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-evm/src/data/index.ts b/packages/wallets/wallet-evm/src/data/index.ts new file mode 100644 index 000000000..668766cbe --- /dev/null +++ b/packages/wallets/wallet-evm/src/data/index.ts @@ -0,0 +1,9 @@ +import { Wallet } from '@injectivelabs/wallet-base' + +export const evmWallets = [ + Wallet.BitGet, + Wallet.Phantom, + Wallet.Metamask, + Wallet.OkxWallet, + Wallet.TrustWallet, +] diff --git a/packages/wallets/wallet-evm/src/strategy/strategy.ts b/packages/wallets/wallet-evm/src/strategy/strategy.ts index 3af529d7d..484951a62 100644 --- a/packages/wallets/wallet-evm/src/strategy/strategy.ts +++ b/packages/wallets/wallet-evm/src/strategy/strategy.ts @@ -1,4 +1,12 @@ /* eslint-disable class-methods-use-this */ +import { + TxRaw, + toUtf8, + TxGrpcApi, + TxResponse, + DirectSignResponse, + AminoSignResponse, +} from '@injectivelabs/sdk-ts' import { ErrorType, ErrorContext, @@ -13,6 +21,7 @@ import { } from '@injectivelabs/exceptions' import { Wallet, + capitalize, StdSignDoc, WalletAction, WalletDeviceType, @@ -26,14 +35,6 @@ import { } from '@injectivelabs/wallet-base' import { sleep } from '@injectivelabs/utils' import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types' -import { - TxRaw, - toUtf8, - TxGrpcApi, - TxResponse, - DirectSignResponse, - AminoSignResponse, -} from '@injectivelabs/sdk-ts' import { getBitGetProvider, getPhantomProvider, @@ -41,14 +42,7 @@ import { getOkxWalletProvider, getTrustWalletProvider, } from './utils/index.js' - -const evmWallets = [ - Wallet.BitGet, - Wallet.Phantom, - Wallet.Metamask, - Wallet.OkxWallet, - Wallet.TrustWallet, -] +import { evmWallets } from '../data/index.js' export class EvmWallet extends BaseConcreteStrategy @@ -65,7 +59,9 @@ export class EvmWallet if (!evmWallets.includes(args.wallet)) { throw new WalletException( - new Error(`Evm Wallet for ${args.wallet} is not supported.`), + new Error( + `Evm Wallet for ${capitalize(args.wallet)} is not supported.`, + ), ) } diff --git a/packages/wallets/wallet-evm/src/utils/index.ts b/packages/wallets/wallet-evm/src/utils/index.ts index 01fe03894..97b88bd1b 100644 --- a/packages/wallets/wallet-evm/src/utils/index.ts +++ b/packages/wallets/wallet-evm/src/utils/index.ts @@ -1,31 +1,82 @@ -import { ethers } from 'ethers' -import { WalletException } from '@injectivelabs/exceptions' +import { + Wallet, + capitalize, + BrowserEip1993Provider, +} from '@injectivelabs/wallet-base' import { EthereumChainId } from '@injectivelabs/ts-types' +import { WalletException } from '@injectivelabs/exceptions' +import { getOkxWalletProvider } from '../strategy/utils/Okx.js' +import { getBitGetProvider } from '../strategy/utils/bitget.js' +import { getPhantomProvider } from '../strategy/utils/phantom.js' import { getMetamaskProvider } from '../strategy/utils/metamask.js' -import { BrowserEip1993Provider } from '@injectivelabs/wallet-base' +import { getTrustWalletProvider } from '../strategy/utils/trustWallet.js' +import { evmWallets } from '../data/index.js' + +export const getEvmProvider = async ( + wallet: Wallet, +): Promise => { + if (!evmWallets.includes(wallet)) { + throw new WalletException( + new Error(`Evm Wallet for ${capitalize(wallet)} is not supported.`), + ) + } -export const getEthersProviderFromMetamask = async () => { try { - const provider = (await getMetamaskProvider()) as BrowserEip1993Provider + let provider + + if (wallet === Wallet.Metamask) { + provider = (await getMetamaskProvider()) as BrowserEip1993Provider + } + + if (wallet === Wallet.BitGet) { + provider = (await getBitGetProvider()) as BrowserEip1993Provider + } + + if (wallet === Wallet.Phantom) { + provider = (await getPhantomProvider()) as BrowserEip1993Provider + } + + if (wallet === Wallet.TrustWallet) { + provider = (await getTrustWalletProvider()) as BrowserEip1993Provider + } + + if (wallet === Wallet.OkxWallet) { + provider = (await getOkxWalletProvider()) as BrowserEip1993Provider + } if (!provider) { - throw new WalletException(new Error('Please install Metamask Extension')) + throw new WalletException( + new Error(`Please install ${capitalize(wallet)} Extension`), + ) } - return new ethers.BrowserProvider(provider, 'any') + return provider } catch (e) { - throw new WalletException(new Error('Please install Metamask Extension')) + throw new WalletException( + new Error(`Please install ${capitalize(wallet)} Extension`), + ) } } -export const updateMetamaskNetwork = async (chainId: EthereumChainId) => { - try { - const provider = (await getMetamaskProvider()) as BrowserEip1993Provider +export const updateEvmNetwork = async ( + wallet: Wallet, + chainId: EthereumChainId, +) => { + if (!evmWallets.includes(wallet)) { + throw new WalletException( + new Error(`Evm Wallet for ${capitalize(wallet)} is not supported.`), + ) + } - if (!provider) { - throw new WalletException(new Error('Please install Metamask Extension')) - } + const provider = (await getEvmProvider(wallet)) as BrowserEip1993Provider + if (!provider) { + throw new WalletException( + new Error(`Please install ${capitalize(wallet)} Extension`), + ) + } + + try { const chainIdToHex = chainId.toString(16) return await Promise.race([ @@ -42,6 +93,8 @@ export const updateMetamaskNetwork = async (chainId: EthereumChainId) => { ), ]) } catch (e) { - throw new WalletException(new Error('Please update your Metamask network')) + throw new WalletException( + new Error(`Please update your ${capitalize(wallet)} network`), + ) } } diff --git a/packages/wallets/wallet-strategy/src/strategy/WalletStrategy.ts b/packages/wallets/wallet-strategy/src/strategy/WalletStrategy.ts deleted file mode 100644 index 013e6bbbb..000000000 --- a/packages/wallets/wallet-strategy/src/strategy/WalletStrategy.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { - Wallet, - isEthWallet, - MagicMetadata, - ConcreteStrategiesArg, - ConcreteWalletStrategy, - WalletStrategyArguments, - ConcreteWalletStrategyOptions, - WalletStrategyEthereumOptions, - ConcreteEthereumWalletStrategyArgs, -} from '@injectivelabs/wallet-base' -import { - LedgerLiveStrategy, - LedgerLegacyStrategy, -} from '@injectivelabs/wallet-ledger' -import { MagicStrategy } from '@injectivelabs/wallet-magic' -import { EvmWalletStrategy } from '@injectivelabs/wallet-evm' -import { BaseWalletStrategy } from '@injectivelabs/wallet-core' -import { CosmosWalletStrategy } from '@injectivelabs/wallet-cosmos' -import { TrezorWalletStrategy } from '@injectivelabs/wallet-trezor' -import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect' -import { PrivateKeyWalletStrategy } from '@injectivelabs/wallet-private-key' -import { CosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation' - -const ethereumWalletsDisabled = (args: WalletStrategyArguments) => { - const { ethereumOptions } = args - - if (!ethereumOptions) { - return true - } - - const { ethereumChainId } = ethereumOptions - - if (!ethereumChainId) { - return true - } - - return false -} - -const createStrategy = ({ - args, - wallet, -}: { - args: WalletStrategyArguments - wallet: Wallet -}): ConcreteWalletStrategy | undefined => { - /** - * If we only want to use Cosmos Native Wallets - * We are not creating strategies for Ethereum Native Wallets - */ - if (isEthWallet(wallet) && ethereumWalletsDisabled(args)) { - return undefined - } - - const ethWalletArgs = { - chainId: args.chainId, - ethereumOptions: args.ethereumOptions as WalletStrategyEthereumOptions, - } as ConcreteEthereumWalletStrategyArgs - - switch (wallet) { - case Wallet.Metamask: - return new EvmWalletStrategy({ - ...ethWalletArgs, - wallet: Wallet.Metamask, - }) - case Wallet.Ledger: - return new LedgerLiveStrategy(ethWalletArgs) - case Wallet.LedgerLegacy: - return new LedgerLegacyStrategy(ethWalletArgs) - case Wallet.TrustWallet: - return new EvmWalletStrategy({ - ...ethWalletArgs, - wallet: Wallet.TrustWallet, - }) - case Wallet.Trezor: - return new TrezorWalletStrategy(ethWalletArgs) - case Wallet.Phantom: - return new EvmWalletStrategy({ - ...ethWalletArgs, - wallet: Wallet.Phantom, - }) - case Wallet.OkxWallet: - return new EvmWalletStrategy({ - ...ethWalletArgs, - wallet: Wallet.OkxWallet, - }) - case Wallet.BitGet: - return new EvmWalletStrategy({ - ...ethWalletArgs, - wallet: Wallet.BitGet, - }) - case Wallet.WalletConnect: - return new WalletConnectStrategy({ - ...ethWalletArgs, - metadata: args.options?.metadata, - }) - case Wallet.PrivateKey: - return new PrivateKeyWalletStrategy({ - ...ethWalletArgs, - privateKey: args.options?.privateKey, - }) - case Wallet.Keplr: - return new CosmosWalletStrategy({ ...args, wallet: Wallet.Keplr }) - case Wallet.Cosmostation: - return new CosmostationWalletStrategy({ ...args }) - case Wallet.Leap: - return new CosmosWalletStrategy({ ...args, wallet: Wallet.Leap }) - case Wallet.Ninji: - return new CosmosWalletStrategy({ ...args, wallet: Wallet.Ninji }) - case Wallet.OWallet: - return new CosmosWalletStrategy({ ...args, wallet: Wallet.OWallet }) - case Wallet.Magic: - if ( - !args.options?.metadata?.magic || - !(args.options?.metadata.magic as MagicMetadata)?.apiKey || - !(args.options?.metadata.magic as MagicMetadata)?.rpcEndpoint - ) { - return undefined - } - - return new MagicStrategy({ - ...args, - metadata: args.options.metadata.magic as MagicMetadata, - }) - default: - return undefined - } -} - -const createAllStrategies = ( - args: WalletStrategyArguments, -): ConcreteStrategiesArg => { - return Object.values(Wallet).reduce( - (strategies, wallet) => ({ - ...strategies, - [wallet]: createStrategy({ args, wallet: wallet as Wallet }), - }), - {} as ConcreteStrategiesArg, - ) -} - -export class WalletStrategy extends BaseWalletStrategy { - constructor(args: WalletStrategyArguments) { - const strategies = createAllStrategies(args) - - super({ - ...args, - strategies, - }) - } - - /** - * Case 1: Private Key is set dynamically - * If we have a dynamically set private key, - * we are creating a new PrivateKey strategy - * with the specified private key - * - * Case 2: Wallet Connect Metadata set dynamically - */ - public setOptions(options?: ConcreteWalletStrategyOptions) { - if (options?.privateKey) { - this.strategies[Wallet.PrivateKey] = createStrategy({ - args: { ...this.args, options: { privateKey: options.privateKey } }, - wallet: Wallet.PrivateKey, - }) - } - - if (options?.metadata) { - this.strategies[Wallet.WalletConnect] = createStrategy({ - args: { ...this.args, options: { metadata: options.metadata } }, - wallet: Wallet.WalletConnect, - }) - } - } -} - -export const createStrategyFactory = (args: WalletStrategyArguments) => { - return new WalletStrategy(args) -} diff --git a/packages/wallets/wallet-strategy/src/strategy/index.ts b/packages/wallets/wallet-strategy/src/strategy/index.ts index aa1136ab5..013e6bbbb 100644 --- a/packages/wallets/wallet-strategy/src/strategy/index.ts +++ b/packages/wallets/wallet-strategy/src/strategy/index.ts @@ -1 +1,180 @@ -export * from './WalletStrategy.js' +import { + Wallet, + isEthWallet, + MagicMetadata, + ConcreteStrategiesArg, + ConcreteWalletStrategy, + WalletStrategyArguments, + ConcreteWalletStrategyOptions, + WalletStrategyEthereumOptions, + ConcreteEthereumWalletStrategyArgs, +} from '@injectivelabs/wallet-base' +import { + LedgerLiveStrategy, + LedgerLegacyStrategy, +} from '@injectivelabs/wallet-ledger' +import { MagicStrategy } from '@injectivelabs/wallet-magic' +import { EvmWalletStrategy } from '@injectivelabs/wallet-evm' +import { BaseWalletStrategy } from '@injectivelabs/wallet-core' +import { CosmosWalletStrategy } from '@injectivelabs/wallet-cosmos' +import { TrezorWalletStrategy } from '@injectivelabs/wallet-trezor' +import { WalletConnectStrategy } from '@injectivelabs/wallet-wallet-connect' +import { PrivateKeyWalletStrategy } from '@injectivelabs/wallet-private-key' +import { CosmostationWalletStrategy } from '@injectivelabs/wallet-cosmostation' + +const ethereumWalletsDisabled = (args: WalletStrategyArguments) => { + const { ethereumOptions } = args + + if (!ethereumOptions) { + return true + } + + const { ethereumChainId } = ethereumOptions + + if (!ethereumChainId) { + return true + } + + return false +} + +const createStrategy = ({ + args, + wallet, +}: { + args: WalletStrategyArguments + wallet: Wallet +}): ConcreteWalletStrategy | undefined => { + /** + * If we only want to use Cosmos Native Wallets + * We are not creating strategies for Ethereum Native Wallets + */ + if (isEthWallet(wallet) && ethereumWalletsDisabled(args)) { + return undefined + } + + const ethWalletArgs = { + chainId: args.chainId, + ethereumOptions: args.ethereumOptions as WalletStrategyEthereumOptions, + } as ConcreteEthereumWalletStrategyArgs + + switch (wallet) { + case Wallet.Metamask: + return new EvmWalletStrategy({ + ...ethWalletArgs, + wallet: Wallet.Metamask, + }) + case Wallet.Ledger: + return new LedgerLiveStrategy(ethWalletArgs) + case Wallet.LedgerLegacy: + return new LedgerLegacyStrategy(ethWalletArgs) + case Wallet.TrustWallet: + return new EvmWalletStrategy({ + ...ethWalletArgs, + wallet: Wallet.TrustWallet, + }) + case Wallet.Trezor: + return new TrezorWalletStrategy(ethWalletArgs) + case Wallet.Phantom: + return new EvmWalletStrategy({ + ...ethWalletArgs, + wallet: Wallet.Phantom, + }) + case Wallet.OkxWallet: + return new EvmWalletStrategy({ + ...ethWalletArgs, + wallet: Wallet.OkxWallet, + }) + case Wallet.BitGet: + return new EvmWalletStrategy({ + ...ethWalletArgs, + wallet: Wallet.BitGet, + }) + case Wallet.WalletConnect: + return new WalletConnectStrategy({ + ...ethWalletArgs, + metadata: args.options?.metadata, + }) + case Wallet.PrivateKey: + return new PrivateKeyWalletStrategy({ + ...ethWalletArgs, + privateKey: args.options?.privateKey, + }) + case Wallet.Keplr: + return new CosmosWalletStrategy({ ...args, wallet: Wallet.Keplr }) + case Wallet.Cosmostation: + return new CosmostationWalletStrategy({ ...args }) + case Wallet.Leap: + return new CosmosWalletStrategy({ ...args, wallet: Wallet.Leap }) + case Wallet.Ninji: + return new CosmosWalletStrategy({ ...args, wallet: Wallet.Ninji }) + case Wallet.OWallet: + return new CosmosWalletStrategy({ ...args, wallet: Wallet.OWallet }) + case Wallet.Magic: + if ( + !args.options?.metadata?.magic || + !(args.options?.metadata.magic as MagicMetadata)?.apiKey || + !(args.options?.metadata.magic as MagicMetadata)?.rpcEndpoint + ) { + return undefined + } + + return new MagicStrategy({ + ...args, + metadata: args.options.metadata.magic as MagicMetadata, + }) + default: + return undefined + } +} + +const createAllStrategies = ( + args: WalletStrategyArguments, +): ConcreteStrategiesArg => { + return Object.values(Wallet).reduce( + (strategies, wallet) => ({ + ...strategies, + [wallet]: createStrategy({ args, wallet: wallet as Wallet }), + }), + {} as ConcreteStrategiesArg, + ) +} + +export class WalletStrategy extends BaseWalletStrategy { + constructor(args: WalletStrategyArguments) { + const strategies = createAllStrategies(args) + + super({ + ...args, + strategies, + }) + } + + /** + * Case 1: Private Key is set dynamically + * If we have a dynamically set private key, + * we are creating a new PrivateKey strategy + * with the specified private key + * + * Case 2: Wallet Connect Metadata set dynamically + */ + public setOptions(options?: ConcreteWalletStrategyOptions) { + if (options?.privateKey) { + this.strategies[Wallet.PrivateKey] = createStrategy({ + args: { ...this.args, options: { privateKey: options.privateKey } }, + wallet: Wallet.PrivateKey, + }) + } + + if (options?.metadata) { + this.strategies[Wallet.WalletConnect] = createStrategy({ + args: { ...this.args, options: { metadata: options.metadata } }, + wallet: Wallet.WalletConnect, + }) + } + } +} + +export const createStrategyFactory = (args: WalletStrategyArguments) => { + return new WalletStrategy(args) +} diff --git a/yarn.lock b/yarn.lock index 1acd239a8..605413172 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2210,16 +2210,6 @@ dependencies: browser-headers "^0.4.1" -"@injectivelabs/indexer-proto-ts@1.13.1": - version "1.13.1" - resolved "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.13.1.tgz#94de25619e1725d393c2e447298374466540e763" - integrity sha512-w5C2qREyNZyc7bvGUvxzl5JetUkChFDTzZqW55qox+Iy6jiCkNILPTiArlHMlv/i04ymJ3B70Ftsr1j7V4lZrA== - dependencies: - "@injectivelabs/grpc-web" "^0.0.1" - google-protobuf "^3.14.0" - protobufjs "^7.0.0" - rxjs "^7.4.0" - "@injectivelabs/indexer-proto-ts@1.13.3": version "1.13.3" resolved "https://registry.yarnpkg.com/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.13.3.tgz#9f1963a8bc87bd4d6f88262fb4a4552b2e6fa79e" @@ -2250,67 +2240,6 @@ protobufjs "^7.0.0" rxjs "^7.4.0" -"@injectivelabs/sdk-ts@^1.14.19": - version "1.14.32" - resolved "https://registry.yarnpkg.com/@injectivelabs/sdk-ts/-/sdk-ts-1.14.32.tgz#560bc07a717d14bac81ee4f5ef17f9ac42abbd67" - integrity sha512-l4V5TK4QnTS8kgv4Qnmmi4rZo+2yF9y4S6lhH6eoyRuPb/xXODUzkyQDIHwbd1Qf92G31qSdL76Koe13v/SBIQ== - dependencies: - "@apollo/client" "^3.11.10" - "@cosmjs/amino" "^0.32.3" - "@cosmjs/proto-signing" "^0.32.3" - "@cosmjs/stargate" "^0.32.3" - "@ethersproject/bytes" "^5.7.0" - "@injectivelabs/core-proto-ts" "1.13.4" - "@injectivelabs/exceptions" "^1.14.32" - "@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.13.1" - "@injectivelabs/mito-proto-ts" "1.13.0" - "@injectivelabs/networks" "^1.14.32" - "@injectivelabs/olp-proto-ts" "1.13.1" - "@injectivelabs/test-utils" "^1.14.32" - "@injectivelabs/ts-types" "^1.14.32" - "@injectivelabs/utils" "^1.14.32" - "@metamask/eth-sig-util" "^4.0.0" - "@noble/curves" "^1.4.0" - axios "^1.6.4" - bech32 "^2.0.0" - bip39 "^3.0.4" - cosmjs-types "^0.9.0" - ethereumjs-util "^7.1.4" - ethers "^6.5.1" - google-protobuf "^3.21.0" - graphql "^16.3.0" - http-status-codes "^2.2.0" - js-sha3 "^0.8.0" - jscrypto "^1.0.3" - keccak256 "^1.0.6" - secp256k1 "^4.0.3" - shx "^0.3.2" - snakecase-keys "^5.4.1" - -"@injectivelabs/wallet-base@^0.0.6": - version "0.0.6" - resolved "https://registry.yarnpkg.com/@injectivelabs/wallet-base/-/wallet-base-0.0.6.tgz#073ee305b901c939b1dd5807b0506105c8d3f84d" - integrity sha512-QfFCW7KGbTC6MSPZxTAwy4vqH855EHWtvEXi3l3cS2OWb8llt1XhOc2W0YiCywcgEWh/Sv7EQb00VfMQAGM58g== - dependencies: - "@ethereumjs/common" "^3.1.1" - "@ethereumjs/tx" "^4.1.1" - "@injectivelabs/exceptions" "^1.14.19" - "@injectivelabs/networks" "^1.14.19" - "@injectivelabs/sdk-ts" "^1.14.19" - "@injectivelabs/ts-types" "^1.14.19" - "@injectivelabs/utils" "^1.14.19" - alchemy-sdk "^3.4.7" - eip1193-provider "^1.0.1" - eth-sig-util "^3.0.1" - ethereumjs-util "^7.1.0" - ethers "^6.5.1" - hdkey "^2.0.1" - long "^5.2.1" - shx "^0.3.3" - "@ioredis/commands@^1.1.1": version "1.2.0" resolved "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz#6d61b3097470af1fdbbe622795b8921d42018e11" @@ -12163,12 +12092,7 @@ libsodium-wrappers-sumo@^0.7.11: dependencies: libsodium-sumo "^0.7.13" -libsodium-wrappers@^0.7.6, "libsodium-wrappers@npm:@bangjelkoski/noop": - version "0.0.1" - resolved "https://registry.npmjs.org/@bangjelkoski/noop/-/noop-0.0.1.tgz#172235ce00dd4269258c420f01464f07eb9801ed" - integrity sha512-lQgYJJbok2Unu2vKh0TAtWxXo16kLXNrjqmfo0hQTAuE/tVvz5zVqMgGsj+gMkkWfsInEbUndG0nlyCwaFv8hQ== - -"libsodium@npm:@bangjelkoski/noop": +libsodium-wrappers@^0.7.6, "libsodium-wrappers@npm:@bangjelkoski/noop", "libsodium@npm:@bangjelkoski/noop": version "0.0.1" resolved "https://registry.npmjs.org/@bangjelkoski/noop/-/noop-0.0.1.tgz#172235ce00dd4269258c420f01464f07eb9801ed" integrity sha512-lQgYJJbok2Unu2vKh0TAtWxXo16kLXNrjqmfo0hQTAuE/tVvz5zVqMgGsj+gMkkWfsInEbUndG0nlyCwaFv8hQ== From 5f4eec8c1032d9de3503cb4e28d982328f7dbd0a Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 14:04:05 +0100 Subject: [PATCH 41/54] refactor: minor --- packages/utils/src/formatters.ts | 3 +++ .../wallets/wallet-base/src/utils/index.ts | 3 --- .../wallets/wallet-base/src/utils/wallet.ts | 21 ++++++++++--------- .../src/strategy/BaseWalletStrategy.ts | 6 +++--- .../wallet-cosmos/src/strategy/strategy.ts | 2 +- .../wallets/wallet-cosmos/src/utils/index.ts | 18 +++++++++------- packages/wallets/wallet-cosmos/src/wallet.ts | 3 ++- packages/wallets/wallet-evm/src/data/index.ts | 9 -------- packages/wallets/wallet-evm/src/index.ts | 1 + .../wallet-evm/src/strategy/strategy.ts | 7 +++---- .../wallets/wallet-evm/src/utils/index.ts | 8 +++---- .../wallet-strategy/src/strategy/index.ts | 4 ++-- 12 files changed, 41 insertions(+), 44 deletions(-) delete mode 100644 packages/wallets/wallet-evm/src/data/index.ts diff --git a/packages/utils/src/formatters.ts b/packages/utils/src/formatters.ts index 0514ed5fe..ee9f43948 100644 --- a/packages/utils/src/formatters.ts +++ b/packages/utils/src/formatters.ts @@ -37,3 +37,6 @@ export const snakeToPascal = (str: string): string => { ) .join('/') } + +export const capitalize = (str: string): string => + str[0].toUpperCase() + str.slice(1) diff --git a/packages/wallets/wallet-base/src/utils/index.ts b/packages/wallets/wallet-base/src/utils/index.ts index 2782fbce9..ead0c7095 100644 --- a/packages/wallets/wallet-base/src/utils/index.ts +++ b/packages/wallets/wallet-base/src/utils/index.ts @@ -4,6 +4,3 @@ export * from './wallet.js' export * from './constants.js' export * from './alchemy.js' export * from './cosmos.js' - -export const capitalize = (str: string): string => - str[0].toUpperCase() + str.slice(1) diff --git a/packages/wallets/wallet-base/src/utils/wallet.ts b/packages/wallets/wallet-base/src/utils/wallet.ts index fceba4d4c..a10eae65f 100644 --- a/packages/wallets/wallet-base/src/utils/wallet.ts +++ b/packages/wallets/wallet-base/src/utils/wallet.ts @@ -1,6 +1,6 @@ import { Wallet } from './../types/enums.js' -export const isEthWallet = (wallet: Wallet): boolean => +export const isEvmWallet = (wallet: Wallet): boolean => [ Wallet.Magic, Wallet.Torus, @@ -17,7 +17,16 @@ export const isEthWallet = (wallet: Wallet): boolean => Wallet.CosmostationEth, ].includes(wallet) -export const isCosmosWallet = (wallet: Wallet): boolean => !isEthWallet(wallet) +export const isCosmosWallet = (wallet: Wallet): boolean => !isEvmWallet(wallet) + +export const isEvmBrowserWallet = (wallet: Wallet) => [ + Wallet.BitGet, + Wallet.Phantom, + Wallet.Metamask, + Wallet.OkxWallet, + Wallet.TrustWallet, +].includes(wallet) + export const isCosmosBrowserWallet = (wallet: Wallet): boolean => [ @@ -38,11 +47,3 @@ export const isEip712V2OnlyWallet = (wallet: Wallet): boolean => export const isCosmosAminoOnlyWallet = (wallet: Wallet): boolean => [Wallet.LedgerCosmos].includes(wallet) - -export const COSMOS_WALLETS = [ - Wallet.Keplr, - Wallet.Leap, - Wallet.Ninji, - Wallet.Cosmostation, - Wallet.OWallet, -] diff --git a/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts b/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts index 2c646d27c..a09c11e4b 100644 --- a/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts +++ b/packages/wallets/wallet-core/src/strategy/BaseWalletStrategy.ts @@ -12,7 +12,7 @@ import { import { GeneralException, WalletException } from '@injectivelabs/exceptions' import { Wallet, - isEthWallet, + isEvmWallet, isCosmosWallet, WalletDeviceType, ConcreteStrategiesArg, @@ -151,7 +151,7 @@ export default class BaseWalletStrategy implements WalletStrategyInterface { signDoc: StdSignDoc address: string }): Promise { - if (isEthWallet(this.wallet)) { + if (isEvmWallet(this.wallet)) { throw new WalletException( new Error(`You can't sign Cosmos Transaction using ${this.wallet}`), ) @@ -166,7 +166,7 @@ export default class BaseWalletStrategy implements WalletStrategyInterface { chainId: string address: string }): Promise { - if (isEthWallet(this.wallet)) { + if (isEvmWallet(this.wallet)) { throw new WalletException( new Error(`You can't sign Cosmos Transaction using ${this.wallet}`), ) diff --git a/packages/wallets/wallet-cosmos/src/strategy/strategy.ts b/packages/wallets/wallet-cosmos/src/strategy/strategy.ts index 7b7bf354e..84b968597 100644 --- a/packages/wallets/wallet-cosmos/src/strategy/strategy.ts +++ b/packages/wallets/wallet-cosmos/src/strategy/strategy.ts @@ -22,7 +22,6 @@ import { } from '@injectivelabs/exceptions' import { Wallet, - capitalize, StdSignDoc, WalletAction, WalletDeviceType, @@ -32,6 +31,7 @@ import { SendTransactionOptions, createCosmosSignDocFromSignDoc, } from '@injectivelabs/wallet-base' +import { capitalize } from '@injectivelabs/utils' import { CosmosWallet } from './../wallet.js' const cosmosWallets = [Wallet.Leap, Wallet.Ninji, Wallet.Keplr, Wallet.OWallet] diff --git a/packages/wallets/wallet-cosmos/src/utils/index.ts b/packages/wallets/wallet-cosmos/src/utils/index.ts index 1cdb7ed87..9b06c3718 100644 --- a/packages/wallets/wallet-cosmos/src/utils/index.ts +++ b/packages/wallets/wallet-cosmos/src/utils/index.ts @@ -1,16 +1,18 @@ -import type { Keplr } from '@keplr-wallet/types' +import type { Keplr as CosmosBrowserWallet } from '@keplr-wallet/types' import { ChainId } from '@injectivelabs/ts-types' import { PublicKey } from '@injectivelabs/sdk-ts' -import { Wallet, capitalize } from '@injectivelabs/wallet-base' +import { Wallet } from '@injectivelabs/wallet-base' +import { capitalize } from '@injectivelabs/utils' import { CosmosWalletException } from '@injectivelabs/exceptions' import { CosmosWallet } from './../wallet.js' import { cosmosWallets } from './../data/index.js' export const isCosmosWalletInstalled = (wallet: Wallet) => { const $window = (typeof window !== 'undefined' ? window : {}) as Window & { - leap?: Keplr - keplr?: Keplr - ninji?: Keplr + leap?: CosmosBrowserWallet + keplr?: CosmosBrowserWallet + ninji?: CosmosBrowserWallet + oWallet?: CosmosBrowserWallet } switch (wallet) { @@ -20,6 +22,8 @@ export const isCosmosWalletInstalled = (wallet: Wallet) => { return $window.ninji !== undefined case Wallet.Leap: return $window.leap !== undefined + case Wallet.OWallet: + return $window.oWallet !== undefined default: return false } @@ -40,8 +44,8 @@ export const confirmCosmosAddress = async ({ ) } - const keplr = new CosmosWallet({ chainId, wallet }) - const key = await keplr.getKey() + const cosmosWallet = new CosmosWallet({ chainId, wallet }) + const key = await cosmosWallet.getKey() const publicKey = PublicKey.fromBase64( Buffer.from(key.pubKey).toString('base64'), ) diff --git a/packages/wallets/wallet-cosmos/src/wallet.ts b/packages/wallets/wallet-cosmos/src/wallet.ts index ceabf977f..58e26dff3 100644 --- a/packages/wallets/wallet-cosmos/src/wallet.ts +++ b/packages/wallets/wallet-cosmos/src/wallet.ts @@ -18,9 +18,10 @@ import { CosmosWalletException, WalletErrorActionModule, } from '@injectivelabs/exceptions' +import { capitalize } from '@injectivelabs/utils' import { BroadcastMode } from '@cosmjs/launchpad' import { CosmosTxV1Beta1Tx } from '@injectivelabs/sdk-ts' -import { Wallet, capitalize } from '@injectivelabs/wallet-base' +import { Wallet } from '@injectivelabs/wallet-base' import { SigningStargateClient, StdFee } from '@cosmjs/stargate' import type { EncodeObject, OfflineDirectSigner } from '@cosmjs/proto-signing' diff --git a/packages/wallets/wallet-evm/src/data/index.ts b/packages/wallets/wallet-evm/src/data/index.ts deleted file mode 100644 index 668766cbe..000000000 --- a/packages/wallets/wallet-evm/src/data/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Wallet } from '@injectivelabs/wallet-base' - -export const evmWallets = [ - Wallet.BitGet, - Wallet.Phantom, - Wallet.Metamask, - Wallet.OkxWallet, - Wallet.TrustWallet, -] diff --git a/packages/wallets/wallet-evm/src/index.ts b/packages/wallets/wallet-evm/src/index.ts index 7be5a8d63..d5907c594 100644 --- a/packages/wallets/wallet-evm/src/index.ts +++ b/packages/wallets/wallet-evm/src/index.ts @@ -1,3 +1,4 @@ export { EvmWallet as EvmWalletStrategy } from './strategy/strategy.js' + export * from './strategy/utils/index.js' export * from './utils/index.js' diff --git a/packages/wallets/wallet-evm/src/strategy/strategy.ts b/packages/wallets/wallet-evm/src/strategy/strategy.ts index 484951a62..bfb786f1a 100644 --- a/packages/wallets/wallet-evm/src/strategy/strategy.ts +++ b/packages/wallets/wallet-evm/src/strategy/strategy.ts @@ -1,4 +1,5 @@ /* eslint-disable class-methods-use-this */ +import { isEvmBrowserWallet } from '@injectivelabs/wallet-base' import { TxRaw, toUtf8, @@ -21,7 +22,6 @@ import { } from '@injectivelabs/exceptions' import { Wallet, - capitalize, StdSignDoc, WalletAction, WalletDeviceType, @@ -33,7 +33,7 @@ import { ConcreteWalletStrategyArgs, ConcreteEthereumWalletStrategyArgs, } from '@injectivelabs/wallet-base' -import { sleep } from '@injectivelabs/utils' +import { sleep, capitalize } from '@injectivelabs/utils' import { AccountAddress, EthereumChainId } from '@injectivelabs/ts-types' import { getBitGetProvider, @@ -42,7 +42,6 @@ import { getOkxWalletProvider, getTrustWalletProvider, } from './utils/index.js' -import { evmWallets } from '../data/index.js' export class EvmWallet extends BaseConcreteStrategy @@ -57,7 +56,7 @@ export class EvmWallet ) { super(args) - if (!evmWallets.includes(args.wallet)) { + if (!isEvmBrowserWallet(args.wallet)) { throw new WalletException( new Error( `Evm Wallet for ${capitalize(args.wallet)} is not supported.`, diff --git a/packages/wallets/wallet-evm/src/utils/index.ts b/packages/wallets/wallet-evm/src/utils/index.ts index 97b88bd1b..b8bd831a8 100644 --- a/packages/wallets/wallet-evm/src/utils/index.ts +++ b/packages/wallets/wallet-evm/src/utils/index.ts @@ -1,8 +1,9 @@ import { Wallet, - capitalize, + isEvmBrowserWallet, BrowserEip1993Provider, } from '@injectivelabs/wallet-base' +import { capitalize } from '@injectivelabs/utils' import { EthereumChainId } from '@injectivelabs/ts-types' import { WalletException } from '@injectivelabs/exceptions' import { getOkxWalletProvider } from '../strategy/utils/Okx.js' @@ -10,12 +11,11 @@ import { getBitGetProvider } from '../strategy/utils/bitget.js' import { getPhantomProvider } from '../strategy/utils/phantom.js' import { getMetamaskProvider } from '../strategy/utils/metamask.js' import { getTrustWalletProvider } from '../strategy/utils/trustWallet.js' -import { evmWallets } from '../data/index.js' export const getEvmProvider = async ( wallet: Wallet, ): Promise => { - if (!evmWallets.includes(wallet)) { + if (!isEvmBrowserWallet(wallet)) { throw new WalletException( new Error(`Evm Wallet for ${capitalize(wallet)} is not supported.`), ) @@ -62,7 +62,7 @@ export const updateEvmNetwork = async ( wallet: Wallet, chainId: EthereumChainId, ) => { - if (!evmWallets.includes(wallet)) { + if (!isEvmBrowserWallet(wallet)) { throw new WalletException( new Error(`Evm Wallet for ${capitalize(wallet)} is not supported.`), ) diff --git a/packages/wallets/wallet-strategy/src/strategy/index.ts b/packages/wallets/wallet-strategy/src/strategy/index.ts index 013e6bbbb..6b44fa8ab 100644 --- a/packages/wallets/wallet-strategy/src/strategy/index.ts +++ b/packages/wallets/wallet-strategy/src/strategy/index.ts @@ -1,6 +1,6 @@ import { Wallet, - isEthWallet, + isEvmWallet, MagicMetadata, ConcreteStrategiesArg, ConcreteWalletStrategy, @@ -49,7 +49,7 @@ const createStrategy = ({ * If we only want to use Cosmos Native Wallets * We are not creating strategies for Ethereum Native Wallets */ - if (isEthWallet(wallet) && ethereumWalletsDisabled(args)) { + if (isEvmWallet(wallet) && ethereumWalletsDisabled(args)) { return undefined } From 762e938164cb617b190fcffa49596280d4547d76 Mon Sep 17 00:00:00 2001 From: thomasRalee Date: Fri, 29 Nov 2024 21:18:26 +0800 Subject: [PATCH 42/54] fix: build --- packages/wallets/wallet-private-key/src/strategy/strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wallets/wallet-private-key/src/strategy/strategy.ts b/packages/wallets/wallet-private-key/src/strategy/strategy.ts index 993ce9210..bf1b5b79c 100644 --- a/packages/wallets/wallet-private-key/src/strategy/strategy.ts +++ b/packages/wallets/wallet-private-key/src/strategy/strategy.ts @@ -204,7 +204,7 @@ export class PrivateKeyWallet try { const signature = await pk.signHashed(Buffer.from(toUtf8(data), 'utf-8')) - return signature + return `0x${Buffer.from(signature).toString('base64')}` } catch (e: unknown) { throw new MetamaskException(new Error((e as any).message), { code: UnspecifiedErrorCode, From 54ded49bd02f2d17664e1494db05a251884afe39 Mon Sep 17 00:00:00 2001 From: ThomasRalee Date: Fri, 29 Nov 2024 13:23:36 +0000 Subject: [PATCH 43/54] chore: release - @injectivelabs/networks@1.14.33-beta.0 - @injectivelabs/sdk-ts@1.14.33-beta.3 - @injectivelabs/test-utils@1.14.33-beta.0 - @injectivelabs/utils@1.14.33-beta.0 - @injectivelabs/wallet-ts@1.14.33-beta.3 - @injectivelabs/wallet-base@1.14.33-beta.3 - @injectivelabs/wallet-core@1.14.33-beta.3 - @injectivelabs/wallet-cosmos-strategy@1.14.33-beta.3 - @injectivelabs/wallet-cosmos@1.14.33-beta.3 - @injectivelabs/wallet-cosmostation@1.14.33-beta.3 - @injectivelabs/wallet-evm@1.14.33-beta.3 - @injectivelabs/wallet-ledger@1.14.33-beta.3 - @injectivelabs/wallet-magic@1.14.33-beta.3 - @injectivelabs/wallet-private-key@1.14.33-beta.3 - @injectivelabs/wallet-strategy@1.14.33-beta.3 - @injectivelabs/wallet-trezor@1.14.33-beta.3 - @injectivelabs/wallet-wallet-connect@1.14.33-beta.3 --- packages/networks/package.json | 4 +-- packages/sdk-ts/package.json | 8 +++--- packages/test-utils/package.json | 6 ++-- packages/utils/package.json | 2 +- packages/wallet-ts/package.json | 8 +++--- packages/wallets/wallet-base/package.json | 8 +++--- packages/wallets/wallet-core/package.json | 10 +++---- .../wallet-cosmos-strategy/package.json | 16 +++++------ packages/wallets/wallet-cosmos/package.json | 10 +++---- .../wallets/wallet-cosmostation/package.json | 8 +++--- packages/wallets/wallet-evm/package.json | 10 +++---- packages/wallets/wallet-ledger/package.json | 10 +++---- packages/wallets/wallet-magic/package.json | 8 +++--- .../wallets/wallet-private-key/package.json | 8 +++--- packages/wallets/wallet-strategy/package.json | 28 +++++++++---------- packages/wallets/wallet-trezor/package.json | 10 +++---- .../wallet-wallet-connect/package.json | 8 +++--- 17 files changed, 81 insertions(+), 81 deletions(-) diff --git a/packages/networks/package.json b/packages/networks/package.json index bb2223227..aec6cc20e 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.32", + "version": "1.14.33-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/utils": "^1.14.33-beta.0", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 7353dd095..82af59359 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.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -128,11 +128,11 @@ "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.13.3", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/networks": "^1.14.33-beta.0", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.32", + "@injectivelabs/test-utils": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/utils": "^1.14.33-beta.0", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index fe3d12f31..06be0fe6a 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.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,9 +56,9 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", + "@injectivelabs/networks": "^1.14.33-beta.0", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/utils": "^1.14.33-beta.0", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index ca097538c..dfc2d38ad 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.32", + "version": "1.14.33-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 3ecf6f82c..9cbbd65de 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.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -82,10 +82,10 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/utils": "^1.14.33-beta.0", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 7bfcc464e..bf1f25e63 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", + "@injectivelabs/utils": "^1.14.33-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 74b9da43b..5820afdce 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,11 +56,11 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 4492ac9ba..9859575a9 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,14 +58,14 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", - "@injectivelabs/wallet-core": "^1.14.33-beta.2", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.2", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/wallet-core": "^1.14.33-beta.3", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.3", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.3", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 7cb16b080..b0f614b9f 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -60,11 +60,11 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 3f64e693a..3e45d4be8 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index a22d99148..779560d46 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,11 +56,11 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 7c4fa1284..c4f289464 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,11 +58,11 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index b94f4152e..706dd24e3 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index ce87e0168..f6151a811 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2" + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 9f18354c8..69aaae9ea 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,20 +58,20 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", - "@injectivelabs/wallet-core": "^1.14.33-beta.2", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.2", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.2", - "@injectivelabs/wallet-evm": "^1.14.33-beta.2", - "@injectivelabs/wallet-ledger": "^1.14.33-beta.2", - "@injectivelabs/wallet-magic": "^1.14.33-beta.2", - "@injectivelabs/wallet-private-key": "^1.14.33-beta.2", - "@injectivelabs/wallet-trezor": "^1.14.33-beta.2", - "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/wallet-core": "^1.14.33-beta.3", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.3", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.3", + "@injectivelabs/wallet-evm": "^1.14.33-beta.3", + "@injectivelabs/wallet-ledger": "^1.14.33-beta.3", + "@injectivelabs/wallet-magic": "^1.14.33-beta.3", + "@injectivelabs/wallet-private-key": "^1.14.33-beta.3", + "@injectivelabs/wallet-trezor": "^1.14.33-beta.3", + "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.3", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 6cd324310..06f72093d 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,11 +58,11 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 693c92594..52f20e7c9 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.2", + "version": "1.14.33-beta.3", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.2", + "@injectivelabs/sdk-ts": "^1.14.33-beta.3", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.32", - "@injectivelabs/wallet-base": "^1.14.33-beta.2", + "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/wallet-base": "^1.14.33-beta.3", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From a1709b9b5cab688f271e887d7f5340dfd89473ef Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 16:35:10 +0100 Subject: [PATCH 44/54] refactor: tsbuild references --- etc/replacements-ledger.js | 4 +- package.json | 2 +- packages/networks/tsconfig.build.json | 13 +---- packages/networks/tsconfig.json | 13 +---- packages/sdk-ts/tsconfig.build.esm.json | 19 +------ packages/sdk-ts/tsconfig.build.json | 19 +------ packages/sdk-ts/tsconfig.json | 19 +------ packages/test-utils/tsconfig.build.esm.json | 16 +----- packages/test-utils/tsconfig.build.json | 14 ------ packages/utils/tsconfig.build.esm.json | 10 +--- packages/utils/tsconfig.build.json | 8 --- packages/wallet-ts/tsconfig.build.esm.json | 19 +------ packages/wallet-ts/tsconfig.build.json | 17 ------- .../wallet-base/tsconfig.build.esm.json | 19 +------ .../wallets/wallet-base/tsconfig.build.json | 17 ------- packages/wallets/wallet-base/tsconfig.json | 19 +------ .../wallet-core/tsconfig.build.esm.json | 22 +-------- .../wallets/wallet-core/tsconfig.build.json | 20 -------- packages/wallets/wallet-core/tsconfig.json | 22 +-------- .../tsconfig.build.esm.json | 31 +----------- .../tsconfig.build.json | 29 ----------- .../wallet-cosmos-strategy/tsconfig.json | 31 +----------- .../wallet-cosmos/tsconfig.build.esm.json | 22 +-------- .../wallets/wallet-cosmos/tsconfig.build.json | 20 -------- packages/wallets/wallet-cosmos/tsconfig.json | 22 +-------- .../tsconfig.build.esm.json | 22 +-------- .../wallet-cosmostation/tsconfig.build.json | 20 -------- .../wallets/wallet-cosmostation/tsconfig.json | 22 +-------- .../wallet-evm/tsconfig.build.esm.json | 22 +-------- .../wallets/wallet-evm/tsconfig.build.json | 20 -------- packages/wallets/wallet-evm/tsconfig.json | 22 +-------- packages/wallets/wallet-ledger/package.json | 4 +- .../wallet-ledger/tsconfig.build.esm.json | 19 +------ .../wallets/wallet-ledger/tsconfig.build.json | 17 ------- packages/wallets/wallet-ledger/tsconfig.json | 22 +-------- .../wallet-magic/tsconfig.build.esm.json | 22 +-------- .../wallets/wallet-magic/tsconfig.build.json | 20 -------- packages/wallets/wallet-magic/tsconfig.json | 22 +-------- .../tsconfig.build.esm.json | 22 +-------- .../wallet-private-key/tsconfig.build.json | 20 -------- .../wallets/wallet-private-key/tsconfig.json | 22 +-------- .../wallet-strategy/tsconfig.build.esm.json | 49 +------------------ .../wallet-strategy/tsconfig.build.json | 47 ------------------ .../wallets/wallet-strategy/tsconfig.json | 49 +------------------ .../wallet-trezor/tsconfig.build.esm.json | 19 +------ .../wallets/wallet-trezor/tsconfig.build.json | 17 ------- packages/wallets/wallet-trezor/tsconfig.json | 22 +-------- .../tsconfig.build.esm.json | 22 +-------- .../wallet-wallet-connect/tsconfig.build.json | 20 -------- .../wallet-wallet-connect/tsconfig.json | 22 +-------- tsconfig.build.json | 32 ++++++++---- 51 files changed, 59 insertions(+), 1005 deletions(-) diff --git a/etc/replacements-ledger.js b/etc/replacements-ledger.js index d557d9a45..f75de2c0b 100644 --- a/etc/replacements-ledger.js +++ b/etc/replacements-ledger.js @@ -6,8 +6,8 @@ const isESM = process.env.BUILD_MODE.includes('esm') const REPLACEMENT_PAIRS = [ { path: './src/strategy/Ledger/Base.ts', - cjs: '@ledgerhq/hw-app-eth/lib/services/ledger', - esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger', + cjs: '@ledgerhq/hw-app-eth/lib/services/ledger/index.js', + esm: '@ledgerhq/hw-app-eth/lib-es/services/ledger/index.js', }, ] diff --git a/package.json b/package.json index 0e444ee87..bf7ba4c44 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "build:patch:publish": "yarn build:fresh && yarn patch && yarn lerna:publish", "patch": "lerna version patch", "clean-up": "lerna run clean && shx rm -rf .build-cache *.log coverage junit.xml", - "bootstrap": "yarn clean-up && lerna bootstrap", + "bootstrap": "yarn clean-up && yarn install", "test": "jest", "test:sdk-ts:core:stargate": "jest ./packages/sdk-ts/src/core/stargate", "test:sdk-ts:core:modules": "jest ./packages/sdk-ts/src/core/modules", diff --git a/packages/networks/tsconfig.build.json b/packages/networks/tsconfig.build.json index 4368a8503..6cab4c21e 100644 --- a/packages/networks/tsconfig.build.json +++ b/packages/networks/tsconfig.build.json @@ -11,16 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../exceptions/tsconfig.build.json" - }, - { - "path": "../ts-types/tsconfig.build.json" - }, - { - "path": "../utils/tsconfig.build.json" - } - ], + ] } diff --git a/packages/networks/tsconfig.json b/packages/networks/tsconfig.json index b560fc9d3..4082f16a5 100644 --- a/packages/networks/tsconfig.json +++ b/packages/networks/tsconfig.json @@ -1,14 +1,3 @@ { - "extends": "../../tsconfig.json", - "references": [ - { - "path": "../exceptions/tsconfig.json" - }, - { - "path": "../ts-types/tsconfig.json" - }, - { - "path": "../utils/tsconfig.json" - } - ], + "extends": "../../tsconfig.json" } diff --git a/packages/sdk-ts/tsconfig.build.esm.json b/packages/sdk-ts/tsconfig.build.esm.json index 012c687c3..a7b22cee7 100644 --- a/packages/sdk-ts/tsconfig.build.esm.json +++ b/packages/sdk-ts/tsconfig.build.esm.json @@ -9,22 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../.build-cache/sdk-ts.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../utils/tsconfig.build.esm.json" - }, - { - "path": "../test-utils/tsconfig.build.esm.json" - }, - { - "path": "../networks/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/sdk-ts/tsconfig.build.json b/packages/sdk-ts/tsconfig.build.json index 76989ef1d..d81c19433 100644 --- a/packages/sdk-ts/tsconfig.build.json +++ b/packages/sdk-ts/tsconfig.build.json @@ -11,22 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../ts-types/tsconfig.build.json" - }, - { - "path": "../exceptions/tsconfig.build.json" - }, - { - "path": "../utils/tsconfig.build.json" - }, - { - "path": "../test-utils/tsconfig.build.json" - }, - { - "path": "../networks/tsconfig.build.json" - } - ], + ] } diff --git a/packages/sdk-ts/tsconfig.json b/packages/sdk-ts/tsconfig.json index cf4a0af6f..4082f16a5 100644 --- a/packages/sdk-ts/tsconfig.json +++ b/packages/sdk-ts/tsconfig.json @@ -1,20 +1,3 @@ { - "extends": "../../tsconfig.json", - "references": [ - { - "path": "../ts-types/tsconfig.json" - }, - { - "path": "../exceptions/tsconfig.json" - }, - { - "path": "../utils/tsconfig.json" - }, - { - "path": "../test-utils/tsconfig.json" - }, - { - "path": "../networks/tsconfig.json" - }, - ] + "extends": "../../tsconfig.json" } diff --git a/packages/test-utils/tsconfig.build.esm.json b/packages/test-utils/tsconfig.build.esm.json index d7e356878..66996135f 100644 --- a/packages/test-utils/tsconfig.build.esm.json +++ b/packages/test-utils/tsconfig.build.esm.json @@ -9,19 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../.build-cache/test-utils.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../utils/tsconfig.build.esm.json" - }, - { - "path": "../networks/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/test-utils/tsconfig.build.json b/packages/test-utils/tsconfig.build.json index ac408746a..1123555a3 100644 --- a/packages/test-utils/tsconfig.build.json +++ b/packages/test-utils/tsconfig.build.json @@ -11,19 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../ts-types/tsconfig.build.json" - }, - { - "path": "../exceptions/tsconfig.build.json" - }, - { - "path": "../utils/tsconfig.build.json" - }, - { - "path": "../networks/tsconfig.build.json" - } ] } diff --git a/packages/utils/tsconfig.build.esm.json b/packages/utils/tsconfig.build.esm.json index d223d4a74..1622eaf85 100644 --- a/packages/utils/tsconfig.build.esm.json +++ b/packages/utils/tsconfig.build.esm.json @@ -9,13 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../.build-cache/utils.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../exceptions/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/utils/tsconfig.build.json b/packages/utils/tsconfig.build.json index b4a8b647d..93e3af8be 100644 --- a/packages/utils/tsconfig.build.json +++ b/packages/utils/tsconfig.build.json @@ -11,13 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../ts-types/tsconfig.build.json" - }, - { - "path": "../exceptions/tsconfig.build.json" - } ] } diff --git a/packages/wallet-ts/tsconfig.build.esm.json b/packages/wallet-ts/tsconfig.build.esm.json index ccb4bcd83..088098c6a 100644 --- a/packages/wallet-ts/tsconfig.build.esm.json +++ b/packages/wallet-ts/tsconfig.build.esm.json @@ -9,22 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../.build-cache/wallet-ts.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../networks/tsconfig.build.esm.json" - }, - { - "path": "../utils/tsconfig.build.esm.json" - }, - { - "path": "../sdk-ts/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallet-ts/tsconfig.build.json b/packages/wallet-ts/tsconfig.build.json index 6e04531a0..aa7862d31 100644 --- a/packages/wallet-ts/tsconfig.build.json +++ b/packages/wallet-ts/tsconfig.build.json @@ -11,22 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../ts-types/tsconfig.build.json" - }, - { - "path": "../exceptions/tsconfig.build.json" - }, - { - "path": "../networks/tsconfig.build.json" - }, - { - "path": "../utils/tsconfig.build.json" - }, - { - "path": "../sdk-ts/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-base/tsconfig.build.esm.json b/packages/wallets/wallet-base/tsconfig.build.esm.json index 3ad8ef4ce..741ef02a0 100644 --- a/packages/wallets/wallet-base/tsconfig.build.esm.json +++ b/packages/wallets/wallet-base/tsconfig.build.esm.json @@ -9,22 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-base.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-base/tsconfig.build.json b/packages/wallets/wallet-base/tsconfig.build.json index 9b8363d8d..8fc34b66a 100644 --- a/packages/wallets/wallet-base/tsconfig.build.json +++ b/packages/wallets/wallet-base/tsconfig.build.json @@ -11,22 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-base/tsconfig.json b/packages/wallets/wallet-base/tsconfig.json index 5041564a4..618c6c3e9 100644 --- a/packages/wallets/wallet-base/tsconfig.json +++ b/packages/wallets/wallet-base/tsconfig.json @@ -1,20 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-core/tsconfig.build.esm.json b/packages/wallets/wallet-core/tsconfig.build.esm.json index 76ef42c84..4bcbc8521 100644 --- a/packages/wallets/wallet-core/tsconfig.build.esm.json +++ b/packages/wallets/wallet-core/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-core.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-core/tsconfig.build.json b/packages/wallets/wallet-core/tsconfig.build.json index 1bd8019bb..a7720d357 100644 --- a/packages/wallets/wallet-core/tsconfig.build.json +++ b/packages/wallets/wallet-core/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-core/tsconfig.json b/packages/wallets/wallet-core/tsconfig.json index 500b10dec..618c6c3e9 100644 --- a/packages/wallets/wallet-core/tsconfig.json +++ b/packages/wallets/wallet-core/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-cosmos-strategy/tsconfig.build.esm.json b/packages/wallets/wallet-cosmos-strategy/tsconfig.build.esm.json index dbd9a5183..fc2b98fd1 100644 --- a/packages/wallets/wallet-cosmos-strategy/tsconfig.build.esm.json +++ b/packages/wallets/wallet-cosmos-strategy/tsconfig.build.esm.json @@ -9,34 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-strategy.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - }, - { - "path": "../wallet-core/tsconfig.build.esm.json" - }, - { - "path": "../wallet-cosmos/tsconfig.build.esm.json" - }, - { - "path": "../wallet-cosmostation/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-cosmos-strategy/tsconfig.build.json b/packages/wallets/wallet-cosmos-strategy/tsconfig.build.json index c0b051d8c..eaba8aec7 100644 --- a/packages/wallets/wallet-cosmos-strategy/tsconfig.build.json +++ b/packages/wallets/wallet-cosmos-strategy/tsconfig.build.json @@ -11,34 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - }, - { - "path": "../wallet-core/tsconfig.build.json" - }, - { - "path": "../wallet-cosmos/tsconfig.build.json" - }, - { - "path": "../wallet-cosmostation/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-cosmos-strategy/tsconfig.json b/packages/wallets/wallet-cosmos-strategy/tsconfig.json index ad666284d..618c6c3e9 100644 --- a/packages/wallets/wallet-cosmos-strategy/tsconfig.json +++ b/packages/wallets/wallet-cosmos-strategy/tsconfig.json @@ -1,32 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - { - "path": "../wallet-core/tsconfig.json" - }, - { - "path": "../wallet-evm/tsconfig.json" - }, - { - "path": "../wallet-cosmos/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-cosmos/tsconfig.build.esm.json b/packages/wallets/wallet-cosmos/tsconfig.build.esm.json index c65237047..9b8bb55e1 100644 --- a/packages/wallets/wallet-cosmos/tsconfig.build.esm.json +++ b/packages/wallets/wallet-cosmos/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-cosmos.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-cosmos/tsconfig.build.json b/packages/wallets/wallet-cosmos/tsconfig.build.json index 195f624b5..a0473b852 100644 --- a/packages/wallets/wallet-cosmos/tsconfig.build.json +++ b/packages/wallets/wallet-cosmos/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-cosmos/tsconfig.json b/packages/wallets/wallet-cosmos/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-cosmos/tsconfig.json +++ b/packages/wallets/wallet-cosmos/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-cosmostation/tsconfig.build.esm.json b/packages/wallets/wallet-cosmostation/tsconfig.build.esm.json index 2dd3a1658..b10b4bc0c 100644 --- a/packages/wallets/wallet-cosmostation/tsconfig.build.esm.json +++ b/packages/wallets/wallet-cosmostation/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-connect.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-cosmostation/tsconfig.build.json b/packages/wallets/wallet-cosmostation/tsconfig.build.json index f190729bf..d9f47369b 100644 --- a/packages/wallets/wallet-cosmostation/tsconfig.build.json +++ b/packages/wallets/wallet-cosmostation/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-cosmostation/tsconfig.json b/packages/wallets/wallet-cosmostation/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-cosmostation/tsconfig.json +++ b/packages/wallets/wallet-cosmostation/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-evm/tsconfig.build.esm.json b/packages/wallets/wallet-evm/tsconfig.build.esm.json index f5e838bfc..6e4e94f6e 100644 --- a/packages/wallets/wallet-evm/tsconfig.build.esm.json +++ b/packages/wallets/wallet-evm/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-evm.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-evm/tsconfig.build.json b/packages/wallets/wallet-evm/tsconfig.build.json index fd8624dae..ab5466cfe 100644 --- a/packages/wallets/wallet-evm/tsconfig.build.json +++ b/packages/wallets/wallet-evm/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-evm/tsconfig.json b/packages/wallets/wallet-evm/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-evm/tsconfig.json +++ b/packages/wallets/wallet-evm/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 7c4fa1284..28a51da17 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -41,8 +41,8 @@ }, "scripts": { "build": "yarn build:esm && yarn build:cjs && yarn build:post", - "build:cjs": "BUILD_MODE=cjs node ./../../../etc/replacements-ledger.js && tsc --build tsconfig.build.json", - "build:esm": "BUILD_MODE=esm node ./../../../etc/replacements-ledger.js && tsc --build tsconfig.build.esm.json", + "build:cjs": "BUILD_MODE=cjs node ./../../../etc/replacements-ledger.js && tsc --build --force tsconfig.build.json", + "build:esm": "BUILD_MODE=esm node ./../../../etc/replacements-ledger.js && tsc --build --force tsconfig.build.esm.json", "build:watch": "tsc --build -w tsconfig.build.json && tsc -w --build tsconfig.build.esm.json && yarn build:post", "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", diff --git a/packages/wallets/wallet-ledger/tsconfig.build.esm.json b/packages/wallets/wallet-ledger/tsconfig.build.esm.json index 2bef7caef..0c9774fd1 100644 --- a/packages/wallets/wallet-ledger/tsconfig.build.esm.json +++ b/packages/wallets/wallet-ledger/tsconfig.build.esm.json @@ -9,22 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-ledger.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-ledger/tsconfig.build.json b/packages/wallets/wallet-ledger/tsconfig.build.json index 7900fc2f1..6f5460f07 100644 --- a/packages/wallets/wallet-ledger/tsconfig.build.json +++ b/packages/wallets/wallet-ledger/tsconfig.build.json @@ -11,22 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-ledger/tsconfig.json b/packages/wallets/wallet-ledger/tsconfig.json index 500b10dec..618c6c3e9 100644 --- a/packages/wallets/wallet-ledger/tsconfig.json +++ b/packages/wallets/wallet-ledger/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-magic/tsconfig.build.esm.json b/packages/wallets/wallet-magic/tsconfig.build.esm.json index e071ba860..68970b702 100644 --- a/packages/wallets/wallet-magic/tsconfig.build.esm.json +++ b/packages/wallets/wallet-magic/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-magic.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-magic/tsconfig.build.json b/packages/wallets/wallet-magic/tsconfig.build.json index 734440f25..4cc3a1747 100644 --- a/packages/wallets/wallet-magic/tsconfig.build.json +++ b/packages/wallets/wallet-magic/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-magic/tsconfig.json b/packages/wallets/wallet-magic/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-magic/tsconfig.json +++ b/packages/wallets/wallet-magic/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-private-key/tsconfig.build.esm.json b/packages/wallets/wallet-private-key/tsconfig.build.esm.json index 154275e50..1685b7e1f 100644 --- a/packages/wallets/wallet-private-key/tsconfig.build.esm.json +++ b/packages/wallets/wallet-private-key/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-private-key.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-private-key/tsconfig.build.json b/packages/wallets/wallet-private-key/tsconfig.build.json index 76432c986..77d82bf57 100644 --- a/packages/wallets/wallet-private-key/tsconfig.build.json +++ b/packages/wallets/wallet-private-key/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-private-key/tsconfig.json b/packages/wallets/wallet-private-key/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-private-key/tsconfig.json +++ b/packages/wallets/wallet-private-key/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-strategy/tsconfig.build.esm.json b/packages/wallets/wallet-strategy/tsconfig.build.esm.json index 8e4029ccb..fc2b98fd1 100644 --- a/packages/wallets/wallet-strategy/tsconfig.build.esm.json +++ b/packages/wallets/wallet-strategy/tsconfig.build.esm.json @@ -9,52 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-strategy.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - }, - { - "path": "../wallet-wallet-connect/tsconfig.build.esm.json" - }, - { - "path": "../wallet-core/tsconfig.build.esm.json" - }, - { - "path": "../wallet-cosmos/tsconfig.build.esm.json" - }, - { - "path": "../wallet-cosmostation/tsconfig.build.esm.json" - }, - { - "path": "../wallet-evm/tsconfig.build.esm.json" - }, - { - "path": "../wallet-ledger/tsconfig.build.esm.json" - }, - { - "path": "../wallet-magic/tsconfig.build.esm.json" - }, - { - "path": "../wallet-private-key/tsconfig.build.esm.json" - }, - { - "path": "../wallet-trezor/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-strategy/tsconfig.build.json b/packages/wallets/wallet-strategy/tsconfig.build.json index 4d615b6fa..eaba8aec7 100644 --- a/packages/wallets/wallet-strategy/tsconfig.build.json +++ b/packages/wallets/wallet-strategy/tsconfig.build.json @@ -11,52 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - }, - { - "path": "../wallet-wallet-connect/tsconfig.build.json" - }, - { - "path": "../wallet-core/tsconfig.build.json" - }, - { - "path": "../wallet-cosmos/tsconfig.build.json" - }, - { - "path": "../wallet-cosmostation/tsconfig.build.json" - }, - { - "path": "../wallet-evm/tsconfig.build.json" - }, - { - "path": "../wallet-ledger/tsconfig.build.json" - }, - { - "path": "../wallet-magic/tsconfig.build.json" - }, - { - "path": "../wallet-private-key/tsconfig.build.json" - }, - { - "path": "../wallet-trezor/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-strategy/tsconfig.json b/packages/wallets/wallet-strategy/tsconfig.json index f5682c065..618c6c3e9 100644 --- a/packages/wallets/wallet-strategy/tsconfig.json +++ b/packages/wallets/wallet-strategy/tsconfig.json @@ -1,50 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - { - "path": "../wallet-core/tsconfig.json" - }, - { - "path": "../wallet-evm/tsconfig.json" - }, - { - "path": "../wallet-ledger/tsconfig.json" - }, - { - "path": "../wallet-private-key/tsconfig.json" - }, - { - "path": "../wallet-magic/tsconfig.json" - }, - { - "path": "../wallet-trezor/tsconfig.json" - }, - { - "path": "../wallet-cosmostation/tsconfig.json" - }, - { - "path": "../wallet-cosmos/tsconfig.json" - }, - { - "path": "../wallet-wallet-connect/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-trezor/tsconfig.build.esm.json b/packages/wallets/wallet-trezor/tsconfig.build.esm.json index 65bf00f57..7c542d7b9 100644 --- a/packages/wallets/wallet-trezor/tsconfig.build.esm.json +++ b/packages/wallets/wallet-trezor/tsconfig.build.esm.json @@ -9,22 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-trezor.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-trezor/tsconfig.build.json b/packages/wallets/wallet-trezor/tsconfig.build.json index 39fd1f288..55af62253 100644 --- a/packages/wallets/wallet-trezor/tsconfig.build.json +++ b/packages/wallets/wallet-trezor/tsconfig.build.json @@ -11,22 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-trezor/tsconfig.json b/packages/wallets/wallet-trezor/tsconfig.json index 500b10dec..618c6c3e9 100644 --- a/packages/wallets/wallet-trezor/tsconfig.json +++ b/packages/wallets/wallet-trezor/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - } - ] + "extends": "../../../tsconfig.json" } diff --git a/packages/wallets/wallet-wallet-connect/tsconfig.build.esm.json b/packages/wallets/wallet-wallet-connect/tsconfig.build.esm.json index 1db801165..aee43480f 100644 --- a/packages/wallets/wallet-wallet-connect/tsconfig.build.esm.json +++ b/packages/wallets/wallet-wallet-connect/tsconfig.build.esm.json @@ -9,25 +9,5 @@ "target": "ESNext", "moduleResolution": "Bundler", "tsBuildInfoFile": "../../../.build-cache/wallet-wallet-connect.esm.tsbuildinfo" - }, - "references": [ - { - "path": "../../ts-types/tsconfig.build.esm.json" - }, - { - "path": "../../exceptions/tsconfig.build.esm.json" - }, - { - "path": "../../networks/tsconfig.build.esm.json" - }, - { - "path": "../../utils/tsconfig.build.esm.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.esm.json" - }, - { - "path": "../wallet-base/tsconfig.build.esm.json" - } - ] + } } diff --git a/packages/wallets/wallet-wallet-connect/tsconfig.build.json b/packages/wallets/wallet-wallet-connect/tsconfig.build.json index 01a9ebfe5..34041077d 100644 --- a/packages/wallets/wallet-wallet-connect/tsconfig.build.json +++ b/packages/wallets/wallet-wallet-connect/tsconfig.build.json @@ -11,25 +11,5 @@ "exclude": [ "./src/**/*.spec.ts", "./src/**/*.test.ts" - ], - "references": [ - { - "path": "../../ts-types/tsconfig.build.json" - }, - { - "path": "../../exceptions/tsconfig.build.json" - }, - { - "path": "../../networks/tsconfig.build.json" - }, - { - "path": "../../utils/tsconfig.build.json" - }, - { - "path": "../../sdk-ts/tsconfig.build.json" - }, - { - "path": "../wallet-base/tsconfig.build.json" - } ] } diff --git a/packages/wallets/wallet-wallet-connect/tsconfig.json b/packages/wallets/wallet-wallet-connect/tsconfig.json index 4791fded8..618c6c3e9 100644 --- a/packages/wallets/wallet-wallet-connect/tsconfig.json +++ b/packages/wallets/wallet-wallet-connect/tsconfig.json @@ -1,23 +1,3 @@ { - "extends": "../../../tsconfig.json", - "references": [ - { - "path": "../../ts-types/tsconfig.json" - }, - { - "path": "../../exceptions/tsconfig.json" - }, - { - "path": "../../networks/tsconfig.json" - }, - { - "path": "../../utils/tsconfig.json" - }, - { - "path": "../../sdk-ts/tsconfig.json" - }, - { - "path": "../wallet-base/tsconfig.json" - }, - ] + "extends": "../../../tsconfig.json" } diff --git a/tsconfig.build.json b/tsconfig.build.json index ea93ca85c..4b9212c97 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -4,12 +4,7 @@ "module": "commonjs", "moduleResolution": "node", "rootDir": ".", - "lib": [ - "DOM", - "es2018", - "es2019", - "es2021", - ], + "lib": ["DOM", "es2018", "es2019", "es2021"], "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, @@ -24,10 +19,27 @@ "incremental": true, "resolveJsonModule": true, "skipLibCheck": true, - "types": [ - "node", - "jest" - ], + "types": ["node", "jest"], + "paths": { + "@injectivelabs/ts-types": ["./packages/ts-types"], + "@injectivelabs/exceptions": ["./packages/exceptions"], + "@injectivelabs/utils": ["./packages/utils"], + "@injectivelabs/networks": ["./packages/networks"], + "@injectivelabs/test-utils": ["./packages/test-utils"], + "@injectivelabs/wallet-ts": ["./packages/wallet-ts"], + "@injectivelabs/sdk-ts": ["./packages/sdk-ts"], + "@injectivelabs/wallet-base": ["./packages/wallets/wallet-base"], + "@injectivelabs/wallet-core": ["./packages/wallets/wallet-core"], + "@injectivelabs/wallet-evm": ["./packages/wallets/wallet-evm"], + "@injectivelabs/wallet-ledger": ["./packages/wallets/wallet-ledger"], + "@injectivelabs/wallet-keplr": ["./packages/wallets/wallet-keplr"], + "@injectivelabs/wallet-trezor": ["./packages/wallets/wallet-trezor"], + "@injectivelabs/wallet-magic": ["./packages/wallets/wallet-magic"], + "@injectivelabs/wallet-wallet-connect": [ + "./packages/wallets/wallet-wallet-connect" + ], + "@injectivelabs/wallet-strategy": ["./packages/wallets/wallet-strategy"] + } }, "exclude": [ "node_modules", From 0611622e182f83eb83df88450a0995ea47068dcd Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 29 Nov 2024 15:41:36 +0000 Subject: [PATCH 45/54] chore: release - @injectivelabs/networks@1.14.33-beta.1 - @injectivelabs/sdk-ts@1.14.33-beta.4 - @injectivelabs/test-utils@1.14.33-beta.1 - @injectivelabs/utils@1.14.33-beta.1 - @injectivelabs/wallet-ts@1.14.33-beta.4 - @injectivelabs/wallet-base@1.14.33-beta.4 - @injectivelabs/wallet-core@1.14.33-beta.4 - @injectivelabs/wallet-cosmos-strategy@1.14.33-beta.4 - @injectivelabs/wallet-cosmos@1.14.33-beta.4 - @injectivelabs/wallet-cosmostation@1.14.33-beta.4 - @injectivelabs/wallet-evm@1.14.33-beta.4 - @injectivelabs/wallet-ledger@1.14.33-beta.4 - @injectivelabs/wallet-magic@1.14.33-beta.4 - @injectivelabs/wallet-private-key@1.14.33-beta.4 - @injectivelabs/wallet-strategy@1.14.33-beta.4 - @injectivelabs/wallet-trezor@1.14.33-beta.4 - @injectivelabs/wallet-wallet-connect@1.14.33-beta.4 --- packages/networks/package.json | 4 +-- packages/sdk-ts/package.json | 8 +++--- packages/test-utils/package.json | 6 ++-- packages/utils/package.json | 2 +- packages/wallet-ts/package.json | 8 +++--- packages/wallets/wallet-base/package.json | 8 +++--- packages/wallets/wallet-core/package.json | 10 +++---- .../wallet-cosmos-strategy/package.json | 16 +++++------ packages/wallets/wallet-cosmos/package.json | 10 +++---- .../wallets/wallet-cosmostation/package.json | 8 +++--- packages/wallets/wallet-evm/package.json | 10 +++---- packages/wallets/wallet-ledger/package.json | 10 +++---- packages/wallets/wallet-magic/package.json | 8 +++--- .../wallets/wallet-private-key/package.json | 8 +++--- packages/wallets/wallet-strategy/package.json | 28 +++++++++---------- packages/wallets/wallet-trezor/package.json | 10 +++---- .../wallet-wallet-connect/package.json | 8 +++--- 17 files changed, 81 insertions(+), 81 deletions(-) diff --git a/packages/networks/package.json b/packages/networks/package.json index aec6cc20e..9fbe17835 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.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -57,7 +57,7 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.32", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/utils": "^1.14.33-beta.1", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 82af59359..294488fb2 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.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -128,11 +128,11 @@ "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", "@injectivelabs/indexer-proto-ts": "1.13.3", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/networks": "^1.14.33-beta.1", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.33-beta.0", + "@injectivelabs/test-utils": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/utils": "^1.14.33-beta.1", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 06be0fe6a..66962bcb0 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.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,9 +56,9 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", + "@injectivelabs/networks": "^1.14.33-beta.1", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/utils": "^1.14.33-beta.1", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/utils/package.json b/packages/utils/package.json index dfc2d38ad..a5cd23e86 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.33-beta.0", + "version": "1.14.33-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9cbbd65de..9a5c00899 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.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -82,10 +82,10 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/utils": "^1.14.33-beta.1", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index bf1f25e63..b11128f6a 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", + "@injectivelabs/utils": "^1.14.33-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 5820afdce..acc1502d9 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,11 +56,11 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 9859575a9..3eff0f13a 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,14 +58,14 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", - "@injectivelabs/wallet-core": "^1.14.33-beta.3", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.3", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/wallet-core": "^1.14.33-beta.4", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.4", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.4", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index b0f614b9f..6eba48cb3 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -60,11 +60,11 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 3e45d4be8..b4279f5f5 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 779560d46..4cfc9fcaf 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,11 +56,11 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index 7b45daf22..fb11643cf 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,11 +58,11 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 706dd24e3..632adb955 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index f6151a811..9ff7e31e3 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3" + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 69aaae9ea..7acaa17e4 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,20 +58,20 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", - "@injectivelabs/wallet-core": "^1.14.33-beta.3", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.3", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.3", - "@injectivelabs/wallet-evm": "^1.14.33-beta.3", - "@injectivelabs/wallet-ledger": "^1.14.33-beta.3", - "@injectivelabs/wallet-magic": "^1.14.33-beta.3", - "@injectivelabs/wallet-private-key": "^1.14.33-beta.3", - "@injectivelabs/wallet-trezor": "^1.14.33-beta.3", - "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/wallet-core": "^1.14.33-beta.4", + "@injectivelabs/wallet-cosmos": "^1.14.33-beta.4", + "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.4", + "@injectivelabs/wallet-evm": "^1.14.33-beta.4", + "@injectivelabs/wallet-ledger": "^1.14.33-beta.4", + "@injectivelabs/wallet-magic": "^1.14.33-beta.4", + "@injectivelabs/wallet-private-key": "^1.14.33-beta.4", + "@injectivelabs/wallet-trezor": "^1.14.33-beta.4", + "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.4", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 06f72093d..6d7ec523c 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,11 +58,11 @@ "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.0", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 52f20e7c9..79f0b3c44 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.3", + "version": "1.14.33-beta.4", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.3", + "@injectivelabs/sdk-ts": "^1.14.33-beta.4", "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.0", - "@injectivelabs/wallet-base": "^1.14.33-beta.3", + "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/wallet-base": "^1.14.33-beta.4", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From e05076bbbe13f99aa359add84890bf2aadf96190 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 16:44:17 +0100 Subject: [PATCH 46/54] chore: force republish --- packages/ts-types/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ts-types/README.md b/packages/ts-types/README.md index 7b50d1424..096085a9c 100644 --- a/packages/ts-types/README.md +++ b/packages/ts-types/README.md @@ -1,6 +1,6 @@ # 🌟 Injective Protocol - TypeScript Types -Enums, interfaces and some types in TypeScript for Injective related functionalities. +Enums, interfaces and some types in TypeScript for Injective project's related functionalities. --- From 6d2aac97e32d5b61b9aba73e0363695fb70ce1c8 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 16:44:40 +0100 Subject: [PATCH 47/54] chore: release - @injectivelabs/exceptions@1.14.33 - @injectivelabs/networks@1.14.33 - @injectivelabs/sdk-ts@1.14.33 - @injectivelabs/test-utils@1.14.33 - @injectivelabs/ts-types@1.14.33 - @injectivelabs/utils@1.14.33 - @injectivelabs/wallet-ts@1.14.33 - @injectivelabs/wallet-base@1.14.33 - @injectivelabs/wallet-core@1.14.33 - @injectivelabs/wallet-cosmos-strategy@1.14.33 - @injectivelabs/wallet-cosmos@1.14.33 - @injectivelabs/wallet-cosmostation@1.14.33 - @injectivelabs/wallet-evm@1.14.33 - @injectivelabs/wallet-ledger@1.14.33 - @injectivelabs/wallet-magic@1.14.33 - @injectivelabs/wallet-private-key@1.14.33 - @injectivelabs/wallet-strategy@1.14.33 - @injectivelabs/wallet-trezor@1.14.33 - @injectivelabs/wallet-wallet-connect@1.14.33 --- 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 | 12 +++---- packages/test-utils/CHANGELOG.md | 8 +++++ packages/test-utils/package.json | 10 +++--- 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 +++---- packages/wallets/wallet-base/CHANGELOG.md | 8 +++++ packages/wallets/wallet-base/package.json | 12 +++---- packages/wallets/wallet-core/CHANGELOG.md | 8 +++++ packages/wallets/wallet-core/package.json | 14 ++++---- .../wallet-cosmos-strategy/CHANGELOG.md | 8 +++++ .../wallet-cosmos-strategy/package.json | 20 ++++++------ packages/wallets/wallet-cosmos/CHANGELOG.md | 8 +++++ packages/wallets/wallet-cosmos/package.json | 14 ++++---- .../wallets/wallet-cosmostation/CHANGELOG.md | 8 +++++ .../wallets/wallet-cosmostation/package.json | 12 +++---- packages/wallets/wallet-evm/CHANGELOG.md | 8 +++++ packages/wallets/wallet-evm/package.json | 14 ++++---- packages/wallets/wallet-ledger/CHANGELOG.md | 8 +++++ packages/wallets/wallet-ledger/package.json | 14 ++++---- packages/wallets/wallet-magic/CHANGELOG.md | 8 +++++ packages/wallets/wallet-magic/package.json | 12 +++---- .../wallets/wallet-private-key/CHANGELOG.md | 8 +++++ .../wallets/wallet-private-key/package.json | 12 +++---- packages/wallets/wallet-strategy/CHANGELOG.md | 8 +++++ packages/wallets/wallet-strategy/package.json | 32 +++++++++---------- packages/wallets/wallet-trezor/CHANGELOG.md | 8 +++++ packages/wallets/wallet-trezor/package.json | 14 ++++---- .../wallet-wallet-connect/CHANGELOG.md | 8 +++++ .../wallet-wallet-connect/package.json | 12 +++---- 38 files changed, 270 insertions(+), 118 deletions(-) diff --git a/packages/exceptions/CHANGELOG.md b/packages/exceptions/CHANGELOG.md index f19322152..acf60a35d 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.32...@injectivelabs/exceptions@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/exceptions + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/exceptions@1.14.30...@injectivelabs/exceptions@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/exceptions diff --git a/packages/exceptions/package.json b/packages/exceptions/package.json index 943bcfbd7..fb2e56c9e 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.32", + "version": "1.14.33", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", @@ -56,7 +56,7 @@ }, "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", - "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/ts-types": "^1.14.33", "http-status-codes": "^2.2.0", "shx": "^0.3.2" }, diff --git a/packages/networks/CHANGELOG.md b/packages/networks/CHANGELOG.md index 35a6a75c3..c45446cdc 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.33-beta.1...@injectivelabs/networks@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/networks + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/networks@1.14.30...@injectivelabs/networks@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/networks diff --git a/packages/networks/package.json b/packages/networks/package.json index 9fbe17835..436975938 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.33-beta.1", + "version": "1.14.33", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -55,9 +55,9 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", "shx": "^0.3.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445" diff --git a/packages/sdk-ts/CHANGELOG.md b/packages/sdk-ts/CHANGELOG.md index 545a8deb1..3c21df6cb 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.33-beta.4...@injectivelabs/sdk-ts@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/sdk-ts + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/sdk-ts@1.14.31...@injectivelabs/sdk-ts@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/sdk-ts diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 294488fb2..4f13a354e 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.33-beta.4", + "version": "1.14.33", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -122,17 +122,17 @@ "@cosmjs/stargate": "^0.32.3", "@ethersproject/bytes": "^5.7.0", "@injectivelabs/core-proto-ts": "1.13.4", - "@injectivelabs/exceptions": "^1.14.32", + "@injectivelabs/exceptions": "^1.14.33", "@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.13.3", "@injectivelabs/mito-proto-ts": "1.13.0", - "@injectivelabs/networks": "^1.14.33-beta.1", + "@injectivelabs/networks": "^1.14.33", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.33-beta.1", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/test-utils": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", "@metamask/eth-sig-util": "^4.0.0", "@noble/curves": "^1.4.0", "axios": "^1.6.4", diff --git a/packages/test-utils/CHANGELOG.md b/packages/test-utils/CHANGELOG.md index 92abafc8d..82fce610c 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.33-beta.1...@injectivelabs/test-utils@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/test-utils + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/test-utils@1.14.30...@injectivelabs/test-utils@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/test-utils diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 66962bcb0..a4138cb62 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.33-beta.1", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,10 +55,10 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", "axios": "^1.6.4", "bignumber.js": "^9.0.1", "shx": "^0.3.2", diff --git a/packages/ts-types/CHANGELOG.md b/packages/ts-types/CHANGELOG.md index 6bbeb53bc..0c2c52043 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.32...@injectivelabs/ts-types@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/ts-types + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/ts-types@1.14.30...@injectivelabs/ts-types@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/ts-types diff --git a/packages/ts-types/package.json b/packages/ts-types/package.json index 3b0b5d715..35e72fa0f 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.", - "version": "1.14.32", + "version": "1.14.33", "sideEffects": false, "license": "Apache-2.0", "types": "dist/cjs/index.d.ts", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 3032fab40..26f84c72a 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.33-beta.1...@injectivelabs/utils@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/utils + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/utils@1.14.30...@injectivelabs/utils@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/utils diff --git a/packages/utils/package.json b/packages/utils/package.json index a5cd23e86..24dce9de4 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.33-beta.1", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,8 +55,8 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/ts-types": "^1.14.32", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", "axios": "^1.6.4", "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 57095e7d0..87eb65675 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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.33-beta.4...@injectivelabs/wallet-ts@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-ts + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ts@1.14.31...@injectivelabs/wallet-ts@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ts diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 9a5c00899..877f6ae1b 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.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -81,11 +81,11 @@ "@cosmostation/extension-client": "^0.1.15", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "@ledgerhq/hw-app-cosmos": "^6.29.5", diff --git a/packages/wallets/wallet-base/CHANGELOG.md b/packages/wallets/wallet-base/CHANGELOG.md index a9cf769e9..08054c949 100644 --- a/packages/wallets/wallet-base/CHANGELOG.md +++ b/packages/wallets/wallet-base/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@1.14.33-beta.4...@injectivelabs/wallet-base@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-base + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-base@1.14.31...@injectivelabs/wallet-base@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-base diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index b11128f6a..1e4830055 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-core/CHANGELOG.md b/packages/wallets/wallet-core/CHANGELOG.md index 502226272..929358595 100644 --- a/packages/wallets/wallet-core/CHANGELOG.md +++ b/packages/wallets/wallet-core/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@1.14.33-beta.4...@injectivelabs/wallet-core@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-core + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-core@1.14.31...@injectivelabs/wallet-core@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-core diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index acc1502d9..fe27c9afa 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,12 +55,12 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md b/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md index 0093a981e..a2005b01c 100644 --- a/packages/wallets/wallet-cosmos-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos-strategy/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@1.14.33-beta.4...@injectivelabs/wallet-cosmos-strategy@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos-strategy@1.14.31...@injectivelabs/wallet-cosmos-strategy@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos-strategy diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 3eff0f13a..ffee81931 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,15 +57,15 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", - "@injectivelabs/wallet-core": "^1.14.33-beta.4", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.4", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-core": "^1.14.33", + "@injectivelabs/wallet-cosmos": "^1.14.33", + "@injectivelabs/wallet-cosmostation": "^1.14.33", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/CHANGELOG.md b/packages/wallets/wallet-cosmos/CHANGELOG.md index 6bc6051e9..8dc67a4cd 100644 --- a/packages/wallets/wallet-cosmos/CHANGELOG.md +++ b/packages/wallets/wallet-cosmos/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@1.14.33-beta.4...@injectivelabs/wallet-cosmos@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmos + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmos@1.14.31...@injectivelabs/wallet-cosmos@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmos diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 6eba48cb3..8228b304f 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,12 +59,12 @@ "@cosmjs/launchpad": "0.27.1", "@cosmjs/proto-signing": "^0.32.3", "@cosmjs/stargate": "^0.32.3", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/CHANGELOG.md b/packages/wallets/wallet-cosmostation/CHANGELOG.md index 7dd1e8312..2523631b6 100644 --- a/packages/wallets/wallet-cosmostation/CHANGELOG.md +++ b/packages/wallets/wallet-cosmostation/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@1.14.33-beta.4...@injectivelabs/wallet-cosmostation@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-cosmostation + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-cosmostation@1.14.31...@injectivelabs/wallet-cosmostation@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-cosmostation diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index b4279f5f5..ed7272bef 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,11 +57,11 @@ "dependencies": { "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/CHANGELOG.md b/packages/wallets/wallet-evm/CHANGELOG.md index f68f29b6c..3fd589f42 100644 --- a/packages/wallets/wallet-evm/CHANGELOG.md +++ b/packages/wallets/wallet-evm/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@1.14.33-beta.4...@injectivelabs/wallet-evm@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-evm + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-evm@1.14.31...@injectivelabs/wallet-evm@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-evm diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 4cfc9fcaf..d460fbc32 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,12 +55,12 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/CHANGELOG.md b/packages/wallets/wallet-ledger/CHANGELOG.md index 59e37066a..59c700d20 100644 --- a/packages/wallets/wallet-ledger/CHANGELOG.md +++ b/packages/wallets/wallet-ledger/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@1.14.33-beta.4...@injectivelabs/wallet-ledger@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-ledger + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-ledger@1.14.31...@injectivelabs/wallet-ledger@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-ledger diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index fb11643cf..bf2d6c321 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/CHANGELOG.md b/packages/wallets/wallet-magic/CHANGELOG.md index 73e500bb7..e76241d0f 100644 --- a/packages/wallets/wallet-magic/CHANGELOG.md +++ b/packages/wallets/wallet-magic/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@1.14.33-beta.4...@injectivelabs/wallet-magic@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-magic + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-magic@1.14.31...@injectivelabs/wallet-magic@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-magic diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 632adb955..4ea57d3fb 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/CHANGELOG.md b/packages/wallets/wallet-private-key/CHANGELOG.md index 363d7ca3e..a343d6146 100644 --- a/packages/wallets/wallet-private-key/CHANGELOG.md +++ b/packages/wallets/wallet-private-key/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@1.14.33-beta.4...@injectivelabs/wallet-private-key@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-private-key + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-private-key@1.14.31...@injectivelabs/wallet-private-key@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-private-key diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 9ff7e31e3..4d1b30b47 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4" + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/CHANGELOG.md b/packages/wallets/wallet-strategy/CHANGELOG.md index c3c089cac..1fdf0e5d9 100644 --- a/packages/wallets/wallet-strategy/CHANGELOG.md +++ b/packages/wallets/wallet-strategy/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@1.14.33-beta.4...@injectivelabs/wallet-strategy@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-strategy + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-strategy@1.14.31...@injectivelabs/wallet-strategy@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-strategy diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 7acaa17e4..3e302f7f9 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,21 +57,21 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", - "@injectivelabs/wallet-core": "^1.14.33-beta.4", - "@injectivelabs/wallet-cosmos": "^1.14.33-beta.4", - "@injectivelabs/wallet-cosmostation": "^1.14.33-beta.4", - "@injectivelabs/wallet-evm": "^1.14.33-beta.4", - "@injectivelabs/wallet-ledger": "^1.14.33-beta.4", - "@injectivelabs/wallet-magic": "^1.14.33-beta.4", - "@injectivelabs/wallet-private-key": "^1.14.33-beta.4", - "@injectivelabs/wallet-trezor": "^1.14.33-beta.4", - "@injectivelabs/wallet-wallet-connect": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-core": "^1.14.33", + "@injectivelabs/wallet-cosmos": "^1.14.33", + "@injectivelabs/wallet-cosmostation": "^1.14.33", + "@injectivelabs/wallet-evm": "^1.14.33", + "@injectivelabs/wallet-ledger": "^1.14.33", + "@injectivelabs/wallet-magic": "^1.14.33", + "@injectivelabs/wallet-private-key": "^1.14.33", + "@injectivelabs/wallet-trezor": "^1.14.33", + "@injectivelabs/wallet-wallet-connect": "^1.14.33", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/CHANGELOG.md b/packages/wallets/wallet-trezor/CHANGELOG.md index 651e8e3af..bbf6df53b 100644 --- a/packages/wallets/wallet-trezor/CHANGELOG.md +++ b/packages/wallets/wallet-trezor/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@1.14.33-beta.4...@injectivelabs/wallet-trezor@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-trezor + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-trezor@1.14.31...@injectivelabs/wallet-trezor@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-trezor diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 6d7ec523c..6fd6e9e50 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,12 +57,12 @@ "dependencies": { "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/networks": "^1.14.33-beta.1", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/networks": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/CHANGELOG.md b/packages/wallets/wallet-wallet-connect/CHANGELOG.md index 1795440fb..0903bb7a3 100644 --- a/packages/wallets/wallet-wallet-connect/CHANGELOG.md +++ b/packages/wallets/wallet-wallet-connect/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.33](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@1.14.33-beta.4...@injectivelabs/wallet-wallet-connect@1.14.33) (2024-11-29) + +**Note:** Version bump only for package @injectivelabs/wallet-wallet-connect + + + + + ## [1.14.32](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/wallet-wallet-connect@1.14.31...@injectivelabs/wallet-wallet-connect@1.14.32) (2024-11-25) **Note:** Version bump only for package @injectivelabs/wallet-wallet-connect diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 79f0b3c44..3d57fa995 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33-beta.4", + "version": "1.14.33", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -55,11 +55,11 @@ "start": "node dist/index.js" }, "dependencies": { - "@injectivelabs/exceptions": "^1.14.32", - "@injectivelabs/sdk-ts": "^1.14.33-beta.4", - "@injectivelabs/ts-types": "^1.14.32", - "@injectivelabs/utils": "^1.14.33-beta.1", - "@injectivelabs/wallet-base": "^1.14.33-beta.4", + "@injectivelabs/exceptions": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/ts-types": "^1.14.33", + "@injectivelabs/utils": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.33", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 2eec376457c82d6af6330b671faf739d681857eb Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 17:22:17 +0100 Subject: [PATCH 48/54] chore: export grants --- packages/sdk-ts/src/core/modules/authz/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sdk-ts/src/core/modules/authz/index.ts b/packages/sdk-ts/src/core/modules/authz/index.ts index c5b00a9a1..496edc5b2 100644 --- a/packages/sdk-ts/src/core/modules/authz/index.ts +++ b/packages/sdk-ts/src/core/modules/authz/index.ts @@ -6,3 +6,4 @@ import MsgGrantWithAuthorization from './msgs/MsgGrantWithAuthorization.js' export { MsgGrant, MsgRevoke, MsgAuthzExec, MsgGrantWithAuthorization } export * from './utils.js' export * from './types.js' +export * from './msgs/grants/index.js' From 486c8d1b46ddd9f9fe2fc58c93725b15003f759c Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 29 Nov 2024 17:36:15 +0100 Subject: [PATCH 49/54] chore: export grants --- packages/sdk-ts/src/core/modules/authz/index.ts | 2 +- .../core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts | 4 ++-- .../src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts | 2 +- .../modules/authz/msgs/{grants => authorizations}/Base.ts | 0 .../ContractExecutionAuthorization.ts | 0 .../msgs/{grants => authorizations}/GenericAuthorization.ts | 0 .../src/core/modules/authz/msgs/authorizations/index.ts | 4 ++++ packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts | 4 ---- 8 files changed, 8 insertions(+), 8 deletions(-) rename packages/sdk-ts/src/core/modules/authz/msgs/{grants => authorizations}/Base.ts (100%) rename packages/sdk-ts/src/core/modules/authz/msgs/{grants => authorizations}/ContractExecutionAuthorization.ts (100%) rename packages/sdk-ts/src/core/modules/authz/msgs/{grants => authorizations}/GenericAuthorization.ts (100%) create mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/authorizations/index.ts delete mode 100644 packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts diff --git a/packages/sdk-ts/src/core/modules/authz/index.ts b/packages/sdk-ts/src/core/modules/authz/index.ts index 496edc5b2..8c8afee63 100644 --- a/packages/sdk-ts/src/core/modules/authz/index.ts +++ b/packages/sdk-ts/src/core/modules/authz/index.ts @@ -6,4 +6,4 @@ import MsgGrantWithAuthorization from './msgs/MsgGrantWithAuthorization.js' export { MsgGrant, MsgRevoke, MsgAuthzExec, MsgGrantWithAuthorization } export * from './utils.js' export * from './types.js' -export * from './msgs/grants/index.js' +export * from './msgs/authorizations/index.js' diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts index ff45cf24f..755d0cd8f 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts @@ -1,7 +1,7 @@ import MsgGrantWithAuthorization from './MsgGrantWithAuthorization.js' import { mockFactory } from '@injectivelabs/test-utils' -import GenericAuthorization from './grants/GenericAuthorization.js' -import ContractExecutionAuthorization from './grants/ContractExecutionAuthorization.js' +import GenericAuthorization from './authorizations/GenericAuthorization.js' +import ContractExecutionAuthorization from './authorizations/ContractExecutionAuthorization.js' const { injectiveAddress, injectiveAddress2 } = mockFactory diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts index e86131ca6..b162cfe75 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts @@ -5,7 +5,7 @@ import { CosmosAuthzV1Beta1Authz, GoogleProtobufTimestamp, } from '@injectivelabs/core-proto-ts' -import { BaseAuthorization } from './grants/Base.js' +import { BaseAuthorization } from './authorizations/Base.js' export declare namespace MsgGrantWithAuthorization { export interface Params { diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/Base.ts similarity index 100% rename from packages/sdk-ts/src/core/modules/authz/msgs/grants/Base.ts rename to packages/sdk-ts/src/core/modules/authz/msgs/authorizations/Base.ts diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts similarity index 100% rename from packages/sdk-ts/src/core/modules/authz/msgs/grants/ContractExecutionAuthorization.ts rename to packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/GenericAuthorization.ts similarity index 100% rename from packages/sdk-ts/src/core/modules/authz/msgs/grants/GenericAuthorization.ts rename to packages/sdk-ts/src/core/modules/authz/msgs/authorizations/GenericAuthorization.ts diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/index.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/index.ts new file mode 100644 index 000000000..2c9d12e5d --- /dev/null +++ b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/index.ts @@ -0,0 +1,4 @@ +import GenericAuthz from './GenericAuthorization.js' +import ContractExecutionAuthz from './ContractExecutionAuthorization.js' + +export { GenericAuthz, ContractExecutionAuthz } diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts b/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts deleted file mode 100644 index 4b7116718..000000000 --- a/packages/sdk-ts/src/core/modules/authz/msgs/grants/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import GenericAuthorization from './GenericAuthorization.js' -import ContractExecutionAuthorization from './ContractExecutionAuthorization.js' - -export { GenericAuthorization, ContractExecutionAuthorization } From 4cf0a177d8f56edea398b8d386a2c37b92960210 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 29 Nov 2024 16:39:25 +0000 Subject: [PATCH 50/54] chore: release - @injectivelabs/sdk-ts@1.14.34-beta.0 - @injectivelabs/wallet-ts@1.14.34-beta.0 - @injectivelabs/wallet-base@1.14.34-beta.0 - @injectivelabs/wallet-core@1.14.34-beta.0 - @injectivelabs/wallet-cosmos-strategy@1.14.34-beta.0 - @injectivelabs/wallet-cosmos@1.14.34-beta.0 - @injectivelabs/wallet-cosmostation@1.14.34-beta.0 - @injectivelabs/wallet-evm@1.14.34-beta.0 - @injectivelabs/wallet-ledger@1.14.34-beta.0 - @injectivelabs/wallet-magic@1.14.34-beta.0 - @injectivelabs/wallet-private-key@1.14.34-beta.0 - @injectivelabs/wallet-strategy@1.14.34-beta.0 - @injectivelabs/wallet-trezor@1.14.34-beta.0 - @injectivelabs/wallet-wallet-connect@1.14.34-beta.0 --- packages/sdk-ts/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 6 ++--- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 6 ++--- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 14 files changed, 50 insertions(+), 50 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 4f13a354e..2a347935b 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.33", + "version": "1.14.34-beta.0", "sideEffects": false, "license": "Apache-2.0", "author": { diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index 877f6ae1b..bb519e976 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.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 1e4830055..87d14cb3f 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index fe27c9afa..acbc90821 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index ffee81931..befe6c181 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", - "@injectivelabs/wallet-core": "^1.14.33", - "@injectivelabs/wallet-cosmos": "^1.14.33", - "@injectivelabs/wallet-cosmostation": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-core": "^1.14.34-beta.0", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.0", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 8228b304f..3a9c27528 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index ed7272bef..098c39dfd 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index d460fbc32..97796a41c 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index bf2d6c321..c4b94b77f 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 4ea57d3fb..1f3af8cd0 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index 4d1b30b47..d7cd341f0 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33" + "@injectivelabs/wallet-base": "^1.14.34-beta.0" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 3e302f7f9..3020c97ea 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", - "@injectivelabs/wallet-core": "^1.14.33", - "@injectivelabs/wallet-cosmos": "^1.14.33", - "@injectivelabs/wallet-cosmostation": "^1.14.33", - "@injectivelabs/wallet-evm": "^1.14.33", - "@injectivelabs/wallet-ledger": "^1.14.33", - "@injectivelabs/wallet-magic": "^1.14.33", - "@injectivelabs/wallet-private-key": "^1.14.33", - "@injectivelabs/wallet-trezor": "^1.14.33", - "@injectivelabs/wallet-wallet-connect": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-core": "^1.14.34-beta.0", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.0", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.0", + "@injectivelabs/wallet-evm": "^1.14.34-beta.0", + "@injectivelabs/wallet-ledger": "^1.14.34-beta.0", + "@injectivelabs/wallet-magic": "^1.14.34-beta.0", + "@injectivelabs/wallet-private-key": "^1.14.34-beta.0", + "@injectivelabs/wallet-trezor": "^1.14.34-beta.0", + "@injectivelabs/wallet-wallet-connect": "^1.14.34-beta.0", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 6fd6e9e50..53b5b01bc 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index 3d57fa995..f621d5590 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.33", + "@injectivelabs/sdk-ts": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.33", + "@injectivelabs/wallet-base": "^1.14.34-beta.0", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From bd99fb431633a6321d3f522999de4052acc3da29 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 30 Nov 2024 00:25:35 +0100 Subject: [PATCH 51/54] fix: eip712v2 for authz authorizations --- .../indexer/grpc/IndexerGrpcWeb3GwApi.ts | 2 +- .../msgs/MsgGrantWithAuthorization.spec.ts | 155 ++++-------------- .../authz/msgs/MsgGrantWithAuthorization.ts | 4 +- .../ContractExecutionAuthorization.ts | 4 +- .../exchange/msgs/MsgCancelSpotOrder.spec.ts | 34 ++-- packages/sdk-ts/src/core/tx/eip712/eip712.ts | 1 - packages/sdk-ts/src/core/tx/eip712/maps.ts | 14 +- packages/sdk-ts/src/core/tx/eip712/utils.ts | 4 +- packages/test-utils/src/mocks/index.ts | 42 +++-- packages/test-utils/src/msgs.ts | 100 +++++++++-- 10 files changed, 181 insertions(+), 179 deletions(-) diff --git a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcWeb3GwApi.ts b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcWeb3GwApi.ts index 44771ad2d..12fac3889 100644 --- a/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcWeb3GwApi.ts +++ b/packages/sdk-ts/src/client/indexer/grpc/IndexerGrpcWeb3GwApi.ts @@ -31,7 +31,7 @@ export class IndexerGrpcWeb3GwApi extends IndexerGrpcTransactionApi { memo, sequence, accountNumber, - estimateGas = true, + estimateGas = false, gasLimit = DEFAULT_GAS_LIMIT, feeDenom = DEFAULT_BRIDGE_FEE_DENOM, feePrice = DEFAULT_BRIDGE_FEE_PRICE, diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts index 755d0cd8f..178234d1b 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.spec.ts @@ -1,7 +1,9 @@ import MsgGrantWithAuthorization from './MsgGrantWithAuthorization.js' -import { mockFactory } from '@injectivelabs/test-utils' +import { mockFactory, prepareEip712 } from '@injectivelabs/test-utils' import GenericAuthorization from './authorizations/GenericAuthorization.js' import ContractExecutionAuthorization from './authorizations/ContractExecutionAuthorization.js' +import { getEip712TypedData, getEip712TypedDataV2 } from '../../../tx/index.js' +import { IndexerGrpcWeb3GwApi } from './../../../../client/indexer/index.js' const { injectiveAddress, injectiveAddress2 } = mockFactory @@ -39,14 +41,6 @@ describe('MsgGrantWithAuthorization', () => { expiration: new Date(params.expiration! * 1000), }, } - const protoParamsGenericAuthorizationWeb3 = { - grantee: params.grantee, - granter: params.granter, - grant: { - authorization: params.authorization.toWeb3(), - expiration: new Date(params.expiration! * 1000), - }, - } const message = MsgGrantWithAuthorization.fromJSON(params) it('generates proper proto', () => { @@ -74,55 +68,6 @@ describe('MsgGrantWithAuthorization', () => { value: protoParamsGenericAuthorizationAmino, }) }) - - it('generates proper Eip712 types', () => { - const eip712Types = message.toEip712Types() - - expect(Object.fromEntries(eip712Types)).toStrictEqual({ - TypeGrant: [ - { name: 'authorization', type: 'TypeGrantAuthorization' }, - { name: 'expiration', type: 'string' }, - ], - TypeGrantAuthorization: [ - { name: 'type', type: 'string' }, - { name: 'value', type: 'TypeGrantAuthorizationValue' }, - ], - TypeGrantAuthorizationValue: [{ name: 'msg', type: 'string' }], - MsgValue: [ - { name: 'granter', type: 'string' }, - { name: 'grantee', type: 'string' }, - { name: 'grant', type: 'TypeGrant' }, - ], - }) - }) - - it('generates proper Eip712 values', () => { - const eip712 = message.toEip712() - - expect(eip712).toStrictEqual({ - type: 'cosmos-sdk/MsgGrant', - value: { - granter: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', - grantee: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', - grant: { - authorization: { - type: 'cosmos-sdk/GenericAuthorization', - value: { msg: '/cosmos.bank.v1beta1.MsgSend' }, - }, - expiration: '2027-01-15T08:00:00Z', - }, - }, - }) - }) - - it('generates proper web3', () => { - const web3 = message.toWeb3() - - expect(web3).toStrictEqual({ - '@type': protoType, - ...protoParamsGenericAuthorizationWeb3, - }) - }) }) describe('ContractExecutionAuthorization', () => { @@ -164,14 +109,6 @@ describe('MsgGrantWithAuthorization', () => { expiration: new Date(params.expiration! * 1000), }, } - const protoParamsContractExecutionAuthorizationWeb3 = { - grantee: params.grantee, - granter: params.granter, - grant: { - authorization: params.authorization.toWeb3(), - expiration: new Date(params.expiration! * 1000), - }, - } const message = MsgGrantWithAuthorization.fromJSON(params) it('generates proper proto', () => { @@ -200,73 +137,37 @@ describe('MsgGrantWithAuthorization', () => { }) }) - it('generates proper Eip712 types', () => { - const eip712Types = message.toEip712Types() - - expect(Object.fromEntries(eip712Types)).toStrictEqual({ - TypeGrant: [ - { name: 'authorization', type: 'TypeGrantAuthorization' }, - { name: 'expiration', type: 'string' }, - ], - TypeGrantAuthorization: [ - { name: 'type', type: 'string' }, - { name: 'grants', type: 'TypeGrantAuthorizationGrants[]' }, - ], - TypeGrantAuthorizationGrants: [ - { name: 'contract', type: 'string' }, - { name: 'limit', type: 'TypeGrantAuthorizationGrantsLimit' }, - { name: 'filter', type: 'TypeGrantAuthorizationGrantsFilter' }, - ], - TypeGrantAuthorizationGrantsLimit: [ - { name: 'type', type: 'string' }, - { name: 'remaining', type: 'uint64' }, - ], - TypeGrantAuthorizationGrantsFilter: [ - { name: 'type', type: 'string' }, - { name: 'keys', type: 'string[]' }, - ], - MsgValue: [ - { name: 'granter', type: 'string' }, - { name: 'grantee', type: 'string' }, - { name: 'grant', type: 'TypeGrant' }, - ], + describe('generates proper EIP712 compared to the Web3Gw (chain)', () => { + const { endpoints, eip712Args, prepareEip712Request } = prepareEip712({ + sequence: 0, + accountNumber: 3, + messages: message, }) - }) - it('generates proper Eip712 values', () => { - const eip712 = message.toEip712() + test('EIP712 v1', async () => { + const eip712TypedData = getEip712TypedData(eip712Args) - expect(eip712).toStrictEqual({ - type: 'cosmos-sdk/MsgGrant', - value: { - granter: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', - grantee: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', - grant: { - authorization: { - type: 'wasm/ContractExecutionAuthorization', - grants: [ - { - contract: 'inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku', - limit: { type: 'wasm/MaxCallsLimit', remaining: 100 }, - filter: { - type: 'wasm/AcceptedMessageKeysFilter', - keys: ['set_routes'], - }, - }, - ], - }, - expiration: '2027-01-15T08:00:00Z', - }, - }, + const txResponse = await new IndexerGrpcWeb3GwApi( + endpoints.indexer, + ).prepareEip712Request({ + ...prepareEip712Request, + eip712Version: 'v1', + }) + + expect(eip712TypedData).toStrictEqual(JSON.parse(txResponse.data)) }) - }) - it('generates proper web3', () => { - const web3 = message.toWeb3() + test('EIP712 v2', async () => { + const eip712TypedData = getEip712TypedDataV2(eip712Args) - expect(web3).toStrictEqual({ - '@type': protoType, - ...protoParamsContractExecutionAuthorizationWeb3, + const txResponse = await new IndexerGrpcWeb3GwApi( + endpoints.indexer, + ).prepareEip712Request({ + ...prepareEip712Request, + eip712Version: 'v2', + }) + + expect(eip712TypedData).toStrictEqual(JSON.parse(txResponse.data)) }) }) }) diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts index b162cfe75..d866f12a0 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/MsgGrantWithAuthorization.ts @@ -105,7 +105,9 @@ export default class MsgGrantWithAuthorization extends MsgBase< grantee: amino.value.grantee, grant: { authorization: params.authorization.toWeb3(), - expiration: new Date(Number(timestamp.seconds) * 1000), + expiration: + new Date(Number(timestamp.seconds) * 1000).toJSON().slice(0, -5) + + 'Z', }, } diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts index 11c577803..ae543b835 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts @@ -101,7 +101,7 @@ export default class ContractExecutionAuthorization extends BaseAuthorization< if (params.limit) { grant.limit = { type: 'wasm/MaxCallsLimit', - remaining: params.limit.maxCalls, + remaining: params.limit.maxCalls.toString(), } } @@ -128,7 +128,7 @@ export default class ContractExecutionAuthorization extends BaseAuthorization< if (params.limit) { grant.limit = { '@type': '/cosmwasm.wasm.v1.MaxCallsLimit', - remaining: params.limit.maxCalls, + remaining: params.limit.maxCalls.toString(), } } diff --git a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts index cc7791faf..8e27a661e 100644 --- a/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts +++ b/packages/sdk-ts/src/core/modules/exchange/msgs/MsgCancelSpotOrder.spec.ts @@ -83,35 +83,33 @@ describe('MsgCancelSpotOrder', () => { }) describe('generates proper EIP712 compared to the Web3Gw (chain)', () => { - const { endpoints, eip712Args, prepareEip712Request } = - prepareEip712(message) + const { endpoints, eip712Args, prepareEip712Request } = prepareEip712({ + sequence: 0, + accountNumber: 3, + messages: message, + }) it('EIP712 v1', async () => { const eip712TypedData = getEip712TypedData(eip712Args) - try { - const txResponse = await new IndexerGrpcWeb3GwApi( - endpoints.indexer, - ).prepareEip712Request({ ...prepareEip712Request, eip712Version: 'v1' }) + const txResponse = await new IndexerGrpcWeb3GwApi( + endpoints.indexer, + ).prepareEip712Request({ + ...prepareEip712Request, + eip712Version: 'v1', + }) - expect(JSON.parse(txResponse.data)).toStrictEqual(eip712TypedData) - } catch (e: any) { - // throw silently now - } + expect(eip712TypedData).toStrictEqual(JSON.parse(txResponse.data)) }) it('EIP712 v2', async () => { const eip712TypedData = getEip712TypedDataV2(eip712Args) - try { - const txResponse = await new IndexerGrpcWeb3GwApi( - endpoints.indexer, - ).prepareEip712Request({ ...prepareEip712Request, eip712Version: 'v2' }) + const txResponse = await new IndexerGrpcWeb3GwApi( + endpoints.indexer, + ).prepareEip712Request({ ...prepareEip712Request, eip712Version: 'v2' }) - expect(JSON.parse(txResponse.data)).toStrictEqual(eip712TypedData) - } catch (e: any) { - // throw silently now - } + expect(eip712TypedData).toStrictEqual(JSON.parse(txResponse.data)) }) }) }) diff --git a/packages/sdk-ts/src/core/tx/eip712/eip712.ts b/packages/sdk-ts/src/core/tx/eip712/eip712.ts index 78bb33e08..22608d9de 100644 --- a/packages/sdk-ts/src/core/tx/eip712/eip712.ts +++ b/packages/sdk-ts/src/core/tx/eip712/eip712.ts @@ -38,7 +38,6 @@ export const getEip712TypedData = ({ fee, types: typesWithMessageTypes, }) - return { ...typesWithFeePayer, primaryType: 'Tx', diff --git a/packages/sdk-ts/src/core/tx/eip712/maps.ts b/packages/sdk-ts/src/core/tx/eip712/maps.ts index c634083e9..097d33659 100644 --- a/packages/sdk-ts/src/core/tx/eip712/maps.ts +++ b/packages/sdk-ts/src/core/tx/eip712/maps.ts @@ -235,6 +235,7 @@ export const mapValuesToProperValueType = >( ): T => { const numberToStringKeys = [ 'proposal_id', + 'remaining', 'round', 'oracle_scale_factor', 'timeout_timestamp', @@ -256,6 +257,9 @@ export const mapValuesToProperValueType = >( const nullableStringsTypeMaps = { 'wasmx/MsgExecuteContractCompat': ['funds'], } + // const dateTypesMap = { + // 'cosmos-sdk/MsgGrant': ['expiration'], + // } const nullableStrings = ['uri', 'uri_hash'] @@ -301,20 +305,25 @@ export const mapValuesToProperValueType = >( [key]: value.toJSON().split('.')[0] + 'Z', } } + if (Array.isArray(value)) { return { ...result, [key]: value.every((i) => typeof i === 'string') ? value : value.map((item) => - mapValuesToProperValueType(item as Record), + mapValuesToProperValueType( + item as Record, + ), ), } } return { ...result, - [key]: mapValuesToProperValueType(value as Record), + [key]: mapValuesToProperValueType( + value as Record, + ), } } @@ -609,6 +618,7 @@ export const protoTypeToAminoType = (type: string): string => { return 'injective/tokenfactory/burn' case 'injective.tokenfactory.v1beta1.MsgSetDenomMetadata': return 'injective/tokenfactory/set-denom-metadata' + // Auth case 'cosmos.auth.v1beta1.MsgUpdateParams': return 'cosmos-sdk/x/auth/MsgUpdateParams' diff --git a/packages/sdk-ts/src/core/tx/eip712/utils.ts b/packages/sdk-ts/src/core/tx/eip712/utils.ts index 2d86e5ade..595a395b0 100644 --- a/packages/sdk-ts/src/core/tx/eip712/utils.ts +++ b/packages/sdk-ts/src/core/tx/eip712/utils.ts @@ -106,7 +106,7 @@ export const getEip712Fee = ( return { fee: { - feePayer: feePayer, + ...(feePayer && { feePayer }), gas, amount, }, @@ -152,7 +152,7 @@ export const getEip712FeeV2 = ( fee: { amount, gas, - payer: payer, + ...(payer && { payer }), }, } } diff --git a/packages/test-utils/src/mocks/index.ts b/packages/test-utils/src/mocks/index.ts index 101fe152a..52f3d3bac 100644 --- a/packages/test-utils/src/mocks/index.ts +++ b/packages/test-utils/src/mocks/index.ts @@ -95,22 +95,36 @@ export const mockFactory = { orderHash2, MAX_TIMEOUT_HEIGHT, - eip712Tx: { + eip712Tx: ({ + chainId = ChainId.Devnet, + ethereumChainId = EthereumChainId.Sepolia, + accountNumber = 1, + sequence = 0, + timeoutHeight = 999999999, + memo = '', + }: { + chainId?: ChainId + ethereumChainId?: EthereumChainId + accountNumber?: number + sequence?: number + timeoutHeight?: number + memo?: string + }) => ({ tx: { - chainId: ChainId.Devnet, - ethereumChainId: EthereumChainId.Sepolia, - accountNumber: '1', - sequence: '1', - timeoutHeight: '9999', - memo: '', + memo, + chainId, + sequence, + ethereumChainId, + accountNumber, + timeoutHeight, }, eip712: { - chainId: ChainId.Devnet, - ethereumChainId: EthereumChainId.Sepolia, - accountNumber: 1, - sequence: 1, - timeoutHeight: 9999, - memo: '', + memo, + chainId, + sequence, + accountNumber, + ethereumChainId, + timeoutHeight, }, - }, + }), } diff --git a/packages/test-utils/src/msgs.ts b/packages/test-utils/src/msgs.ts index a9e24ceb9..555e0e0f7 100644 --- a/packages/test-utils/src/msgs.ts +++ b/packages/test-utils/src/msgs.ts @@ -1,24 +1,102 @@ -import { DEFAULT_STD_FEE } from '@injectivelabs/utils' -import { Network, getNetworkEndpoints } from '@injectivelabs/networks' +import { + BigNumber, + DEFAULT_GAS_LIMIT, + DEFAULT_GAS_PRICE, +} from '@injectivelabs/utils' +import { + Network, + getNetworkInfo, + NetworkEndpoints, + getNetworkEndpoints, +} from '@injectivelabs/networks' import { mockFactory } from './mocks/index.js' +import { ChainId, Coin, EthereumChainId } from '@injectivelabs/ts-types' -export const prepareEip712 = (messages: T) => { - const endpoints = getNetworkEndpoints(Network.Devnet) +export const prepareEip712 = ({ + messages, + gas = DEFAULT_GAS_LIMIT, + network = Network.Devnet, + injectiveAddress = mockFactory.injectiveAddress, + ethereumAddress = mockFactory.ethereumAddress, + accountNumber = 1, + sequence = 0, + timeoutHeight = 999_999_999, + memo = '', +}: { + ethereumAddress?: string + messages: T + network?: Network + gas?: number | string + accountNumber?: number + sequence?: number + timeoutHeight?: number + memo?: string + injectiveAddress?: string +}): { + endpoints: NetworkEndpoints + eip712Args: { + msgs: any + tx: { + memo: string + chainId: ChainId + sequence: string + ethereumChainId: EthereumChainId + accountNumber: string + timeoutHeight: string + } + ethereumChainId: EthereumChainId + fee: { amount: Coin[]; gas: string; payer: string } + } + prepareEip712Request: { + chainId: EthereumChainId + message: any[] + address: string + memo: string + sequence: number + accountNumber: number + ethereumChainId: EthereumChainId + timeoutHeight: number + } +} => { + const chainInfo = getNetworkInfo(network) + const endpoints = getNetworkEndpoints(network) const msgs = Array.isArray(messages) ? messages : [messages] const web3Msgs = msgs.map((msg) => msg.toWeb3()) - const { tx, eip712 } = mockFactory.eip712Tx - const { ethereumChainId } = eip712 + const { tx, eip712 } = mockFactory.eip712Tx({ + ...chainInfo, + accountNumber, + sequence, + timeoutHeight, + memo, + }) const eip712Args = { msgs, - fee: DEFAULT_STD_FEE, - tx: tx, - ethereumChainId: ethereumChainId, + fee: { + amount: [ + { + denom: 'inj', + amount: new BigNumber(gas.toString()) + .times(DEFAULT_GAS_PRICE) + .toFixed(), + }, + ], + gas: gas.toString(), + payer: injectiveAddress, + }, + tx: { + ...tx, + sequence: sequence.toString(), + timeoutHeight: timeoutHeight.toString(), + accountNumber: accountNumber.toString(), + }, + ethereumChainId: eip712.ethereumChainId, } const prepareEip712Request = { ...eip712, - chainId: ethereumChainId, + chainId: eip712.ethereumChainId, message: web3Msgs, - address: mockFactory.ethereumAddress, + gasLimit: gas, + address: ethereumAddress, } return { endpoints, eip712Args, prepareEip712Request } From 4bef7ff403a04597794d60f42b1be5e7d2e222c5 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Fri, 29 Nov 2024 23:29:31 +0000 Subject: [PATCH 52/54] chore: release - @injectivelabs/sdk-ts@1.14.34-beta.1 - @injectivelabs/test-utils@1.14.34-beta.0 - @injectivelabs/wallet-ts@1.14.34-beta.1 - @injectivelabs/wallet-base@1.14.34-beta.1 - @injectivelabs/wallet-core@1.14.34-beta.1 - @injectivelabs/wallet-cosmos-strategy@1.14.34-beta.1 - @injectivelabs/wallet-cosmos@1.14.34-beta.1 - @injectivelabs/wallet-cosmostation@1.14.34-beta.1 - @injectivelabs/wallet-evm@1.14.34-beta.1 - @injectivelabs/wallet-ledger@1.14.34-beta.1 - @injectivelabs/wallet-magic@1.14.34-beta.1 - @injectivelabs/wallet-private-key@1.14.34-beta.1 - @injectivelabs/wallet-strategy@1.14.34-beta.1 - @injectivelabs/wallet-trezor@1.14.34-beta.1 - @injectivelabs/wallet-wallet-connect@1.14.34-beta.1 --- packages/sdk-ts/package.json | 4 ++-- packages/test-utils/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 6 ++--- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 6 ++--- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 15 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 2a347935b..4eeeee869 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.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -130,7 +130,7 @@ "@injectivelabs/mito-proto-ts": "1.13.0", "@injectivelabs/networks": "^1.14.33", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.33", + "@injectivelabs/test-utils": "^1.14.34-beta.0", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index a4138cb62..2634fb24b 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.33", + "version": "1.14.34-beta.0", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index bb519e976..d9f59c6d0 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.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 87d14cb3f..6428f970d 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index acbc90821..0989408b9 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index befe6c181..0d4cb2f95 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", - "@injectivelabs/wallet-core": "^1.14.34-beta.0", - "@injectivelabs/wallet-cosmos": "^1.14.34-beta.0", - "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-core": "^1.14.34-beta.1", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.1", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 3a9c27528..1ac680824 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index 098c39dfd..a3c620b13 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 97796a41c..045dfcba2 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index c4b94b77f..ae5ff57ff 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index 1f3af8cd0..c2168b55e 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index d7cd341f0..b8b63b41d 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0" + "@injectivelabs/wallet-base": "^1.14.34-beta.1" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index 3020c97ea..df2f948b2 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", - "@injectivelabs/wallet-core": "^1.14.34-beta.0", - "@injectivelabs/wallet-cosmos": "^1.14.34-beta.0", - "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.0", - "@injectivelabs/wallet-evm": "^1.14.34-beta.0", - "@injectivelabs/wallet-ledger": "^1.14.34-beta.0", - "@injectivelabs/wallet-magic": "^1.14.34-beta.0", - "@injectivelabs/wallet-private-key": "^1.14.34-beta.0", - "@injectivelabs/wallet-trezor": "^1.14.34-beta.0", - "@injectivelabs/wallet-wallet-connect": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-core": "^1.14.34-beta.1", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.1", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.1", + "@injectivelabs/wallet-evm": "^1.14.34-beta.1", + "@injectivelabs/wallet-ledger": "^1.14.34-beta.1", + "@injectivelabs/wallet-magic": "^1.14.34-beta.1", + "@injectivelabs/wallet-private-key": "^1.14.34-beta.1", + "@injectivelabs/wallet-trezor": "^1.14.34-beta.1", + "@injectivelabs/wallet-wallet-connect": "^1.14.34-beta.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 53b5b01bc..8de024881 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index f621d5590..c5b47827f 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.0", + "@injectivelabs/sdk-ts": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.0", + "@injectivelabs/wallet-base": "^1.14.34-beta.1", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", From 8a2a5d73889c0e1a163a3bd5ce2c1dca96a416d1 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Sat, 30 Nov 2024 00:34:52 +0100 Subject: [PATCH 53/54] fix: any for contractExecutionAuthorization --- .../authz/msgs/authorizations/ContractExecutionAuthorization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts index ae543b835..ab6f58ae2 100644 --- a/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts +++ b/packages/sdk-ts/src/core/modules/authz/msgs/authorizations/ContractExecutionAuthorization.ts @@ -67,7 +67,7 @@ export default class ContractExecutionAuthorization extends BaseAuthorization< any.value = CosmwasmWasmV1Authz.AcceptedMessageKeysFilter.encode(filter).finish() - grant.limit = any + grant.filter = any } authorization.grants = [grant] From 2294fe9507b2f14220c5dfa132c92900aa654516 Mon Sep 17 00:00:00 2001 From: bangjelkoski Date: Sat, 30 Nov 2024 20:54:00 +0000 Subject: [PATCH 54/54] chore: release - @injectivelabs/sdk-ts@1.14.34-beta.2 - @injectivelabs/test-utils@1.14.34-beta.1 - @injectivelabs/wallet-ts@1.14.34-beta.2 - @injectivelabs/wallet-base@1.14.34-beta.2 - @injectivelabs/wallet-core@1.14.34-beta.2 - @injectivelabs/wallet-cosmos-strategy@1.14.34-beta.2 - @injectivelabs/wallet-cosmos@1.14.34-beta.2 - @injectivelabs/wallet-cosmostation@1.14.34-beta.2 - @injectivelabs/wallet-evm@1.14.34-beta.2 - @injectivelabs/wallet-ledger@1.14.34-beta.2 - @injectivelabs/wallet-magic@1.14.34-beta.2 - @injectivelabs/wallet-private-key@1.14.34-beta.2 - @injectivelabs/wallet-strategy@1.14.34-beta.2 - @injectivelabs/wallet-trezor@1.14.34-beta.2 - @injectivelabs/wallet-wallet-connect@1.14.34-beta.2 --- packages/sdk-ts/package.json | 4 ++-- packages/test-utils/package.json | 2 +- packages/wallet-ts/package.json | 4 ++-- packages/wallets/wallet-base/package.json | 4 ++-- packages/wallets/wallet-core/package.json | 6 ++--- .../wallet-cosmos-strategy/package.json | 12 +++++----- packages/wallets/wallet-cosmos/package.json | 6 ++--- .../wallets/wallet-cosmostation/package.json | 6 ++--- packages/wallets/wallet-evm/package.json | 6 ++--- packages/wallets/wallet-ledger/package.json | 6 ++--- packages/wallets/wallet-magic/package.json | 6 ++--- .../wallets/wallet-private-key/package.json | 6 ++--- packages/wallets/wallet-strategy/package.json | 24 +++++++++---------- packages/wallets/wallet-trezor/package.json | 6 ++--- .../wallet-wallet-connect/package.json | 6 ++--- 15 files changed, 52 insertions(+), 52 deletions(-) diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.json index 4eeeee869..124bd6416 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.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "license": "Apache-2.0", "author": { @@ -130,7 +130,7 @@ "@injectivelabs/mito-proto-ts": "1.13.0", "@injectivelabs/networks": "^1.14.33", "@injectivelabs/olp-proto-ts": "1.13.1", - "@injectivelabs/test-utils": "^1.14.34-beta.0", + "@injectivelabs/test-utils": "^1.14.34-beta.1", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "@metamask/eth-sig-util": "^4.0.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 2634fb24b..afa943f4e 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.34-beta.0", + "version": "1.14.34-beta.1", "sideEffects": false, "author": { "name": "InjectiveLabs", diff --git a/packages/wallet-ts/package.json b/packages/wallet-ts/package.json index d9f59c6d0..d0f3e8e75 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.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -83,7 +83,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "@keplr-wallet/cosmos": "^0.12.71", diff --git a/packages/wallets/wallet-base/package.json b/packages/wallets/wallet-base/package.json index 6428f970d..0cbebbfa4 100644 --- a/packages/wallets/wallet-base/package.json +++ b/packages/wallets/wallet-base/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-base", "description": "Base wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,7 +59,7 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", "alchemy-sdk": "^3.4.7", diff --git a/packages/wallets/wallet-core/package.json b/packages/wallets/wallet-core/package.json index 0989408b9..baa02e676 100644 --- a/packages/wallets/wallet-core/package.json +++ b/packages/wallets/wallet-core/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-core", "description": "Core wallet strategy", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "eip1193-provider": "^1.0.1" }, "devDependencies": { diff --git a/packages/wallets/wallet-cosmos-strategy/package.json b/packages/wallets/wallet-cosmos-strategy/package.json index 0d4cb2f95..5f4e70036 100644 --- a/packages/wallets/wallet-cosmos-strategy/package.json +++ b/packages/wallets/wallet-cosmos-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos-strategy", "description": "Wallet Cosmos Strategy with instantiated wallets", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,13 +59,13 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", - "@injectivelabs/wallet-core": "^1.14.34-beta.1", - "@injectivelabs/wallet-cosmos": "^1.14.34-beta.1", - "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", + "@injectivelabs/wallet-core": "^1.14.34-beta.2", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.2", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-cosmos/package.json b/packages/wallets/wallet-cosmos/package.json index 1ac680824..85f0eac68 100644 --- a/packages/wallets/wallet-cosmos/package.json +++ b/packages/wallets/wallet-cosmos/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmos", "description": "Cosmos wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -61,10 +61,10 @@ "@cosmjs/stargate": "^0.32.3", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@keplr-wallet/cosmos": "^0.12.71", "@keplr-wallet/types": "^0.12.71", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-cosmostation/package.json b/packages/wallets/wallet-cosmostation/package.json index a3c620b13..1b154e456 100644 --- a/packages/wallets/wallet-cosmostation/package.json +++ b/packages/wallets/wallet-cosmostation/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-cosmostation", "description": "Cosmostation strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -58,10 +58,10 @@ "@cosmjs/proto-signing": "^0.32.3", "@cosmostation/extension-client": "^0.1.15", "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", diff --git a/packages/wallets/wallet-evm/package.json b/packages/wallets/wallet-evm/package.json index 045dfcba2..9e0438848 100644 --- a/packages/wallets/wallet-evm/package.json +++ b/packages/wallets/wallet-evm/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-evm", "description": "EVM wallet strategies for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -57,10 +57,10 @@ "dependencies": { "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "ethers": "^6.5.1", "long": "^5.2.1", "shx": "^0.3.3" diff --git a/packages/wallets/wallet-ledger/package.json b/packages/wallets/wallet-ledger/package.json index ae5ff57ff..d0015a760 100644 --- a/packages/wallets/wallet-ledger/package.json +++ b/packages/wallets/wallet-ledger/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-ledger", "description": "Ledger wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@ledgerhq/hw-app-cosmos": "^6.29.5", "@ledgerhq/hw-app-eth": "6.35.6", "@ledgerhq/hw-transport": "6.30.4", diff --git a/packages/wallets/wallet-magic/package.json b/packages/wallets/wallet-magic/package.json index c2168b55e..75e86a4a5 100644 --- a/packages/wallets/wallet-magic/package.json +++ b/packages/wallets/wallet-magic/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-magic", "description": "Magic wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@magic-ext/cosmos": "23.9.1", "@magic-ext/oauth2": "9.9.0", "magic-sdk": "28.9.0" diff --git a/packages/wallets/wallet-private-key/package.json b/packages/wallets/wallet-private-key/package.json index b8b63b41d..187d7556a 100644 --- a/packages/wallets/wallet-private-key/package.json +++ b/packages/wallets/wallet-private-key/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-private-key", "description": "Private key wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1" + "@injectivelabs/wallet-base": "^1.14.34-beta.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445", "typedoc": { diff --git a/packages/wallets/wallet-strategy/package.json b/packages/wallets/wallet-strategy/package.json index df2f948b2..173e8fd05 100644 --- a/packages/wallets/wallet-strategy/package.json +++ b/packages/wallets/wallet-strategy/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-strategy", "description": "Wallet strategy with instantiated wallets", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,19 +59,19 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", - "@injectivelabs/wallet-core": "^1.14.34-beta.1", - "@injectivelabs/wallet-cosmos": "^1.14.34-beta.1", - "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.1", - "@injectivelabs/wallet-evm": "^1.14.34-beta.1", - "@injectivelabs/wallet-ledger": "^1.14.34-beta.1", - "@injectivelabs/wallet-magic": "^1.14.34-beta.1", - "@injectivelabs/wallet-private-key": "^1.14.34-beta.1", - "@injectivelabs/wallet-trezor": "^1.14.34-beta.1", - "@injectivelabs/wallet-wallet-connect": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", + "@injectivelabs/wallet-core": "^1.14.34-beta.2", + "@injectivelabs/wallet-cosmos": "^1.14.34-beta.2", + "@injectivelabs/wallet-cosmostation": "^1.14.34-beta.2", + "@injectivelabs/wallet-evm": "^1.14.34-beta.2", + "@injectivelabs/wallet-ledger": "^1.14.34-beta.2", + "@injectivelabs/wallet-magic": "^1.14.34-beta.2", + "@injectivelabs/wallet-private-key": "^1.14.34-beta.2", + "@injectivelabs/wallet-trezor": "^1.14.34-beta.2", + "@injectivelabs/wallet-wallet-connect": "^1.14.34-beta.2", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", "eth-sig-util": "^3.0.1", diff --git a/packages/wallets/wallet-trezor/package.json b/packages/wallets/wallet-trezor/package.json index 8de024881..e955aed69 100644 --- a/packages/wallets/wallet-trezor/package.json +++ b/packages/wallets/wallet-trezor/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-trezor", "description": "Trezor wallet strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -59,10 +59,10 @@ "@ethereumjs/tx": "^4.1.1", "@injectivelabs/exceptions": "^1.14.33", "@injectivelabs/networks": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@trezor/connect-web": "9.2.1", "alchemy-sdk": "^3.4.7", "eip1193-provider": "^1.0.1", diff --git a/packages/wallets/wallet-wallet-connect/package.json b/packages/wallets/wallet-wallet-connect/package.json index c5b47827f..b591b1cc2 100644 --- a/packages/wallets/wallet-wallet-connect/package.json +++ b/packages/wallets/wallet-wallet-connect/package.json @@ -1,7 +1,7 @@ { "name": "@injectivelabs/wallet-wallet-connect", "description": "Wallet connect strategy for use with @injectivelabs/wallet-core.", - "version": "1.14.34-beta.1", + "version": "1.14.34-beta.2", "sideEffects": false, "author": { "name": "InjectiveLabs", @@ -56,10 +56,10 @@ }, "dependencies": { "@injectivelabs/exceptions": "^1.14.33", - "@injectivelabs/sdk-ts": "^1.14.34-beta.1", + "@injectivelabs/sdk-ts": "^1.14.34-beta.2", "@injectivelabs/ts-types": "^1.14.33", "@injectivelabs/utils": "^1.14.33", - "@injectivelabs/wallet-base": "^1.14.34-beta.1", + "@injectivelabs/wallet-base": "^1.14.34-beta.2", "@walletconnect/ethereum-provider": "^2.12.2" }, "gitHead": "6442ae377bbfb3459d2fb3a44c650630a5b7f445",