From 07951bcd11a9f45add5823fb1ad9c909fe1176fa Mon Sep 17 00:00:00 2001 From: carson <104383295+codebycarson@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:02:59 -0700 Subject: [PATCH] Proto: Build/Export Fix & Update TSC (#140) * Proto: Build/Export Fix & Update TSC - Fixed typos in package.json - Switched bundler of /proto to use TSC over Babel - Updated Telescope to latest version - Lowered threshold of target and module compiler options in tsconfig for every package for a more general audience * Added changeset --- .changeset/brave-lies-rescue.md | 5 + package.json | 4 +- packages/proto/package.json | 16 +- packages/proto/src/codegen/binary.ts | 2 +- packages/proto/src/codegen/confio/proofs.ts | 46 +- .../src/codegen/cosmos/auth/v1beta1/auth.ts | 20 +- .../codegen/cosmos/auth/v1beta1/genesis.ts | 2 +- .../src/codegen/cosmos/auth/v1beta1/query.ts | 16 +- .../src/codegen/cosmos/bank/v1beta1/authz.ts | 2 +- .../src/codegen/cosmos/bank/v1beta1/bank.ts | 42 +- .../codegen/cosmos/bank/v1beta1/genesis.ts | 10 +- .../src/codegen/cosmos/bank/v1beta1/query.ts | 26 +- .../src/codegen/cosmos/bank/v1beta1/tx.ts | 10 +- .../codegen/cosmos/base/abci/v1beta1/abci.ts | 68 +- .../cosmos/base/query/v1beta1/pagination.ts | 10 +- .../base/reflection/v2alpha1/reflection.ts | 46 +- .../src/codegen/cosmos/base/v1beta1/coin.ts | 12 +- .../src/codegen/cosmos/crypto/hd/v1/hd.ts | 10 +- .../cosmos/crypto/keyring/v1/record.ts | 4 +- .../codegen/cosmos/crypto/multisig/keys.ts | 4 +- .../crypto/multisig/v1beta1/multisig.ts | 4 +- .../distribution/v1beta1/distribution.ts | 58 +- .../cosmos/distribution/v1beta1/genesis.ts | 42 +- .../cosmos/distribution/v1beta1/query.ts | 34 +- .../codegen/cosmos/distribution/v1beta1/tx.ts | 18 +- .../src/codegen/cosmos/gov/v1beta1/genesis.ts | 8 +- .../src/codegen/cosmos/gov/v1beta1/gov.ts | 48 +- .../src/codegen/cosmos/gov/v1beta1/query.ts | 34 +- .../src/codegen/cosmos/gov/v1beta1/tx.ts | 36 +- .../codegen/cosmos/staking/v1beta1/authz.ts | 6 +- .../codegen/cosmos/staking/v1beta1/genesis.ts | 16 +- .../codegen/cosmos/staking/v1beta1/query.ts | 48 +- .../codegen/cosmos/staking/v1beta1/staking.ts | 106 +- .../src/codegen/cosmos/staking/v1beta1/tx.ts | 28 +- .../cosmos/tx/signing/v1beta1/signing.ts | 10 +- .../src/codegen/cosmos/tx/v1beta1/service.ts | 20 +- .../proto/src/codegen/cosmos/tx/v1beta1/tx.ts | 54 +- .../codegen/cosmos/upgrade/v1beta1/query.ts | 12 +- .../src/codegen/cosmos/upgrade/v1beta1/tx.ts | 4 +- .../codegen/cosmos/upgrade/v1beta1/upgrade.ts | 18 +- .../proto/src/codegen/cosmos_proto/cosmos.ts | 12 +- .../src/codegen/cosmwasm/wasm/v1/authz.ts | 22 +- .../src/codegen/cosmwasm/wasm/v1/genesis.ts | 18 +- .../proto/src/codegen/cosmwasm/wasm/v1/ibc.ts | 8 +- .../src/codegen/cosmwasm/wasm/v1/proposal.ts | 118 +- .../src/codegen/cosmwasm/wasm/v1/query.ts | 40 +- .../proto/src/codegen/cosmwasm/wasm/v1/tx.ts | 52 +- .../src/codegen/cosmwasm/wasm/v1/types.ts | 40 +- packages/proto/src/codegen/dex/asset_list.ts | 28 +- packages/proto/src/codegen/dex/contract.ts | 48 +- packages/proto/src/codegen/dex/deposit.ts | 12 +- packages/proto/src/codegen/dex/genesis.ts | 18 +- packages/proto/src/codegen/dex/gov.ts | 6 +- packages/proto/src/codegen/dex/long_book.ts | 8 +- .../proto/src/codegen/dex/match_result.ts | 20 +- packages/proto/src/codegen/dex/order.ts | 117 +- packages/proto/src/codegen/dex/order_entry.ts | 32 +- packages/proto/src/codegen/dex/pair.ts | 24 +- packages/proto/src/codegen/dex/params.ts | 56 +- packages/proto/src/codegen/dex/price.ts | 40 +- packages/proto/src/codegen/dex/query.ts | 228 +- packages/proto/src/codegen/dex/settlement.ts | 56 +- packages/proto/src/codegen/dex/short_book.ts | 8 +- packages/proto/src/codegen/dex/tick_size.ts | 12 +- packages/proto/src/codegen/dex/twap.ts | 12 +- packages/proto/src/codegen/dex/tx.ts | 84 +- packages/proto/src/codegen/epoch/epoch.ts | 8 +- packages/proto/src/codegen/google/api/http.ts | 26 +- .../src/codegen/google/protobuf/descriptor.ts | 238 +- packages/proto/src/codegen/helpers.ts | 8 +- .../ibc/applications/transfer/v1/genesis.ts | 4 +- .../ibc/applications/transfer/v1/query.ts | 4 +- .../ibc/applications/transfer/v1/transfer.ts | 8 +- .../ibc/applications/transfer/v1/tx.ts | 10 +- .../ibc/applications/transfer/v2/packet.ts | 8 +- .../codegen/ibc/core/channel/v1/channel.ts | 52 +- .../codegen/ibc/core/channel/v1/genesis.ts | 22 +- .../src/codegen/ibc/core/channel/v1/query.ts | 80 +- .../src/codegen/ibc/core/channel/v1/tx.ts | 52 +- .../src/codegen/ibc/core/client/v1/client.ts | 24 +- .../src/codegen/ibc/core/client/v1/genesis.ts | 14 +- .../src/codegen/ibc/core/client/v1/query.ts | 20 +- .../src/codegen/ibc/core/client/v1/tx.ts | 14 +- .../ibc/core/commitment/v1/commitment.ts | 4 +- .../ibc/core/connection/v1/connection.ts | 38 +- .../codegen/ibc/core/connection/v1/genesis.ts | 6 +- .../codegen/ibc/core/connection/v1/query.ts | 18 +- .../src/codegen/ibc/core/connection/v1/tx.ts | 26 +- .../lightclients/localhost/v1/localhost.ts | 2 +- .../solomachine/v1/solomachine.ts | 42 +- .../solomachine/v2/solomachine.ts | 42 +- .../lightclients/tendermint/v1/tendermint.ts | 16 +- packages/proto/src/codegen/index.ts | 2 +- .../proto/src/codegen/mint/v1beta1/gov.ts | 4 +- .../proto/src/codegen/mint/v1beta1/mint.ts | 42 +- .../proto/src/codegen/mint/v1beta1/query.ts | 16 +- packages/proto/src/codegen/oracle/genesis.ts | 16 +- packages/proto/src/codegen/oracle/oracle.ts | 50 +- packages/proto/src/codegen/oracle/query.ts | 24 +- packages/proto/src/codegen/oracle/tx.ts | 10 +- .../src/codegen/tendermint/abci/types.ts | 162 +- .../src/codegen/tendermint/crypto/proof.ts | 16 +- .../src/codegen/tendermint/libs/bits/types.ts | 4 +- .../proto/src/codegen/tendermint/p2p/types.ts | 28 +- .../src/codegen/tendermint/types/evidence.ts | 12 +- .../src/codegen/tendermint/types/params.ts | 18 +- .../src/codegen/tendermint/types/types.ts | 44 +- .../src/codegen/tendermint/types/validator.ts | 10 +- .../src/codegen/tendermint/version/types.ts | 8 +- .../codegen/tokenfactory/authorityMetadata.ts | 2 +- .../proto/src/codegen/tokenfactory/genesis.ts | 4 +- .../proto/src/codegen/tokenfactory/query.ts | 8 +- packages/proto/src/codegen/tokenfactory/tx.ts | 18 +- packages/proto/src/codegen/types.ts | 2 +- packages/proto/src/codegen/varint.ts | 2 +- packages/proto/tsconfig.declaration.json | 10 + packages/proto/tsconfig.json | 3 - tsconfig.base.json | 10 +- yarn.lock | 2297 +---------------- 119 files changed, 1795 insertions(+), 3891 deletions(-) create mode 100644 .changeset/brave-lies-rescue.md create mode 100644 packages/proto/tsconfig.declaration.json diff --git a/.changeset/brave-lies-rescue.md b/.changeset/brave-lies-rescue.md new file mode 100644 index 00000000..a5de6aeb --- /dev/null +++ b/.changeset/brave-lies-rescue.md @@ -0,0 +1,5 @@ +--- +"@sei-js/proto": patch +--- + +Updated Telescope to latest version, changed build tool from babel to TSC, fixed typos in exports diff --git a/package.json b/package.json index 072f248b..2ec0f6ee 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,9 @@ "ts-node": "10.9.1", "typedoc": "^0.25.12", "typedoc-material-theme": "^1.0.2", - "typescript": "5.4.2" + "typescript": "5.4.4", + "viem": "2.x", + "wagmi": "^2.5.17" } } diff --git a/packages/proto/package.json b/packages/proto/package.json index b10ed715..bea17a4c 100644 --- a/packages/proto/package.json +++ b/packages/proto/package.json @@ -9,9 +9,9 @@ "publishConfig": { "access": "public" }, - "main": "./dist/cjs/codgen/index.js", - "module": "./dist/esm/codgen/index.js", - "types": "./dist/types/codgen/index.d.ts", + "main": "./dist/cjs/codegen/index.js", + "module": "./dist/esm/codegen/index.js", + "types": "./dist/types/codegen/index.d.ts", "sideEffects": false, "directories": { "lib": "src", @@ -19,10 +19,10 @@ }, "scripts": { "prebuild": "rimraf dist", - "build": "yarn build:cjs && yarn build:esm && yarn build:ts", - "build:cjs": "BABEL_ENV=cjs babel src --out-dir dist/cjs --delete-dir-on-start --extensions \".tsx,.ts,.js\"", - "build:esm": "BABEL_ENV=esm babel src --out-dir dist/esm --delete-dir-on-start --extensions \".tsx,.ts,.js\"", - "build:ts": "tsc --project ./tsconfig.json", + "build": "yarn build:cjs && yarn build:esm && yarn build:types", + "build:cjs": "tsc --outDir dist/cjs --module commonjs", + "build:esm": "tsc --outDir dist/esm --module esnext", + "build:types": "tsc --project ./tsconfig.declaration.json", "codegen": "cross-env NODE_ENV=development babel-node scripts/codegen.js", "postcodegen": "yarn prettier --write ./src/codegen/**/*.ts --config ../../.prettierrc", "dev": "cross-env NODE_ENV=development babel-node src/index --extensions \".tsx,.ts,.js\"", @@ -77,7 +77,7 @@ "@cosmjs/stargate": "^0.32.2", "@cosmjs/tendermint-rpc": "^0.32.2", "@cosmology/lcd": "^0.13.3", - "@cosmology/telescope": "^1.4.12", + "@cosmology/telescope": "^1.5.3", "@osmonauts/helpers": "^0.7.0", "cosmjs-types": "^0.9.0", "protobufjs": "^7.2.6" diff --git a/packages/proto/src/codegen/binary.ts b/packages/proto/src/codegen/binary.ts index 89460186..9dbfbb49 100644 --- a/packages/proto/src/codegen/binary.ts +++ b/packages/proto/src/codegen/binary.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.12 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.3 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/proto/src/codegen/confio/proofs.ts b/packages/proto/src/codegen/confio/proofs.ts index 87e32a3d..6f7b97b9 100644 --- a/packages/proto/src/codegen/confio/proofs.ts +++ b/packages/proto/src/codegen/confio/proofs.ts @@ -834,7 +834,7 @@ export const ExistenceProof = { if (message.path) { obj.path = message.path.map((e) => (e ? InnerOp.toAmino(e) : undefined)); } else { - obj.path = []; + obj.path = message.path; } return obj; }, @@ -1110,16 +1110,16 @@ export const LeafOp = { fromAmino(object: LeafOpAmino): LeafOp { const message = createBaseLeafOp(); if (object.hash !== undefined && object.hash !== null) { - message.hash = hashOpFromJSON(object.hash); + message.hash = object.hash; } if (object.prehash_key !== undefined && object.prehash_key !== null) { - message.prehashKey = hashOpFromJSON(object.prehash_key); + message.prehashKey = object.prehash_key; } if (object.prehash_value !== undefined && object.prehash_value !== null) { - message.prehashValue = hashOpFromJSON(object.prehash_value); + message.prehashValue = object.prehash_value; } if (object.length !== undefined && object.length !== null) { - message.length = lengthOpFromJSON(object.length); + message.length = object.length; } if (object.prefix !== undefined && object.prefix !== null) { message.prefix = bytesFromBase64(object.prefix); @@ -1128,10 +1128,10 @@ export const LeafOp = { }, toAmino(message: LeafOp): LeafOpAmino { const obj: any = {}; - obj.hash = message.hash; - obj.prehash_key = message.prehashKey; - obj.prehash_value = message.prehashValue; - obj.length = message.length; + obj.hash = message.hash === 0 ? undefined : message.hash; + obj.prehash_key = message.prehashKey === 0 ? undefined : message.prehashKey; + obj.prehash_value = message.prehashValue === 0 ? undefined : message.prehashValue; + obj.length = message.length === 0 ? undefined : message.length; obj.prefix = message.prefix ? base64FromBytes(message.prefix) : undefined; return obj; }, @@ -1205,7 +1205,7 @@ export const InnerOp = { fromAmino(object: InnerOpAmino): InnerOp { const message = createBaseInnerOp(); if (object.hash !== undefined && object.hash !== null) { - message.hash = hashOpFromJSON(object.hash); + message.hash = object.hash; } if (object.prefix !== undefined && object.prefix !== null) { message.prefix = bytesFromBase64(object.prefix); @@ -1217,7 +1217,7 @@ export const InnerOp = { }, toAmino(message: InnerOp): InnerOpAmino { const obj: any = {}; - obj.hash = message.hash; + obj.hash = message.hash === 0 ? undefined : message.hash; obj.prefix = message.prefix ? base64FromBytes(message.prefix) : undefined; obj.suffix = message.suffix ? base64FromBytes(message.suffix) : undefined; return obj; @@ -1317,8 +1317,8 @@ export const ProofSpec = { const obj: any = {}; obj.leaf_spec = message.leafSpec ? LeafOp.toAmino(message.leafSpec) : undefined; obj.inner_spec = message.innerSpec ? InnerSpec.toAmino(message.innerSpec) : undefined; - obj.max_depth = message.maxDepth; - obj.min_depth = message.minDepth; + obj.max_depth = message.maxDepth === 0 ? undefined : message.maxDepth; + obj.min_depth = message.minDepth === 0 ? undefined : message.minDepth; return obj; }, fromAminoMsg(object: ProofSpecAminoMsg): ProofSpec { @@ -1437,7 +1437,7 @@ export const InnerSpec = { message.emptyChild = bytesFromBase64(object.empty_child); } if (object.hash !== undefined && object.hash !== null) { - message.hash = hashOpFromJSON(object.hash); + message.hash = object.hash; } return message; }, @@ -1446,13 +1446,13 @@ export const InnerSpec = { if (message.childOrder) { obj.child_order = message.childOrder.map((e) => e); } else { - obj.child_order = []; + obj.child_order = message.childOrder; } - obj.child_size = message.childSize; - obj.min_prefix_length = message.minPrefixLength; - obj.max_prefix_length = message.maxPrefixLength; + obj.child_size = message.childSize === 0 ? undefined : message.childSize; + obj.min_prefix_length = message.minPrefixLength === 0 ? undefined : message.minPrefixLength; + obj.max_prefix_length = message.maxPrefixLength === 0 ? undefined : message.maxPrefixLength; obj.empty_child = message.emptyChild ? base64FromBytes(message.emptyChild) : undefined; - obj.hash = message.hash; + obj.hash = message.hash === 0 ? undefined : message.hash; return obj; }, fromAminoMsg(object: InnerSpecAminoMsg): InnerSpec { @@ -1516,7 +1516,7 @@ export const BatchProof = { if (message.entries) { obj.entries = message.entries.map((e) => (e ? BatchEntry.toAmino(e) : undefined)); } else { - obj.entries = []; + obj.entries = message.entries; } return obj; }, @@ -1665,12 +1665,12 @@ export const CompressedBatchProof = { if (message.entries) { obj.entries = message.entries.map((e) => (e ? CompressedBatchEntry.toAmino(e) : undefined)); } else { - obj.entries = []; + obj.entries = message.entries; } if (message.lookupInners) { obj.lookup_inners = message.lookupInners.map((e) => (e ? InnerOp.toAmino(e) : undefined)); } else { - obj.lookup_inners = []; + obj.lookup_inners = message.lookupInners; } return obj; }, @@ -1855,7 +1855,7 @@ export const CompressedExistenceProof = { if (message.path) { obj.path = message.path.map((e) => e); } else { - obj.path = []; + obj.path = message.path; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/auth/v1beta1/auth.ts b/packages/proto/src/codegen/cosmos/auth/v1beta1/auth.ts index b6629055..9850ffc4 100644 --- a/packages/proto/src/codegen/cosmos/auth/v1beta1/auth.ts +++ b/packages/proto/src/codegen/cosmos/auth/v1beta1/auth.ts @@ -181,10 +181,10 @@ export const BaseAccount = { }, toAmino(message: BaseAccount): BaseAccountAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; - obj.account_number = message.accountNumber ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: BaseAccountAminoMsg): BaseAccount { @@ -275,11 +275,11 @@ export const ModuleAccount = { toAmino(message: ModuleAccount): ModuleAccountAmino { const obj: any = {}; obj.base_account = message.baseAccount ? BaseAccount.toAmino(message.baseAccount) : undefined; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; if (message.permissions) { obj.permissions = message.permissions.map(e => e); } else { - obj.permissions = []; + obj.permissions = message.permissions; } return obj; }, @@ -393,11 +393,11 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.max_memo_characters = message.maxMemoCharacters ? message.maxMemoCharacters.toString() : undefined; - obj.tx_sig_limit = message.txSigLimit ? message.txSigLimit.toString() : undefined; - obj.tx_size_cost_per_byte = message.txSizeCostPerByte ? message.txSizeCostPerByte.toString() : undefined; - obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 ? message.sigVerifyCostEd25519.toString() : undefined; - obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 ? message.sigVerifyCostSecp256k1.toString() : undefined; + obj.max_memo_characters = message.maxMemoCharacters !== BigInt(0) ? message.maxMemoCharacters.toString() : undefined; + obj.tx_sig_limit = message.txSigLimit !== BigInt(0) ? message.txSigLimit.toString() : undefined; + obj.tx_size_cost_per_byte = message.txSizeCostPerByte !== BigInt(0) ? message.txSizeCostPerByte.toString() : undefined; + obj.sig_verify_cost_ed25519 = message.sigVerifyCostEd25519 !== BigInt(0) ? message.sigVerifyCostEd25519.toString() : undefined; + obj.sig_verify_cost_secp256k1 = message.sigVerifyCostSecp256k1 !== BigInt(0) ? message.sigVerifyCostSecp256k1.toString() : undefined; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { diff --git a/packages/proto/src/codegen/cosmos/auth/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/auth/v1beta1/genesis.ts index 7315190d..6df20690 100644 --- a/packages/proto/src/codegen/cosmos/auth/v1beta1/genesis.ts +++ b/packages/proto/src/codegen/cosmos/auth/v1beta1/genesis.ts @@ -85,7 +85,7 @@ export const GenesisState = { if (message.accounts) { obj.accounts = message.accounts.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.accounts = []; + obj.accounts = message.accounts; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/auth/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/auth/v1beta1/query.ts index daef4d38..3dcf8067 100644 --- a/packages/proto/src/codegen/cosmos/auth/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/auth/v1beta1/query.ts @@ -438,7 +438,7 @@ export const QueryAccountsResponse = { if (message.accounts) { obj.accounts = message.accounts.map(e => e ? Cosmos_authAccountI_ToAmino((e as Any)) : undefined); } else { - obj.accounts = []; + obj.accounts = message.accounts; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -509,7 +509,7 @@ export const QueryAccountRequest = { }, toAmino(message: QueryAccountRequest): QueryAccountRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; return obj; }, fromAminoMsg(object: QueryAccountRequestAminoMsg): QueryAccountRequest { @@ -829,7 +829,7 @@ export const QueryModuleAccountsResponse = { if (message.accounts) { obj.accounts = message.accounts.map(e => e ? Cosmos_authModuleAccountI_ToAmino((e as Any)) : undefined); } else { - obj.accounts = []; + obj.accounts = message.accounts; } return obj; }, @@ -955,7 +955,7 @@ export const Bech32PrefixResponse = { }, toAmino(message: Bech32PrefixResponse): Bech32PrefixResponseAmino { const obj: any = {}; - obj.bech32_prefix = message.bech32Prefix; + obj.bech32_prefix = message.bech32Prefix === "" ? undefined : message.bech32Prefix; return obj; }, fromAminoMsg(object: Bech32PrefixResponseAminoMsg): Bech32PrefixResponse { @@ -1093,7 +1093,7 @@ export const AddressBytesToStringResponse = { }, toAmino(message: AddressBytesToStringResponse): AddressBytesToStringResponseAmino { const obj: any = {}; - obj.address_string = message.addressString; + obj.address_string = message.addressString === "" ? undefined : message.addressString; return obj; }, fromAminoMsg(object: AddressBytesToStringResponseAminoMsg): AddressBytesToStringResponse { @@ -1162,7 +1162,7 @@ export const AddressStringToBytesRequest = { }, toAmino(message: AddressStringToBytesRequest): AddressStringToBytesRequestAmino { const obj: any = {}; - obj.address_string = message.addressString; + obj.address_string = message.addressString === "" ? undefined : message.addressString; return obj; }, fromAminoMsg(object: AddressStringToBytesRequestAminoMsg): AddressStringToBytesRequest { @@ -1266,7 +1266,7 @@ export const Cosmos_authAccountI_InterfaceDecoder = (input: BinaryReader | Uint8 return data; } }; -export const Cosmos_authAccountI_FromAmino = (content: AnyAmino) => { +export const Cosmos_authAccountI_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "cosmos-sdk/BaseAccount": return Any.fromPartial({ @@ -1298,7 +1298,7 @@ export const Cosmos_authModuleAccountI_InterfaceDecoder = (input: BinaryReader | return data; } }; -export const Cosmos_authModuleAccountI_FromAmino = (content: AnyAmino) => { +export const Cosmos_authModuleAccountI_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "cosmos-sdk/ModuleAccount": return Any.fromPartial({ diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/authz.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/authz.ts index 4a345af9..1f339da3 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/authz.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/authz.ts @@ -83,7 +83,7 @@ export const SendAuthorization = { if (message.spendLimit) { obj.spend_limit = message.spendLimit.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.spend_limit = []; + obj.spend_limit = message.spendLimit; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/bank.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/bank.ts index 1a40242a..83582e71 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/bank.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/bank.ts @@ -353,9 +353,9 @@ export const Params = { if (message.sendEnabled) { obj.send_enabled = message.sendEnabled.map(e => e ? SendEnabled.toAmino(e) : undefined); } else { - obj.send_enabled = []; + obj.send_enabled = message.sendEnabled; } - obj.default_send_enabled = message.defaultSendEnabled; + obj.default_send_enabled = message.defaultSendEnabled === false ? undefined : message.defaultSendEnabled; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { @@ -435,8 +435,8 @@ export const SendEnabled = { }, toAmino(message: SendEnabled): SendEnabledAmino { const obj: any = {}; - obj.denom = message.denom; - obj.enabled = message.enabled; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.enabled = message.enabled === false ? undefined : message.enabled; return obj; }, fromAminoMsg(object: SendEnabledAminoMsg): SendEnabled { @@ -514,11 +514,11 @@ export const Input = { }, toAmino(message: Input): InputAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; if (message.coins) { obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.coins = []; + obj.coins = message.coins; } return obj; }, @@ -597,11 +597,11 @@ export const Output = { }, toAmino(message: Output): OutputAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; if (message.coins) { obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.coins = []; + obj.coins = message.coins; } return obj; }, @@ -673,7 +673,7 @@ export const Supply = { if (message.total) { obj.total = message.total.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.total = []; + obj.total = message.total; } return obj; }, @@ -763,12 +763,12 @@ export const DenomUnit = { }, toAmino(message: DenomUnit): DenomUnitAmino { const obj: any = {}; - obj.denom = message.denom; - obj.exponent = message.exponent; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.exponent = message.exponent === 0 ? undefined : message.exponent; if (message.aliases) { obj.aliases = message.aliases.map(e => e); } else { - obj.aliases = []; + obj.aliases = message.aliases; } return obj; }, @@ -913,18 +913,18 @@ export const Metadata = { }, toAmino(message: Metadata): MetadataAmino { const obj: any = {}; - obj.description = message.description; + obj.description = message.description === "" ? undefined : message.description; if (message.denomUnits) { obj.denom_units = message.denomUnits.map(e => e ? DenomUnit.toAmino(e) : undefined); } else { - obj.denom_units = []; - } - obj.base = message.base; - obj.display = message.display; - obj.name = message.name; - obj.symbol = message.symbol; - obj.uri = message.uri; - obj.uri_hash = message.uriHash; + obj.denom_units = message.denomUnits; + } + obj.base = message.base === "" ? undefined : message.base; + obj.display = message.display === "" ? undefined : message.display; + obj.name = message.name === "" ? undefined : message.name; + obj.symbol = message.symbol === "" ? undefined : message.symbol; + obj.uri = message.uri === "" ? undefined : message.uri; + obj.uri_hash = message.uriHash === "" ? undefined : message.uriHash; return obj; }, fromAminoMsg(object: MetadataAminoMsg): Metadata { diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/genesis.ts index 868eb581..fd60b418 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/genesis.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/genesis.ts @@ -155,17 +155,17 @@ export const GenesisState = { if (message.balances) { obj.balances = message.balances.map(e => e ? Balance.toAmino(e) : undefined); } else { - obj.balances = []; + obj.balances = message.balances; } if (message.supply) { obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.supply = []; + obj.supply = message.supply; } if (message.denomMetadata) { obj.denom_metadata = message.denomMetadata.map(e => e ? Metadata.toAmino(e) : undefined); } else { - obj.denom_metadata = []; + obj.denom_metadata = message.denomMetadata; } return obj; }, @@ -244,11 +244,11 @@ export const Balance = { }, toAmino(message: Balance): BalanceAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; if (message.coins) { obj.coins = message.coins.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.coins = []; + obj.coins = message.coins; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/query.ts index 53a3912e..6bf031fd 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/query.ts @@ -616,8 +616,8 @@ export const QueryBalanceRequest = { }, toAmino(message: QueryBalanceRequest): QueryBalanceRequestAmino { const obj: any = {}; - obj.address = message.address; - obj.denom = message.denom; + obj.address = message.address === "" ? undefined : message.address; + obj.denom = message.denom === "" ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryBalanceRequestAminoMsg): QueryBalanceRequest { @@ -766,7 +766,7 @@ export const QueryAllBalancesRequest = { }, toAmino(message: QueryAllBalancesRequest): QueryAllBalancesRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -848,7 +848,7 @@ export const QueryAllBalancesResponse = { if (message.balances) { obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.balances = []; + obj.balances = message.balances; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -930,7 +930,7 @@ export const QuerySpendableBalancesRequest = { }, toAmino(message: QuerySpendableBalancesRequest): QuerySpendableBalancesRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1012,7 +1012,7 @@ export const QuerySpendableBalancesResponse = { if (message.balances) { obj.balances = message.balances.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.balances = []; + obj.balances = message.balances; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1164,7 +1164,7 @@ export const QueryTotalSupplyResponse = { if (message.supply) { obj.supply = message.supply.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.supply = []; + obj.supply = message.supply; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1235,7 +1235,7 @@ export const QuerySupplyOfRequest = { }, toAmino(message: QuerySupplyOfRequest): QuerySupplyOfRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === "" ? undefined : message.denom; return obj; }, fromAminoMsg(object: QuerySupplyOfRequestAminoMsg): QuerySupplyOfRequest { @@ -1579,7 +1579,7 @@ export const QueryDenomsMetadataResponse = { if (message.metadatas) { obj.metadatas = message.metadatas.map(e => e ? Metadata.toAmino(e) : undefined); } else { - obj.metadatas = []; + obj.metadatas = message.metadatas; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1650,7 +1650,7 @@ export const QueryDenomMetadataRequest = { }, toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === "" ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest { @@ -1799,7 +1799,7 @@ export const QueryDenomOwnersRequest = { }, toAmino(message: QueryDenomOwnersRequest): QueryDenomOwnersRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === "" ? undefined : message.denom; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1880,7 +1880,7 @@ export const DenomOwner = { }, toAmino(message: DenomOwner): DenomOwnerAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.balance = message.balance ? Coin.toAmino(message.balance) : undefined; return obj; }, @@ -1962,7 +1962,7 @@ export const QueryDenomOwnersResponse = { if (message.denomOwners) { obj.denom_owners = message.denomOwners.map(e => e ? DenomOwner.toAmino(e) : undefined); } else { - obj.denom_owners = []; + obj.denom_owners = message.denomOwners; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; diff --git a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.ts index 73764476..44e8e871 100644 --- a/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/bank/v1beta1/tx.ts @@ -142,12 +142,12 @@ export const MsgSend = { }, toAmino(message: MsgSend): MsgSendAmino { const obj: any = {}; - obj.from_address = message.fromAddress; - obj.to_address = message.toAddress; + obj.from_address = message.fromAddress === "" ? undefined : message.fromAddress; + obj.to_address = message.toAddress === "" ? undefined : message.toAddress; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -283,12 +283,12 @@ export const MsgMultiSend = { if (message.inputs) { obj.inputs = message.inputs.map(e => e ? Input.toAmino(e) : undefined); } else { - obj.inputs = []; + obj.inputs = message.inputs; } if (message.outputs) { obj.outputs = message.outputs.map(e => e ? Output.toAmino(e) : undefined); } else { - obj.outputs = []; + obj.outputs = message.outputs; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/base/abci/v1beta1/abci.ts b/packages/proto/src/codegen/cosmos/base/abci/v1beta1/abci.ts index 997368f5..d51f4d2d 100644 --- a/packages/proto/src/codegen/cosmos/base/abci/v1beta1/abci.ts +++ b/packages/proto/src/codegen/cosmos/base/abci/v1beta1/abci.ts @@ -137,7 +137,7 @@ export interface ABCIMessageLogProtoMsg { } /** ABCIMessageLog defines a structure containing an indexed tx ABCI message log. */ export interface ABCIMessageLogAmino { - msg_index?: number; + msg_index: number; log?: string; /** * Events contains a slice of Event objects that were emitted during some @@ -643,26 +643,26 @@ export const TxResponse = { }, toAmino(message: TxResponse): TxResponseAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.txhash = message.txhash; - obj.codespace = message.codespace; - obj.code = message.code; - obj.data = message.data; - obj.raw_log = message.rawLog; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.txhash = message.txhash === "" ? undefined : message.txhash; + obj.codespace = message.codespace === "" ? undefined : message.codespace; + obj.code = message.code === 0 ? undefined : message.code; + obj.data = message.data === "" ? undefined : message.data; + obj.raw_log = message.rawLog === "" ? undefined : message.rawLog; if (message.logs) { obj.logs = message.logs.map(e => e ? ABCIMessageLog.toAmino(e) : undefined); } else { - obj.logs = []; + obj.logs = message.logs; } - obj.info = message.info; - obj.gas_wanted = message.gasWanted ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed ? message.gasUsed.toString() : undefined; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; obj.tx = message.tx ? Any.toAmino(message.tx) : undefined; - obj.timestamp = message.timestamp; + obj.timestamp = message.timestamp === "" ? undefined : message.timestamp; if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } return obj; }, @@ -752,12 +752,12 @@ export const ABCIMessageLog = { }, toAmino(message: ABCIMessageLog): ABCIMessageLogAmino { const obj: any = {}; - obj.msg_index = message.msgIndex; - obj.log = message.log; + obj.msg_index = message.msgIndex ?? 0; + obj.log = message.log === "" ? undefined : message.log; if (message.events) { obj.events = message.events.map(e => e ? StringEvent.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } return obj; }, @@ -836,11 +836,11 @@ export const StringEvent = { }, toAmino(message: StringEvent): StringEventAmino { const obj: any = {}; - obj.type = message.type; + obj.type = message.type === "" ? undefined : message.type; if (message.attributes) { obj.attributes = message.attributes.map(e => e ? Attribute.toAmino(e) : undefined); } else { - obj.attributes = []; + obj.attributes = message.attributes; } return obj; }, @@ -921,8 +921,8 @@ export const Attribute = { }, toAmino(message: Attribute): AttributeAmino { const obj: any = {}; - obj.key = message.key; - obj.value = message.value; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; return obj; }, fromAminoMsg(object: AttributeAminoMsg): Attribute { @@ -1002,8 +1002,8 @@ export const GasInfo = { }, toAmino(message: GasInfo): GasInfoAmino { const obj: any = {}; - obj.gas_wanted = message.gasWanted ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed ? message.gasUsed.toString() : undefined; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; return obj; }, fromAminoMsg(object: GasInfoAminoMsg): GasInfo { @@ -1102,16 +1102,16 @@ export const Result = { toAmino(message: Result): ResultAmino { const obj: any = {}; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log; + obj.log = message.log === "" ? undefined : message.log; if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } if (message.msgResponses) { obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.msg_responses = []; + obj.msg_responses = message.msgResponses; } return obj; }, @@ -1273,7 +1273,7 @@ export const MsgData = { }, toAmino(message: MsgData): MsgDataAmino { const obj: any = {}; - obj.msg_type = message.msgType; + obj.msg_type = message.msgType === "" ? undefined : message.msgType; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1353,12 +1353,12 @@ export const TxMsgData = { if (message.data) { obj.data = message.data.map(e => e ? MsgData.toAmino(e) : undefined); } else { - obj.data = []; + obj.data = message.data; } if (message.msgResponses) { obj.msg_responses = message.msgResponses.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.msg_responses = []; + obj.msg_responses = message.msgResponses; } return obj; }, @@ -1481,15 +1481,15 @@ export const SearchTxsResult = { }, toAmino(message: SearchTxsResult): SearchTxsResultAmino { const obj: any = {}; - obj.total_count = message.totalCount ? message.totalCount.toString() : undefined; - obj.count = message.count ? message.count.toString() : undefined; - obj.page_number = message.pageNumber ? message.pageNumber.toString() : undefined; - obj.page_total = message.pageTotal ? message.pageTotal.toString() : undefined; - obj.limit = message.limit ? message.limit.toString() : undefined; + obj.total_count = message.totalCount !== BigInt(0) ? message.totalCount.toString() : undefined; + obj.count = message.count !== BigInt(0) ? message.count.toString() : undefined; + obj.page_number = message.pageNumber !== BigInt(0) ? message.pageNumber.toString() : undefined; + obj.page_total = message.pageTotal !== BigInt(0) ? message.pageTotal.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; if (message.txs) { obj.txs = message.txs.map(e => e ? TxResponse.toAmino(e) : undefined); } else { - obj.txs = []; + obj.txs = message.txs; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/base/query/v1beta1/pagination.ts b/packages/proto/src/codegen/cosmos/base/query/v1beta1/pagination.ts index da442ae1..bc7ec007 100644 --- a/packages/proto/src/codegen/cosmos/base/query/v1beta1/pagination.ts +++ b/packages/proto/src/codegen/cosmos/base/query/v1beta1/pagination.ts @@ -260,10 +260,10 @@ export const PageRequest = { toAmino(message: PageRequest): PageRequestAmino { const obj: any = {}; obj.key = message.key ? base64FromBytes(message.key) : undefined; - obj.offset = message.offset ? message.offset.toString() : undefined; - obj.limit = message.limit ? message.limit.toString() : undefined; - obj.count_total = message.countTotal; - obj.reverse = message.reverse; + obj.offset = message.offset !== BigInt(0) ? message.offset.toString() : undefined; + obj.limit = message.limit !== BigInt(0) ? message.limit.toString() : undefined; + obj.count_total = message.countTotal === false ? undefined : message.countTotal; + obj.reverse = message.reverse === false ? undefined : message.reverse; return obj; }, fromAminoMsg(object: PageRequestAminoMsg): PageRequest { @@ -344,7 +344,7 @@ export const PageResponse = { toAmino(message: PageResponse): PageResponseAmino { const obj: any = {}; obj.next_key = message.nextKey ? base64FromBytes(message.nextKey) : undefined; - obj.total = message.total ? message.total.toString() : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; return obj; }, fromAminoMsg(object: PageResponseAminoMsg): PageResponse { diff --git a/packages/proto/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts b/packages/proto/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts index 35bcfa3e..0813e501 100644 --- a/packages/proto/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +++ b/packages/proto/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts @@ -881,11 +881,11 @@ export const TxDescriptor = { }, toAmino(message: TxDescriptor): TxDescriptorAmino { const obj: any = {}; - obj.fullname = message.fullname; + obj.fullname = message.fullname === "" ? undefined : message.fullname; if (message.msgs) { obj.msgs = message.msgs.map(e => e ? MsgDescriptor.toAmino(e) : undefined); } else { - obj.msgs = []; + obj.msgs = message.msgs; } return obj; }, @@ -956,7 +956,7 @@ export const AuthnDescriptor = { if (message.signModes) { obj.sign_modes = message.signModes.map(e => e ? SigningModeDescriptor.toAmino(e) : undefined); } else { - obj.sign_modes = []; + obj.sign_modes = message.signModes; } return obj; }, @@ -1048,9 +1048,9 @@ export const SigningModeDescriptor = { }, toAmino(message: SigningModeDescriptor): SigningModeDescriptorAmino { const obj: any = {}; - obj.name = message.name; - obj.number = message.number; - obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.authn_info_provider_method_fullname = message.authnInfoProviderMethodFullname === "" ? undefined : message.authnInfoProviderMethodFullname; return obj; }, fromAminoMsg(object: SigningModeDescriptorAminoMsg): SigningModeDescriptor { @@ -1119,7 +1119,7 @@ export const ChainDescriptor = { }, toAmino(message: ChainDescriptor): ChainDescriptorAmino { const obj: any = {}; - obj.id = message.id; + obj.id = message.id === "" ? undefined : message.id; return obj; }, fromAminoMsg(object: ChainDescriptorAminoMsg): ChainDescriptor { @@ -1189,7 +1189,7 @@ export const CodecDescriptor = { if (message.interfaces) { obj.interfaces = message.interfaces.map(e => e ? InterfaceDescriptor.toAmino(e) : undefined); } else { - obj.interfaces = []; + obj.interfaces = message.interfaces; } return obj; }, @@ -1277,16 +1277,16 @@ export const InterfaceDescriptor = { }, toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { const obj: any = {}; - obj.fullname = message.fullname; + obj.fullname = message.fullname === "" ? undefined : message.fullname; if (message.interfaceAcceptingMessages) { obj.interface_accepting_messages = message.interfaceAcceptingMessages.map(e => e ? InterfaceAcceptingMessageDescriptor.toAmino(e) : undefined); } else { - obj.interface_accepting_messages = []; + obj.interface_accepting_messages = message.interfaceAcceptingMessages; } if (message.interfaceImplementers) { obj.interface_implementers = message.interfaceImplementers.map(e => e ? InterfaceImplementerDescriptor.toAmino(e) : undefined); } else { - obj.interface_implementers = []; + obj.interface_implementers = message.interfaceImplementers; } return obj; }, @@ -1367,8 +1367,8 @@ export const InterfaceImplementerDescriptor = { }, toAmino(message: InterfaceImplementerDescriptor): InterfaceImplementerDescriptorAmino { const obj: any = {}; - obj.fullname = message.fullname; - obj.type_url = message.typeUrl; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.type_url = message.typeUrl === "" ? undefined : message.typeUrl; return obj; }, fromAminoMsg(object: InterfaceImplementerDescriptorAminoMsg): InterfaceImplementerDescriptor { @@ -1446,11 +1446,11 @@ export const InterfaceAcceptingMessageDescriptor = { }, toAmino(message: InterfaceAcceptingMessageDescriptor): InterfaceAcceptingMessageDescriptorAmino { const obj: any = {}; - obj.fullname = message.fullname; + obj.fullname = message.fullname === "" ? undefined : message.fullname; if (message.fieldDescriptorNames) { obj.field_descriptor_names = message.fieldDescriptorNames.map(e => e); } else { - obj.field_descriptor_names = []; + obj.field_descriptor_names = message.fieldDescriptorNames; } return obj; }, @@ -1520,7 +1520,7 @@ export const ConfigurationDescriptor = { }, toAmino(message: ConfigurationDescriptor): ConfigurationDescriptorAmino { const obj: any = {}; - obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix; + obj.bech32_account_address_prefix = message.bech32AccountAddressPrefix === "" ? undefined : message.bech32AccountAddressPrefix; return obj; }, fromAminoMsg(object: ConfigurationDescriptorAminoMsg): ConfigurationDescriptor { @@ -1589,7 +1589,7 @@ export const MsgDescriptor = { }, toAmino(message: MsgDescriptor): MsgDescriptorAmino { const obj: any = {}; - obj.msg_type_url = message.msgTypeUrl; + obj.msg_type_url = message.msgTypeUrl === "" ? undefined : message.msgTypeUrl; return obj; }, fromAminoMsg(object: MsgDescriptorAminoMsg): MsgDescriptor { @@ -2409,7 +2409,7 @@ export const QueryServicesDescriptor = { if (message.queryServices) { obj.query_services = message.queryServices.map(e => e ? QueryServiceDescriptor.toAmino(e) : undefined); } else { - obj.query_services = []; + obj.query_services = message.queryServices; } return obj; }, @@ -2499,12 +2499,12 @@ export const QueryServiceDescriptor = { }, toAmino(message: QueryServiceDescriptor): QueryServiceDescriptorAmino { const obj: any = {}; - obj.fullname = message.fullname; - obj.is_module = message.isModule; + obj.fullname = message.fullname === "" ? undefined : message.fullname; + obj.is_module = message.isModule === false ? undefined : message.isModule; if (message.methods) { obj.methods = message.methods.map(e => e ? QueryMethodDescriptor.toAmino(e) : undefined); } else { - obj.methods = []; + obj.methods = message.methods; } return obj; }, @@ -2585,8 +2585,8 @@ export const QueryMethodDescriptor = { }, toAmino(message: QueryMethodDescriptor): QueryMethodDescriptorAmino { const obj: any = {}; - obj.name = message.name; - obj.full_query_path = message.fullQueryPath; + obj.name = message.name === "" ? undefined : message.name; + obj.full_query_path = message.fullQueryPath === "" ? undefined : message.fullQueryPath; return obj; }, fromAminoMsg(object: QueryMethodDescriptorAminoMsg): QueryMethodDescriptor { diff --git a/packages/proto/src/codegen/cosmos/base/v1beta1/coin.ts b/packages/proto/src/codegen/cosmos/base/v1beta1/coin.ts index dd86ae12..58314038 100644 --- a/packages/proto/src/codegen/cosmos/base/v1beta1/coin.ts +++ b/packages/proto/src/codegen/cosmos/base/v1beta1/coin.ts @@ -170,8 +170,8 @@ export const Coin = { }, toAmino(message: Coin): CoinAmino { const obj: any = {}; - obj.denom = message.denom; - obj.amount = message.amount; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; return obj; }, fromAminoMsg(object: CoinAminoMsg): Coin { @@ -251,8 +251,8 @@ export const DecCoin = { }, toAmino(message: DecCoin): DecCoinAmino { const obj: any = {}; - obj.denom = message.denom; - obj.amount = message.amount; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; return obj; }, fromAminoMsg(object: DecCoinAminoMsg): DecCoin { @@ -321,7 +321,7 @@ export const IntProto = { }, toAmino(message: IntProto): IntProtoAmino { const obj: any = {}; - obj.int = message.int; + obj.int = message.int === "" ? undefined : message.int; return obj; }, fromAminoMsg(object: IntProtoAminoMsg): IntProto { @@ -390,7 +390,7 @@ export const DecProto = { }, toAmino(message: DecProto): DecProtoAmino { const obj: any = {}; - obj.dec = message.dec; + obj.dec = message.dec === "" ? undefined : message.dec; return obj; }, fromAminoMsg(object: DecProtoAminoMsg): DecProto { diff --git a/packages/proto/src/codegen/cosmos/crypto/hd/v1/hd.ts b/packages/proto/src/codegen/cosmos/crypto/hd/v1/hd.ts index e9f94e13..20da5b55 100644 --- a/packages/proto/src/codegen/cosmos/crypto/hd/v1/hd.ts +++ b/packages/proto/src/codegen/cosmos/crypto/hd/v1/hd.ts @@ -135,11 +135,11 @@ export const BIP44Params = { }, toAmino(message: BIP44Params): BIP44ParamsAmino { const obj: any = {}; - obj.purpose = message.purpose; - obj.coin_type = message.coinType; - obj.account = message.account; - obj.change = message.change; - obj.address_index = message.addressIndex; + obj.purpose = message.purpose === 0 ? undefined : message.purpose; + obj.coin_type = message.coinType === 0 ? undefined : message.coinType; + obj.account = message.account === 0 ? undefined : message.account; + obj.change = message.change === false ? undefined : message.change; + obj.address_index = message.addressIndex === 0 ? undefined : message.addressIndex; return obj; }, fromAminoMsg(object: BIP44ParamsAminoMsg): BIP44Params { diff --git a/packages/proto/src/codegen/cosmos/crypto/keyring/v1/record.ts b/packages/proto/src/codegen/cosmos/crypto/keyring/v1/record.ts index fb64cc7a..b5771caa 100644 --- a/packages/proto/src/codegen/cosmos/crypto/keyring/v1/record.ts +++ b/packages/proto/src/codegen/cosmos/crypto/keyring/v1/record.ts @@ -227,7 +227,7 @@ export const Record = { }, toAmino(message: Record): RecordAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : undefined; obj.local = message.local ? Record_Local.toAmino(message.local) : undefined; obj.ledger = message.ledger ? Record_Ledger.toAmino(message.ledger) : undefined; @@ -313,7 +313,7 @@ export const Record_Local = { toAmino(message: Record_Local): Record_LocalAmino { const obj: any = {}; obj.priv_key = message.privKey ? Any.toAmino(message.privKey) : undefined; - obj.priv_key_type = message.privKeyType; + obj.priv_key_type = message.privKeyType === "" ? undefined : message.privKeyType; return obj; }, fromAminoMsg(object: Record_LocalAminoMsg): Record_Local { diff --git a/packages/proto/src/codegen/cosmos/crypto/multisig/keys.ts b/packages/proto/src/codegen/cosmos/crypto/multisig/keys.ts index 896ee48d..6c3cce75 100644 --- a/packages/proto/src/codegen/cosmos/crypto/multisig/keys.ts +++ b/packages/proto/src/codegen/cosmos/crypto/multisig/keys.ts @@ -88,11 +88,11 @@ export const LegacyAminoPubKey = { }, toAmino(message: LegacyAminoPubKey): LegacyAminoPubKeyAmino { const obj: any = {}; - obj.threshold = message.threshold; + obj.threshold = message.threshold === 0 ? undefined : message.threshold; if (message.publicKeys) { obj.public_keys = message.publicKeys.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.public_keys = []; + obj.public_keys = message.publicKeys; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts b/packages/proto/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts index ef28ae16..c4b94b0c 100644 --- a/packages/proto/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +++ b/packages/proto/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts @@ -115,7 +115,7 @@ export const MultiSignature = { if (message.signatures) { obj.signatures = message.signatures.map(e => base64FromBytes(e)); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, @@ -196,7 +196,7 @@ export const CompactBitArray = { }, toAmino(message: CompactBitArray): CompactBitArrayAmino { const obj: any = {}; - obj.extra_bits_stored = message.extraBitsStored; + obj.extra_bits_stored = message.extraBitsStored === 0 ? undefined : message.extraBitsStored; obj.elems = message.elems ? base64FromBytes(message.elems) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/distribution.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/distribution.ts index 82c5213c..e45b3f08 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/distribution.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/distribution.ts @@ -334,7 +334,7 @@ export interface DelegatorStartingInfoProtoMsg { export interface DelegatorStartingInfoAmino { previous_period?: string; stake?: string; - height?: string; + height: string; } export interface DelegatorStartingInfoAminoMsg { type: "cosmos-sdk/DelegatorStartingInfo"; @@ -505,10 +505,10 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.community_tax = message.communityTax; - obj.base_proposer_reward = message.baseProposerReward; - obj.bonus_proposer_reward = message.bonusProposerReward; - obj.withdraw_addr_enabled = message.withdrawAddrEnabled; + obj.community_tax = message.communityTax === "" ? undefined : message.communityTax; + obj.base_proposer_reward = message.baseProposerReward === "" ? undefined : message.baseProposerReward; + obj.bonus_proposer_reward = message.bonusProposerReward === "" ? undefined : message.bonusProposerReward; + obj.withdraw_addr_enabled = message.withdrawAddrEnabled === false ? undefined : message.withdrawAddrEnabled; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { @@ -589,9 +589,9 @@ export const ValidatorHistoricalRewards = { if (message.cumulativeRewardRatio) { obj.cumulative_reward_ratio = message.cumulativeRewardRatio.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.cumulative_reward_ratio = []; + obj.cumulative_reward_ratio = message.cumulativeRewardRatio; } - obj.reference_count = message.referenceCount; + obj.reference_count = message.referenceCount === 0 ? undefined : message.referenceCount; return obj; }, fromAminoMsg(object: ValidatorHistoricalRewardsAminoMsg): ValidatorHistoricalRewards { @@ -672,9 +672,9 @@ export const ValidatorCurrentRewards = { if (message.rewards) { obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.rewards = []; + obj.rewards = message.rewards; } - obj.period = message.period ? message.period.toString() : undefined; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; return obj; }, fromAminoMsg(object: ValidatorCurrentRewardsAminoMsg): ValidatorCurrentRewards { @@ -744,7 +744,7 @@ export const ValidatorAccumulatedCommission = { if (message.commission) { obj.commission = message.commission.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.commission = []; + obj.commission = message.commission; } return obj; }, @@ -815,7 +815,7 @@ export const ValidatorOutstandingRewards = { if (message.rewards) { obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.rewards = []; + obj.rewards = message.rewards; } return obj; }, @@ -896,8 +896,8 @@ export const ValidatorSlashEvent = { }, toAmino(message: ValidatorSlashEvent): ValidatorSlashEventAmino { const obj: any = {}; - obj.validator_period = message.validatorPeriod ? message.validatorPeriod.toString() : undefined; - obj.fraction = message.fraction; + obj.validator_period = message.validatorPeriod !== BigInt(0) ? message.validatorPeriod.toString() : undefined; + obj.fraction = message.fraction === "" ? undefined : message.fraction; return obj; }, fromAminoMsg(object: ValidatorSlashEventAminoMsg): ValidatorSlashEvent { @@ -967,7 +967,7 @@ export const ValidatorSlashEvents = { if (message.validatorSlashEvents) { obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); } else { - obj.validator_slash_events = []; + obj.validator_slash_events = message.validatorSlashEvents; } return obj; }, @@ -1038,7 +1038,7 @@ export const FeePool = { if (message.communityPool) { obj.community_pool = message.communityPool.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.community_pool = []; + obj.community_pool = message.communityPool; } return obj; }, @@ -1140,13 +1140,13 @@ export const CommunityPoolSpendProposal = { }, toAmino(message: CommunityPoolSpendProposal): CommunityPoolSpendProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.recipient = message.recipient; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -1238,9 +1238,9 @@ export const DelegatorStartingInfo = { }, toAmino(message: DelegatorStartingInfo): DelegatorStartingInfoAmino { const obj: any = {}; - obj.previous_period = message.previousPeriod ? message.previousPeriod.toString() : undefined; - obj.stake = message.stake; - obj.height = message.height ? message.height.toString() : undefined; + obj.previous_period = message.previousPeriod !== BigInt(0) ? message.previousPeriod.toString() : undefined; + obj.stake = message.stake === "" ? undefined : message.stake; + obj.height = message.height ? message.height.toString() : "0"; return obj; }, fromAminoMsg(object: DelegatorStartingInfoAminoMsg): DelegatorStartingInfo { @@ -1318,11 +1318,11 @@ export const DelegationDelegatorReward = { }, toAmino(message: DelegationDelegatorReward): DelegationDelegatorRewardAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; if (message.reward) { obj.reward = message.reward.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.reward = []; + obj.reward = message.reward; } return obj; }, @@ -1437,11 +1437,11 @@ export const CommunityPoolSpendProposalWithDeposit = { }, toAmino(message: CommunityPoolSpendProposalWithDeposit): CommunityPoolSpendProposalWithDepositAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.recipient = message.recipient; - obj.amount = message.amount; - obj.deposit = message.deposit; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.recipient = message.recipient === "" ? undefined : message.recipient; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.deposit = message.deposit === "" ? undefined : message.deposit; return obj; }, fromAminoMsg(object: CommunityPoolSpendProposalWithDepositAminoMsg): CommunityPoolSpendProposalWithDeposit { diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/genesis.ts index fe6d0f53..685d2df0 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/genesis.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/genesis.ts @@ -362,8 +362,8 @@ export const DelegatorWithdrawInfo = { }, toAmino(message: DelegatorWithdrawInfo): DelegatorWithdrawInfoAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; return obj; }, fromAminoMsg(object: DelegatorWithdrawInfoAminoMsg): DelegatorWithdrawInfo { @@ -441,11 +441,11 @@ export const ValidatorOutstandingRewardsRecord = { }, toAmino(message: ValidatorOutstandingRewardsRecord): ValidatorOutstandingRewardsRecordAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; if (message.outstandingRewards) { obj.outstanding_rewards = message.outstandingRewards.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.outstanding_rewards = []; + obj.outstanding_rewards = message.outstandingRewards; } return obj; }, @@ -526,7 +526,7 @@ export const ValidatorAccumulatedCommissionRecord = { }, toAmino(message: ValidatorAccumulatedCommissionRecord): ValidatorAccumulatedCommissionRecordAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.accumulated = message.accumulated ? ValidatorAccumulatedCommission.toAmino(message.accumulated) : undefined; return obj; }, @@ -618,8 +618,8 @@ export const ValidatorHistoricalRewardsRecord = { }, toAmino(message: ValidatorHistoricalRewardsRecord): ValidatorHistoricalRewardsRecordAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; - obj.period = message.period ? message.period.toString() : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; obj.rewards = message.rewards ? ValidatorHistoricalRewards.toAmino(message.rewards) : undefined; return obj; }, @@ -700,7 +700,7 @@ export const ValidatorCurrentRewardsRecord = { }, toAmino(message: ValidatorCurrentRewardsRecord): ValidatorCurrentRewardsRecordAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.rewards = message.rewards ? ValidatorCurrentRewards.toAmino(message.rewards) : undefined; return obj; }, @@ -792,8 +792,8 @@ export const DelegatorStartingInfoRecord = { }, toAmino(message: DelegatorStartingInfoRecord): DelegatorStartingInfoRecordAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.starting_info = message.startingInfo ? DelegatorStartingInfo.toAmino(message.startingInfo) : undefined; return obj; }, @@ -896,9 +896,9 @@ export const ValidatorSlashEventRecord = { }, toAmino(message: ValidatorSlashEventRecord): ValidatorSlashEventRecordAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; - obj.height = message.height ? message.height.toString() : undefined; - obj.period = message.period ? message.period.toString() : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.period = message.period !== BigInt(0) ? message.period.toString() : undefined; obj.validator_slash_event = message.validatorSlashEvent ? ValidatorSlashEvent.toAmino(message.validatorSlashEvent) : undefined; return obj; }, @@ -1058,38 +1058,38 @@ export const GenesisState = { if (message.delegatorWithdrawInfos) { obj.delegator_withdraw_infos = message.delegatorWithdrawInfos.map(e => e ? DelegatorWithdrawInfo.toAmino(e) : undefined); } else { - obj.delegator_withdraw_infos = []; + obj.delegator_withdraw_infos = message.delegatorWithdrawInfos; } - obj.previous_proposer = message.previousProposer; + obj.previous_proposer = message.previousProposer === "" ? undefined : message.previousProposer; if (message.outstandingRewards) { obj.outstanding_rewards = message.outstandingRewards.map(e => e ? ValidatorOutstandingRewardsRecord.toAmino(e) : undefined); } else { - obj.outstanding_rewards = []; + obj.outstanding_rewards = message.outstandingRewards; } if (message.validatorAccumulatedCommissions) { obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions.map(e => e ? ValidatorAccumulatedCommissionRecord.toAmino(e) : undefined); } else { - obj.validator_accumulated_commissions = []; + obj.validator_accumulated_commissions = message.validatorAccumulatedCommissions; } if (message.validatorHistoricalRewards) { obj.validator_historical_rewards = message.validatorHistoricalRewards.map(e => e ? ValidatorHistoricalRewardsRecord.toAmino(e) : undefined); } else { - obj.validator_historical_rewards = []; + obj.validator_historical_rewards = message.validatorHistoricalRewards; } if (message.validatorCurrentRewards) { obj.validator_current_rewards = message.validatorCurrentRewards.map(e => e ? ValidatorCurrentRewardsRecord.toAmino(e) : undefined); } else { - obj.validator_current_rewards = []; + obj.validator_current_rewards = message.validatorCurrentRewards; } if (message.delegatorStartingInfos) { obj.delegator_starting_infos = message.delegatorStartingInfos.map(e => e ? DelegatorStartingInfoRecord.toAmino(e) : undefined); } else { - obj.delegator_starting_infos = []; + obj.delegator_starting_infos = message.delegatorStartingInfos; } if (message.validatorSlashEvents) { obj.validator_slash_events = message.validatorSlashEvents.map(e => e ? ValidatorSlashEventRecord.toAmino(e) : undefined); } else { - obj.validator_slash_events = []; + obj.validator_slash_events = message.validatorSlashEvents; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.ts index 7994003d..6e632a42 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/query.ts @@ -723,7 +723,7 @@ export const QueryValidatorOutstandingRewardsRequest = { }, toAmino(message: QueryValidatorOutstandingRewardsRequest): QueryValidatorOutstandingRewardsRequestAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: QueryValidatorOutstandingRewardsRequestAminoMsg): QueryValidatorOutstandingRewardsRequest { @@ -861,7 +861,7 @@ export const QueryValidatorCommissionRequest = { }, toAmino(message: QueryValidatorCommissionRequest): QueryValidatorCommissionRequestAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: QueryValidatorCommissionRequestAminoMsg): QueryValidatorCommissionRequest { @@ -1032,9 +1032,9 @@ export const QueryValidatorSlashesRequest = { }, toAmino(message: QueryValidatorSlashesRequest): QueryValidatorSlashesRequestAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; - obj.starting_height = message.startingHeight ? message.startingHeight.toString() : undefined; - obj.ending_height = message.endingHeight ? message.endingHeight.toString() : undefined; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.starting_height = message.startingHeight !== BigInt(0) ? message.startingHeight.toString() : undefined; + obj.ending_height = message.endingHeight !== BigInt(0) ? message.endingHeight.toString() : undefined; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1116,7 +1116,7 @@ export const QueryValidatorSlashesResponse = { if (message.slashes) { obj.slashes = message.slashes.map(e => e ? ValidatorSlashEvent.toAmino(e) : undefined); } else { - obj.slashes = []; + obj.slashes = message.slashes; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1198,8 +1198,8 @@ export const QueryDelegationRewardsRequest = { }, toAmino(message: QueryDelegationRewardsRequest): QueryDelegationRewardsRequestAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: QueryDelegationRewardsRequestAminoMsg): QueryDelegationRewardsRequest { @@ -1269,7 +1269,7 @@ export const QueryDelegationRewardsResponse = { if (message.rewards) { obj.rewards = message.rewards.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.rewards = []; + obj.rewards = message.rewards; } return obj; }, @@ -1339,7 +1339,7 @@ export const QueryDelegationTotalRewardsRequest = { }, toAmino(message: QueryDelegationTotalRewardsRequest): QueryDelegationTotalRewardsRequestAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; return obj; }, fromAminoMsg(object: QueryDelegationTotalRewardsRequestAminoMsg): QueryDelegationTotalRewardsRequest { @@ -1418,12 +1418,12 @@ export const QueryDelegationTotalRewardsResponse = { if (message.rewards) { obj.rewards = message.rewards.map(e => e ? DelegationDelegatorReward.toAmino(e) : undefined); } else { - obj.rewards = []; + obj.rewards = message.rewards; } if (message.total) { obj.total = message.total.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.total = []; + obj.total = message.total; } return obj; }, @@ -1493,7 +1493,7 @@ export const QueryDelegatorValidatorsRequest = { }, toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; return obj; }, fromAminoMsg(object: QueryDelegatorValidatorsRequestAminoMsg): QueryDelegatorValidatorsRequest { @@ -1563,7 +1563,7 @@ export const QueryDelegatorValidatorsResponse = { if (message.validators) { obj.validators = message.validators.map(e => e); } else { - obj.validators = []; + obj.validators = message.validators; } return obj; }, @@ -1633,7 +1633,7 @@ export const QueryDelegatorWithdrawAddressRequest = { }, toAmino(message: QueryDelegatorWithdrawAddressRequest): QueryDelegatorWithdrawAddressRequestAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; return obj; }, fromAminoMsg(object: QueryDelegatorWithdrawAddressRequestAminoMsg): QueryDelegatorWithdrawAddressRequest { @@ -1702,7 +1702,7 @@ export const QueryDelegatorWithdrawAddressResponse = { }, toAmino(message: QueryDelegatorWithdrawAddressResponse): QueryDelegatorWithdrawAddressResponseAmino { const obj: any = {}; - obj.withdraw_address = message.withdrawAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; return obj; }, fromAminoMsg(object: QueryDelegatorWithdrawAddressResponseAminoMsg): QueryDelegatorWithdrawAddressResponse { @@ -1828,7 +1828,7 @@ export const QueryCommunityPoolResponse = { if (message.pool) { obj.pool = message.pool.map(e => e ? DecCoin.toAmino(e) : undefined); } else { - obj.pool = []; + obj.pool = message.pool; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.ts index 481d77ee..b7f0a47f 100644 --- a/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/distribution/v1beta1/tx.ts @@ -248,8 +248,8 @@ export const MsgSetWithdrawAddress = { }, toAmino(message: MsgSetWithdrawAddress): MsgSetWithdrawAddressAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.withdraw_address = message.withdrawAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.withdraw_address = message.withdrawAddress === "" ? undefined : message.withdrawAddress; return obj; }, fromAminoMsg(object: MsgSetWithdrawAddressAminoMsg): MsgSetWithdrawAddress { @@ -385,8 +385,8 @@ export const MsgWithdrawDelegatorReward = { }, toAmino(message: MsgWithdrawDelegatorReward): MsgWithdrawDelegatorRewardAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: MsgWithdrawDelegatorRewardAminoMsg): MsgWithdrawDelegatorReward { @@ -456,7 +456,7 @@ export const MsgWithdrawDelegatorRewardResponse = { if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -526,7 +526,7 @@ export const MsgWithdrawValidatorCommission = { }, toAmino(message: MsgWithdrawValidatorCommission): MsgWithdrawValidatorCommissionAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: MsgWithdrawValidatorCommissionAminoMsg): MsgWithdrawValidatorCommission { @@ -596,7 +596,7 @@ export const MsgWithdrawValidatorCommissionResponse = { if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -678,9 +678,9 @@ export const MsgFundCommunityPool = { if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } - obj.depositor = message.depositor; + obj.depositor = message.depositor === "" ? undefined : message.depositor; return obj; }, fromAminoMsg(object: MsgFundCommunityPoolAminoMsg): MsgFundCommunityPool { diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/genesis.ts index fa3bfeb7..04d27da0 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/genesis.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/genesis.ts @@ -156,21 +156,21 @@ export const GenesisState = { }, toAmino(message: GenesisState): GenesisStateAmino { const obj: any = {}; - obj.starting_proposal_id = message.startingProposalId ? message.startingProposalId.toString() : undefined; + obj.starting_proposal_id = message.startingProposalId !== BigInt(0) ? message.startingProposalId.toString() : undefined; if (message.deposits) { obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); } else { - obj.deposits = []; + obj.deposits = message.deposits; } if (message.votes) { obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); } else { - obj.votes = []; + obj.votes = message.votes; } if (message.proposals) { obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); } else { - obj.proposals = []; + obj.proposals = message.proposals; } obj.deposit_params = message.depositParams ? DepositParams.toAmino(message.depositParams) : undefined; obj.voting_params = message.votingParams ? VotingParams.toAmino(message.votingParams) : undefined; diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/gov.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/gov.ts index 5d3b284d..b7280574 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/gov.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/gov.ts @@ -359,7 +359,7 @@ export interface VoteProtoMsg { * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface VoteAmino { - proposal_id?: string; + proposal_id: string; voter?: string; /** * Deprecated: Prefer to use `options` instead. This field is set in queries @@ -531,7 +531,7 @@ export const WeightedVoteOption = { fromAmino(object: WeightedVoteOptionAmino): WeightedVoteOption { const message = createBaseWeightedVoteOption(); if (object.option !== undefined && object.option !== null) { - message.option = voteOptionFromJSON(object.option); + message.option = object.option; } if (object.weight !== undefined && object.weight !== null) { message.weight = object.weight; @@ -540,8 +540,8 @@ export const WeightedVoteOption = { }, toAmino(message: WeightedVoteOption): WeightedVoteOptionAmino { const obj: any = {}; - obj.option = message.option; - obj.weight = message.weight; + obj.option = message.option === 0 ? undefined : message.option; + obj.weight = message.weight === "" ? undefined : message.weight; return obj; }, fromAminoMsg(object: WeightedVoteOptionAminoMsg): WeightedVoteOption { @@ -622,8 +622,8 @@ export const TextProposal = { }, toAmino(message: TextProposal): TextProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; return obj; }, fromAminoMsg(object: TextProposalAminoMsg): TextProposal { @@ -712,12 +712,12 @@ export const Deposit = { }, toAmino(message: Deposit): DepositAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -851,7 +851,7 @@ export const Proposal = { message.content = Cosmos_govv1beta1Content_FromAmino(object.content); } if (object.status !== undefined && object.status !== null) { - message.status = proposalStatusFromJSON(object.status); + message.status = object.status; } if (object.final_tally_result !== undefined && object.final_tally_result !== null) { message.finalTallyResult = TallyResult.fromAmino(object.final_tally_result); @@ -873,16 +873,16 @@ export const Proposal = { }, toAmino(message: Proposal): ProposalAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; obj.content = message.content ? Cosmos_govv1beta1Content_ToAmino((message.content as Any)) : undefined; - obj.status = message.status; + obj.status = message.status === 0 ? undefined : message.status; obj.final_tally_result = message.finalTallyResult ? TallyResult.toAmino(message.finalTallyResult) : undefined; obj.submit_time = message.submitTime ? Timestamp.toAmino(toTimestamp(message.submitTime)) : undefined; obj.deposit_end_time = message.depositEndTime ? Timestamp.toAmino(toTimestamp(message.depositEndTime)) : undefined; if (message.totalDeposit) { obj.total_deposit = message.totalDeposit.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.total_deposit = []; + obj.total_deposit = message.totalDeposit; } obj.voting_start_time = message.votingStartTime ? Timestamp.toAmino(toTimestamp(message.votingStartTime)) : undefined; obj.voting_end_time = message.votingEndTime ? Timestamp.toAmino(toTimestamp(message.votingEndTime)) : undefined; @@ -987,10 +987,10 @@ export const TallyResult = { }, toAmino(message: TallyResult): TallyResultAmino { const obj: any = {}; - obj.yes = message.yes; - obj.abstain = message.abstain; - obj.no = message.no; - obj.no_with_veto = message.noWithVeto; + obj.yes = message.yes === "" ? undefined : message.yes; + obj.abstain = message.abstain === "" ? undefined : message.abstain; + obj.no = message.no === "" ? undefined : message.no; + obj.no_with_veto = message.noWithVeto === "" ? undefined : message.noWithVeto; return obj; }, fromAminoMsg(object: TallyResultAminoMsg): TallyResult { @@ -1083,20 +1083,20 @@ export const Vote = { message.voter = object.voter; } if (object.option !== undefined && object.option !== null) { - message.option = voteOptionFromJSON(object.option); + message.option = object.option; } message.options = object.options?.map(e => WeightedVoteOption.fromAmino(e)) || []; return message; }, toAmino(message: Vote): VoteAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.voter = message.voter; - obj.option = message.option; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; if (message.options) { obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); } else { - obj.options = []; + obj.options = message.options; } return obj; }, @@ -1178,7 +1178,7 @@ export const DepositParams = { if (message.minDeposit) { obj.min_deposit = message.minDeposit.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.min_deposit = []; + obj.min_deposit = message.minDeposit; } obj.max_deposit_period = message.maxDepositPeriod ? Duration.toAmino(message.maxDepositPeriod) : undefined; return obj; @@ -1413,7 +1413,7 @@ export const Cosmos_govv1beta1Content_InterfaceDecoder = (input: BinaryReader | return data; } }; -export const Cosmos_govv1beta1Content_FromAmino = (content: AnyAmino) => { +export const Cosmos_govv1beta1Content_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "cosmos-sdk/CommunityPoolSpendProposal": return Any.fromPartial({ diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/query.ts index 77539d11..714b9002 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/query.ts @@ -1,4 +1,4 @@ -import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType, proposalStatusFromJSON } from "./gov"; +import { ProposalStatus, Proposal, ProposalAmino, ProposalSDKType, Vote, VoteAmino, VoteSDKType, VotingParams, VotingParamsAmino, VotingParamsSDKType, DepositParams, DepositParamsAmino, DepositParamsSDKType, TallyParams, TallyParamsAmino, TallyParamsSDKType, Deposit, DepositAmino, DepositSDKType, TallyResult, TallyResultAmino, TallyResultSDKType } from "./gov"; import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { BinaryReader, BinaryWriter } from "../../../binary"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ @@ -466,7 +466,7 @@ export const QueryProposalRequest = { }, toAmino(message: QueryProposalRequest): QueryProposalRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; return obj; }, fromAminoMsg(object: QueryProposalRequestAminoMsg): QueryProposalRequest { @@ -622,7 +622,7 @@ export const QueryProposalsRequest = { fromAmino(object: QueryProposalsRequestAmino): QueryProposalsRequest { const message = createBaseQueryProposalsRequest(); if (object.proposal_status !== undefined && object.proposal_status !== null) { - message.proposalStatus = proposalStatusFromJSON(object.proposal_status); + message.proposalStatus = object.proposal_status; } if (object.voter !== undefined && object.voter !== null) { message.voter = object.voter; @@ -637,9 +637,9 @@ export const QueryProposalsRequest = { }, toAmino(message: QueryProposalsRequest): QueryProposalsRequestAmino { const obj: any = {}; - obj.proposal_status = message.proposalStatus; - obj.voter = message.voter; - obj.depositor = message.depositor; + obj.proposal_status = message.proposalStatus === 0 ? undefined : message.proposalStatus; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.depositor = message.depositor === "" ? undefined : message.depositor; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -721,7 +721,7 @@ export const QueryProposalsResponse = { if (message.proposals) { obj.proposals = message.proposals.map(e => e ? Proposal.toAmino(e) : undefined); } else { - obj.proposals = []; + obj.proposals = message.proposals; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -803,8 +803,8 @@ export const QueryVoteRequest = { }, toAmino(message: QueryVoteRequest): QueryVoteRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.voter = message.voter; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; return obj; }, fromAminoMsg(object: QueryVoteRequestAminoMsg): QueryVoteRequest { @@ -953,7 +953,7 @@ export const QueryVotesRequest = { }, toAmino(message: QueryVotesRequest): QueryVotesRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1035,7 +1035,7 @@ export const QueryVotesResponse = { if (message.votes) { obj.votes = message.votes.map(e => e ? Vote.toAmino(e) : undefined); } else { - obj.votes = []; + obj.votes = message.votes; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1106,7 +1106,7 @@ export const QueryParamsRequest = { }, toAmino(message: QueryParamsRequest): QueryParamsRequestAmino { const obj: any = {}; - obj.params_type = message.paramsType; + obj.params_type = message.paramsType === "" ? undefined : message.paramsType; return obj; }, fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest { @@ -1279,8 +1279,8 @@ export const QueryDepositRequest = { }, toAmino(message: QueryDepositRequest): QueryDepositRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.depositor = message.depositor === "" ? undefined : message.depositor; return obj; }, fromAminoMsg(object: QueryDepositRequestAminoMsg): QueryDepositRequest { @@ -1429,7 +1429,7 @@ export const QueryDepositsRequest = { }, toAmino(message: QueryDepositsRequest): QueryDepositsRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1511,7 +1511,7 @@ export const QueryDepositsResponse = { if (message.deposits) { obj.deposits = message.deposits.map(e => e ? Deposit.toAmino(e) : undefined); } else { - obj.deposits = []; + obj.deposits = message.deposits; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1582,7 +1582,7 @@ export const QueryTallyResultRequest = { }, toAmino(message: QueryTallyResultRequest): QueryTallyResultRequestAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; return obj; }, fromAminoMsg(object: QueryTallyResultRequestAminoMsg): QueryTallyResultRequest { diff --git a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.ts index b580b3bc..9fcac578 100644 --- a/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/gov/v1beta1/tx.ts @@ -1,6 +1,6 @@ import { Any, AnyProtoMsg, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; -import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType, voteOptionFromJSON } from "./gov"; +import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, WeightedVoteOptionSDKType, TextProposal, TextProposalProtoMsg, TextProposalSDKType } from "./gov"; import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg, CommunityPoolSpendProposalWithDepositSDKType } from "../../distribution/v1beta1/distribution"; import { SoftwareUpgradeProposal, SoftwareUpgradeProposalProtoMsg, SoftwareUpgradeProposalSDKType, CancelSoftwareUpgradeProposal, CancelSoftwareUpgradeProposalProtoMsg, CancelSoftwareUpgradeProposalSDKType } from "../../upgrade/v1beta1/upgrade"; import { StoreCodeProposal, StoreCodeProposalProtoMsg, StoreCodeProposalSDKType, InstantiateContractProposal, InstantiateContractProposalProtoMsg, InstantiateContractProposalSDKType, InstantiateContract2Proposal, InstantiateContract2ProposalProtoMsg, InstantiateContract2ProposalSDKType, MigrateContractProposal, MigrateContractProposalProtoMsg, MigrateContractProposalSDKType, SudoContractProposal, SudoContractProposalProtoMsg, SudoContractProposalSDKType, ExecuteContractProposal, ExecuteContractProposalProtoMsg, ExecuteContractProposalSDKType, UpdateAdminProposal, UpdateAdminProposalProtoMsg, UpdateAdminProposalSDKType, ClearAdminProposal, ClearAdminProposalProtoMsg, ClearAdminProposalSDKType, PinCodesProposal, PinCodesProposalProtoMsg, PinCodesProposalSDKType, UnpinCodesProposal, UnpinCodesProposalProtoMsg, UnpinCodesProposalSDKType, UpdateInstantiateConfigProposal, UpdateInstantiateConfigProposalProtoMsg, UpdateInstantiateConfigProposalSDKType, StoreAndInstantiateContractProposal, StoreAndInstantiateContractProposalProtoMsg, StoreAndInstantiateContractProposalSDKType } from "../../../cosmwasm/wasm/v1/proposal"; @@ -54,7 +54,7 @@ export interface MsgSubmitProposalResponseProtoMsg { } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseAmino { - proposal_id?: string; + proposal_id: string; } export interface MsgSubmitProposalResponseAminoMsg { type: "cosmos-sdk/MsgSubmitProposalResponse"; @@ -124,7 +124,7 @@ export interface MsgVoteWeightedProtoMsg { * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedAmino { - proposal_id?: string; + proposal_id: string; voter?: string; options?: WeightedVoteOptionAmino[]; } @@ -180,7 +180,7 @@ export interface MsgDepositProtoMsg { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositAmino { - proposal_id?: string; + proposal_id: string; depositor?: string; amount?: CoinAmino[]; } @@ -276,9 +276,9 @@ export const MsgSubmitProposal = { if (message.initialDeposit) { obj.initial_deposit = message.initialDeposit.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.initial_deposit = []; + obj.initial_deposit = message.initialDeposit; } - obj.proposer = message.proposer; + obj.proposer = message.proposer === "" ? undefined : message.proposer; return obj; }, fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal { @@ -347,7 +347,7 @@ export const MsgSubmitProposalResponse = { }, toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; return obj; }, fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse { @@ -432,15 +432,15 @@ export const MsgVote = { message.voter = object.voter; } if (object.option !== undefined && object.option !== null) { - message.option = voteOptionFromJSON(object.option); + message.option = object.option; } return message; }, toAmino(message: MsgVote): MsgVoteAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.voter = message.voter; - obj.option = message.option; + obj.proposal_id = message.proposalId !== BigInt(0) ? message.proposalId.toString() : undefined; + obj.voter = message.voter === "" ? undefined : message.voter; + obj.option = message.option === 0 ? undefined : message.option; return obj; }, fromAminoMsg(object: MsgVoteAminoMsg): MsgVote { @@ -585,12 +585,12 @@ export const MsgVoteWeighted = { }, toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.voter = message.voter; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.voter = message.voter === "" ? undefined : message.voter; if (message.options) { obj.options = message.options.map(e => e ? WeightedVoteOption.toAmino(e) : undefined); } else { - obj.options = []; + obj.options = message.options; } return obj; }, @@ -736,12 +736,12 @@ export const MsgDeposit = { }, toAmino(message: MsgDeposit): MsgDepositAmino { const obj: any = {}; - obj.proposal_id = message.proposalId ? message.proposalId.toString() : undefined; - obj.depositor = message.depositor; + obj.proposal_id = message.proposalId ? message.proposalId.toString() : "0"; + obj.depositor = message.depositor === "" ? undefined : message.depositor; if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } return obj; }, @@ -869,7 +869,7 @@ export const Cosmos_govv1beta1Content_InterfaceDecoder = (input: BinaryReader | return data; } }; -export const Cosmos_govv1beta1Content_FromAmino = (content: AnyAmino) => { +export const Cosmos_govv1beta1Content_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "cosmos-sdk/CommunityPoolSpendProposal": return Any.fromPartial({ diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/authz.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/authz.ts index 48496f9d..532ad68c 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/authz.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/authz.ts @@ -208,7 +208,7 @@ export const StakeAuthorization = { message.denyList = StakeAuthorization_Validators.fromAmino(object.deny_list); } if (object.authorization_type !== undefined && object.authorization_type !== null) { - message.authorizationType = authorizationTypeFromJSON(object.authorization_type); + message.authorizationType = object.authorization_type; } return message; }, @@ -217,7 +217,7 @@ export const StakeAuthorization = { obj.max_tokens = message.maxTokens ? Coin.toAmino(message.maxTokens) : undefined; obj.allow_list = message.allowList ? StakeAuthorization_Validators.toAmino(message.allowList) : undefined; obj.deny_list = message.denyList ? StakeAuthorization_Validators.toAmino(message.denyList) : undefined; - obj.authorization_type = message.authorizationType; + obj.authorization_type = message.authorizationType === 0 ? undefined : message.authorizationType; return obj; }, fromAminoMsg(object: StakeAuthorizationAminoMsg): StakeAuthorization { @@ -287,7 +287,7 @@ export const StakeAuthorization_Validators = { if (message.address) { obj.address = message.address.map(e => e); } else { - obj.address = []; + obj.address = message.address; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/genesis.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/genesis.ts index 65c1a3bc..0eac5700 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/genesis.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/genesis.ts @@ -211,29 +211,29 @@ export const GenesisState = { if (message.lastValidatorPowers) { obj.last_validator_powers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toAmino(e) : undefined); } else { - obj.last_validator_powers = []; + obj.last_validator_powers = message.lastValidatorPowers; } if (message.validators) { obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } if (message.delegations) { obj.delegations = message.delegations.map(e => e ? Delegation.toAmino(e) : undefined); } else { - obj.delegations = []; + obj.delegations = message.delegations; } if (message.unbondingDelegations) { obj.unbonding_delegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); } else { - obj.unbonding_delegations = []; + obj.unbonding_delegations = message.unbondingDelegations; } if (message.redelegations) { obj.redelegations = message.redelegations.map(e => e ? Redelegation.toAmino(e) : undefined); } else { - obj.redelegations = []; + obj.redelegations = message.redelegations; } - obj.exported = message.exported; + obj.exported = message.exported === false ? undefined : message.exported; return obj; }, fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { @@ -313,8 +313,8 @@ export const LastValidatorPower = { }, toAmino(message: LastValidatorPower): LastValidatorPowerAmino { const obj: any = {}; - obj.address = message.address; - obj.power = message.power ? message.power.toString() : undefined; + obj.address = message.address === "" ? undefined : message.address; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; return obj; }, fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower { diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/query.ts index 6025aabf..3296779e 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/query.ts @@ -905,7 +905,7 @@ export const QueryValidatorsRequest = { }, toAmino(message: QueryValidatorsRequest): QueryValidatorsRequestAmino { const obj: any = {}; - obj.status = message.status; + obj.status = message.status === "" ? undefined : message.status; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -987,7 +987,7 @@ export const QueryValidatorsResponse = { if (message.validators) { obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1058,7 +1058,7 @@ export const QueryValidatorRequest = { }, toAmino(message: QueryValidatorRequest): QueryValidatorRequestAmino { const obj: any = {}; - obj.validator_addr = message.validatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryValidatorRequestAminoMsg): QueryValidatorRequest { @@ -1207,7 +1207,7 @@ export const QueryValidatorDelegationsRequest = { }, toAmino(message: QueryValidatorDelegationsRequest): QueryValidatorDelegationsRequestAmino { const obj: any = {}; - obj.validator_addr = message.validatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1289,7 +1289,7 @@ export const QueryValidatorDelegationsResponse = { if (message.delegationResponses) { obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); } else { - obj.delegation_responses = []; + obj.delegation_responses = message.delegationResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1371,7 +1371,7 @@ export const QueryValidatorUnbondingDelegationsRequest = { }, toAmino(message: QueryValidatorUnbondingDelegationsRequest): QueryValidatorUnbondingDelegationsRequestAmino { const obj: any = {}; - obj.validator_addr = message.validatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1453,7 +1453,7 @@ export const QueryValidatorUnbondingDelegationsResponse = { if (message.unbondingResponses) { obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); } else { - obj.unbonding_responses = []; + obj.unbonding_responses = message.unbondingResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1535,8 +1535,8 @@ export const QueryDelegationRequest = { }, toAmino(message: QueryDelegationRequest): QueryDelegationRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; - obj.validator_addr = message.validatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryDelegationRequestAminoMsg): QueryDelegationRequest { @@ -1685,8 +1685,8 @@ export const QueryUnbondingDelegationRequest = { }, toAmino(message: QueryUnbondingDelegationRequest): QueryUnbondingDelegationRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; - obj.validator_addr = message.validatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryUnbondingDelegationRequestAminoMsg): QueryUnbondingDelegationRequest { @@ -1835,7 +1835,7 @@ export const QueryDelegatorDelegationsRequest = { }, toAmino(message: QueryDelegatorDelegationsRequest): QueryDelegatorDelegationsRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1917,7 +1917,7 @@ export const QueryDelegatorDelegationsResponse = { if (message.delegationResponses) { obj.delegation_responses = message.delegationResponses.map(e => e ? DelegationResponse.toAmino(e) : undefined); } else { - obj.delegation_responses = []; + obj.delegation_responses = message.delegationResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1999,7 +1999,7 @@ export const QueryDelegatorUnbondingDelegationsRequest = { }, toAmino(message: QueryDelegatorUnbondingDelegationsRequest): QueryDelegatorUnbondingDelegationsRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -2081,7 +2081,7 @@ export const QueryDelegatorUnbondingDelegationsResponse = { if (message.unbondingResponses) { obj.unbonding_responses = message.unbondingResponses.map(e => e ? UnbondingDelegation.toAmino(e) : undefined); } else { - obj.unbonding_responses = []; + obj.unbonding_responses = message.unbondingResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -2185,9 +2185,9 @@ export const QueryRedelegationsRequest = { }, toAmino(message: QueryRedelegationsRequest): QueryRedelegationsRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; - obj.src_validator_addr = message.srcValidatorAddr; - obj.dst_validator_addr = message.dstValidatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.src_validator_addr = message.srcValidatorAddr === "" ? undefined : message.srcValidatorAddr; + obj.dst_validator_addr = message.dstValidatorAddr === "" ? undefined : message.dstValidatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -2269,7 +2269,7 @@ export const QueryRedelegationsResponse = { if (message.redelegationResponses) { obj.redelegation_responses = message.redelegationResponses.map(e => e ? RedelegationResponse.toAmino(e) : undefined); } else { - obj.redelegation_responses = []; + obj.redelegation_responses = message.redelegationResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -2351,7 +2351,7 @@ export const QueryDelegatorValidatorsRequest = { }, toAmino(message: QueryDelegatorValidatorsRequest): QueryDelegatorValidatorsRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -2433,7 +2433,7 @@ export const QueryDelegatorValidatorsResponse = { if (message.validators) { obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -2515,8 +2515,8 @@ export const QueryDelegatorValidatorRequest = { }, toAmino(message: QueryDelegatorValidatorRequest): QueryDelegatorValidatorRequestAmino { const obj: any = {}; - obj.delegator_addr = message.delegatorAddr; - obj.validator_addr = message.validatorAddr; + obj.delegator_addr = message.delegatorAddr === "" ? undefined : message.delegatorAddr; + obj.validator_addr = message.validatorAddr === "" ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryDelegatorValidatorRequestAminoMsg): QueryDelegatorValidatorRequest { @@ -2654,7 +2654,7 @@ export const QueryHistoricalInfoRequest = { }, toAmino(message: QueryHistoricalInfoRequest): QueryHistoricalInfoRequestAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; return obj; }, fromAminoMsg(object: QueryHistoricalInfoRequestAminoMsg): QueryHistoricalInfoRequest { diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/staking.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/staking.ts index 6c0ce11e..e9f7c58a 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/staking.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/staking.ts @@ -814,8 +814,8 @@ export interface PoolProtoMsg { * denomination. */ export interface PoolAmino { - not_bonded_tokens?: string; - bonded_tokens?: string; + not_bonded_tokens: string; + bonded_tokens: string; } export interface PoolAminoMsg { type: "cosmos-sdk/Pool"; @@ -886,7 +886,7 @@ export const HistoricalInfo = { if (message.valset) { obj.valset = message.valset.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.valset = []; + obj.valset = message.valset; } return obj; }, @@ -978,9 +978,9 @@ export const CommissionRates = { }, toAmino(message: CommissionRates): CommissionRatesAmino { const obj: any = {}; - obj.rate = message.rate; - obj.max_rate = message.maxRate; - obj.max_change_rate = message.maxChangeRate; + obj.rate = message.rate === "" ? undefined : message.rate; + obj.max_rate = message.maxRate === "" ? undefined : message.maxRate; + obj.max_change_rate = message.maxChangeRate === "" ? undefined : message.maxChangeRate; return obj; }, fromAminoMsg(object: CommissionRatesAminoMsg): CommissionRates { @@ -1174,11 +1174,11 @@ export const Description = { }, toAmino(message: Description): DescriptionAmino { const obj: any = {}; - obj.moniker = message.moniker; - obj.identity = message.identity; - obj.website = message.website; - obj.security_contact = message.securityContact; - obj.details = message.details; + obj.moniker = message.moniker === "" ? undefined : message.moniker; + obj.identity = message.identity === "" ? undefined : message.identity; + obj.website = message.website === "" ? undefined : message.website; + obj.security_contact = message.securityContact === "" ? undefined : message.securityContact; + obj.details = message.details === "" ? undefined : message.details; return obj; }, fromAminoMsg(object: DescriptionAminoMsg): Description { @@ -1330,7 +1330,7 @@ export const Validator = { message.jailed = object.jailed; } if (object.status !== undefined && object.status !== null) { - message.status = bondStatusFromJSON(object.status); + message.status = object.status; } if (object.tokens !== undefined && object.tokens !== null) { message.tokens = object.tokens; @@ -1357,17 +1357,17 @@ export const Validator = { }, toAmino(message: Validator): ValidatorAmino { const obj: any = {}; - obj.operator_address = message.operatorAddress; + obj.operator_address = message.operatorAddress === "" ? undefined : message.operatorAddress; obj.consensus_pubkey = message.consensusPubkey ? decodePubkey(message.consensusPubkey) : undefined; - obj.jailed = message.jailed; - obj.status = message.status; - obj.tokens = message.tokens; - obj.delegator_shares = message.delegatorShares; + obj.jailed = message.jailed === false ? undefined : message.jailed; + obj.status = message.status === 0 ? undefined : message.status; + obj.tokens = message.tokens === "" ? undefined : message.tokens; + obj.delegator_shares = message.delegatorShares === "" ? undefined : message.delegatorShares; obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.unbonding_height = message.unbondingHeight ? message.unbondingHeight.toString() : undefined; + obj.unbonding_height = message.unbondingHeight !== BigInt(0) ? message.unbondingHeight.toString() : undefined; obj.unbonding_time = message.unbondingTime ? Timestamp.toAmino(toTimestamp(message.unbondingTime)) : undefined; obj.commission = message.commission ? Commission.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; return obj; }, fromAminoMsg(object: ValidatorAminoMsg): Validator { @@ -1437,7 +1437,7 @@ export const ValAddresses = { if (message.addresses) { obj.addresses = message.addresses.map(e => e); } else { - obj.addresses = []; + obj.addresses = message.addresses; } return obj; }, @@ -1518,8 +1518,8 @@ export const DVPair = { }, toAmino(message: DVPair): DVPairAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: DVPairAminoMsg): DVPair { @@ -1589,7 +1589,7 @@ export const DVPairs = { if (message.pairs) { obj.pairs = message.pairs.map(e => e ? DVPair.toAmino(e) : undefined); } else { - obj.pairs = []; + obj.pairs = message.pairs; } return obj; }, @@ -1681,9 +1681,9 @@ export const DVVTriplet = { }, toAmino(message: DVVTriplet): DVVTripletAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; return obj; }, fromAminoMsg(object: DVVTripletAminoMsg): DVVTriplet { @@ -1753,7 +1753,7 @@ export const DVVTriplets = { if (message.triplets) { obj.triplets = message.triplets.map(e => e ? DVVTriplet.toAmino(e) : undefined); } else { - obj.triplets = []; + obj.triplets = message.triplets; } return obj; }, @@ -1845,9 +1845,9 @@ export const Delegation = { }, toAmino(message: Delegation): DelegationAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; - obj.shares = message.shares; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.shares = message.shares === "" ? undefined : message.shares; return obj; }, fromAminoMsg(object: DelegationAminoMsg): Delegation { @@ -1936,12 +1936,12 @@ export const UnbondingDelegation = { }, toAmino(message: UnbondingDelegation): UnbondingDelegationAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; if (message.entries) { obj.entries = message.entries.map(e => e ? UnbondingDelegationEntry.toAmino(e) : undefined); } else { - obj.entries = []; + obj.entries = message.entries; } return obj; }, @@ -2044,10 +2044,10 @@ export const UnbondingDelegationEntry = { }, toAmino(message: UnbondingDelegationEntry): UnbondingDelegationEntryAmino { const obj: any = {}; - obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance; - obj.balance = message.balance; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.balance = message.balance === "" ? undefined : message.balance; return obj; }, fromAminoMsg(object: UnbondingDelegationEntryAminoMsg): UnbondingDelegationEntry { @@ -2149,10 +2149,10 @@ export const RedelegationEntry = { }, toAmino(message: RedelegationEntry): RedelegationEntryAmino { const obj: any = {}; - obj.creation_height = message.creationHeight ? message.creationHeight.toString() : undefined; + obj.creation_height = message.creationHeight !== BigInt(0) ? message.creationHeight.toString() : undefined; obj.completion_time = message.completionTime ? Timestamp.toAmino(toTimestamp(message.completionTime)) : undefined; - obj.initial_balance = message.initialBalance; - obj.shares_dst = message.sharesDst; + obj.initial_balance = message.initialBalance === "" ? undefined : message.initialBalance; + obj.shares_dst = message.sharesDst === "" ? undefined : message.sharesDst; return obj; }, fromAminoMsg(object: RedelegationEntryAminoMsg): RedelegationEntry { @@ -2252,13 +2252,13 @@ export const Redelegation = { }, toAmino(message: Redelegation): RedelegationAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; if (message.entries) { obj.entries = message.entries.map(e => e ? RedelegationEntry.toAmino(e) : undefined); } else { - obj.entries = []; + obj.entries = message.entries; } return obj; }, @@ -2384,11 +2384,11 @@ export const Params = { toAmino(message: Params): ParamsAmino { const obj: any = {}; obj.unbonding_time = message.unbondingTime ? Duration.toAmino(message.unbondingTime) : undefined; - obj.max_validators = message.maxValidators; - obj.max_entries = message.maxEntries; - obj.historical_entries = message.historicalEntries; - obj.bond_denom = message.bondDenom; - obj.min_commission_rate = message.minCommissionRate; + obj.max_validators = message.maxValidators === 0 ? undefined : message.maxValidators; + obj.max_entries = message.maxEntries === 0 ? undefined : message.maxEntries; + obj.historical_entries = message.historicalEntries === 0 ? undefined : message.historicalEntries; + obj.bond_denom = message.bondDenom === "" ? undefined : message.bondDenom; + obj.min_commission_rate = message.minCommissionRate === "" ? undefined : message.minCommissionRate; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { @@ -2550,7 +2550,7 @@ export const RedelegationEntryResponse = { toAmino(message: RedelegationEntryResponse): RedelegationEntryResponseAmino { const obj: any = {}; obj.redelegation_entry = message.redelegationEntry ? RedelegationEntry.toAmino(message.redelegationEntry) : undefined; - obj.balance = message.balance; + obj.balance = message.balance === "" ? undefined : message.balance; return obj; }, fromAminoMsg(object: RedelegationEntryResponseAminoMsg): RedelegationEntryResponse { @@ -2632,7 +2632,7 @@ export const RedelegationResponse = { if (message.entries) { obj.entries = message.entries.map(e => e ? RedelegationEntryResponse.toAmino(e) : undefined); } else { - obj.entries = []; + obj.entries = message.entries; } return obj; }, @@ -2713,8 +2713,8 @@ export const Pool = { }, toAmino(message: Pool): PoolAmino { const obj: any = {}; - obj.not_bonded_tokens = message.notBondedTokens; - obj.bonded_tokens = message.bondedTokens; + obj.not_bonded_tokens = message.notBondedTokens ?? ""; + obj.bonded_tokens = message.bondedTokens ?? ""; return obj; }, fromAminoMsg(object: PoolAminoMsg): Pool { @@ -2747,7 +2747,7 @@ export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8 return data; } }; -export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino) => { +export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { return encodePubkey(content); }; export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { diff --git a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.ts index b1bed818..8d4670b5 100644 --- a/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/staking/v1beta1/tx.ts @@ -391,9 +391,9 @@ export const MsgCreateValidator = { const obj: any = {}; obj.description = message.description ? Description.toAmino(message.description) : undefined; obj.commission = message.commission ? CommissionRates.toAmino(message.commission) : undefined; - obj.min_self_delegation = message.minSelfDelegation; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.pubkey = message.pubkey ? decodePubkey(message.pubkey) : undefined; obj.value = message.value ? Coin.toAmino(message.value) : undefined; return obj; @@ -554,9 +554,9 @@ export const MsgEditValidator = { toAmino(message: MsgEditValidator): MsgEditValidatorAmino { const obj: any = {}; obj.description = message.description ? Description.toAmino(message.description) : undefined; - obj.validator_address = message.validatorAddress; - obj.commission_rate = message.commissionRate; - obj.min_self_delegation = message.minSelfDelegation; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; + obj.commission_rate = message.commissionRate === "" ? undefined : message.commissionRate; + obj.min_self_delegation = message.minSelfDelegation === "" ? undefined : message.minSelfDelegation; return obj; }, fromAminoMsg(object: MsgEditValidatorAminoMsg): MsgEditValidator { @@ -703,8 +703,8 @@ export const MsgDelegate = { }, toAmino(message: MsgDelegate): MsgDelegateAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; return obj; }, @@ -863,9 +863,9 @@ export const MsgBeginRedelegate = { }, toAmino(message: MsgBeginRedelegate): MsgBeginRedelegateAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_src_address = message.validatorSrcAddress; - obj.validator_dst_address = message.validatorDstAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_src_address = message.validatorSrcAddress === "" ? undefined : message.validatorSrcAddress; + obj.validator_dst_address = message.validatorDstAddress === "" ? undefined : message.validatorDstAddress; obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; return obj; }, @@ -1026,8 +1026,8 @@ export const MsgUndelegate = { }, toAmino(message: MsgUndelegate): MsgUndelegateAmino { const obj: any = {}; - obj.delegator_address = message.delegatorAddress; - obj.validator_address = message.validatorAddress; + obj.delegator_address = message.delegatorAddress === "" ? undefined : message.delegatorAddress; + obj.validator_address = message.validatorAddress === "" ? undefined : message.validatorAddress; obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; return obj; }, @@ -1130,7 +1130,7 @@ export const Cosmos_cryptoPubKey_InterfaceDecoder = (input: BinaryReader | Uint8 return data; } }; -export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino) => { +export const Cosmos_cryptoPubKey_FromAmino = (content: AnyAmino): Any => { return encodePubkey(content); }; export const Cosmos_cryptoPubKey_ToAmino = (content: Any): Pubkey | null => { diff --git a/packages/proto/src/codegen/cosmos/tx/signing/v1beta1/signing.ts b/packages/proto/src/codegen/cosmos/tx/signing/v1beta1/signing.ts index 7df744ca..b2e17a8d 100644 --- a/packages/proto/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +++ b/packages/proto/src/codegen/cosmos/tx/signing/v1beta1/signing.ts @@ -288,7 +288,7 @@ export const SignatureDescriptors = { if (message.signatures) { obj.signatures = message.signatures.map(e => e ? SignatureDescriptor.toAmino(e) : undefined); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, @@ -382,7 +382,7 @@ export const SignatureDescriptor = { const obj: any = {}; obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; obj.data = message.data ? SignatureDescriptor_Data.toAmino(message.data) : undefined; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: SignatureDescriptorAminoMsg): SignatureDescriptor { @@ -534,7 +534,7 @@ export const SignatureDescriptor_Data_Single = { fromAmino(object: SignatureDescriptor_Data_SingleAmino): SignatureDescriptor_Data_Single { const message = createBaseSignatureDescriptor_Data_Single(); if (object.mode !== undefined && object.mode !== null) { - message.mode = signModeFromJSON(object.mode); + message.mode = object.mode; } if (object.signature !== undefined && object.signature !== null) { message.signature = bytesFromBase64(object.signature); @@ -543,7 +543,7 @@ export const SignatureDescriptor_Data_Single = { }, toAmino(message: SignatureDescriptor_Data_Single): SignatureDescriptor_Data_SingleAmino { const obj: any = {}; - obj.mode = message.mode; + obj.mode = message.mode === 0 ? undefined : message.mode; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; return obj; }, @@ -626,7 +626,7 @@ export const SignatureDescriptor_Data_Multi = { if (message.signatures) { obj.signatures = message.signatures.map(e => e ? SignatureDescriptor_Data.toAmino(e) : undefined); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, diff --git a/packages/proto/src/codegen/cosmos/tx/v1beta1/service.ts b/packages/proto/src/codegen/cosmos/tx/v1beta1/service.ts index 764c87cb..2d32f3e7 100644 --- a/packages/proto/src/codegen/cosmos/tx/v1beta1/service.ts +++ b/packages/proto/src/codegen/cosmos/tx/v1beta1/service.ts @@ -542,7 +542,7 @@ export const GetTxsEventRequest = { message.pagination = PageRequest.fromAmino(object.pagination); } if (object.order_by !== undefined && object.order_by !== null) { - message.orderBy = orderByFromJSON(object.order_by); + message.orderBy = object.order_by; } return message; }, @@ -551,10 +551,10 @@ export const GetTxsEventRequest = { if (message.events) { obj.events = message.events.map(e => e); } else { - obj.events = []; + obj.events = message.events; } obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - obj.order_by = message.orderBy; + obj.order_by = message.orderBy === 0 ? undefined : message.orderBy; return obj; }, fromAminoMsg(object: GetTxsEventRequestAminoMsg): GetTxsEventRequest { @@ -644,12 +644,12 @@ export const GetTxsEventResponse = { if (message.txs) { obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); } else { - obj.txs = []; + obj.txs = message.txs; } if (message.txResponses) { obj.tx_responses = message.txResponses.map(e => e ? TxResponse.toAmino(e) : undefined); } else { - obj.tx_responses = []; + obj.tx_responses = message.txResponses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -725,14 +725,14 @@ export const BroadcastTxRequest = { message.txBytes = bytesFromBase64(object.tx_bytes); } if (object.mode !== undefined && object.mode !== null) { - message.mode = broadcastModeFromJSON(object.mode); + message.mode = object.mode; } return message; }, toAmino(message: BroadcastTxRequest): BroadcastTxRequestAmino { const obj: any = {}; obj.tx_bytes = message.txBytes ? base64FromBytes(message.txBytes) : undefined; - obj.mode = message.mode; + obj.mode = message.mode === 0 ? undefined : message.mode; return obj; }, fromAminoMsg(object: BroadcastTxRequestAminoMsg): BroadcastTxRequest { @@ -1032,7 +1032,7 @@ export const GetTxRequest = { }, toAmino(message: GetTxRequest): GetTxRequestAmino { const obj: any = {}; - obj.hash = message.hash; + obj.hash = message.hash === "" ? undefined : message.hash; return obj; }, fromAminoMsg(object: GetTxRequestAminoMsg): GetTxRequest { @@ -1193,7 +1193,7 @@ export const GetBlockWithTxsRequest = { }, toAmino(message: GetBlockWithTxsRequest): GetBlockWithTxsRequestAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1297,7 +1297,7 @@ export const GetBlockWithTxsResponse = { if (message.txs) { obj.txs = message.txs.map(e => e ? Tx.toAmino(e) : undefined); } else { - obj.txs = []; + obj.txs = message.txs; } obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; obj.block = message.block ? Block.toAmino(message.block) : undefined; diff --git a/packages/proto/src/codegen/cosmos/tx/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/tx/v1beta1/tx.ts index 1d704ab2..7f6f845e 100644 --- a/packages/proto/src/codegen/cosmos/tx/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/tx/v1beta1/tx.ts @@ -1,5 +1,5 @@ import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any"; -import { SignMode, signModeFromJSON } from "../signing/v1beta1/signing"; +import { SignMode } from "../signing/v1beta1/signing"; import { CompactBitArray, CompactBitArrayAmino, CompactBitArraySDKType } from "../../crypto/multisig/v1beta1/multisig"; import { Coin, CoinAmino, CoinSDKType } from "../../base/v1beta1/coin"; import { BinaryReader, BinaryWriter } from "../../../binary"; @@ -826,7 +826,7 @@ export const Tx = { if (message.signatures) { obj.signatures = message.signatures.map(e => base64FromBytes(e)); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, @@ -921,7 +921,7 @@ export const TxRaw = { if (message.signatures) { obj.signatures = message.signatures.map(e => base64FromBytes(e)); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, @@ -1026,8 +1026,8 @@ export const SignDoc = { const obj: any = {}; obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; obj.auth_info_bytes = message.authInfoBytes ? base64FromBytes(message.authInfoBytes) : undefined; - obj.chain_id = message.chainId; - obj.account_number = message.accountNumber ? message.accountNumber.toString() : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; return obj; }, fromAminoMsg(object: SignDocAminoMsg): SignDoc { @@ -1153,9 +1153,9 @@ export const SignDocDirectAux = { const obj: any = {}; obj.body_bytes = message.bodyBytes ? base64FromBytes(message.bodyBytes) : undefined; obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.chain_id = message.chainId; - obj.account_number = message.accountNumber ? message.accountNumber.toString() : undefined; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.account_number = message.accountNumber !== BigInt(0) ? message.accountNumber.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; return obj; }, @@ -1266,19 +1266,19 @@ export const TxBody = { if (message.messages) { obj.messages = message.messages.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.messages = []; + obj.messages = message.messages; } - obj.memo = message.memo; - obj.timeout_height = message.timeoutHeight ? message.timeoutHeight.toString() : undefined; + obj.memo = message.memo === "" ? undefined : message.memo; + obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; if (message.extensionOptions) { obj.extension_options = message.extensionOptions.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.extension_options = []; + obj.extension_options = message.extensionOptions; } if (message.nonCriticalExtensionOptions) { obj.non_critical_extension_options = message.nonCriticalExtensionOptions.map(e => e ? Any.toAmino(e) : undefined); } else { - obj.non_critical_extension_options = []; + obj.non_critical_extension_options = message.nonCriticalExtensionOptions; } return obj; }, @@ -1371,7 +1371,7 @@ export const AuthInfo = { if (message.signerInfos) { obj.signer_infos = message.signerInfos.map(e => e ? SignerInfo.toAmino(e) : undefined); } else { - obj.signer_infos = []; + obj.signer_infos = message.signerInfos; } obj.fee = message.fee ? Fee.toAmino(message.fee) : undefined; obj.tip = message.tip ? Tip.toAmino(message.tip) : undefined; @@ -1467,7 +1467,7 @@ export const SignerInfo = { const obj: any = {}; obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; obj.mode_info = message.modeInfo ? ModeInfo.toAmino(message.modeInfo) : undefined; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: SignerInfoAminoMsg): SignerInfo { @@ -1611,13 +1611,13 @@ export const ModeInfo_Single = { fromAmino(object: ModeInfo_SingleAmino): ModeInfo_Single { const message = createBaseModeInfo_Single(); if (object.mode !== undefined && object.mode !== null) { - message.mode = signModeFromJSON(object.mode); + message.mode = object.mode; } return message; }, toAmino(message: ModeInfo_Single): ModeInfo_SingleAmino { const obj: any = {}; - obj.mode = message.mode; + obj.mode = message.mode === 0 ? undefined : message.mode; return obj; }, fromAminoMsg(object: ModeInfo_SingleAminoMsg): ModeInfo_Single { @@ -1699,7 +1699,7 @@ export const ModeInfo_Multi = { if (message.modeInfos) { obj.mode_infos = message.modeInfos.map(e => e ? ModeInfo.toAmino(e) : undefined); } else { - obj.mode_infos = []; + obj.mode_infos = message.modeInfos; } return obj; }, @@ -1803,11 +1803,11 @@ export const Fee = { if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } - obj.gas_limit = message.gasLimit ? message.gasLimit.toString() : undefined; - obj.payer = message.payer; - obj.granter = message.granter; + obj.gas_limit = message.gasLimit !== BigInt(0) ? message.gasLimit.toString() : undefined; + obj.payer = message.payer === "" ? undefined : message.payer; + obj.granter = message.granter === "" ? undefined : message.granter; return obj; }, fromAminoMsg(object: FeeAminoMsg): Fee { @@ -1888,9 +1888,9 @@ export const Tip = { if (message.amount) { obj.amount = message.amount.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amount = []; + obj.amount = message.amount; } - obj.tipper = message.tipper; + obj.tipper = message.tipper === "" ? undefined : message.tipper; return obj; }, fromAminoMsg(object: TipAminoMsg): Tip { @@ -1983,7 +1983,7 @@ export const AuxSignerData = { message.signDoc = SignDocDirectAux.fromAmino(object.sign_doc); } if (object.mode !== undefined && object.mode !== null) { - message.mode = signModeFromJSON(object.mode); + message.mode = object.mode; } if (object.sig !== undefined && object.sig !== null) { message.sig = bytesFromBase64(object.sig); @@ -1992,9 +1992,9 @@ export const AuxSignerData = { }, toAmino(message: AuxSignerData): AuxSignerDataAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.sign_doc = message.signDoc ? SignDocDirectAux.toAmino(message.signDoc) : undefined; - obj.mode = message.mode; + obj.mode = message.mode === 0 ? undefined : message.mode; obj.sig = message.sig ? base64FromBytes(message.sig) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.ts index 0632c829..f6e4f04b 100644 --- a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.ts +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/query.ts @@ -500,7 +500,7 @@ export const QueryAppliedPlanRequest = { }, toAmino(message: QueryAppliedPlanRequest): QueryAppliedPlanRequestAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; return obj; }, fromAminoMsg(object: QueryAppliedPlanRequestAminoMsg): QueryAppliedPlanRequest { @@ -569,7 +569,7 @@ export const QueryAppliedPlanResponse = { }, toAmino(message: QueryAppliedPlanResponse): QueryAppliedPlanResponseAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; return obj; }, fromAminoMsg(object: QueryAppliedPlanResponseAminoMsg): QueryAppliedPlanResponse { @@ -638,7 +638,7 @@ export const QueryUpgradedConsensusStateRequest = { }, toAmino(message: QueryUpgradedConsensusStateRequest): QueryUpgradedConsensusStateRequestAmino { const obj: any = {}; - obj.last_height = message.lastHeight ? message.lastHeight.toString() : undefined; + obj.last_height = message.lastHeight !== BigInt(0) ? message.lastHeight.toString() : undefined; return obj; }, fromAminoMsg(object: QueryUpgradedConsensusStateRequestAminoMsg): QueryUpgradedConsensusStateRequest { @@ -776,7 +776,7 @@ export const QueryModuleVersionsRequest = { }, toAmino(message: QueryModuleVersionsRequest): QueryModuleVersionsRequestAmino { const obj: any = {}; - obj.module_name = message.moduleName; + obj.module_name = message.moduleName === "" ? undefined : message.moduleName; return obj; }, fromAminoMsg(object: QueryModuleVersionsRequestAminoMsg): QueryModuleVersionsRequest { @@ -846,7 +846,7 @@ export const QueryModuleVersionsResponse = { if (message.moduleVersions) { obj.module_versions = message.moduleVersions.map(e => e ? ModuleVersion.toAmino(e) : undefined); } else { - obj.module_versions = []; + obj.module_versions = message.moduleVersions; } return obj; }, @@ -972,7 +972,7 @@ export const QueryAuthorityResponse = { }, toAmino(message: QueryAuthorityResponse): QueryAuthorityResponseAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; return obj; }, fromAminoMsg(object: QueryAuthorityResponseAminoMsg): QueryAuthorityResponse { diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.ts index 084b6e60..66f56176 100644 --- a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.ts +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/tx.ts @@ -180,7 +180,7 @@ export const MsgSoftwareUpgrade = { }, toAmino(message: MsgSoftwareUpgrade): MsgSoftwareUpgradeAmino { const obj: any = {}; - obj.authority = message.authority; + obj.authority = message.authority === "" ? undefined : message.authority; obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; return obj; }, @@ -306,7 +306,7 @@ export const MsgCancelUpgrade = { }, toAmino(message: MsgCancelUpgrade): MsgCancelUpgradeAmino { const obj: any = {}; - obj.authority = message.authority; + obj.authority = message.authority === "" ? undefined : message.authority; return obj; }, fromAminoMsg(object: MsgCancelUpgradeAminoMsg): MsgCancelUpgrade { diff --git a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts index 82ad3199..1570fd5e 100644 --- a/packages/proto/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +++ b/packages/proto/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts @@ -310,10 +310,10 @@ export const Plan = { }, toAmino(message: Plan): PlanAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.height = message.height ? message.height.toString() : undefined; - obj.info = message.info; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.info = message.info === "" ? undefined : message.info; obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; return obj; }, @@ -406,8 +406,8 @@ export const SoftwareUpgradeProposal = { }, toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; return obj; }, @@ -489,8 +489,8 @@ export const CancelSoftwareUpgradeProposal = { }, toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; return obj; }, fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal { @@ -570,8 +570,8 @@ export const ModuleVersion = { }, toAmino(message: ModuleVersion): ModuleVersionAmino { const obj: any = {}; - obj.name = message.name; - obj.version = message.version ? message.version.toString() : undefined; + obj.name = message.name === "" ? undefined : message.name; + obj.version = message.version !== BigInt(0) ? message.version.toString() : undefined; return obj; }, fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion { diff --git a/packages/proto/src/codegen/cosmos_proto/cosmos.ts b/packages/proto/src/codegen/cosmos_proto/cosmos.ts index ced03ffa..54d6226f 100644 --- a/packages/proto/src/codegen/cosmos_proto/cosmos.ts +++ b/packages/proto/src/codegen/cosmos_proto/cosmos.ts @@ -228,8 +228,8 @@ export const InterfaceDescriptor = { }, toAmino(message: InterfaceDescriptor): InterfaceDescriptorAmino { const obj: any = {}; - obj.name = message.name; - obj.description = message.description; + obj.name = message.name === '' ? undefined : message.name; + obj.description = message.description === '' ? undefined : message.description; return obj; }, fromAminoMsg(object: InterfaceDescriptorAminoMsg): InterfaceDescriptor { @@ -316,17 +316,17 @@ export const ScalarDescriptor = { if (object.description !== undefined && object.description !== null) { message.description = object.description; } - message.fieldType = object.field_type?.map((e) => scalarTypeFromJSON(e)) || []; + message.fieldType = object.field_type?.map((e) => e) || []; return message; }, toAmino(message: ScalarDescriptor): ScalarDescriptorAmino { const obj: any = {}; - obj.name = message.name; - obj.description = message.description; + obj.name = message.name === '' ? undefined : message.name; + obj.description = message.description === '' ? undefined : message.description; if (message.fieldType) { obj.field_type = message.fieldType.map((e) => e); } else { - obj.field_type = []; + obj.field_type = message.fieldType; } return obj; }, diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/authz.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/authz.ts index 98208f59..865e2cfe 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/authz.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/authz.ts @@ -391,7 +391,7 @@ export const ContractExecutionAuthorization = { if (message.grants) { obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined); } else { - obj.grants = []; + obj.grants = message.grants; } return obj; }, @@ -463,7 +463,7 @@ export const ContractMigrationAuthorization = { if (message.grants) { obj.grants = message.grants.map(e => e ? ContractGrant.toAmino(e) : undefined); } else { - obj.grants = []; + obj.grants = message.grants; } return obj; }, @@ -555,7 +555,7 @@ export const ContractGrant = { }, toAmino(message: ContractGrant): ContractGrantAmino { const obj: any = {}; - obj.contract = message.contract; + obj.contract = message.contract === "" ? undefined : message.contract; obj.limit = message.limit ? ContractAuthzLimitX_ToAmino((message.limit as Any)) : undefined; obj.filter = message.filter ? ContractAuthzFilterX_ToAmino((message.filter as Any)) : undefined; return obj; @@ -627,7 +627,7 @@ export const MaxCallsLimit = { }, toAmino(message: MaxCallsLimit): MaxCallsLimitAmino { const obj: any = {}; - obj.remaining = message.remaining ? message.remaining.toString() : undefined; + obj.remaining = message.remaining !== BigInt(0) ? message.remaining.toString() : undefined; return obj; }, fromAminoMsg(object: MaxCallsLimitAminoMsg): MaxCallsLimit { @@ -698,7 +698,7 @@ export const MaxFundsLimit = { if (message.amounts) { obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amounts = []; + obj.amounts = message.amounts; } return obj; }, @@ -778,11 +778,11 @@ export const CombinedLimit = { }, toAmino(message: CombinedLimit): CombinedLimitAmino { const obj: any = {}; - obj.calls_remaining = message.callsRemaining ? message.callsRemaining.toString() : undefined; + obj.calls_remaining = message.callsRemaining !== BigInt(0) ? message.callsRemaining.toString() : undefined; if (message.amounts) { obj.amounts = message.amounts.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.amounts = []; + obj.amounts = message.amounts; } return obj; }, @@ -912,7 +912,7 @@ export const AcceptedMessageKeysFilter = { if (message.keys) { obj.keys = message.keys.map(e => e); } else { - obj.keys = []; + obj.keys = message.keys; } return obj; }, @@ -984,7 +984,7 @@ export const AcceptedMessagesFilter = { if (message.messages) { obj.messages = message.messages.map(e => JSON.parse(fromUtf8(e))); } else { - obj.messages = []; + obj.messages = message.messages; } return obj; }, @@ -1024,7 +1024,7 @@ export const ContractAuthzLimitX_InterfaceDecoder = (input: BinaryReader | Uint8 return data; } }; -export const ContractAuthzLimitX_FromAmino = (content: AnyAmino) => { +export const ContractAuthzLimitX_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "wasm/MaxCallsLimit": return Any.fromPartial({ @@ -1080,7 +1080,7 @@ export const ContractAuthzFilterX_InterfaceDecoder = (input: BinaryReader | Uint return data; } }; -export const ContractAuthzFilterX_FromAmino = (content: AnyAmino) => { +export const ContractAuthzFilterX_FromAmino = (content: AnyAmino): Any => { switch (content.type) { case "wasm/AllowAllMessagesFilter": return Any.fromPartial({ diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/genesis.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/genesis.ts index 2c818c78..019afe1b 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/genesis.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/genesis.ts @@ -188,17 +188,17 @@ export const GenesisState = { if (message.codes) { obj.codes = message.codes.map(e => e ? Code.toAmino(e) : undefined); } else { - obj.codes = []; + obj.codes = message.codes; } if (message.contracts) { obj.contracts = message.contracts.map(e => e ? Contract.toAmino(e) : undefined); } else { - obj.contracts = []; + obj.contracts = message.contracts; } if (message.sequences) { obj.sequences = message.sequences.map(e => e ? Sequence.toAmino(e) : undefined); } else { - obj.sequences = []; + obj.sequences = message.sequences; } return obj; }, @@ -301,10 +301,10 @@ export const Code = { }, toAmino(message: Code): CodeAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.code_info = message.codeInfo ? CodeInfo.toAmino(message.codeInfo) : undefined; obj.code_bytes = message.codeBytes ? base64FromBytes(message.codeBytes) : undefined; - obj.pinned = message.pinned; + obj.pinned = message.pinned === false ? undefined : message.pinned; return obj; }, fromAminoMsg(object: CodeAminoMsg): Code { @@ -402,17 +402,17 @@ export const Contract = { }, toAmino(message: Contract): ContractAmino { const obj: any = {}; - obj.contract_address = message.contractAddress; + obj.contract_address = message.contractAddress === "" ? undefined : message.contractAddress; obj.contract_info = message.contractInfo ? ContractInfo.toAmino(message.contractInfo) : undefined; if (message.contractState) { obj.contract_state = message.contractState.map(e => e ? Model.toAmino(e) : undefined); } else { - obj.contract_state = []; + obj.contract_state = message.contractState; } if (message.contractCodeHistory) { obj.contract_code_history = message.contractCodeHistory.map(e => e ? ContractCodeHistoryEntry.toAmino(e) : undefined); } else { - obj.contract_code_history = []; + obj.contract_code_history = message.contractCodeHistory; } return obj; }, @@ -494,7 +494,7 @@ export const Sequence = { toAmino(message: Sequence): SequenceAmino { const obj: any = {}; obj.id_key = message.idKey ? base64FromBytes(message.idKey) : undefined; - obj.value = message.value ? message.value.toString() : undefined; + obj.value = message.value !== BigInt(0) ? message.value.toString() : undefined; return obj; }, fromAminoMsg(object: SequenceAminoMsg): Sequence { diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/ibc.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/ibc.ts index e5f890b9..1c050bfb 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/ibc.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/ibc.ts @@ -152,9 +152,9 @@ export const MsgIBCSend = { }, toAmino(message: MsgIBCSend): MsgIBCSendAmino { const obj: any = {}; - obj.channel = message.channel; - obj.timeout_height = message.timeoutHeight ? message.timeoutHeight.toString() : undefined; - obj.timeout_timestamp = message.timeoutTimestamp ? message.timeoutTimestamp.toString() : undefined; + obj.channel = message.channel === "" ? undefined : message.channel; + obj.timeout_height = message.timeoutHeight !== BigInt(0) ? message.timeoutHeight.toString() : undefined; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -224,7 +224,7 @@ export const MsgIBCCloseChannel = { }, toAmino(message: MsgIBCCloseChannel): MsgIBCCloseChannelAmino { const obj: any = {}; - obj.channel = message.channel; + obj.channel = message.channel === "" ? undefined : message.channel; return obj; }, fromAminoMsg(object: MsgIBCCloseChannelAminoMsg): MsgIBCCloseChannel { diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/proposal.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/proposal.ts index 351f7db9..12f5128f 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/proposal.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/proposal.ts @@ -863,14 +863,14 @@ export const StoreCodeProposal = { }, toAmino(message: StoreCodeProposal): StoreCodeProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.run_as = message.runAs; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.run_as = message.runAs === "" ? undefined : message.runAs; obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined; obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined; - obj.unpin_code = message.unpinCode; - obj.source = message.source; - obj.builder = message.builder; + obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode; + obj.source = message.source === "" ? undefined : message.source; + obj.builder = message.builder === "" ? undefined : message.builder; obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined; return obj; }, @@ -1016,17 +1016,17 @@ export const InstantiateContractProposal = { }, toAmino(message: InstantiateContractProposal): InstantiateContractProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.run_as = message.runAs; - obj.admin = message.admin; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.label = message.label; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.run_as = message.runAs === "" ? undefined : message.runAs; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.label = message.label === "" ? undefined : message.label; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } return obj; }, @@ -1194,20 +1194,20 @@ export const InstantiateContract2Proposal = { }, toAmino(message: InstantiateContract2Proposal): InstantiateContract2ProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.run_as = message.runAs; - obj.admin = message.admin; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.label = message.label; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.run_as = message.runAs === "" ? undefined : message.runAs; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.label = message.label === "" ? undefined : message.label; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } obj.salt = message.salt ? base64FromBytes(message.salt) : undefined; - obj.fix_msg = message.fixMsg; + obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg; return obj; }, fromAminoMsg(object: InstantiateContract2ProposalAminoMsg): InstantiateContract2Proposal { @@ -1321,10 +1321,10 @@ export const MigrateContractProposal = { }, toAmino(message: MigrateContractProposal): MigrateContractProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.contract = message.contract; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; return obj; }, @@ -1428,9 +1428,9 @@ export const SudoContractProposal = { }, toAmino(message: SudoContractProposal): SudoContractProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.contract = message.contract; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.contract = message.contract === "" ? undefined : message.contract; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; return obj; }, @@ -1554,15 +1554,15 @@ export const ExecuteContractProposal = { }, toAmino(message: ExecuteContractProposal): ExecuteContractProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.run_as = message.runAs; - obj.contract = message.contract; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.run_as = message.runAs === "" ? undefined : message.runAs; + obj.contract = message.contract === "" ? undefined : message.contract; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } return obj; }, @@ -1666,10 +1666,10 @@ export const UpdateAdminProposal = { }, toAmino(message: UpdateAdminProposal): UpdateAdminProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.new_admin = message.newAdmin; - obj.contract = message.contract; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + obj.contract = message.contract === "" ? undefined : message.contract; return obj; }, fromAminoMsg(object: UpdateAdminProposalAminoMsg): UpdateAdminProposal { @@ -1761,9 +1761,9 @@ export const ClearAdminProposal = { }, toAmino(message: ClearAdminProposal): ClearAdminProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.contract = message.contract; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.contract = message.contract === "" ? undefined : message.contract; return obj; }, fromAminoMsg(object: ClearAdminProposalAminoMsg): ClearAdminProposal { @@ -1862,12 +1862,12 @@ export const PinCodesProposal = { }, toAmino(message: PinCodesProposal): PinCodesProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; if (message.codeIds) { obj.code_ids = message.codeIds.map(e => e.toString()); } else { - obj.code_ids = []; + obj.code_ids = message.codeIds; } return obj; }, @@ -1967,12 +1967,12 @@ export const UnpinCodesProposal = { }, toAmino(message: UnpinCodesProposal): UnpinCodesProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; if (message.codeIds) { obj.code_ids = message.codeIds.map(e => e.toString()); } else { - obj.code_ids = []; + obj.code_ids = message.codeIds; } return obj; }, @@ -2053,7 +2053,7 @@ export const AccessConfigUpdate = { }, toAmino(message: AccessConfigUpdate): AccessConfigUpdateAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined; return obj; }, @@ -2144,12 +2144,12 @@ export const UpdateInstantiateConfigProposal = { }, toAmino(message: UpdateInstantiateConfigProposal): UpdateInstantiateConfigProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; if (message.accessConfigUpdates) { obj.access_config_updates = message.accessConfigUpdates.map(e => e ? AccessConfigUpdate.toAmino(e) : undefined); } else { - obj.access_config_updates = []; + obj.access_config_updates = message.accessConfigUpdates; } return obj; }, @@ -2350,22 +2350,22 @@ export const StoreAndInstantiateContractProposal = { }, toAmino(message: StoreAndInstantiateContractProposal): StoreAndInstantiateContractProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.run_as = message.runAs; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.run_as = message.runAs === "" ? undefined : message.runAs; obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined; obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined; - obj.unpin_code = message.unpinCode; - obj.admin = message.admin; - obj.label = message.label; + obj.unpin_code = message.unpinCode === false ? undefined : message.unpinCode; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.label = message.label === "" ? undefined : message.label; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } - obj.source = message.source; - obj.builder = message.builder; + obj.source = message.source === "" ? undefined : message.source; + obj.builder = message.builder === "" ? undefined : message.builder; obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/query.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/query.ts index 508321fa..bae520b5 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/query.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/query.ts @@ -451,7 +451,7 @@ export interface CodeInfoResponseProtoMsg { } /** CodeInfoResponse contains code meta data from CodeInfo */ export interface CodeInfoResponseAmino { - code_id?: string; + code_id: string; creator?: string; data_hash?: string; instantiate_permission?: AccessConfigAmino | undefined; @@ -479,7 +479,7 @@ export interface QueryCodeResponseProtoMsg { /** QueryCodeResponse is the response type for the Query/Code RPC method */ export interface QueryCodeResponseAmino { code_info?: CodeInfoResponseAmino | undefined; - data?: string; + data: string; } export interface QueryCodeResponseAminoMsg { type: "wasm/QueryCodeResponse"; @@ -754,7 +754,7 @@ export const QueryContractInfoRequest = { }, toAmino(message: QueryContractInfoRequest): QueryContractInfoRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; return obj; }, fromAminoMsg(object: QueryContractInfoRequestAminoMsg): QueryContractInfoRequest { @@ -834,7 +834,7 @@ export const QueryContractInfoResponse = { }, toAmino(message: QueryContractInfoResponse): QueryContractInfoResponseAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.contract_info = message.contractInfo ? ContractInfo.toAmino(message.contractInfo) : undefined; return obj; }, @@ -915,7 +915,7 @@ export const QueryContractHistoryRequest = { }, toAmino(message: QueryContractHistoryRequest): QueryContractHistoryRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -997,7 +997,7 @@ export const QueryContractHistoryResponse = { if (message.entries) { obj.entries = message.entries.map(e => e ? ContractCodeHistoryEntry.toAmino(e) : undefined); } else { - obj.entries = []; + obj.entries = message.entries; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1079,7 +1079,7 @@ export const QueryContractsByCodeRequest = { }, toAmino(message: QueryContractsByCodeRequest): QueryContractsByCodeRequestAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1161,7 +1161,7 @@ export const QueryContractsByCodeResponse = { if (message.contracts) { obj.contracts = message.contracts.map(e => e); } else { - obj.contracts = []; + obj.contracts = message.contracts; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1243,7 +1243,7 @@ export const QueryAllContractStateRequest = { }, toAmino(message: QueryAllContractStateRequest): QueryAllContractStateRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1325,7 +1325,7 @@ export const QueryAllContractStateResponse = { if (message.models) { obj.models = message.models.map(e => e ? Model.toAmino(e) : undefined); } else { - obj.models = []; + obj.models = message.models; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1407,7 +1407,7 @@ export const QueryRawContractStateRequest = { }, toAmino(message: QueryRawContractStateRequest): QueryRawContractStateRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.query_data = message.queryData ? base64FromBytes(message.queryData) : undefined; return obj; }, @@ -1557,7 +1557,7 @@ export const QuerySmartContractStateRequest = { }, toAmino(message: QuerySmartContractStateRequest): QuerySmartContractStateRequestAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.query_data = message.queryData ? JSON.parse(fromUtf8(message.queryData)) : undefined; return obj; }, @@ -1696,7 +1696,7 @@ export const QueryCodeRequest = { }, toAmino(message: QueryCodeRequest): QueryCodeRequestAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; return obj; }, fromAminoMsg(object: QueryCodeRequestAminoMsg): QueryCodeRequest { @@ -1798,8 +1798,8 @@ export const CodeInfoResponse = { }, toAmino(message: CodeInfoResponse): CodeInfoResponseAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.creator = message.creator; + obj.code_id = message.codeId ? message.codeId.toString() : "0"; + obj.creator = message.creator === "" ? undefined : message.creator; obj.data_hash = message.dataHash ? base64FromBytes(message.dataHash) : undefined; obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined; return obj; @@ -1882,7 +1882,7 @@ export const QueryCodeResponse = { toAmino(message: QueryCodeResponse): QueryCodeResponseAmino { const obj: any = {}; obj.code_info = message.codeInfo ? CodeInfoResponse.toAmino(message.codeInfo) : undefined; - obj.data = message.data ? base64FromBytes(message.data) : undefined; + obj.data = message.data ? base64FromBytes(message.data) : ""; return obj; }, fromAminoMsg(object: QueryCodeResponseAminoMsg): QueryCodeResponse { @@ -2032,7 +2032,7 @@ export const QueryCodesResponse = { if (message.codeInfos) { obj.code_infos = message.codeInfos.map(e => e ? CodeInfoResponse.toAmino(e) : undefined); } else { - obj.code_infos = []; + obj.code_infos = message.codeInfos; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -2193,7 +2193,7 @@ export const QueryPinnedCodesResponse = { if (message.codeIds) { obj.code_ids = message.codeIds.map(e => e.toString()); } else { - obj.code_ids = []; + obj.code_ids = message.codeIds; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -2400,7 +2400,7 @@ export const QueryContractsByCreatorRequest = { }, toAmino(message: QueryContractsByCreatorRequest): QueryContractsByCreatorRequestAmino { const obj: any = {}; - obj.creator_address = message.creatorAddress; + obj.creator_address = message.creatorAddress === "" ? undefined : message.creatorAddress; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -2482,7 +2482,7 @@ export const QueryContractsByCreatorResponse = { if (message.contractAddresses) { obj.contract_addresses = message.contractAddresses.map(e => e); } else { - obj.contract_addresses = []; + obj.contract_addresses = message.contractAddresses; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.ts index 3bdd12e4..31b8f120 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/tx.ts @@ -527,7 +527,7 @@ export const MsgStoreCode = { }, toAmino(message: MsgStoreCode): MsgStoreCodeAmino { const obj: any = {}; - obj.sender = message.sender; + obj.sender = message.sender === "" ? undefined : message.sender; obj.wasm_byte_code = message.wasmByteCode ? toBase64(message.wasmByteCode) : undefined; obj.instantiate_permission = message.instantiatePermission ? AccessConfig.toAmino(message.instantiatePermission) : undefined; return obj; @@ -609,7 +609,7 @@ export const MsgStoreCodeResponse = { }, toAmino(message: MsgStoreCodeResponse): MsgStoreCodeResponseAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.checksum = message.checksum ? base64FromBytes(message.checksum) : undefined; return obj; }, @@ -732,15 +732,15 @@ export const MsgInstantiateContract = { }, toAmino(message: MsgInstantiateContract): MsgInstantiateContractAmino { const obj: any = {}; - obj.sender = message.sender; - obj.admin = message.admin; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.label = message.label; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.label = message.label === "" ? undefined : message.label; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } return obj; }, @@ -885,18 +885,18 @@ export const MsgInstantiateContract2 = { }, toAmino(message: MsgInstantiateContract2): MsgInstantiateContract2Amino { const obj: any = {}; - obj.sender = message.sender; - obj.admin = message.admin; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.label = message.label; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.label = message.label === "" ? undefined : message.label; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } obj.salt = message.salt ? base64FromBytes(message.salt) : undefined; - obj.fix_msg = message.fixMsg; + obj.fix_msg = message.fixMsg === false ? undefined : message.fixMsg; return obj; }, fromAminoMsg(object: MsgInstantiateContract2AminoMsg): MsgInstantiateContract2 { @@ -976,7 +976,7 @@ export const MsgInstantiateContractResponse = { }, toAmino(message: MsgInstantiateContractResponse): MsgInstantiateContractResponseAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1057,7 +1057,7 @@ export const MsgInstantiateContract2Response = { }, toAmino(message: MsgInstantiateContract2Response): MsgInstantiateContract2ResponseAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1158,13 +1158,13 @@ export const MsgExecuteContract = { }, toAmino(message: MsgExecuteContract): MsgExecuteContractAmino { const obj: any = {}; - obj.sender = message.sender; - obj.contract = message.contract; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.contract = message.contract === "" ? undefined : message.contract; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; if (message.funds) { obj.funds = message.funds.map(e => e ? Coin.toAmino(e) : undefined); } else { - obj.funds = []; + obj.funds = message.funds; } return obj; }, @@ -1336,9 +1336,9 @@ export const MsgMigrateContract = { }, toAmino(message: MsgMigrateContract): MsgMigrateContractAmino { const obj: any = {}; - obj.sender = message.sender; - obj.contract = message.contract; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.contract = message.contract === "" ? undefined : message.contract; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; return obj; }, @@ -1499,9 +1499,9 @@ export const MsgUpdateAdmin = { }, toAmino(message: MsgUpdateAdmin): MsgUpdateAdminAmino { const obj: any = {}; - obj.sender = message.sender; - obj.new_admin = message.newAdmin; - obj.contract = message.contract; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.new_admin = message.newAdmin === "" ? undefined : message.newAdmin; + obj.contract = message.contract === "" ? undefined : message.contract; return obj; }, fromAminoMsg(object: MsgUpdateAdminAminoMsg): MsgUpdateAdmin { @@ -1637,8 +1637,8 @@ export const MsgClearAdmin = { }, toAmino(message: MsgClearAdmin): MsgClearAdminAmino { const obj: any = {}; - obj.sender = message.sender; - obj.contract = message.contract; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.contract = message.contract === "" ? undefined : message.contract; return obj; }, fromAminoMsg(object: MsgClearAdminAminoMsg): MsgClearAdmin { diff --git a/packages/proto/src/codegen/cosmwasm/wasm/v1/types.ts b/packages/proto/src/codegen/cosmwasm/wasm/v1/types.ts index 1d710493..2c1e8207 100644 --- a/packages/proto/src/codegen/cosmwasm/wasm/v1/types.ts +++ b/packages/proto/src/codegen/cosmwasm/wasm/v1/types.ts @@ -422,13 +422,13 @@ export const AccessTypeParam = { fromAmino(object: AccessTypeParamAmino): AccessTypeParam { const message = createBaseAccessTypeParam(); if (object.value !== undefined && object.value !== null) { - message.value = accessTypeFromJSON(object.value); + message.value = object.value; } return message; }, toAmino(message: AccessTypeParam): AccessTypeParamAmino { const obj: any = {}; - obj.value = message.value; + obj.value = message.value === 0 ? undefined : message.value; return obj; }, fromAminoMsg(object: AccessTypeParamAminoMsg): AccessTypeParam { @@ -507,7 +507,7 @@ export const AccessConfig = { fromAmino(object: AccessConfigAmino): AccessConfig { const message = createBaseAccessConfig(); if (object.permission !== undefined && object.permission !== null) { - message.permission = accessTypeFromJSON(object.permission); + message.permission = object.permission; } if (object.address !== undefined && object.address !== null) { message.address = object.address; @@ -517,12 +517,12 @@ export const AccessConfig = { }, toAmino(message: AccessConfig): AccessConfigAmino { const obj: any = {}; - obj.permission = message.permission; - obj.address = message.address; + obj.permission = message.permission === 0 ? undefined : message.permission; + obj.address = message.address === "" ? undefined : message.address; if (message.addresses) { obj.addresses = message.addresses.map(e => e); } else { - obj.addresses = []; + obj.addresses = message.addresses; } return obj; }, @@ -597,14 +597,14 @@ export const Params = { message.codeUploadAccess = AccessConfig.fromAmino(object.code_upload_access); } if (object.instantiate_default_permission !== undefined && object.instantiate_default_permission !== null) { - message.instantiateDefaultPermission = accessTypeFromJSON(object.instantiate_default_permission); + message.instantiateDefaultPermission = object.instantiate_default_permission; } return message; }, toAmino(message: Params): ParamsAmino { const obj: any = {}; obj.code_upload_access = message.codeUploadAccess ? AccessConfig.toAmino(message.codeUploadAccess) : undefined; - obj.instantiate_default_permission = message.instantiateDefaultPermission; + obj.instantiate_default_permission = message.instantiateDefaultPermission === 0 ? undefined : message.instantiateDefaultPermission; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { @@ -696,7 +696,7 @@ export const CodeInfo = { toAmino(message: CodeInfo): CodeInfoAmino { const obj: any = {}; obj.code_hash = message.codeHash ? base64FromBytes(message.codeHash) : undefined; - obj.creator = message.creator; + obj.creator = message.creator === "" ? undefined : message.creator; obj.instantiate_config = message.instantiateConfig ? AccessConfig.toAmino(message.instantiateConfig) : undefined; return obj; }, @@ -832,12 +832,12 @@ export const ContractInfo = { }, toAmino(message: ContractInfo): ContractInfoAmino { const obj: any = {}; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; - obj.creator = message.creator; - obj.admin = message.admin; - obj.label = message.label; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.creator = message.creator === "" ? undefined : message.creator; + obj.admin = message.admin === "" ? undefined : message.admin; + obj.label = message.label === "" ? undefined : message.label; obj.created = message.created ? AbsoluteTxPosition.toAmino(message.created) : undefined; - obj.ibc_port_id = message.ibcPortId; + obj.ibc_port_id = message.ibcPortId === "" ? undefined : message.ibcPortId; obj.extension = message.extension ? ContractInfoExtension_ToAmino((message.extension as Any)) : undefined; return obj; }, @@ -925,7 +925,7 @@ export const ContractCodeHistoryEntry = { fromAmino(object: ContractCodeHistoryEntryAmino): ContractCodeHistoryEntry { const message = createBaseContractCodeHistoryEntry(); if (object.operation !== undefined && object.operation !== null) { - message.operation = contractCodeHistoryOperationTypeFromJSON(object.operation); + message.operation = object.operation; } if (object.code_id !== undefined && object.code_id !== null) { message.codeId = BigInt(object.code_id); @@ -940,8 +940,8 @@ export const ContractCodeHistoryEntry = { }, toAmino(message: ContractCodeHistoryEntry): ContractCodeHistoryEntryAmino { const obj: any = {}; - obj.operation = message.operation; - obj.code_id = message.codeId ? message.codeId.toString() : undefined; + obj.operation = message.operation === 0 ? undefined : message.operation; + obj.code_id = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; obj.updated = message.updated ? AbsoluteTxPosition.toAmino(message.updated) : undefined; obj.msg = message.msg ? JSON.parse(fromUtf8(message.msg)) : undefined; return obj; @@ -1023,8 +1023,8 @@ export const AbsoluteTxPosition = { }, toAmino(message: AbsoluteTxPosition): AbsoluteTxPositionAmino { const obj: any = {}; - obj.block_height = message.blockHeight ? message.blockHeight.toString() : undefined; - obj.tx_index = message.txIndex ? message.txIndex.toString() : undefined; + obj.block_height = message.blockHeight !== BigInt(0) ? message.blockHeight.toString() : undefined; + obj.tx_index = message.txIndex !== BigInt(0) ? message.txIndex.toString() : undefined; return obj; }, fromAminoMsg(object: AbsoluteTxPositionAminoMsg): AbsoluteTxPosition { @@ -1138,7 +1138,7 @@ export const ContractInfoExtension_InterfaceDecoder = (input: BinaryReader | Uin return data; } }; -export const ContractInfoExtension_FromAmino = (content: AnyAmino) => { +export const ContractInfoExtension_FromAmino = (content: AnyAmino): Any => { return Any.fromAmino(content); }; export const ContractInfoExtension_ToAmino = (content: Any) => { diff --git a/packages/proto/src/codegen/dex/asset_list.ts b/packages/proto/src/codegen/dex/asset_list.ts index 901d1f68..a1460290 100644 --- a/packages/proto/src/codegen/dex/asset_list.ts +++ b/packages/proto/src/codegen/dex/asset_list.ts @@ -11,10 +11,10 @@ export interface AssetIBCInfoProtoMsg { value: Uint8Array; } export interface AssetIBCInfoAmino { - sourceChannel?: string; - dstChannel?: string; - sourceDenom?: string; - sourceChainID?: string; + sourceChannel: string; + dstChannel: string; + sourceDenom: string; + sourceChainID: string; } export interface AssetIBCInfoAminoMsg { type: '/seiprotocol.seichain.dex.AssetIBCInfo'; @@ -37,10 +37,10 @@ export interface AssetMetadataProtoMsg { value: Uint8Array; } export interface AssetMetadataAmino { - ibcInfo?: AssetIBCInfoAmino | undefined; + ibcInfo: AssetIBCInfoAmino | undefined; /** Ex: cw20, ics20, erc20 */ - type_asset?: string; - metadata?: MetadataAmino | undefined; + type_asset: string; + metadata: MetadataAmino | undefined; } export interface AssetMetadataAminoMsg { type: '/seiprotocol.seichain.dex.AssetMetadata'; @@ -128,10 +128,10 @@ export const AssetIBCInfo = { }, toAmino(message: AssetIBCInfo): AssetIBCInfoAmino { const obj: any = {}; - obj.sourceChannel = message.sourceChannel; - obj.dstChannel = message.dstChannel; - obj.sourceDenom = message.sourceDenom; - obj.sourceChainID = message.sourceChainID; + obj.sourceChannel = message.sourceChannel ?? ''; + obj.dstChannel = message.dstChannel ?? ''; + obj.sourceDenom = message.sourceDenom ?? ''; + obj.sourceChainID = message.sourceChainID ?? ''; return obj; }, fromAminoMsg(object: AssetIBCInfoAminoMsg): AssetIBCInfo { @@ -216,9 +216,9 @@ export const AssetMetadata = { }, toAmino(message: AssetMetadata): AssetMetadataAmino { const obj: any = {}; - obj.ibcInfo = message.ibcInfo ? AssetIBCInfo.toAmino(message.ibcInfo) : undefined; - obj.type_asset = message.typeAsset; - obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; + obj.ibcInfo = message.ibcInfo ? AssetIBCInfo.toAmino(message.ibcInfo) : AssetIBCInfo.toAmino(AssetIBCInfo.fromPartial({})); + obj.type_asset = message.typeAsset ?? ''; + obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : Metadata.toAmino(Metadata.fromPartial({})); return obj; }, fromAminoMsg(object: AssetMetadataAminoMsg): AssetMetadata { diff --git a/packages/proto/src/codegen/dex/contract.ts b/packages/proto/src/codegen/dex/contract.ts index 094d206b..4fc4e5cb 100644 --- a/packages/proto/src/codegen/dex/contract.ts +++ b/packages/proto/src/codegen/dex/contract.ts @@ -240,16 +240,16 @@ export const ContractInfo = { }, toAmino(message: ContractInfo): ContractInfoAmino { const obj: any = {}; - obj.codeId = message.codeId ? message.codeId.toString() : undefined; - obj.contractAddr = message.contractAddr; - obj.needHook = message.needHook; - obj.needOrderMatching = message.needOrderMatching; + obj.codeId = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.needHook = message.needHook === false ? undefined : message.needHook; + obj.needOrderMatching = message.needOrderMatching === false ? undefined : message.needOrderMatching; if (message.dependencies) { obj.dependencies = message.dependencies.map((e) => (e ? ContractDependencyInfo.toAmino(e) : undefined)); } else { - obj.dependencies = []; + obj.dependencies = message.dependencies; } - obj.numIncomingDependencies = message.numIncomingDependencies ? message.numIncomingDependencies.toString() : undefined; + obj.numIncomingDependencies = message.numIncomingDependencies !== BigInt(0) ? message.numIncomingDependencies.toString() : undefined; return obj; }, fromAminoMsg(object: ContractInfoAminoMsg): ContractInfo { @@ -410,20 +410,20 @@ export const ContractInfoV2 = { }, toAmino(message: ContractInfoV2): ContractInfoV2Amino { const obj: any = {}; - obj.codeId = message.codeId ? message.codeId.toString() : undefined; - obj.contractAddr = message.contractAddr; - obj.needHook = message.needHook; - obj.needOrderMatching = message.needOrderMatching; + obj.codeId = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.needHook = message.needHook === false ? undefined : message.needHook; + obj.needOrderMatching = message.needOrderMatching === false ? undefined : message.needOrderMatching; if (message.dependencies) { obj.dependencies = message.dependencies.map((e) => (e ? ContractDependencyInfo.toAmino(e) : undefined)); } else { - obj.dependencies = []; + obj.dependencies = message.dependencies; } - obj.numIncomingDependencies = message.numIncomingDependencies ? message.numIncomingDependencies.toString() : undefined; - obj.creator = message.creator; - obj.rentBalance = message.rentBalance ? message.rentBalance.toString() : undefined; - obj.suspended = message.suspended; - obj.suspensionReason = message.suspensionReason; + obj.numIncomingDependencies = message.numIncomingDependencies !== BigInt(0) ? message.numIncomingDependencies.toString() : undefined; + obj.creator = message.creator === '' ? undefined : message.creator; + obj.rentBalance = message.rentBalance !== BigInt(0) ? message.rentBalance.toString() : undefined; + obj.suspended = message.suspended === false ? undefined : message.suspended; + obj.suspensionReason = message.suspensionReason === '' ? undefined : message.suspensionReason; return obj; }, fromAminoMsg(object: ContractInfoV2AminoMsg): ContractInfoV2 { @@ -508,9 +508,9 @@ export const ContractDependencyInfo = { }, toAmino(message: ContractDependencyInfo): ContractDependencyInfoAmino { const obj: any = {}; - obj.dependency = message.dependency; - obj.immediateElderSibling = message.immediateElderSibling; - obj.immediateYoungerSibling = message.immediateYoungerSibling; + obj.dependency = message.dependency === '' ? undefined : message.dependency; + obj.immediateElderSibling = message.immediateElderSibling === '' ? undefined : message.immediateElderSibling; + obj.immediateYoungerSibling = message.immediateYoungerSibling === '' ? undefined : message.immediateYoungerSibling; return obj; }, fromAminoMsg(object: ContractDependencyInfoAminoMsg): ContractDependencyInfo { @@ -615,14 +615,14 @@ export const LegacyContractInfo = { }, toAmino(message: LegacyContractInfo): LegacyContractInfoAmino { const obj: any = {}; - obj.codeId = message.codeId ? message.codeId.toString() : undefined; - obj.contractAddr = message.contractAddr; - obj.needHook = message.needHook; - obj.needOrderMatching = message.needOrderMatching; + obj.codeId = message.codeId !== BigInt(0) ? message.codeId.toString() : undefined; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.needHook = message.needHook === false ? undefined : message.needHook; + obj.needOrderMatching = message.needOrderMatching === false ? undefined : message.needOrderMatching; if (message.dependentContractAddrs) { obj.dependentContractAddrs = message.dependentContractAddrs.map((e) => e); } else { - obj.dependentContractAddrs = []; + obj.dependentContractAddrs = message.dependentContractAddrs; } return obj; }, diff --git a/packages/proto/src/codegen/dex/deposit.ts b/packages/proto/src/codegen/dex/deposit.ts index 6bfafb57..c6198459 100644 --- a/packages/proto/src/codegen/dex/deposit.ts +++ b/packages/proto/src/codegen/dex/deposit.ts @@ -10,9 +10,9 @@ export interface DepositInfoEntryProtoMsg { value: Uint8Array; } export interface DepositInfoEntryAmino { - creator?: string; - denom?: string; - amount?: string; + creator: string; + denom: string; + amount: string; } export interface DepositInfoEntryAminoMsg { type: '/seiprotocol.seichain.dex.DepositInfoEntry'; @@ -89,9 +89,9 @@ export const DepositInfoEntry = { }, toAmino(message: DepositInfoEntry): DepositInfoEntryAmino { const obj: any = {}; - obj.creator = message.creator; - obj.denom = message.denom; - obj.amount = message.amount; + obj.creator = message.creator ?? ''; + obj.denom = message.denom ?? ''; + obj.amount = message.amount ?? ''; return obj; }, fromAminoMsg(object: DepositInfoEntryAminoMsg): DepositInfoEntry { diff --git a/packages/proto/src/codegen/dex/genesis.ts b/packages/proto/src/codegen/dex/genesis.ts index cc19e03c..9cfb5a27 100644 --- a/packages/proto/src/codegen/dex/genesis.ts +++ b/packages/proto/src/codegen/dex/genesis.ts @@ -155,9 +155,9 @@ export const GenesisState = { if (message.contractState) { obj.contractState = message.contractState.map((e) => (e ? ContractState.toAmino(e) : undefined)); } else { - obj.contractState = []; + obj.contractState = message.contractState; } - obj.lastEpoch = message.lastEpoch ? message.lastEpoch.toString() : undefined; + obj.lastEpoch = message.lastEpoch !== BigInt(0) ? message.lastEpoch.toString() : undefined; return obj; }, fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { @@ -280,29 +280,29 @@ export const ContractState = { if (message.longBookList) { obj.longBookList = message.longBookList.map((e) => (e ? LongBook.toAmino(e) : undefined)); } else { - obj.longBookList = []; + obj.longBookList = message.longBookList; } if (message.shortBookList) { obj.shortBookList = message.shortBookList.map((e) => (e ? ShortBook.toAmino(e) : undefined)); } else { - obj.shortBookList = []; + obj.shortBookList = message.shortBookList; } if (message.triggeredOrdersList) { obj.triggeredOrdersList = message.triggeredOrdersList.map((e) => (e ? Order.toAmino(e) : undefined)); } else { - obj.triggeredOrdersList = []; + obj.triggeredOrdersList = message.triggeredOrdersList; } if (message.pairList) { obj.pairList = message.pairList.map((e) => (e ? Pair.toAmino(e) : undefined)); } else { - obj.pairList = []; + obj.pairList = message.pairList; } if (message.priceList) { obj.priceList = message.priceList.map((e) => (e ? ContractPairPrices.toAmino(e) : undefined)); } else { - obj.priceList = []; + obj.priceList = message.priceList; } - obj.nextOrderId = message.nextOrderId ? message.nextOrderId.toString() : undefined; + obj.nextOrderId = message.nextOrderId !== BigInt(0) ? message.nextOrderId.toString() : undefined; return obj; }, fromAminoMsg(object: ContractStateAminoMsg): ContractState { @@ -378,7 +378,7 @@ export const ContractPairPrices = { if (message.prices) { obj.prices = message.prices.map((e) => (e ? Price.toAmino(e) : undefined)); } else { - obj.prices = []; + obj.prices = message.prices; } return obj; }, diff --git a/packages/proto/src/codegen/dex/gov.ts b/packages/proto/src/codegen/dex/gov.ts index 5ef87dfe..61eb6d6c 100644 --- a/packages/proto/src/codegen/dex/gov.ts +++ b/packages/proto/src/codegen/dex/gov.ts @@ -99,12 +99,12 @@ export const AddAssetMetadataProposal = { }, toAmino(message: AddAssetMetadataProposal): AddAssetMetadataProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === '' ? undefined : message.title; + obj.description = message.description === '' ? undefined : message.description; if (message.assetList) { obj.assetList = message.assetList.map((e) => (e ? AssetMetadata.toAmino(e) : undefined)); } else { - obj.assetList = []; + obj.assetList = message.assetList; } return obj; }, diff --git a/packages/proto/src/codegen/dex/long_book.ts b/packages/proto/src/codegen/dex/long_book.ts index d4a01e5f..ffbf0adb 100644 --- a/packages/proto/src/codegen/dex/long_book.ts +++ b/packages/proto/src/codegen/dex/long_book.ts @@ -10,8 +10,8 @@ export interface LongBookProtoMsg { value: Uint8Array; } export interface LongBookAmino { - price?: string; - entry?: OrderEntryAmino | undefined; + price: string; + entry: OrderEntryAmino | undefined; } export interface LongBookAminoMsg { type: '/seiprotocol.seichain.dex.LongBook'; @@ -76,8 +76,8 @@ export const LongBook = { }, toAmino(message: LongBook): LongBookAmino { const obj: any = {}; - obj.price = message.price; - obj.entry = message.entry ? OrderEntry.toAmino(message.entry) : undefined; + obj.price = message.price ?? ''; + obj.entry = message.entry ? OrderEntry.toAmino(message.entry) : OrderEntry.toAmino(OrderEntry.fromPartial({})); return obj; }, fromAminoMsg(object: LongBookAminoMsg): LongBook { diff --git a/packages/proto/src/codegen/dex/match_result.ts b/packages/proto/src/codegen/dex/match_result.ts index a1ad6b82..6df43cac 100644 --- a/packages/proto/src/codegen/dex/match_result.ts +++ b/packages/proto/src/codegen/dex/match_result.ts @@ -13,11 +13,11 @@ export interface MatchResultProtoMsg { value: Uint8Array; } export interface MatchResultAmino { - height?: string; - contractAddr?: string; - orders?: OrderAmino[]; - settlements?: SettlementEntryAmino[]; - cancellations?: CancellationAmino[]; + height: string; + contractAddr: string; + orders: OrderAmino[]; + settlements: SettlementEntryAmino[]; + cancellations: CancellationAmino[]; } export interface MatchResultAminoMsg { type: '/seiprotocol.seichain.dex.MatchResult'; @@ -112,22 +112,22 @@ export const MatchResult = { }, toAmino(message: MatchResult): MatchResultAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.contractAddr = message.contractAddr; + obj.height = message.height ? message.height.toString() : '0'; + obj.contractAddr = message.contractAddr ?? ''; if (message.orders) { obj.orders = message.orders.map((e) => (e ? Order.toAmino(e) : undefined)); } else { - obj.orders = []; + obj.orders = message.orders; } if (message.settlements) { obj.settlements = message.settlements.map((e) => (e ? SettlementEntry.toAmino(e) : undefined)); } else { - obj.settlements = []; + obj.settlements = message.settlements; } if (message.cancellations) { obj.cancellations = message.cancellations.map((e) => (e ? Cancellation.toAmino(e) : undefined)); } else { - obj.cancellations = []; + obj.cancellations = message.cancellations; } return obj; }, diff --git a/packages/proto/src/codegen/dex/order.ts b/packages/proto/src/codegen/dex/order.ts index a0f960d4..06af7bd8 100644 --- a/packages/proto/src/codegen/dex/order.ts +++ b/packages/proto/src/codegen/dex/order.ts @@ -1,13 +1,4 @@ -import { - OrderStatus, - OrderType, - PositionDirection, - CancellationInitiator, - orderStatusFromJSON, - orderTypeFromJSON, - positionDirectionFromJSON, - cancellationInitiatorFromJSON -} from './enums'; +import { OrderStatus, OrderType, PositionDirection, CancellationInitiator } from './enums'; import { BinaryReader, BinaryWriter } from '../binary'; import { Decimal } from '@cosmjs/math'; export interface Order { @@ -32,21 +23,21 @@ export interface OrderProtoMsg { value: Uint8Array; } export interface OrderAmino { - id?: string; - status?: OrderStatus; - account?: string; - contractAddr?: string; - price?: string; - quantity?: string; - priceDenom?: string; - assetDenom?: string; - orderType?: OrderType; - positionDirection?: PositionDirection; - data?: string; - statusDescription?: string; - nominal?: string; - triggerPrice?: string; - triggerStatus?: boolean; + id: string; + status: OrderStatus; + account: string; + contractAddr: string; + price: string; + quantity: string; + priceDenom: string; + assetDenom: string; + orderType: OrderType; + positionDirection: PositionDirection; + data: string; + statusDescription: string; + nominal: string; + triggerPrice: string; + triggerStatus: boolean; } export interface OrderAminoMsg { type: '/seiprotocol.seichain.dex.Order'; @@ -84,14 +75,14 @@ export interface CancellationProtoMsg { value: Uint8Array; } export interface CancellationAmino { - id?: string; - initiator?: CancellationInitiator; - creator?: string; - contractAddr?: string; - priceDenom?: string; - assetDenom?: string; - positionDirection?: PositionDirection; - price?: string; + id: string; + initiator: CancellationInitiator; + creator: string; + contractAddr: string; + priceDenom: string; + assetDenom: string; + positionDirection: PositionDirection; + price: string; } export interface CancellationAminoMsg { type: '/seiprotocol.seichain.dex.Cancellation'; @@ -115,7 +106,7 @@ export interface ActiveOrdersProtoMsg { value: Uint8Array; } export interface ActiveOrdersAmino { - ids?: string[]; + ids: string[]; } export interface ActiveOrdersAminoMsg { type: '/seiprotocol.seichain.dex.ActiveOrders'; @@ -277,7 +268,7 @@ export const Order = { message.id = BigInt(object.id); } if (object.status !== undefined && object.status !== null) { - message.status = orderStatusFromJSON(object.status); + message.status = object.status; } if (object.account !== undefined && object.account !== null) { message.account = object.account; @@ -298,10 +289,10 @@ export const Order = { message.assetDenom = object.assetDenom; } if (object.orderType !== undefined && object.orderType !== null) { - message.orderType = orderTypeFromJSON(object.orderType); + message.orderType = object.orderType; } if (object.positionDirection !== undefined && object.positionDirection !== null) { - message.positionDirection = positionDirectionFromJSON(object.positionDirection); + message.positionDirection = object.positionDirection; } if (object.data !== undefined && object.data !== null) { message.data = object.data; @@ -322,21 +313,21 @@ export const Order = { }, toAmino(message: Order): OrderAmino { const obj: any = {}; - obj.id = message.id ? message.id.toString() : undefined; - obj.status = message.status; - obj.account = message.account; - obj.contractAddr = message.contractAddr; - obj.price = message.price; - obj.quantity = message.quantity; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.orderType = message.orderType; - obj.positionDirection = message.positionDirection; - obj.data = message.data; - obj.statusDescription = message.statusDescription; - obj.nominal = message.nominal; - obj.triggerPrice = message.triggerPrice; - obj.triggerStatus = message.triggerStatus; + obj.id = message.id ? message.id.toString() : '0'; + obj.status = message.status ?? null; + obj.account = message.account ?? null; + obj.contractAddr = message.contractAddr ?? null; + obj.price = message.price ?? ''; + obj.quantity = message.quantity ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.orderType = message.orderType ?? 0; + obj.positionDirection = message.positionDirection ?? 0; + obj.data = message.data ?? ''; + obj.statusDescription = message.statusDescription ?? ''; + obj.nominal = message.nominal ?? ''; + obj.triggerPrice = message.triggerPrice ?? ''; + obj.triggerStatus = message.triggerStatus ?? false; return obj; }, fromAminoMsg(object: OrderAminoMsg): Order { @@ -452,7 +443,7 @@ export const Cancellation = { message.id = BigInt(object.id); } if (object.initiator !== undefined && object.initiator !== null) { - message.initiator = cancellationInitiatorFromJSON(object.initiator); + message.initiator = object.initiator; } if (object.creator !== undefined && object.creator !== null) { message.creator = object.creator; @@ -467,7 +458,7 @@ export const Cancellation = { message.assetDenom = object.assetDenom; } if (object.positionDirection !== undefined && object.positionDirection !== null) { - message.positionDirection = positionDirectionFromJSON(object.positionDirection); + message.positionDirection = object.positionDirection; } if (object.price !== undefined && object.price !== null) { message.price = object.price; @@ -476,14 +467,14 @@ export const Cancellation = { }, toAmino(message: Cancellation): CancellationAmino { const obj: any = {}; - obj.id = message.id ? message.id.toString() : undefined; - obj.initiator = message.initiator; - obj.creator = message.creator; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.positionDirection = message.positionDirection; - obj.price = message.price; + obj.id = message.id ? message.id.toString() : '0'; + obj.initiator = message.initiator ?? 0; + obj.creator = message.creator ?? null; + obj.contractAddr = message.contractAddr ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.positionDirection = message.positionDirection ?? 0; + obj.price = message.price ?? ''; return obj; }, fromAminoMsg(object: CancellationAminoMsg): Cancellation { @@ -556,7 +547,7 @@ export const ActiveOrders = { if (message.ids) { obj.ids = message.ids.map((e) => e.toString()); } else { - obj.ids = []; + obj.ids = message.ids; } return obj; }, diff --git a/packages/proto/src/codegen/dex/order_entry.ts b/packages/proto/src/codegen/dex/order_entry.ts index 9315f9a1..7544eb83 100644 --- a/packages/proto/src/codegen/dex/order_entry.ts +++ b/packages/proto/src/codegen/dex/order_entry.ts @@ -12,11 +12,11 @@ export interface OrderEntryProtoMsg { value: Uint8Array; } export interface OrderEntryAmino { - price?: string; - quantity?: string; - allocations?: AllocationAmino[]; - priceDenom?: string; - assetDenom?: string; + price: string; + quantity: string; + allocations: AllocationAmino[]; + priceDenom: string; + assetDenom: string; } export interface OrderEntryAminoMsg { type: '/seiprotocol.seichain.dex.OrderEntry'; @@ -39,9 +39,9 @@ export interface AllocationProtoMsg { value: Uint8Array; } export interface AllocationAmino { - orderId?: string; - quantity?: string; - account?: string; + orderId: string; + quantity: string; + account: string; } export interface AllocationAminoMsg { type: '/seiprotocol.seichain.dex.Allocation'; @@ -138,15 +138,15 @@ export const OrderEntry = { }, toAmino(message: OrderEntry): OrderEntryAmino { const obj: any = {}; - obj.price = message.price; - obj.quantity = message.quantity; + obj.price = message.price ?? ''; + obj.quantity = message.quantity ?? ''; if (message.allocations) { obj.allocations = message.allocations.map((e) => (e ? Allocation.toAmino(e) : undefined)); } else { - obj.allocations = []; + obj.allocations = message.allocations; } - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; return obj; }, fromAminoMsg(object: OrderEntryAminoMsg): OrderEntry { @@ -231,9 +231,9 @@ export const Allocation = { }, toAmino(message: Allocation): AllocationAmino { const obj: any = {}; - obj.orderId = message.orderId ? message.orderId.toString() : undefined; - obj.quantity = message.quantity; - obj.account = message.account; + obj.orderId = message.orderId ? message.orderId.toString() : '0'; + obj.quantity = message.quantity ?? ''; + obj.account = message.account ?? ''; return obj; }, fromAminoMsg(object: AllocationAminoMsg): Allocation { diff --git a/packages/proto/src/codegen/dex/pair.ts b/packages/proto/src/codegen/dex/pair.ts index 6073be40..ee11d89a 100644 --- a/packages/proto/src/codegen/dex/pair.ts +++ b/packages/proto/src/codegen/dex/pair.ts @@ -11,10 +11,10 @@ export interface PairProtoMsg { value: Uint8Array; } export interface PairAmino { - priceDenom?: string; - assetDenom?: string; - priceTicksize?: string; - quantityTicksize?: string; + priceDenom: string; + assetDenom: string; + priceTicksize: string; + quantityTicksize: string; } export interface PairAminoMsg { type: '/seiprotocol.seichain.dex.Pair'; @@ -35,8 +35,8 @@ export interface BatchContractPairProtoMsg { value: Uint8Array; } export interface BatchContractPairAmino { - contractAddr?: string; - pairs?: PairAmino[]; + contractAddr: string; + pairs: PairAmino[]; } export interface BatchContractPairAminoMsg { type: '/seiprotocol.seichain.dex.BatchContractPair'; @@ -123,10 +123,10 @@ export const Pair = { }, toAmino(message: Pair): PairAmino { const obj: any = {}; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.priceTicksize = message.priceTicksize; - obj.quantityTicksize = message.quantityTicksize; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.priceTicksize = message.priceTicksize ?? null; + obj.quantityTicksize = message.quantityTicksize ?? null; return obj; }, fromAminoMsg(object: PairAminoMsg): Pair { @@ -198,11 +198,11 @@ export const BatchContractPair = { }, toAmino(message: BatchContractPair): BatchContractPairAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; if (message.pairs) { obj.pairs = message.pairs.map((e) => (e ? Pair.toAmino(e) : undefined)); } else { - obj.pairs = []; + obj.pairs = message.pairs; } return obj; }, diff --git a/packages/proto/src/codegen/dex/params.ts b/packages/proto/src/codegen/dex/params.ts index 5393eb33..2ca26e84 100644 --- a/packages/proto/src/codegen/dex/params.ts +++ b/packages/proto/src/codegen/dex/params.ts @@ -23,20 +23,20 @@ export interface ParamsProtoMsg { } /** Params defines the parameters for the module. */ export interface ParamsAmino { - price_snapshot_retention?: string; - sudo_call_gas_price?: string; - begin_block_gas_limit?: string; - end_block_gas_limit?: string; - default_gas_per_order?: string; - default_gas_per_cancel?: string; - min_rent_deposit?: string; - gas_allowance_per_settlement?: string; - min_processable_rent?: string; - order_book_entries_per_load?: string; - contract_unsuspend_cost?: string; - max_order_per_price?: string; - max_pairs_per_contract?: string; - default_gas_per_order_data_byte?: string; + price_snapshot_retention: string; + sudo_call_gas_price: string; + begin_block_gas_limit: string; + end_block_gas_limit: string; + default_gas_per_order: string; + default_gas_per_cancel: string; + min_rent_deposit: string; + gas_allowance_per_settlement: string; + min_processable_rent: string; + order_book_entries_per_load: string; + contract_unsuspend_cost: string; + max_order_per_price: string; + max_pairs_per_contract: string; + default_gas_per_order_data_byte: string; } export interface ParamsAminoMsg { type: '/seiprotocol.seichain.dex.Params'; @@ -258,20 +258,20 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.price_snapshot_retention = message.priceSnapshotRetention ? message.priceSnapshotRetention.toString() : undefined; - obj.sudo_call_gas_price = message.sudoCallGasPrice; - obj.begin_block_gas_limit = message.beginBlockGasLimit ? message.beginBlockGasLimit.toString() : undefined; - obj.end_block_gas_limit = message.endBlockGasLimit ? message.endBlockGasLimit.toString() : undefined; - obj.default_gas_per_order = message.defaultGasPerOrder ? message.defaultGasPerOrder.toString() : undefined; - obj.default_gas_per_cancel = message.defaultGasPerCancel ? message.defaultGasPerCancel.toString() : undefined; - obj.min_rent_deposit = message.minRentDeposit ? message.minRentDeposit.toString() : undefined; - obj.gas_allowance_per_settlement = message.gasAllowancePerSettlement ? message.gasAllowancePerSettlement.toString() : undefined; - obj.min_processable_rent = message.minProcessableRent ? message.minProcessableRent.toString() : undefined; - obj.order_book_entries_per_load = message.orderBookEntriesPerLoad ? message.orderBookEntriesPerLoad.toString() : undefined; - obj.contract_unsuspend_cost = message.contractUnsuspendCost ? message.contractUnsuspendCost.toString() : undefined; - obj.max_order_per_price = message.maxOrderPerPrice ? message.maxOrderPerPrice.toString() : undefined; - obj.max_pairs_per_contract = message.maxPairsPerContract ? message.maxPairsPerContract.toString() : undefined; - obj.default_gas_per_order_data_byte = message.defaultGasPerOrderDataByte ? message.defaultGasPerOrderDataByte.toString() : undefined; + obj.price_snapshot_retention = message.priceSnapshotRetention ? message.priceSnapshotRetention.toString() : '0'; + obj.sudo_call_gas_price = message.sudoCallGasPrice ?? ''; + obj.begin_block_gas_limit = message.beginBlockGasLimit ? message.beginBlockGasLimit.toString() : '0'; + obj.end_block_gas_limit = message.endBlockGasLimit ? message.endBlockGasLimit.toString() : '0'; + obj.default_gas_per_order = message.defaultGasPerOrder ? message.defaultGasPerOrder.toString() : '0'; + obj.default_gas_per_cancel = message.defaultGasPerCancel ? message.defaultGasPerCancel.toString() : '0'; + obj.min_rent_deposit = message.minRentDeposit ? message.minRentDeposit.toString() : '0'; + obj.gas_allowance_per_settlement = message.gasAllowancePerSettlement ? message.gasAllowancePerSettlement.toString() : '0'; + obj.min_processable_rent = message.minProcessableRent ? message.minProcessableRent.toString() : '0'; + obj.order_book_entries_per_load = message.orderBookEntriesPerLoad ? message.orderBookEntriesPerLoad.toString() : '0'; + obj.contract_unsuspend_cost = message.contractUnsuspendCost ? message.contractUnsuspendCost.toString() : '0'; + obj.max_order_per_price = message.maxOrderPerPrice ? message.maxOrderPerPrice.toString() : '0'; + obj.max_pairs_per_contract = message.maxPairsPerContract ? message.maxPairsPerContract.toString() : '0'; + obj.default_gas_per_order_data_byte = message.defaultGasPerOrderDataByte ? message.defaultGasPerOrderDataByte.toString() : '0'; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { diff --git a/packages/proto/src/codegen/dex/price.ts b/packages/proto/src/codegen/dex/price.ts index 06b9f047..ee43faa7 100644 --- a/packages/proto/src/codegen/dex/price.ts +++ b/packages/proto/src/codegen/dex/price.ts @@ -11,9 +11,9 @@ export interface PriceProtoMsg { value: Uint8Array; } export interface PriceAmino { - snapshotTimestampInSeconds?: string; - price?: string; - pair?: PairAmino | undefined; + snapshotTimestampInSeconds: string; + price: string; + pair: PairAmino | undefined; } export interface PriceAminoMsg { type: '/seiprotocol.seichain.dex.Price'; @@ -38,13 +38,13 @@ export interface PriceCandlestickProtoMsg { value: Uint8Array; } export interface PriceCandlestickAmino { - beginTimestamp?: string; - endTimestamp?: string; - open?: string; - high?: string; - low?: string; - close?: string; - volume?: string; + beginTimestamp: string; + endTimestamp: string; + open: string; + high: string; + low: string; + close: string; + volume: string; } export interface PriceCandlestickAminoMsg { type: '/seiprotocol.seichain.dex.PriceCandlestick'; @@ -128,9 +128,9 @@ export const Price = { }, toAmino(message: Price): PriceAmino { const obj: any = {}; - obj.snapshotTimestampInSeconds = message.snapshotTimestampInSeconds ? message.snapshotTimestampInSeconds.toString() : undefined; - obj.price = message.price; - obj.pair = message.pair ? Pair.toAmino(message.pair) : undefined; + obj.snapshotTimestampInSeconds = message.snapshotTimestampInSeconds ? message.snapshotTimestampInSeconds.toString() : '0'; + obj.price = message.price ?? ''; + obj.pair = message.pair ? Pair.toAmino(message.pair) : Pair.toAmino(Pair.fromPartial({})); return obj; }, fromAminoMsg(object: PriceAminoMsg): Price { @@ -259,13 +259,13 @@ export const PriceCandlestick = { }, toAmino(message: PriceCandlestick): PriceCandlestickAmino { const obj: any = {}; - obj.beginTimestamp = message.beginTimestamp ? message.beginTimestamp.toString() : undefined; - obj.endTimestamp = message.endTimestamp ? message.endTimestamp.toString() : undefined; - obj.open = message.open; - obj.high = message.high; - obj.low = message.low; - obj.close = message.close; - obj.volume = message.volume; + obj.beginTimestamp = message.beginTimestamp ? message.beginTimestamp.toString() : '0'; + obj.endTimestamp = message.endTimestamp ? message.endTimestamp.toString() : '0'; + obj.open = message.open ?? ''; + obj.high = message.high ?? ''; + obj.low = message.low ?? ''; + obj.close = message.close ?? ''; + obj.volume = message.volume ?? ''; return obj; }, fromAminoMsg(object: PriceCandlestickAminoMsg): PriceCandlestick { diff --git a/packages/proto/src/codegen/dex/query.ts b/packages/proto/src/codegen/dex/query.ts index 5826a8b2..28eabed6 100644 --- a/packages/proto/src/codegen/dex/query.ts +++ b/packages/proto/src/codegen/dex/query.ts @@ -1,6 +1,6 @@ import { PageRequest, PageRequestAmino, PageRequestSDKType, PageResponse, PageResponseAmino, PageResponseSDKType } from '../cosmos/base/query/v1beta1/pagination'; import { Order, OrderAmino, OrderSDKType } from './order'; -import { PositionDirection, positionDirectionFromJSON } from './enums'; +import { PositionDirection } from './enums'; import { Params, ParamsAmino, ParamsSDKType } from './params'; import { LongBook, LongBookAmino, LongBookSDKType } from './long_book'; import { ShortBook, ShortBookAmino, ShortBookSDKType } from './short_book'; @@ -322,9 +322,9 @@ export interface QueryGetLatestPriceRequestProtoMsg { value: Uint8Array; } export interface QueryGetLatestPriceRequestAmino { - priceDenom?: string; - assetDenom?: string; - contractAddr?: string; + priceDenom: string; + assetDenom: string; + contractAddr: string; } export interface QueryGetLatestPriceRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetLatestPriceRequest'; @@ -361,8 +361,8 @@ export interface QueryGetTwapsRequestProtoMsg { value: Uint8Array; } export interface QueryGetTwapsRequestAmino { - contractAddr?: string; - lookbackSeconds?: string; + contractAddr: string; + lookbackSeconds: string; } export interface QueryGetTwapsRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetTwapsRequest'; @@ -380,7 +380,7 @@ export interface QueryGetTwapsResponseProtoMsg { value: Uint8Array; } export interface QueryGetTwapsResponseAmino { - twaps?: TwapAmino[]; + twaps: TwapAmino[]; } export interface QueryGetTwapsResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetTwapsResponse'; @@ -459,7 +459,7 @@ export interface QueryRegisteredPairsRequestProtoMsg { value: Uint8Array; } export interface QueryRegisteredPairsRequestAmino { - contractAddr?: string; + contractAddr: string; } export interface QueryRegisteredPairsRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryRegisteredPairsRequest'; @@ -493,7 +493,7 @@ export interface QueryRegisteredContractRequestProtoMsg { value: Uint8Array; } export interface QueryRegisteredContractRequestAmino { - contractAddr?: string; + contractAddr: string; } export interface QueryRegisteredContractRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryRegisteredContractRequest'; @@ -528,8 +528,8 @@ export interface QueryGetOrdersRequestProtoMsg { value: Uint8Array; } export interface QueryGetOrdersRequestAmino { - contractAddr?: string; - account?: string; + contractAddr: string; + account: string; } export interface QueryGetOrdersRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrdersRequest'; @@ -547,7 +547,7 @@ export interface QueryGetOrdersResponseProtoMsg { value: Uint8Array; } export interface QueryGetOrdersResponseAmino { - orders?: OrderAmino[]; + orders: OrderAmino[]; } export interface QueryGetOrdersResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrdersResponse'; @@ -567,10 +567,10 @@ export interface QueryGetOrderByIDRequestProtoMsg { value: Uint8Array; } export interface QueryGetOrderByIDRequestAmino { - contractAddr?: string; - priceDenom?: string; - assetDenom?: string; - id?: string; + contractAddr: string; + priceDenom: string; + assetDenom: string; + id: string; } export interface QueryGetOrderByIDRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrderByIDRequest'; @@ -590,7 +590,7 @@ export interface QueryGetOrderByIDResponseProtoMsg { value: Uint8Array; } export interface QueryGetOrderByIDResponseAmino { - order?: OrderAmino | undefined; + order: OrderAmino | undefined; } export interface QueryGetOrderByIDResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrderByIDResponse'; @@ -611,11 +611,11 @@ export interface QueryGetHistoricalPricesRequestProtoMsg { value: Uint8Array; } export interface QueryGetHistoricalPricesRequestAmino { - contractAddr?: string; - priceDenom?: string; - assetDenom?: string; - periodLengthInSeconds?: string; - numOfPeriods?: string; + contractAddr: string; + priceDenom: string; + assetDenom: string; + periodLengthInSeconds: string; + numOfPeriods: string; } export interface QueryGetHistoricalPricesRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetHistoricalPricesRequest'; @@ -636,7 +636,7 @@ export interface QueryGetHistoricalPricesResponseProtoMsg { value: Uint8Array; } export interface QueryGetHistoricalPricesResponseAmino { - prices?: PriceCandlestickAmino[]; + prices: PriceCandlestickAmino[]; } export interface QueryGetHistoricalPricesResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetHistoricalPricesResponse'; @@ -656,10 +656,10 @@ export interface QueryGetMarketSummaryRequestProtoMsg { value: Uint8Array; } export interface QueryGetMarketSummaryRequestAmino { - contractAddr?: string; - priceDenom?: string; - assetDenom?: string; - lookbackInSeconds?: string; + contractAddr: string; + priceDenom: string; + assetDenom: string; + lookbackInSeconds: string; } export interface QueryGetMarketSummaryRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetMarketSummaryRequest'; @@ -683,11 +683,11 @@ export interface QueryGetMarketSummaryResponseProtoMsg { value: Uint8Array; } export interface QueryGetMarketSummaryResponseAmino { - totalVolume?: string; - totalVolumeNotional?: string; - highPrice?: string; - lowPrice?: string; - lastPrice?: string; + totalVolume: string; + totalVolumeNotional: string; + highPrice: string; + lowPrice: string; + lastPrice: string; } export interface QueryGetMarketSummaryResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetMarketSummaryResponse'; @@ -709,8 +709,8 @@ export interface QueryOrderSimulationRequestProtoMsg { value: Uint8Array; } export interface QueryOrderSimulationRequestAmino { - order?: OrderAmino | undefined; - contractAddr?: string; + order: OrderAmino | undefined; + contractAddr: string; } export interface QueryOrderSimulationRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryOrderSimulationRequest'; @@ -728,7 +728,7 @@ export interface QueryOrderSimulationResponseProtoMsg { value: Uint8Array; } export interface QueryOrderSimulationResponseAmino { - ExecutedQuantity?: string; + ExecutedQuantity: string; } export interface QueryOrderSimulationResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryOrderSimulationResponse'; @@ -745,7 +745,7 @@ export interface QueryGetMatchResultRequestProtoMsg { value: Uint8Array; } export interface QueryGetMatchResultRequestAmino { - contractAddr?: string; + contractAddr: string; } export interface QueryGetMatchResultRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetMatchResultRequest'; @@ -762,7 +762,7 @@ export interface QueryGetMatchResultResponseProtoMsg { value: Uint8Array; } export interface QueryGetMatchResultResponseAmino { - result?: MatchResultAmino | undefined; + result: MatchResultAmino | undefined; } export interface QueryGetMatchResultResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetMatchResultResponse'; @@ -783,11 +783,11 @@ export interface QueryGetOrderCountRequestProtoMsg { value: Uint8Array; } export interface QueryGetOrderCountRequestAmino { - contractAddr?: string; - priceDenom?: string; - assetDenom?: string; - price?: string; - positionDirection?: PositionDirection; + contractAddr: string; + priceDenom: string; + assetDenom: string; + price: string; + positionDirection: PositionDirection; } export interface QueryGetOrderCountRequestAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrderCountRequest'; @@ -808,7 +808,7 @@ export interface QueryGetOrderCountResponseProtoMsg { value: Uint8Array; } export interface QueryGetOrderCountResponseAmino { - count?: string; + count: string; } export interface QueryGetOrderCountResponseAminoMsg { type: '/seiprotocol.seichain.dex.QueryGetOrderCountResponse'; @@ -1007,10 +1007,10 @@ export const QueryGetLongBookRequest = { }, toAmino(message: QueryGetLongBookRequest): QueryGetLongBookRequestAmino { const obj: any = {}; - obj.price = message.price; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; + obj.price = message.price === '' ? undefined : message.price; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; return obj; }, fromAminoMsg(object: QueryGetLongBookRequestAminoMsg): QueryGetLongBookRequest { @@ -1170,9 +1170,9 @@ export const QueryAllLongBookRequest = { toAmino(message: QueryAllLongBookRequest): QueryAllLongBookRequestAmino { const obj: any = {}; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; return obj; }, fromAminoMsg(object: QueryAllLongBookRequestAminoMsg): QueryAllLongBookRequest { @@ -1247,7 +1247,7 @@ export const QueryAllLongBookResponse = { if (message.LongBook) { obj.LongBook = message.LongBook.map((e) => (e ? LongBook.toAmino(e) : undefined)); } else { - obj.LongBook = []; + obj.LongBook = message.LongBook; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1345,10 +1345,10 @@ export const QueryGetShortBookRequest = { }, toAmino(message: QueryGetShortBookRequest): QueryGetShortBookRequestAmino { const obj: any = {}; - obj.price = message.price; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; + obj.price = message.price === '' ? undefined : message.price; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; return obj; }, fromAminoMsg(object: QueryGetShortBookRequestAminoMsg): QueryGetShortBookRequest { @@ -1508,9 +1508,9 @@ export const QueryAllShortBookRequest = { toAmino(message: QueryAllShortBookRequest): QueryAllShortBookRequestAmino { const obj: any = {}; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; return obj; }, fromAminoMsg(object: QueryAllShortBookRequestAminoMsg): QueryAllShortBookRequest { @@ -1585,7 +1585,7 @@ export const QueryAllShortBookResponse = { if (message.ShortBook) { obj.ShortBook = message.ShortBook.map((e) => (e ? ShortBook.toAmino(e) : undefined)); } else { - obj.ShortBook = []; + obj.ShortBook = message.ShortBook; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1672,9 +1672,9 @@ export const QueryGetPricesRequest = { }, toAmino(message: QueryGetPricesRequest): QueryGetPricesRequestAmino { const obj: any = {}; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.contractAddr = message.contractAddr; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; return obj; }, fromAminoMsg(object: QueryGetPricesRequestAminoMsg): QueryGetPricesRequest { @@ -1738,7 +1738,7 @@ export const QueryGetPricesResponse = { if (message.prices) { obj.prices = message.prices.map((e) => (e ? Price.toAmino(e) : undefined)); } else { - obj.prices = []; + obj.prices = message.prices; } return obj; }, @@ -1835,10 +1835,10 @@ export const QueryGetPriceRequest = { }, toAmino(message: QueryGetPriceRequest): QueryGetPriceRequestAmino { const obj: any = {}; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.contractAddr = message.contractAddr; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.priceDenom = message.priceDenom === '' ? undefined : message.priceDenom; + obj.assetDenom = message.assetDenom === '' ? undefined : message.assetDenom; + obj.contractAddr = message.contractAddr === '' ? undefined : message.contractAddr; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: QueryGetPriceRequestAminoMsg): QueryGetPriceRequest { @@ -1913,7 +1913,7 @@ export const QueryGetPriceResponse = { toAmino(message: QueryGetPriceResponse): QueryGetPriceResponseAmino { const obj: any = {}; obj.price = message.price ? Price.toAmino(message.price) : undefined; - obj.found = message.found; + obj.found = message.found === false ? undefined : message.found; return obj; }, fromAminoMsg(object: QueryGetPriceResponseAminoMsg): QueryGetPriceResponse { @@ -1998,9 +1998,9 @@ export const QueryGetLatestPriceRequest = { }, toAmino(message: QueryGetLatestPriceRequest): QueryGetLatestPriceRequestAmino { const obj: any = {}; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.contractAddr = message.contractAddr; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: QueryGetLatestPriceRequestAminoMsg): QueryGetLatestPriceRequest { @@ -2137,8 +2137,8 @@ export const QueryGetTwapsRequest = { }, toAmino(message: QueryGetTwapsRequest): QueryGetTwapsRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.lookbackSeconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : undefined; + obj.contractAddr = message.contractAddr ?? ''; + obj.lookbackSeconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : '0'; return obj; }, fromAminoMsg(object: QueryGetTwapsRequestAminoMsg): QueryGetTwapsRequest { @@ -2202,7 +2202,7 @@ export const QueryGetTwapsResponse = { if (message.twaps) { obj.twaps = message.twaps.map((e) => (e ? Twap.toAmino(e) : undefined)); } else { - obj.twaps = []; + obj.twaps = message.twaps; } return obj; }, @@ -2317,7 +2317,7 @@ export const QueryAssetListResponse = { if (message.assetList) { obj.assetList = message.assetList.map((e) => (e ? AssetMetadata.toAmino(e) : undefined)); } else { - obj.assetList = []; + obj.assetList = message.assetList; } return obj; }, @@ -2381,7 +2381,7 @@ export const QueryAssetMetadataRequest = { }, toAmino(message: QueryAssetMetadataRequest): QueryAssetMetadataRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryAssetMetadataRequestAminoMsg): QueryAssetMetadataRequest { @@ -2507,7 +2507,7 @@ export const QueryRegisteredPairsRequest = { }, toAmino(message: QueryRegisteredPairsRequest): QueryRegisteredPairsRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: QueryRegisteredPairsRequestAminoMsg): QueryRegisteredPairsRequest { @@ -2571,7 +2571,7 @@ export const QueryRegisteredPairsResponse = { if (message.pairs) { obj.pairs = message.pairs.map((e) => (e ? Pair.toAmino(e) : undefined)); } else { - obj.pairs = []; + obj.pairs = message.pairs; } return obj; }, @@ -2635,7 +2635,7 @@ export const QueryRegisteredContractRequest = { }, toAmino(message: QueryRegisteredContractRequest): QueryRegisteredContractRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: QueryRegisteredContractRequestAminoMsg): QueryRegisteredContractRequest { @@ -2772,8 +2772,8 @@ export const QueryGetOrdersRequest = { }, toAmino(message: QueryGetOrdersRequest): QueryGetOrdersRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.account = message.account; + obj.contractAddr = message.contractAddr ?? ''; + obj.account = message.account ?? ''; return obj; }, fromAminoMsg(object: QueryGetOrdersRequestAminoMsg): QueryGetOrdersRequest { @@ -2837,7 +2837,7 @@ export const QueryGetOrdersResponse = { if (message.orders) { obj.orders = message.orders.map((e) => (e ? Order.toAmino(e) : undefined)); } else { - obj.orders = []; + obj.orders = message.orders; } return obj; }, @@ -2934,10 +2934,10 @@ export const QueryGetOrderByIDRequest = { }, toAmino(message: QueryGetOrderByIDRequest): QueryGetOrderByIDRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.id = message.id ? message.id.toString() : undefined; + obj.contractAddr = message.contractAddr ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.id = message.id ? message.id.toString() : '0'; return obj; }, fromAminoMsg(object: QueryGetOrderByIDRequestAminoMsg): QueryGetOrderByIDRequest { @@ -3000,7 +3000,7 @@ export const QueryGetOrderByIDResponse = { }, toAmino(message: QueryGetOrderByIDResponse): QueryGetOrderByIDResponseAmino { const obj: any = {}; - obj.order = message.order ? Order.toAmino(message.order) : undefined; + obj.order = message.order ? Order.toAmino(message.order) : Order.toAmino(Order.fromPartial({})); return obj; }, fromAminoMsg(object: QueryGetOrderByIDResponseAminoMsg): QueryGetOrderByIDResponse { @@ -3108,11 +3108,11 @@ export const QueryGetHistoricalPricesRequest = { }, toAmino(message: QueryGetHistoricalPricesRequest): QueryGetHistoricalPricesRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.periodLengthInSeconds = message.periodLengthInSeconds ? message.periodLengthInSeconds.toString() : undefined; - obj.numOfPeriods = message.numOfPeriods ? message.numOfPeriods.toString() : undefined; + obj.contractAddr = message.contractAddr ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.periodLengthInSeconds = message.periodLengthInSeconds ? message.periodLengthInSeconds.toString() : '0'; + obj.numOfPeriods = message.numOfPeriods ? message.numOfPeriods.toString() : '0'; return obj; }, fromAminoMsg(object: QueryGetHistoricalPricesRequestAminoMsg): QueryGetHistoricalPricesRequest { @@ -3176,7 +3176,7 @@ export const QueryGetHistoricalPricesResponse = { if (message.prices) { obj.prices = message.prices.map((e) => (e ? PriceCandlestick.toAmino(e) : undefined)); } else { - obj.prices = []; + obj.prices = message.prices; } return obj; }, @@ -3274,10 +3274,10 @@ export const QueryGetMarketSummaryRequest = { }, toAmino(message: QueryGetMarketSummaryRequest): QueryGetMarketSummaryRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.lookbackInSeconds = message.lookbackInSeconds ? message.lookbackInSeconds.toString() : undefined; + obj.contractAddr = message.contractAddr ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.lookbackInSeconds = message.lookbackInSeconds ? message.lookbackInSeconds.toString() : '0'; return obj; }, fromAminoMsg(object: QueryGetMarketSummaryRequestAminoMsg): QueryGetMarketSummaryRequest { @@ -3384,11 +3384,11 @@ export const QueryGetMarketSummaryResponse = { }, toAmino(message: QueryGetMarketSummaryResponse): QueryGetMarketSummaryResponseAmino { const obj: any = {}; - obj.totalVolume = message.totalVolume; - obj.totalVolumeNotional = message.totalVolumeNotional; - obj.highPrice = message.highPrice; - obj.lowPrice = message.lowPrice; - obj.lastPrice = message.lastPrice; + obj.totalVolume = message.totalVolume ?? ''; + obj.totalVolumeNotional = message.totalVolumeNotional ?? ''; + obj.highPrice = message.highPrice ?? ''; + obj.lowPrice = message.lowPrice ?? ''; + obj.lastPrice = message.lastPrice ?? ''; return obj; }, fromAminoMsg(object: QueryGetMarketSummaryResponseAminoMsg): QueryGetMarketSummaryResponse { @@ -3462,8 +3462,8 @@ export const QueryOrderSimulationRequest = { }, toAmino(message: QueryOrderSimulationRequest): QueryOrderSimulationRequestAmino { const obj: any = {}; - obj.order = message.order ? Order.toAmino(message.order) : undefined; - obj.contractAddr = message.contractAddr; + obj.order = message.order ? Order.toAmino(message.order) : Order.toAmino(Order.fromPartial({})); + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: QueryOrderSimulationRequestAminoMsg): QueryOrderSimulationRequest { @@ -3526,7 +3526,7 @@ export const QueryOrderSimulationResponse = { }, toAmino(message: QueryOrderSimulationResponse): QueryOrderSimulationResponseAmino { const obj: any = {}; - obj.ExecutedQuantity = message.ExecutedQuantity; + obj.ExecutedQuantity = message.ExecutedQuantity ?? ''; return obj; }, fromAminoMsg(object: QueryOrderSimulationResponseAminoMsg): QueryOrderSimulationResponse { @@ -3589,7 +3589,7 @@ export const QueryGetMatchResultRequest = { }, toAmino(message: QueryGetMatchResultRequest): QueryGetMatchResultRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: QueryGetMatchResultRequestAminoMsg): QueryGetMatchResultRequest { @@ -3652,7 +3652,7 @@ export const QueryGetMatchResultResponse = { }, toAmino(message: QueryGetMatchResultResponse): QueryGetMatchResultResponseAmino { const obj: any = {}; - obj.result = message.result ? MatchResult.toAmino(message.result) : undefined; + obj.result = message.result ? MatchResult.toAmino(message.result) : MatchResult.toAmino(MatchResult.fromPartial({})); return obj; }, fromAminoMsg(object: QueryGetMatchResultResponseAminoMsg): QueryGetMatchResultResponse { @@ -3753,17 +3753,17 @@ export const QueryGetOrderCountRequest = { message.price = object.price; } if (object.positionDirection !== undefined && object.positionDirection !== null) { - message.positionDirection = positionDirectionFromJSON(object.positionDirection); + message.positionDirection = object.positionDirection; } return message; }, toAmino(message: QueryGetOrderCountRequest): QueryGetOrderCountRequestAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.price = message.price; - obj.positionDirection = message.positionDirection; + obj.contractAddr = message.contractAddr ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.price = message.price ?? ''; + obj.positionDirection = message.positionDirection ?? 0; return obj; }, fromAminoMsg(object: QueryGetOrderCountRequestAminoMsg): QueryGetOrderCountRequest { @@ -3826,7 +3826,7 @@ export const QueryGetOrderCountResponse = { }, toAmino(message: QueryGetOrderCountResponse): QueryGetOrderCountResponseAmino { const obj: any = {}; - obj.count = message.count ? message.count.toString() : undefined; + obj.count = message.count ? message.count.toString() : '0'; return obj; }, fromAminoMsg(object: QueryGetOrderCountResponseAminoMsg): QueryGetOrderCountResponse { diff --git a/packages/proto/src/codegen/dex/settlement.ts b/packages/proto/src/codegen/dex/settlement.ts index 62ad9392..7ebfacba 100644 --- a/packages/proto/src/codegen/dex/settlement.ts +++ b/packages/proto/src/codegen/dex/settlement.ts @@ -19,18 +19,18 @@ export interface SettlementEntryProtoMsg { value: Uint8Array; } export interface SettlementEntryAmino { - account?: string; - priceDenom?: string; - assetDenom?: string; - quantity?: string; - executionCostOrProceed?: string; - expectedCostOrProceed?: string; - positionDirection?: string; - orderType?: string; - orderId?: string; - timestamp?: string; - height?: string; - settlementId?: string; + account: string; + priceDenom: string; + assetDenom: string; + quantity: string; + executionCostOrProceed: string; + expectedCostOrProceed: string; + positionDirection: string; + orderType: string; + orderId: string; + timestamp: string; + height: string; + settlementId: string; } export interface SettlementEntryAminoMsg { type: '/seiprotocol.seichain.dex.SettlementEntry'; @@ -59,8 +59,8 @@ export interface SettlementsProtoMsg { value: Uint8Array; } export interface SettlementsAmino { - epoch?: string; - entries?: SettlementEntryAmino[]; + epoch: string; + entries: SettlementEntryAmino[]; } export interface SettlementsAminoMsg { type: '/seiprotocol.seichain.dex.Settlements'; @@ -235,18 +235,18 @@ export const SettlementEntry = { }, toAmino(message: SettlementEntry): SettlementEntryAmino { const obj: any = {}; - obj.account = message.account; - obj.priceDenom = message.priceDenom; - obj.assetDenom = message.assetDenom; - obj.quantity = message.quantity; - obj.executionCostOrProceed = message.executionCostOrProceed; - obj.expectedCostOrProceed = message.expectedCostOrProceed; - obj.positionDirection = message.positionDirection; - obj.orderType = message.orderType; - obj.orderId = message.orderId ? message.orderId.toString() : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; - obj.height = message.height ? message.height.toString() : undefined; - obj.settlementId = message.settlementId ? message.settlementId.toString() : undefined; + obj.account = message.account ?? ''; + obj.priceDenom = message.priceDenom ?? ''; + obj.assetDenom = message.assetDenom ?? ''; + obj.quantity = message.quantity ?? ''; + obj.executionCostOrProceed = message.executionCostOrProceed ?? ''; + obj.expectedCostOrProceed = message.expectedCostOrProceed ?? ''; + obj.positionDirection = message.positionDirection ?? ''; + obj.orderType = message.orderType ?? ''; + obj.orderId = message.orderId ? message.orderId.toString() : '0'; + obj.timestamp = message.timestamp ? message.timestamp.toString() : '0'; + obj.height = message.height ? message.height.toString() : '0'; + obj.settlementId = message.settlementId ? message.settlementId.toString() : '0'; return obj; }, fromAminoMsg(object: SettlementEntryAminoMsg): SettlementEntry { @@ -318,11 +318,11 @@ export const Settlements = { }, toAmino(message: Settlements): SettlementsAmino { const obj: any = {}; - obj.epoch = message.epoch ? message.epoch.toString() : undefined; + obj.epoch = message.epoch ? message.epoch.toString() : '0'; if (message.entries) { obj.entries = message.entries.map((e) => (e ? SettlementEntry.toAmino(e) : undefined)); } else { - obj.entries = []; + obj.entries = message.entries; } return obj; }, diff --git a/packages/proto/src/codegen/dex/short_book.ts b/packages/proto/src/codegen/dex/short_book.ts index 4f4ea88b..8f7aba48 100644 --- a/packages/proto/src/codegen/dex/short_book.ts +++ b/packages/proto/src/codegen/dex/short_book.ts @@ -10,8 +10,8 @@ export interface ShortBookProtoMsg { value: Uint8Array; } export interface ShortBookAmino { - price?: string; - entry?: OrderEntryAmino | undefined; + price: string; + entry: OrderEntryAmino | undefined; } export interface ShortBookAminoMsg { type: '/seiprotocol.seichain.dex.ShortBook'; @@ -76,8 +76,8 @@ export const ShortBook = { }, toAmino(message: ShortBook): ShortBookAmino { const obj: any = {}; - obj.price = message.price; - obj.entry = message.entry ? OrderEntry.toAmino(message.entry) : undefined; + obj.price = message.price ?? ''; + obj.entry = message.entry ? OrderEntry.toAmino(message.entry) : OrderEntry.toAmino(OrderEntry.fromPartial({})); return obj; }, fromAminoMsg(object: ShortBookAminoMsg): ShortBook { diff --git a/packages/proto/src/codegen/dex/tick_size.ts b/packages/proto/src/codegen/dex/tick_size.ts index ea7da42c..0879add8 100644 --- a/packages/proto/src/codegen/dex/tick_size.ts +++ b/packages/proto/src/codegen/dex/tick_size.ts @@ -11,9 +11,9 @@ export interface TickSizeProtoMsg { value: Uint8Array; } export interface TickSizeAmino { - pair?: PairAmino | undefined; - ticksize?: string; - contractAddr?: string; + pair: PairAmino | undefined; + ticksize: string; + contractAddr: string; } export interface TickSizeAminoMsg { type: '/seiprotocol.seichain.dex.TickSize'; @@ -90,9 +90,9 @@ export const TickSize = { }, toAmino(message: TickSize): TickSizeAmino { const obj: any = {}; - obj.pair = message.pair ? Pair.toAmino(message.pair) : undefined; - obj.ticksize = message.ticksize; - obj.contractAddr = message.contractAddr; + obj.pair = message.pair ? Pair.toAmino(message.pair) : Pair.toAmino(Pair.fromPartial({})); + obj.ticksize = message.ticksize ?? ''; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: TickSizeAminoMsg): TickSize { diff --git a/packages/proto/src/codegen/dex/twap.ts b/packages/proto/src/codegen/dex/twap.ts index c1b80915..5cf31b39 100644 --- a/packages/proto/src/codegen/dex/twap.ts +++ b/packages/proto/src/codegen/dex/twap.ts @@ -11,9 +11,9 @@ export interface TwapProtoMsg { value: Uint8Array; } export interface TwapAmino { - pair?: PairAmino | undefined; - twap?: string; - lookbackSeconds?: string; + pair: PairAmino | undefined; + twap: string; + lookbackSeconds: string; } export interface TwapAminoMsg { type: '/seiprotocol.seichain.dex.Twap'; @@ -90,9 +90,9 @@ export const Twap = { }, toAmino(message: Twap): TwapAmino { const obj: any = {}; - obj.pair = message.pair ? Pair.toAmino(message.pair) : undefined; - obj.twap = message.twap; - obj.lookbackSeconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : undefined; + obj.pair = message.pair ? Pair.toAmino(message.pair) : Pair.toAmino(Pair.fromPartial({})); + obj.twap = message.twap ?? ''; + obj.lookbackSeconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : '0'; return obj; }, fromAminoMsg(object: TwapAminoMsg): Twap { diff --git a/packages/proto/src/codegen/dex/tx.ts b/packages/proto/src/codegen/dex/tx.ts index f3048819..7925a4d9 100644 --- a/packages/proto/src/codegen/dex/tx.ts +++ b/packages/proto/src/codegen/dex/tx.ts @@ -15,10 +15,10 @@ export interface MsgPlaceOrdersProtoMsg { value: Uint8Array; } export interface MsgPlaceOrdersAmino { - creator?: string; - orders?: OrderAmino[]; - contractAddr?: string; - funds?: CoinAmino[]; + creator: string; + orders: OrderAmino[]; + contractAddr: string; + funds: CoinAmino[]; } export interface MsgPlaceOrdersAminoMsg { type: '/seiprotocol.seichain.dex.MsgPlaceOrders'; @@ -38,7 +38,7 @@ export interface MsgPlaceOrdersResponseProtoMsg { value: Uint8Array; } export interface MsgPlaceOrdersResponseAmino { - orderIds?: string[]; + orderIds: string[]; } export interface MsgPlaceOrdersResponseAminoMsg { type: '/seiprotocol.seichain.dex.MsgPlaceOrdersResponse'; @@ -57,9 +57,9 @@ export interface MsgCancelOrdersProtoMsg { value: Uint8Array; } export interface MsgCancelOrdersAmino { - creator?: string; - cancellations?: CancellationAmino[]; - contractAddr?: string; + creator: string; + cancellations: CancellationAmino[]; + contractAddr: string; } export interface MsgCancelOrdersAminoMsg { type: '/seiprotocol.seichain.dex.MsgCancelOrders'; @@ -122,9 +122,9 @@ export interface MsgContractDepositRentProtoMsg { value: Uint8Array; } export interface MsgContractDepositRentAmino { - contractAddr?: string; - amount?: string; - sender?: string; + contractAddr: string; + amount: string; + sender: string; } export interface MsgContractDepositRentAminoMsg { type: '/seiprotocol.seichain.dex.MsgContractDepositRent'; @@ -155,8 +155,8 @@ export interface MsgUnregisterContractProtoMsg { value: Uint8Array; } export interface MsgUnregisterContractAmino { - creator?: string; - contractAddr?: string; + creator: string; + contractAddr: string; } export interface MsgUnregisterContractAminoMsg { type: '/seiprotocol.seichain.dex.MsgUnregisterContract'; @@ -187,7 +187,7 @@ export interface MsgRegisterPairsProtoMsg { } export interface MsgRegisterPairsAmino { creator?: string; - batchcontractpair?: BatchContractPairAmino[]; + batchcontractpair: BatchContractPairAmino[]; } export interface MsgRegisterPairsAminoMsg { type: '/seiprotocol.seichain.dex.MsgRegisterPairs'; @@ -217,8 +217,8 @@ export interface MsgUpdatePriceTickSizeProtoMsg { value: Uint8Array; } export interface MsgUpdatePriceTickSizeAmino { - creator?: string; - tickSizeList?: TickSizeAmino[]; + creator: string; + tickSizeList: TickSizeAmino[]; } export interface MsgUpdatePriceTickSizeAminoMsg { type: '/seiprotocol.seichain.dex.MsgUpdatePriceTickSize'; @@ -237,8 +237,8 @@ export interface MsgUpdateQuantityTickSizeProtoMsg { value: Uint8Array; } export interface MsgUpdateQuantityTickSizeAmino { - creator?: string; - tickSizeList?: TickSizeAmino[]; + creator: string; + tickSizeList: TickSizeAmino[]; } export interface MsgUpdateQuantityTickSizeAminoMsg { type: '/seiprotocol.seichain.dex.MsgUpdateQuantityTickSize'; @@ -268,8 +268,8 @@ export interface MsgUnsuspendContractProtoMsg { value: Uint8Array; } export interface MsgUnsuspendContractAmino { - creator?: string; - contractAddr?: string; + creator: string; + contractAddr: string; } export interface MsgUnsuspendContractAminoMsg { type: '/seiprotocol.seichain.dex.MsgUnsuspendContract'; @@ -363,17 +363,17 @@ export const MsgPlaceOrders = { }, toAmino(message: MsgPlaceOrders): MsgPlaceOrdersAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator ?? ''; if (message.orders) { obj.orders = message.orders.map((e) => (e ? Order.toAmino(e) : undefined)); } else { - obj.orders = []; + obj.orders = message.orders; } - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; if (message.funds) { obj.funds = message.funds.map((e) => (e ? Coin.toAmino(e) : undefined)); } else { - obj.funds = []; + obj.funds = message.funds; } return obj; }, @@ -447,7 +447,7 @@ export const MsgPlaceOrdersResponse = { if (message.orderIds) { obj.orderIds = message.orderIds.map((e) => e.toString()); } else { - obj.orderIds = []; + obj.orderIds = message.orderIds; } return obj; }, @@ -531,13 +531,13 @@ export const MsgCancelOrders = { }, toAmino(message: MsgCancelOrders): MsgCancelOrdersAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator ?? ''; if (message.cancellations) { obj.cancellations = message.cancellations.map((e) => (e ? Cancellation.toAmino(e) : undefined)); } else { - obj.cancellations = []; + obj.cancellations = message.cancellations; } - obj.contractAddr = message.contractAddr; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: MsgCancelOrdersAminoMsg): MsgCancelOrders { @@ -661,7 +661,7 @@ export const MsgRegisterContract = { }, toAmino(message: MsgRegisterContract): MsgRegisterContractAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator === '' ? undefined : message.creator; obj.contract = message.contract ? ContractInfoV2.toAmino(message.contract) : undefined; return obj; }, @@ -797,9 +797,9 @@ export const MsgContractDepositRent = { }, toAmino(message: MsgContractDepositRent): MsgContractDepositRentAmino { const obj: any = {}; - obj.contractAddr = message.contractAddr; - obj.amount = message.amount ? message.amount.toString() : undefined; - obj.sender = message.sender; + obj.contractAddr = message.contractAddr ?? ''; + obj.amount = message.amount ? message.amount.toString() : '0'; + obj.sender = message.sender ?? ''; return obj; }, fromAminoMsg(object: MsgContractDepositRentAminoMsg): MsgContractDepositRent { @@ -923,8 +923,8 @@ export const MsgUnregisterContract = { }, toAmino(message: MsgUnregisterContract): MsgUnregisterContractAmino { const obj: any = {}; - obj.creator = message.creator; - obj.contractAddr = message.contractAddr; + obj.creator = message.creator ?? ''; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: MsgUnregisterContractAminoMsg): MsgUnregisterContract { @@ -1046,11 +1046,11 @@ export const MsgRegisterPairs = { }, toAmino(message: MsgRegisterPairs): MsgRegisterPairsAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator === '' ? undefined : message.creator; if (message.batchcontractpair) { obj.batchcontractpair = message.batchcontractpair.map((e) => (e ? BatchContractPair.toAmino(e) : undefined)); } else { - obj.batchcontractpair = []; + obj.batchcontractpair = message.batchcontractpair; } return obj; }, @@ -1173,11 +1173,11 @@ export const MsgUpdatePriceTickSize = { }, toAmino(message: MsgUpdatePriceTickSize): MsgUpdatePriceTickSizeAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator ?? ''; if (message.tickSizeList) { obj.tickSizeList = message.tickSizeList.map((e) => (e ? TickSize.toAmino(e) : undefined)); } else { - obj.tickSizeList = []; + obj.tickSizeList = message.tickSizeList; } return obj; }, @@ -1250,11 +1250,11 @@ export const MsgUpdateQuantityTickSize = { }, toAmino(message: MsgUpdateQuantityTickSize): MsgUpdateQuantityTickSizeAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator ?? ''; if (message.tickSizeList) { obj.tickSizeList = message.tickSizeList.map((e) => (e ? TickSize.toAmino(e) : undefined)); } else { - obj.tickSizeList = []; + obj.tickSizeList = message.tickSizeList; } return obj; }, @@ -1379,8 +1379,8 @@ export const MsgUnsuspendContract = { }, toAmino(message: MsgUnsuspendContract): MsgUnsuspendContractAmino { const obj: any = {}; - obj.creator = message.creator; - obj.contractAddr = message.contractAddr; + obj.creator = message.creator ?? ''; + obj.contractAddr = message.contractAddr ?? ''; return obj; }, fromAminoMsg(object: MsgUnsuspendContractAminoMsg): MsgUnsuspendContract { diff --git a/packages/proto/src/codegen/epoch/epoch.ts b/packages/proto/src/codegen/epoch/epoch.ts index a0884419..1644000a 100644 --- a/packages/proto/src/codegen/epoch/epoch.ts +++ b/packages/proto/src/codegen/epoch/epoch.ts @@ -16,9 +16,9 @@ export interface EpochProtoMsg { export interface EpochAmino { genesis_time?: string | undefined; epoch_duration?: DurationAmino | undefined; - current_epoch?: string; + current_epoch: string; current_epoch_start_time?: string | undefined; - current_epoch_height?: string; + current_epoch_height: string; } export interface EpochAminoMsg { type: '/seiprotocol.seichain.epoch.Epoch'; @@ -122,9 +122,9 @@ export const Epoch = { const obj: any = {}; obj.genesis_time = message.genesisTime ? Timestamp.toAmino(toTimestamp(message.genesisTime)) : undefined; obj.epoch_duration = message.epochDuration ? Duration.toAmino(message.epochDuration) : undefined; - obj.current_epoch = message.currentEpoch ? message.currentEpoch.toString() : undefined; + obj.current_epoch = message.currentEpoch ? message.currentEpoch.toString() : '0'; obj.current_epoch_start_time = message.currentEpochStartTime ? Timestamp.toAmino(toTimestamp(message.currentEpochStartTime)) : undefined; - obj.current_epoch_height = message.currentEpochHeight ? message.currentEpochHeight.toString() : undefined; + obj.current_epoch_height = message.currentEpochHeight ? message.currentEpochHeight.toString() : '0'; return obj; }, fromAminoMsg(object: EpochAminoMsg): Epoch { diff --git a/packages/proto/src/codegen/google/api/http.ts b/packages/proto/src/codegen/google/api/http.ts index e956e80e..10323be5 100644 --- a/packages/proto/src/codegen/google/api/http.ts +++ b/packages/proto/src/codegen/google/api/http.ts @@ -1080,9 +1080,9 @@ export const Http = { if (message.rules) { obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined); } else { - obj.rules = []; + obj.rules = message.rules; } - obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion; + obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion; return obj; }, fromAminoMsg(object: HttpAminoMsg): Http { @@ -1242,19 +1242,19 @@ export const HttpRule = { }, toAmino(message: HttpRule): HttpRuleAmino { const obj: any = {}; - obj.selector = message.selector; - obj.get = message.get; - obj.put = message.put; - obj.post = message.post; - obj.delete = message.delete; - obj.patch = message.patch; + obj.selector = message.selector === "" ? undefined : message.selector; + obj.get = message.get === null ? undefined : message.get; + obj.put = message.put === null ? undefined : message.put; + obj.post = message.post === null ? undefined : message.post; + obj.delete = message.delete === null ? undefined : message.delete; + obj.patch = message.patch === null ? undefined : message.patch; obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined; - obj.body = message.body; - obj.response_body = message.responseBody; + obj.body = message.body === "" ? undefined : message.body; + obj.response_body = message.responseBody === "" ? undefined : message.responseBody; if (message.additionalBindings) { obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined); } else { - obj.additional_bindings = []; + obj.additional_bindings = message.additionalBindings; } return obj; }, @@ -1329,8 +1329,8 @@ export const CustomHttpPattern = { }, toAmino(message: CustomHttpPattern): CustomHttpPatternAmino { const obj: any = {}; - obj.kind = message.kind; - obj.path = message.path; + obj.kind = message.kind === "" ? undefined : message.kind; + obj.path = message.path === "" ? undefined : message.path; return obj; }, fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern { diff --git a/packages/proto/src/codegen/google/protobuf/descriptor.ts b/packages/proto/src/codegen/google/protobuf/descriptor.ts index aceff377..7d7e2543 100644 --- a/packages/proto/src/codegen/google/protobuf/descriptor.ts +++ b/packages/proto/src/codegen/google/protobuf/descriptor.ts @@ -2241,7 +2241,7 @@ export const FileDescriptorSet = { if (message.file) { obj.file = message.file.map(e => e ? FileDescriptorProto.toAmino(e) : undefined); } else { - obj.file = []; + obj.file = message.file; } return obj; }, @@ -2430,46 +2430,46 @@ export const FileDescriptorProto = { }, toAmino(message: FileDescriptorProto): FileDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; - obj.package = message.package; + obj.name = message.name === "" ? undefined : message.name; + obj.package = message.package === "" ? undefined : message.package; if (message.dependency) { obj.dependency = message.dependency.map(e => e); } else { - obj.dependency = []; + obj.dependency = message.dependency; } if (message.publicDependency) { obj.public_dependency = message.publicDependency.map(e => e); } else { - obj.public_dependency = []; + obj.public_dependency = message.publicDependency; } if (message.weakDependency) { obj.weak_dependency = message.weakDependency.map(e => e); } else { - obj.weak_dependency = []; + obj.weak_dependency = message.weakDependency; } if (message.messageType) { obj.message_type = message.messageType.map(e => e ? DescriptorProto.toAmino(e) : undefined); } else { - obj.message_type = []; + obj.message_type = message.messageType; } if (message.enumType) { obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); } else { - obj.enum_type = []; + obj.enum_type = message.enumType; } if (message.service) { obj.service = message.service.map(e => e ? ServiceDescriptorProto.toAmino(e) : undefined); } else { - obj.service = []; + obj.service = message.service; } if (message.extension) { obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); } else { - obj.extension = []; + obj.extension = message.extension; } obj.options = message.options ? FileOptions.toAmino(message.options) : undefined; obj.source_code_info = message.sourceCodeInfo ? SourceCodeInfo.toAmino(message.sourceCodeInfo) : undefined; - obj.syntax = message.syntax; + obj.syntax = message.syntax === "" ? undefined : message.syntax; return obj; }, fromAminoMsg(object: FileDescriptorProtoAminoMsg): FileDescriptorProto { @@ -2615,47 +2615,47 @@ export const DescriptorProto = { }, toAmino(message: DescriptorProto): DescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; if (message.field) { obj.field = message.field.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); } else { - obj.field = []; + obj.field = message.field; } if (message.extension) { obj.extension = message.extension.map(e => e ? FieldDescriptorProto.toAmino(e) : undefined); } else { - obj.extension = []; + obj.extension = message.extension; } if (message.nestedType) { obj.nested_type = message.nestedType.map(e => e ? DescriptorProto.toAmino(e) : undefined); } else { - obj.nested_type = []; + obj.nested_type = message.nestedType; } if (message.enumType) { obj.enum_type = message.enumType.map(e => e ? EnumDescriptorProto.toAmino(e) : undefined); } else { - obj.enum_type = []; + obj.enum_type = message.enumType; } if (message.extensionRange) { obj.extension_range = message.extensionRange.map(e => e ? DescriptorProto_ExtensionRange.toAmino(e) : undefined); } else { - obj.extension_range = []; + obj.extension_range = message.extensionRange; } if (message.oneofDecl) { obj.oneof_decl = message.oneofDecl.map(e => e ? OneofDescriptorProto.toAmino(e) : undefined); } else { - obj.oneof_decl = []; + obj.oneof_decl = message.oneofDecl; } obj.options = message.options ? MessageOptions.toAmino(message.options) : undefined; if (message.reservedRange) { obj.reserved_range = message.reservedRange.map(e => e ? DescriptorProto_ReservedRange.toAmino(e) : undefined); } else { - obj.reserved_range = []; + obj.reserved_range = message.reservedRange; } if (message.reservedName) { obj.reserved_name = message.reservedName.map(e => e); } else { - obj.reserved_name = []; + obj.reserved_name = message.reservedName; } return obj; }, @@ -2741,8 +2741,8 @@ export const DescriptorProto_ExtensionRange = { }, toAmino(message: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRangeAmino { const obj: any = {}; - obj.start = message.start; - obj.end = message.end; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; obj.options = message.options ? ExtensionRangeOptions.toAmino(message.options) : undefined; return obj; }, @@ -2817,8 +2817,8 @@ export const DescriptorProto_ReservedRange = { }, toAmino(message: DescriptorProto_ReservedRange): DescriptorProto_ReservedRangeAmino { const obj: any = {}; - obj.start = message.start; - obj.end = message.end; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; return obj; }, fromAminoMsg(object: DescriptorProto_ReservedRangeAminoMsg): DescriptorProto_ReservedRange { @@ -2882,7 +2882,7 @@ export const ExtensionRangeOptions = { if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -3018,10 +3018,10 @@ export const FieldDescriptorProto = { message.number = object.number; } if (object.label !== undefined && object.label !== null) { - message.label = fieldDescriptorProto_LabelFromJSON(object.label); + message.label = object.label; } if (object.type !== undefined && object.type !== null) { - message.type = fieldDescriptorProto_TypeFromJSON(object.type); + message.type = object.type; } if (object.type_name !== undefined && object.type_name !== null) { message.typeName = object.type_name; @@ -3045,15 +3045,15 @@ export const FieldDescriptorProto = { }, toAmino(message: FieldDescriptorProto): FieldDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; - obj.number = message.number; - obj.label = message.label; - obj.type = message.type; - obj.type_name = message.typeName; - obj.extendee = message.extendee; - obj.default_value = message.defaultValue; - obj.oneof_index = message.oneofIndex; - obj.json_name = message.jsonName; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; + obj.label = message.label === 1 ? undefined : message.label; + obj.type = message.type === 1 ? undefined : message.type; + obj.type_name = message.typeName === "" ? undefined : message.typeName; + obj.extendee = message.extendee === "" ? undefined : message.extendee; + obj.default_value = message.defaultValue === "" ? undefined : message.defaultValue; + obj.oneof_index = message.oneofIndex === 0 ? undefined : message.oneofIndex; + obj.json_name = message.jsonName === "" ? undefined : message.jsonName; obj.options = message.options ? FieldOptions.toAmino(message.options) : undefined; return obj; }, @@ -3128,7 +3128,7 @@ export const OneofDescriptorProto = { }, toAmino(message: OneofDescriptorProto): OneofDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; obj.options = message.options ? OneofOptions.toAmino(message.options) : undefined; return obj; }, @@ -3230,22 +3230,22 @@ export const EnumDescriptorProto = { }, toAmino(message: EnumDescriptorProto): EnumDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; if (message.value) { obj.value = message.value.map(e => e ? EnumValueDescriptorProto.toAmino(e) : undefined); } else { - obj.value = []; + obj.value = message.value; } obj.options = message.options ? EnumOptions.toAmino(message.options) : undefined; if (message.reservedRange) { obj.reserved_range = message.reservedRange.map(e => e ? EnumDescriptorProto_EnumReservedRange.toAmino(e) : undefined); } else { - obj.reserved_range = []; + obj.reserved_range = message.reservedRange; } if (message.reservedName) { obj.reserved_name = message.reservedName.map(e => e); } else { - obj.reserved_name = []; + obj.reserved_name = message.reservedName; } return obj; }, @@ -3320,8 +3320,8 @@ export const EnumDescriptorProto_EnumReservedRange = { }, toAmino(message: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRangeAmino { const obj: any = {}; - obj.start = message.start; - obj.end = message.end; + obj.start = message.start === 0 ? undefined : message.start; + obj.end = message.end === 0 ? undefined : message.end; return obj; }, fromAminoMsg(object: EnumDescriptorProto_EnumReservedRangeAminoMsg): EnumDescriptorProto_EnumReservedRange { @@ -3406,8 +3406,8 @@ export const EnumValueDescriptorProto = { }, toAmino(message: EnumValueDescriptorProto): EnumValueDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; - obj.number = message.number; + obj.name = message.name === "" ? undefined : message.name; + obj.number = message.number === 0 ? undefined : message.number; obj.options = message.options ? EnumValueOptions.toAmino(message.options) : undefined; return obj; }, @@ -3491,11 +3491,11 @@ export const ServiceDescriptorProto = { }, toAmino(message: ServiceDescriptorProto): ServiceDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === "" ? undefined : message.name; if (message.method) { obj.method = message.method.map(e => e ? MethodDescriptorProto.toAmino(e) : undefined); } else { - obj.method = []; + obj.method = message.method; } obj.options = message.options ? ServiceOptions.toAmino(message.options) : undefined; return obj; @@ -3615,12 +3615,12 @@ export const MethodDescriptorProto = { }, toAmino(message: MethodDescriptorProto): MethodDescriptorProtoAmino { const obj: any = {}; - obj.name = message.name; - obj.input_type = message.inputType; - obj.output_type = message.outputType; + obj.name = message.name === "" ? undefined : message.name; + obj.input_type = message.inputType === "" ? undefined : message.inputType; + obj.output_type = message.outputType === "" ? undefined : message.outputType; obj.options = message.options ? MethodOptions.toAmino(message.options) : undefined; - obj.client_streaming = message.clientStreaming; - obj.server_streaming = message.serverStreaming; + obj.client_streaming = message.clientStreaming === false ? undefined : message.clientStreaming; + obj.server_streaming = message.serverStreaming === false ? undefined : message.serverStreaming; return obj; }, fromAminoMsg(object: MethodDescriptorProtoAminoMsg): MethodDescriptorProto { @@ -3852,7 +3852,7 @@ export const FileOptions = { message.javaStringCheckUtf8 = object.java_string_check_utf8; } if (object.optimize_for !== undefined && object.optimize_for !== null) { - message.optimizeFor = fileOptions_OptimizeModeFromJSON(object.optimize_for); + message.optimizeFor = object.optimize_for; } if (object.go_package !== undefined && object.go_package !== null) { message.goPackage = object.go_package; @@ -3901,30 +3901,30 @@ export const FileOptions = { }, toAmino(message: FileOptions): FileOptionsAmino { const obj: any = {}; - obj.java_package = message.javaPackage; - obj.java_outer_classname = message.javaOuterClassname; - obj.java_multiple_files = message.javaMultipleFiles; - obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash; - obj.java_string_check_utf8 = message.javaStringCheckUtf8; - obj.optimize_for = message.optimizeFor; - obj.go_package = message.goPackage; - obj.cc_generic_services = message.ccGenericServices; - obj.java_generic_services = message.javaGenericServices; - obj.py_generic_services = message.pyGenericServices; - obj.php_generic_services = message.phpGenericServices; - obj.deprecated = message.deprecated; - obj.cc_enable_arenas = message.ccEnableArenas; - obj.objc_class_prefix = message.objcClassPrefix; - obj.csharp_namespace = message.csharpNamespace; - obj.swift_prefix = message.swiftPrefix; - obj.php_class_prefix = message.phpClassPrefix; - obj.php_namespace = message.phpNamespace; - obj.php_metadata_namespace = message.phpMetadataNamespace; - obj.ruby_package = message.rubyPackage; + obj.java_package = message.javaPackage === "" ? undefined : message.javaPackage; + obj.java_outer_classname = message.javaOuterClassname === "" ? undefined : message.javaOuterClassname; + obj.java_multiple_files = message.javaMultipleFiles === false ? undefined : message.javaMultipleFiles; + obj.java_generate_equals_and_hash = message.javaGenerateEqualsAndHash === false ? undefined : message.javaGenerateEqualsAndHash; + obj.java_string_check_utf8 = message.javaStringCheckUtf8 === false ? undefined : message.javaStringCheckUtf8; + obj.optimize_for = message.optimizeFor === 1 ? undefined : message.optimizeFor; + obj.go_package = message.goPackage === "" ? undefined : message.goPackage; + obj.cc_generic_services = message.ccGenericServices === false ? undefined : message.ccGenericServices; + obj.java_generic_services = message.javaGenericServices === false ? undefined : message.javaGenericServices; + obj.py_generic_services = message.pyGenericServices === false ? undefined : message.pyGenericServices; + obj.php_generic_services = message.phpGenericServices === false ? undefined : message.phpGenericServices; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.cc_enable_arenas = message.ccEnableArenas === false ? undefined : message.ccEnableArenas; + obj.objc_class_prefix = message.objcClassPrefix === "" ? undefined : message.objcClassPrefix; + obj.csharp_namespace = message.csharpNamespace === "" ? undefined : message.csharpNamespace; + obj.swift_prefix = message.swiftPrefix === "" ? undefined : message.swiftPrefix; + obj.php_class_prefix = message.phpClassPrefix === "" ? undefined : message.phpClassPrefix; + obj.php_namespace = message.phpNamespace === "" ? undefined : message.phpNamespace; + obj.php_metadata_namespace = message.phpMetadataNamespace === "" ? undefined : message.phpMetadataNamespace; + obj.ruby_package = message.rubyPackage === "" ? undefined : message.rubyPackage; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4030,14 +4030,14 @@ export const MessageOptions = { }, toAmino(message: MessageOptions): MessageOptionsAmino { const obj: any = {}; - obj.message_set_wire_format = message.messageSetWireFormat; - obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor; - obj.deprecated = message.deprecated; - obj.map_entry = message.mapEntry; + obj.message_set_wire_format = message.messageSetWireFormat === false ? undefined : message.messageSetWireFormat; + obj.no_standard_descriptor_accessor = message.noStandardDescriptorAccessor === false ? undefined : message.noStandardDescriptorAccessor; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.map_entry = message.mapEntry === false ? undefined : message.mapEntry; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4143,13 +4143,13 @@ export const FieldOptions = { fromAmino(object: FieldOptionsAmino): FieldOptions { const message = createBaseFieldOptions(); if (object.ctype !== undefined && object.ctype !== null) { - message.ctype = fieldOptions_CTypeFromJSON(object.ctype); + message.ctype = object.ctype; } if (object.packed !== undefined && object.packed !== null) { message.packed = object.packed; } if (object.jstype !== undefined && object.jstype !== null) { - message.jstype = fieldOptions_JSTypeFromJSON(object.jstype); + message.jstype = object.jstype; } if (object.lazy !== undefined && object.lazy !== null) { message.lazy = object.lazy; @@ -4165,16 +4165,16 @@ export const FieldOptions = { }, toAmino(message: FieldOptions): FieldOptionsAmino { const obj: any = {}; - obj.ctype = message.ctype; - obj.packed = message.packed; - obj.jstype = message.jstype; - obj.lazy = message.lazy; - obj.deprecated = message.deprecated; - obj.weak = message.weak; + obj.ctype = message.ctype === 1 ? undefined : message.ctype; + obj.packed = message.packed === false ? undefined : message.packed; + obj.jstype = message.jstype === 1 ? undefined : message.jstype; + obj.lazy = message.lazy === false ? undefined : message.lazy; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.weak = message.weak === false ? undefined : message.weak; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4239,7 +4239,7 @@ export const OneofOptions = { if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4323,12 +4323,12 @@ export const EnumOptions = { }, toAmino(message: EnumOptions): EnumOptionsAmino { const obj: any = {}; - obj.allow_alias = message.allowAlias; - obj.deprecated = message.deprecated; + obj.allow_alias = message.allowAlias === false ? undefined : message.allowAlias; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4401,11 +4401,11 @@ export const EnumValueOptions = { }, toAmino(message: EnumValueOptions): EnumValueOptionsAmino { const obj: any = {}; - obj.deprecated = message.deprecated; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4478,11 +4478,11 @@ export const ServiceOptions = { }, toAmino(message: ServiceOptions): ServiceOptionsAmino { const obj: any = {}; - obj.deprecated = message.deprecated; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4559,19 +4559,19 @@ export const MethodOptions = { message.deprecated = object.deprecated; } if (object.idempotency_level !== undefined && object.idempotency_level !== null) { - message.idempotencyLevel = methodOptions_IdempotencyLevelFromJSON(object.idempotency_level); + message.idempotencyLevel = object.idempotency_level; } message.uninterpretedOption = object.uninterpreted_option?.map(e => UninterpretedOption.fromAmino(e)) || []; return message; }, toAmino(message: MethodOptions): MethodOptionsAmino { const obj: any = {}; - obj.deprecated = message.deprecated; - obj.idempotency_level = message.idempotencyLevel; + obj.deprecated = message.deprecated === false ? undefined : message.deprecated; + obj.idempotency_level = message.idempotencyLevel === 1 ? undefined : message.idempotencyLevel; if (message.uninterpretedOption) { obj.uninterpreted_option = message.uninterpretedOption.map(e => e ? UninterpretedOption.toAmino(e) : undefined); } else { - obj.uninterpreted_option = []; + obj.uninterpreted_option = message.uninterpretedOption; } return obj; }, @@ -4702,14 +4702,14 @@ export const UninterpretedOption = { if (message.name) { obj.name = message.name.map(e => e ? UninterpretedOption_NamePart.toAmino(e) : undefined); } else { - obj.name = []; + obj.name = message.name; } - obj.identifier_value = message.identifierValue; - obj.positive_int_value = message.positiveIntValue ? message.positiveIntValue.toString() : undefined; - obj.negative_int_value = message.negativeIntValue ? message.negativeIntValue.toString() : undefined; - obj.double_value = message.doubleValue; + obj.identifier_value = message.identifierValue === "" ? undefined : message.identifierValue; + obj.positive_int_value = message.positiveIntValue !== BigInt(0) ? message.positiveIntValue.toString() : undefined; + obj.negative_int_value = message.negativeIntValue !== BigInt(0) ? message.negativeIntValue.toString() : undefined; + obj.double_value = message.doubleValue === 0 ? undefined : message.doubleValue; obj.string_value = message.stringValue ? base64FromBytes(message.stringValue) : undefined; - obj.aggregate_value = message.aggregateValue; + obj.aggregate_value = message.aggregateValue === "" ? undefined : message.aggregateValue; return obj; }, fromAminoMsg(object: UninterpretedOptionAminoMsg): UninterpretedOption { @@ -4783,8 +4783,8 @@ export const UninterpretedOption_NamePart = { }, toAmino(message: UninterpretedOption_NamePart): UninterpretedOption_NamePartAmino { const obj: any = {}; - obj.name_part = message.namePart; - obj.is_extension = message.isExtension; + obj.name_part = message.namePart === "" ? undefined : message.namePart; + obj.is_extension = message.isExtension === false ? undefined : message.isExtension; return obj; }, fromAminoMsg(object: UninterpretedOption_NamePartAminoMsg): UninterpretedOption_NamePart { @@ -4848,7 +4848,7 @@ export const SourceCodeInfo = { if (message.location) { obj.location = message.location.map(e => e ? SourceCodeInfo_Location.toAmino(e) : undefined); } else { - obj.location = []; + obj.location = message.location; } return obj; }, @@ -4971,19 +4971,19 @@ export const SourceCodeInfo_Location = { if (message.path) { obj.path = message.path.map(e => e); } else { - obj.path = []; + obj.path = message.path; } if (message.span) { obj.span = message.span.map(e => e); } else { - obj.span = []; + obj.span = message.span; } - obj.leading_comments = message.leadingComments; - obj.trailing_comments = message.trailingComments; + obj.leading_comments = message.leadingComments === "" ? undefined : message.leadingComments; + obj.trailing_comments = message.trailingComments === "" ? undefined : message.trailingComments; if (message.leadingDetachedComments) { obj.leading_detached_comments = message.leadingDetachedComments.map(e => e); } else { - obj.leading_detached_comments = []; + obj.leading_detached_comments = message.leadingDetachedComments; } return obj; }, @@ -5048,7 +5048,7 @@ export const GeneratedCodeInfo = { if (message.annotation) { obj.annotation = message.annotation.map(e => e ? GeneratedCodeInfo_Annotation.toAmino(e) : undefined); } else { - obj.annotation = []; + obj.annotation = message.annotation; } return obj; }, @@ -5155,11 +5155,11 @@ export const GeneratedCodeInfo_Annotation = { if (message.path) { obj.path = message.path.map(e => e); } else { - obj.path = []; + obj.path = message.path; } - obj.source_file = message.sourceFile; - obj.begin = message.begin; - obj.end = message.end; + obj.source_file = message.sourceFile === "" ? undefined : message.sourceFile; + obj.begin = message.begin === 0 ? undefined : message.begin; + obj.end = message.end === 0 ? undefined : message.end; return obj; }, fromAminoMsg(object: GeneratedCodeInfo_AnnotationAminoMsg): GeneratedCodeInfo_Annotation { diff --git a/packages/proto/src/codegen/helpers.ts b/packages/proto/src/codegen/helpers.ts index f0980459..05f57d90 100644 --- a/packages/proto/src/codegen/helpers.ts +++ b/packages/proto/src/codegen/helpers.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.12 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.3 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ @@ -46,7 +46,7 @@ export interface AminoHeight { readonly revision_height?: string; } -export function omitDefault( +export function omitDefault( input: T ): T | undefined { if (typeof input === 'string') { @@ -57,6 +57,10 @@ export function omitDefault( return input === 0 ? undefined : input; } + if (typeof input === "boolean"){ + return input === false ? undefined : input; + } + if (typeof input === 'bigint') { return input === BigInt(0) ? undefined : input; } diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/genesis.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/genesis.ts index 541995e8..e2fd52ff 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/genesis.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/genesis.ts @@ -90,11 +90,11 @@ export const GenesisState = { }, toAmino(message: GenesisState): GenesisStateAmino { const obj: any = {}; - obj.port_id = message.portId; + obj.port_id = message.portId === "" ? undefined : message.portId; if (message.denomTraces) { obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); } else { - obj.denom_traces = []; + obj.denom_traces = message.denomTraces; } obj.params = message.params ? Params.toAmino(message.params) : undefined; return obj; diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/query.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/query.ts index 3b6305d2..6b70eec9 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/query.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/query.ts @@ -210,7 +210,7 @@ export const QueryDenomTraceRequest = { }, toAmino(message: QueryDenomTraceRequest): QueryDenomTraceRequestAmino { const obj: any = {}; - obj.hash = message.hash; + obj.hash = message.hash === "" ? undefined : message.hash; return obj; }, fromAminoMsg(object: QueryDenomTraceRequestAminoMsg): QueryDenomTraceRequest { @@ -429,7 +429,7 @@ export const QueryDenomTracesResponse = { if (message.denomTraces) { obj.denom_traces = message.denomTraces.map(e => e ? DenomTrace.toAmino(e) : undefined); } else { - obj.denom_traces = []; + obj.denom_traces = message.denomTraces; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/transfer.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/transfer.ts index 07d32f1e..b7496633 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/transfer.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/transfer.ts @@ -150,8 +150,8 @@ export const DenomTrace = { }, toAmino(message: DenomTrace): DenomTraceAmino { const obj: any = {}; - obj.path = message.path; - obj.base_denom = message.baseDenom; + obj.path = message.path === "" ? undefined : message.path; + obj.base_denom = message.baseDenom === "" ? undefined : message.baseDenom; return obj; }, fromAminoMsg(object: DenomTraceAminoMsg): DenomTrace { @@ -231,8 +231,8 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.send_enabled = message.sendEnabled; - obj.receive_enabled = message.receiveEnabled; + obj.send_enabled = message.sendEnabled === false ? undefined : message.sendEnabled; + obj.receive_enabled = message.receiveEnabled === false ? undefined : message.receiveEnabled; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.ts b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.ts index 9a64e534..633d0690 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v1/tx.ts @@ -201,13 +201,13 @@ export const MsgTransfer = { }, toAmino(message: MsgTransfer): MsgTransferAmino { const obj: any = {}; - obj.source_port = message.sourcePort; - obj.source_channel = message.sourceChannel; + obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; + obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; obj.token = message.token ? Coin.toAmino(message.token) : undefined; - obj.sender = message.sender; - obj.receiver = message.receiver; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.receiver = message.receiver === "" ? undefined : message.receiver; obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; - obj.timeout_timestamp = message.timeoutTimestamp ? message.timeoutTimestamp.toString() : undefined; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; return obj; }, fromAminoMsg(object: MsgTransferAminoMsg): MsgTransfer { diff --git a/packages/proto/src/codegen/ibc/applications/transfer/v2/packet.ts b/packages/proto/src/codegen/ibc/applications/transfer/v2/packet.ts index fd5a1567..c879e873 100644 --- a/packages/proto/src/codegen/ibc/applications/transfer/v2/packet.ts +++ b/packages/proto/src/codegen/ibc/applications/transfer/v2/packet.ts @@ -125,10 +125,10 @@ export const FungibleTokenPacketData = { }, toAmino(message: FungibleTokenPacketData): FungibleTokenPacketDataAmino { const obj: any = {}; - obj.denom = message.denom; - obj.amount = message.amount; - obj.sender = message.sender; - obj.receiver = message.receiver; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.amount = message.amount === "" ? undefined : message.amount; + obj.sender = message.sender === "" ? undefined : message.sender; + obj.receiver = message.receiver === "" ? undefined : message.receiver; return obj; }, fromAminoMsg(object: FungibleTokenPacketDataAminoMsg): FungibleTokenPacketData { diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/channel.ts b/packages/proto/src/codegen/ibc/core/channel/v1/channel.ts index c86d917b..99b3c25f 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/channel.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/channel.ts @@ -499,10 +499,10 @@ export const Channel = { fromAmino(object: ChannelAmino): Channel { const message = createBaseChannel(); if (object.state !== undefined && object.state !== null) { - message.state = stateFromJSON(object.state); + message.state = object.state; } if (object.ordering !== undefined && object.ordering !== null) { - message.ordering = orderFromJSON(object.ordering); + message.ordering = object.ordering; } if (object.counterparty !== undefined && object.counterparty !== null) { message.counterparty = Counterparty.fromAmino(object.counterparty); @@ -515,15 +515,15 @@ export const Channel = { }, toAmino(message: Channel): ChannelAmino { const obj: any = {}; - obj.state = message.state; - obj.ordering = message.ordering; + obj.state = message.state === 0 ? undefined : message.state; + obj.ordering = message.ordering === 0 ? undefined : message.ordering; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; if (message.connectionHops) { obj.connection_hops = message.connectionHops.map(e => e); } else { - obj.connection_hops = []; + obj.connection_hops = message.connectionHops; } - obj.version = message.version; + obj.version = message.version === "" ? undefined : message.version; return obj; }, fromAminoMsg(object: ChannelAminoMsg): Channel { @@ -634,10 +634,10 @@ export const IdentifiedChannel = { fromAmino(object: IdentifiedChannelAmino): IdentifiedChannel { const message = createBaseIdentifiedChannel(); if (object.state !== undefined && object.state !== null) { - message.state = stateFromJSON(object.state); + message.state = object.state; } if (object.ordering !== undefined && object.ordering !== null) { - message.ordering = orderFromJSON(object.ordering); + message.ordering = object.ordering; } if (object.counterparty !== undefined && object.counterparty !== null) { message.counterparty = Counterparty.fromAmino(object.counterparty); @@ -656,17 +656,17 @@ export const IdentifiedChannel = { }, toAmino(message: IdentifiedChannel): IdentifiedChannelAmino { const obj: any = {}; - obj.state = message.state; - obj.ordering = message.ordering; + obj.state = message.state === 0 ? undefined : message.state; + obj.ordering = message.ordering === 0 ? undefined : message.ordering; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; if (message.connectionHops) { obj.connection_hops = message.connectionHops.map(e => e); } else { - obj.connection_hops = []; + obj.connection_hops = message.connectionHops; } - obj.version = message.version; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.version = message.version === "" ? undefined : message.version; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; return obj; }, fromAminoMsg(object: IdentifiedChannelAminoMsg): IdentifiedChannel { @@ -746,8 +746,8 @@ export const Counterparty = { }, toAmino(message: Counterparty): CounterpartyAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; return obj; }, fromAminoMsg(object: CounterpartyAminoMsg): Counterparty { @@ -893,14 +893,14 @@ export const Packet = { }, toAmino(message: Packet): PacketAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.source_port = message.sourcePort; - obj.source_channel = message.sourceChannel; - obj.destination_port = message.destinationPort; - obj.destination_channel = message.destinationChannel; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.source_port = message.sourcePort === "" ? undefined : message.sourcePort; + obj.source_channel = message.sourceChannel === "" ? undefined : message.sourceChannel; + obj.destination_port = message.destinationPort === "" ? undefined : message.destinationPort; + obj.destination_channel = message.destinationChannel === "" ? undefined : message.destinationChannel; obj.data = message.data ? base64FromBytes(message.data) : undefined; obj.timeout_height = message.timeoutHeight ? Height.toAmino(message.timeoutHeight) : {}; - obj.timeout_timestamp = message.timeoutTimestamp ? message.timeoutTimestamp.toString() : undefined; + obj.timeout_timestamp = message.timeoutTimestamp !== BigInt(0) ? message.timeoutTimestamp.toString() : undefined; return obj; }, fromAminoMsg(object: PacketAminoMsg): Packet { @@ -1002,9 +1002,9 @@ export const PacketState = { }, toAmino(message: PacketState): PacketStateAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1086,7 +1086,7 @@ export const Acknowledgement = { toAmino(message: Acknowledgement): AcknowledgementAmino { const obj: any = {}; obj.result = message.result ? base64FromBytes(message.result) : undefined; - obj.error = message.error; + obj.error = message.error === null ? undefined : message.error; return obj; }, fromAminoMsg(object: AcknowledgementAminoMsg): Acknowledgement { diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/genesis.ts b/packages/proto/src/codegen/ibc/core/channel/v1/genesis.ts index f7b5503d..8da8670f 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/genesis.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/genesis.ts @@ -188,39 +188,39 @@ export const GenesisState = { if (message.channels) { obj.channels = message.channels.map(e => e ? IdentifiedChannel.toAmino(e) : undefined); } else { - obj.channels = []; + obj.channels = message.channels; } if (message.acknowledgements) { obj.acknowledgements = message.acknowledgements.map(e => e ? PacketState.toAmino(e) : undefined); } else { - obj.acknowledgements = []; + obj.acknowledgements = message.acknowledgements; } if (message.commitments) { obj.commitments = message.commitments.map(e => e ? PacketState.toAmino(e) : undefined); } else { - obj.commitments = []; + obj.commitments = message.commitments; } if (message.receipts) { obj.receipts = message.receipts.map(e => e ? PacketState.toAmino(e) : undefined); } else { - obj.receipts = []; + obj.receipts = message.receipts; } if (message.sendSequences) { obj.send_sequences = message.sendSequences.map(e => e ? PacketSequence.toAmino(e) : undefined); } else { - obj.send_sequences = []; + obj.send_sequences = message.sendSequences; } if (message.recvSequences) { obj.recv_sequences = message.recvSequences.map(e => e ? PacketSequence.toAmino(e) : undefined); } else { - obj.recv_sequences = []; + obj.recv_sequences = message.recvSequences; } if (message.ackSequences) { obj.ack_sequences = message.ackSequences.map(e => e ? PacketSequence.toAmino(e) : undefined); } else { - obj.ack_sequences = []; + obj.ack_sequences = message.ackSequences; } - obj.next_channel_sequence = message.nextChannelSequence ? message.nextChannelSequence.toString() : undefined; + obj.next_channel_sequence = message.nextChannelSequence !== BigInt(0) ? message.nextChannelSequence.toString() : undefined; return obj; }, fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { @@ -311,9 +311,9 @@ export const PacketSequence = { }, toAmino(message: PacketSequence): PacketSequenceAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: PacketSequenceAminoMsg): PacketSequence { diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/query.ts b/packages/proto/src/codegen/ibc/core/channel/v1/query.ts index f56d2d05..77167af7 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/query.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/query.ts @@ -1081,8 +1081,8 @@ export const QueryChannelRequest = { }, toAmino(message: QueryChannelRequest): QueryChannelRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; return obj; }, fromAminoMsg(object: QueryChannelRequestAminoMsg): QueryChannelRequest { @@ -1336,7 +1336,7 @@ export const QueryChannelsResponse = { if (message.channels) { obj.channels = message.channels.map(e => e ? IdentifiedChannel.toAmino(e) : undefined); } else { - obj.channels = []; + obj.channels = message.channels; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; obj.height = message.height ? Height.toAmino(message.height) : {}; @@ -1419,7 +1419,7 @@ export const QueryConnectionChannelsRequest = { }, toAmino(message: QueryConnectionChannelsRequest): QueryConnectionChannelsRequestAmino { const obj: any = {}; - obj.connection = message.connection; + obj.connection = message.connection === "" ? undefined : message.connection; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1512,7 +1512,7 @@ export const QueryConnectionChannelsResponse = { if (message.channels) { obj.channels = message.channels.map(e => e ? IdentifiedChannel.toAmino(e) : undefined); } else { - obj.channels = []; + obj.channels = message.channels; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; obj.height = message.height ? Height.toAmino(message.height) : {}; @@ -1595,8 +1595,8 @@ export const QueryChannelClientStateRequest = { }, toAmino(message: QueryChannelClientStateRequest): QueryChannelClientStateRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; return obj; }, fromAminoMsg(object: QueryChannelClientStateRequestAminoMsg): QueryChannelClientStateRequest { @@ -1791,10 +1791,10 @@ export const QueryChannelConsensusStateRequest = { }, toAmino(message: QueryChannelConsensusStateRequest): QueryChannelConsensusStateRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.revision_number = message.revisionNumber ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight ? message.revisionHeight.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; return obj; }, fromAminoMsg(object: QueryChannelConsensusStateRequestAminoMsg): QueryChannelConsensusStateRequest { @@ -1897,7 +1897,7 @@ export const QueryChannelConsensusStateResponse = { toAmino(message: QueryChannelConsensusStateResponse): QueryChannelConsensusStateResponseAmino { const obj: any = {}; obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; return obj; @@ -1990,9 +1990,9 @@ export const QueryPacketCommitmentRequest = { }, toAmino(message: QueryPacketCommitmentRequest): QueryPacketCommitmentRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: QueryPacketCommitmentRequestAminoMsg): QueryPacketCommitmentRequest { @@ -2176,8 +2176,8 @@ export const QueryPacketCommitmentsRequest = { }, toAmino(message: QueryPacketCommitmentsRequest): QueryPacketCommitmentsRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -2270,7 +2270,7 @@ export const QueryPacketCommitmentsResponse = { if (message.commitments) { obj.commitments = message.commitments.map(e => e ? PacketState.toAmino(e) : undefined); } else { - obj.commitments = []; + obj.commitments = message.commitments; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; obj.height = message.height ? Height.toAmino(message.height) : {}; @@ -2364,9 +2364,9 @@ export const QueryPacketReceiptRequest = { }, toAmino(message: QueryPacketReceiptRequest): QueryPacketReceiptRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: QueryPacketReceiptRequestAminoMsg): QueryPacketReceiptRequest { @@ -2457,7 +2457,7 @@ export const QueryPacketReceiptResponse = { }, toAmino(message: QueryPacketReceiptResponse): QueryPacketReceiptResponseAmino { const obj: any = {}; - obj.received = message.received; + obj.received = message.received === false ? undefined : message.received; obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; return obj; @@ -2550,9 +2550,9 @@ export const QueryPacketAcknowledgementRequest = { }, toAmino(message: QueryPacketAcknowledgementRequest): QueryPacketAcknowledgementRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; return obj; }, fromAminoMsg(object: QueryPacketAcknowledgementRequestAminoMsg): QueryPacketAcknowledgementRequest { @@ -2754,13 +2754,13 @@ export const QueryPacketAcknowledgementsRequest = { }, toAmino(message: QueryPacketAcknowledgementsRequest): QueryPacketAcknowledgementsRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; if (message.packetCommitmentSequences) { obj.packet_commitment_sequences = message.packetCommitmentSequences.map(e => e.toString()); } else { - obj.packet_commitment_sequences = []; + obj.packet_commitment_sequences = message.packetCommitmentSequences; } return obj; }, @@ -2853,7 +2853,7 @@ export const QueryPacketAcknowledgementsResponse = { if (message.acknowledgements) { obj.acknowledgements = message.acknowledgements.map(e => e ? PacketState.toAmino(e) : undefined); } else { - obj.acknowledgements = []; + obj.acknowledgements = message.acknowledgements; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; obj.height = message.height ? Height.toAmino(message.height) : {}; @@ -2954,12 +2954,12 @@ export const QueryUnreceivedPacketsRequest = { }, toAmino(message: QueryUnreceivedPacketsRequest): QueryUnreceivedPacketsRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; if (message.packetCommitmentSequences) { obj.packet_commitment_sequences = message.packetCommitmentSequences.map(e => e.toString()); } else { - obj.packet_commitment_sequences = []; + obj.packet_commitment_sequences = message.packetCommitmentSequences; } return obj; }, @@ -3050,7 +3050,7 @@ export const QueryUnreceivedPacketsResponse = { if (message.sequences) { obj.sequences = message.sequences.map(e => e.toString()); } else { - obj.sequences = []; + obj.sequences = message.sequences; } obj.height = message.height ? Height.toAmino(message.height) : {}; return obj; @@ -3150,12 +3150,12 @@ export const QueryUnreceivedAcksRequest = { }, toAmino(message: QueryUnreceivedAcksRequest): QueryUnreceivedAcksRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; if (message.packetAckSequences) { obj.packet_ack_sequences = message.packetAckSequences.map(e => e.toString()); } else { - obj.packet_ack_sequences = []; + obj.packet_ack_sequences = message.packetAckSequences; } return obj; }, @@ -3246,7 +3246,7 @@ export const QueryUnreceivedAcksResponse = { if (message.sequences) { obj.sequences = message.sequences.map(e => e.toString()); } else { - obj.sequences = []; + obj.sequences = message.sequences; } obj.height = message.height ? Height.toAmino(message.height) : {}; return obj; @@ -3328,8 +3328,8 @@ export const QueryNextSequenceReceiveRequest = { }, toAmino(message: QueryNextSequenceReceiveRequest): QueryNextSequenceReceiveRequestAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; return obj; }, fromAminoMsg(object: QueryNextSequenceReceiveRequestAminoMsg): QueryNextSequenceReceiveRequest { @@ -3420,7 +3420,7 @@ export const QueryNextSequenceReceiveResponse = { }, toAmino(message: QueryNextSequenceReceiveResponse): QueryNextSequenceReceiveResponseAmino { const obj: any = {}; - obj.next_sequence_receive = message.nextSequenceReceive ? message.nextSequenceReceive.toString() : undefined; + obj.next_sequence_receive = message.nextSequenceReceive !== BigInt(0) ? message.nextSequenceReceive.toString() : undefined; obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; return obj; diff --git a/packages/proto/src/codegen/ibc/core/channel/v1/tx.ts b/packages/proto/src/codegen/ibc/core/channel/v1/tx.ts index 0ea0a957..66eb0f52 100644 --- a/packages/proto/src/codegen/ibc/core/channel/v1/tx.ts +++ b/packages/proto/src/codegen/ibc/core/channel/v1/tx.ts @@ -608,9 +608,9 @@ export const MsgChannelOpenInit = { }, toAmino(message: MsgChannelOpenInit): MsgChannelOpenInitAmino { const obj: any = {}; - obj.port_id = message.portId; + obj.port_id = message.portId === "" ? undefined : message.portId; obj.channel = message.channel ? Channel.toAmino(message.channel) : undefined; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelOpenInitAminoMsg): MsgChannelOpenInit { @@ -801,13 +801,13 @@ export const MsgChannelOpenTry = { }, toAmino(message: MsgChannelOpenTry): MsgChannelOpenTryAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.previous_channel_id = message.previousChannelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.previous_channel_id = message.previousChannelId === "" ? undefined : message.previousChannelId; obj.channel = message.channel ? Channel.toAmino(message.channel) : undefined; - obj.counterparty_version = message.counterpartyVersion; + obj.counterparty_version = message.counterpartyVersion === "" ? undefined : message.counterpartyVersion; obj.proof_init = message.proofInit ? base64FromBytes(message.proofInit) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelOpenTryAminoMsg): MsgChannelOpenTry { @@ -998,13 +998,13 @@ export const MsgChannelOpenAck = { }, toAmino(message: MsgChannelOpenAck): MsgChannelOpenAckAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.counterparty_channel_id = message.counterpartyChannelId; - obj.counterparty_version = message.counterpartyVersion; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.counterparty_channel_id = message.counterpartyChannelId === "" ? undefined : message.counterpartyChannelId; + obj.counterparty_version = message.counterpartyVersion === "" ? undefined : message.counterpartyVersion; obj.proof_try = message.proofTry ? base64FromBytes(message.proofTry) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelOpenAckAminoMsg): MsgChannelOpenAck { @@ -1173,11 +1173,11 @@ export const MsgChannelOpenConfirm = { }, toAmino(message: MsgChannelOpenConfirm): MsgChannelOpenConfirmAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; obj.proof_ack = message.proofAck ? base64FromBytes(message.proofAck) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelOpenConfirmAminoMsg): MsgChannelOpenConfirm { @@ -1324,9 +1324,9 @@ export const MsgChannelCloseInit = { }, toAmino(message: MsgChannelCloseInit): MsgChannelCloseInitAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; - obj.signer = message.signer; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelCloseInitAminoMsg): MsgChannelCloseInit { @@ -1495,11 +1495,11 @@ export const MsgChannelCloseConfirm = { }, toAmino(message: MsgChannelCloseConfirm): MsgChannelCloseConfirmAmino { const obj: any = {}; - obj.port_id = message.portId; - obj.channel_id = message.channelId; + obj.port_id = message.portId === "" ? undefined : message.portId; + obj.channel_id = message.channelId === "" ? undefined : message.channelId; obj.proof_init = message.proofInit ? base64FromBytes(message.proofInit) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgChannelCloseConfirmAminoMsg): MsgChannelCloseConfirm { @@ -1660,7 +1660,7 @@ export const MsgRecvPacket = { obj.packet = message.packet ? Packet.toAmino(message.packet) : undefined; obj.proof_commitment = message.proofCommitment ? base64FromBytes(message.proofCommitment) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgRecvPacketAminoMsg): MsgRecvPacket { @@ -1832,8 +1832,8 @@ export const MsgTimeout = { obj.packet = message.packet ? Packet.toAmino(message.packet) : undefined; obj.proof_unreceived = message.proofUnreceived ? base64FromBytes(message.proofUnreceived) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.next_sequence_recv = message.nextSequenceRecv ? message.nextSequenceRecv.toString() : undefined; - obj.signer = message.signer; + obj.next_sequence_recv = message.nextSequenceRecv !== BigInt(0) ? message.nextSequenceRecv.toString() : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgTimeoutAminoMsg): MsgTimeout { @@ -2017,8 +2017,8 @@ export const MsgTimeoutOnClose = { obj.proof_unreceived = message.proofUnreceived ? base64FromBytes(message.proofUnreceived) : undefined; obj.proof_close = message.proofClose ? base64FromBytes(message.proofClose) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.next_sequence_recv = message.nextSequenceRecv ? message.nextSequenceRecv.toString() : undefined; - obj.signer = message.signer; + obj.next_sequence_recv = message.nextSequenceRecv !== BigInt(0) ? message.nextSequenceRecv.toString() : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgTimeoutOnCloseAminoMsg): MsgTimeoutOnClose { @@ -2191,7 +2191,7 @@ export const MsgAcknowledgement = { obj.acknowledgement = message.acknowledgement ? base64FromBytes(message.acknowledgement) : undefined; obj.proof_acked = message.proofAcked ? base64FromBytes(message.proofAcked) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgAcknowledgementAminoMsg): MsgAcknowledgement { diff --git a/packages/proto/src/codegen/ibc/core/client/v1/client.ts b/packages/proto/src/codegen/ibc/core/client/v1/client.ts index b3f38f84..8a1f2f0b 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/client.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/client.ts @@ -362,7 +362,7 @@ export const IdentifiedClientState = { }, toAmino(message: IdentifiedClientState): IdentifiedClientStateAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; return obj; }, @@ -522,11 +522,11 @@ export const ClientConsensusStates = { }, toAmino(message: ClientConsensusStates): ClientConsensusStatesAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; if (message.consensusStates) { obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); } else { - obj.consensus_states = []; + obj.consensus_states = message.consensusStates; } return obj; }, @@ -630,10 +630,10 @@ export const ClientUpdateProposal = { }, toAmino(message: ClientUpdateProposal): ClientUpdateProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; - obj.subject_client_id = message.subjectClientId; - obj.substitute_client_id = message.substituteClientId; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; + obj.subject_client_id = message.subjectClientId === "" ? undefined : message.subjectClientId; + obj.substitute_client_id = message.substituteClientId === "" ? undefined : message.substituteClientId; return obj; }, fromAminoMsg(object: ClientUpdateProposalAminoMsg): ClientUpdateProposal { @@ -736,8 +736,8 @@ export const UpgradeProposal = { }, toAmino(message: UpgradeProposal): UpgradeProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; obj.plan = message.plan ? Plan.toAmino(message.plan) : undefined; obj.upgraded_client_state = message.upgradedClientState ? Any.toAmino(message.upgradedClientState) : undefined; return obj; @@ -815,8 +815,8 @@ export const Height = { }, toAmino(message: Height): HeightAmino { const obj: any = {}; - obj.revision_number = message.revisionNumber ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight ? message.revisionHeight.toString() : undefined; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; return obj; }, fromAminoMsg(object: HeightAminoMsg): Height { @@ -886,7 +886,7 @@ export const Params = { if (message.allowedClients) { obj.allowed_clients = message.allowedClients.map(e => e); } else { - obj.allowed_clients = []; + obj.allowed_clients = message.allowedClients; } return obj; }, diff --git a/packages/proto/src/codegen/ibc/core/client/v1/genesis.ts b/packages/proto/src/codegen/ibc/core/client/v1/genesis.ts index 1012eec3..5109a5b0 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/genesis.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/genesis.ts @@ -210,21 +210,21 @@ export const GenesisState = { if (message.clients) { obj.clients = message.clients.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); } else { - obj.clients = []; + obj.clients = message.clients; } if (message.clientsConsensus) { obj.clients_consensus = message.clientsConsensus.map(e => e ? ClientConsensusStates.toAmino(e) : undefined); } else { - obj.clients_consensus = []; + obj.clients_consensus = message.clientsConsensus; } if (message.clientsMetadata) { obj.clients_metadata = message.clientsMetadata.map(e => e ? IdentifiedGenesisMetadata.toAmino(e) : undefined); } else { - obj.clients_metadata = []; + obj.clients_metadata = message.clientsMetadata; } obj.params = message.params ? Params.toAmino(message.params) : undefined; - obj.create_localhost = message.createLocalhost; - obj.next_client_sequence = message.nextClientSequence ? message.nextClientSequence.toString() : undefined; + obj.create_localhost = message.createLocalhost === false ? undefined : message.createLocalhost; + obj.next_client_sequence = message.nextClientSequence !== BigInt(0) ? message.nextClientSequence.toString() : undefined; return obj; }, fromAminoMsg(object: GenesisStateAminoMsg): GenesisState { @@ -383,11 +383,11 @@ export const IdentifiedGenesisMetadata = { }, toAmino(message: IdentifiedGenesisMetadata): IdentifiedGenesisMetadataAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; if (message.clientMetadata) { obj.client_metadata = message.clientMetadata.map(e => e ? GenesisMetadata.toAmino(e) : undefined); } else { - obj.client_metadata = []; + obj.client_metadata = message.clientMetadata; } return obj; }, diff --git a/packages/proto/src/codegen/ibc/core/client/v1/query.ts b/packages/proto/src/codegen/ibc/core/client/v1/query.ts index b584a218..30f18f80 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/query.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/query.ts @@ -579,7 +579,7 @@ export const QueryClientStateRequest = { }, toAmino(message: QueryClientStateRequest): QueryClientStateRequestAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; return obj; }, fromAminoMsg(object: QueryClientStateRequestAminoMsg): QueryClientStateRequest { @@ -822,7 +822,7 @@ export const QueryClientStatesResponse = { if (message.clientStates) { obj.client_states = message.clientStates.map(e => e ? IdentifiedClientState.toAmino(e) : undefined); } else { - obj.client_states = []; + obj.client_states = message.clientStates; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -926,10 +926,10 @@ export const QueryConsensusStateRequest = { }, toAmino(message: QueryConsensusStateRequest): QueryConsensusStateRequestAmino { const obj: any = {}; - obj.client_id = message.clientId; - obj.revision_number = message.revisionNumber ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight ? message.revisionHeight.toString() : undefined; - obj.latest_height = message.latestHeight; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; + obj.latest_height = message.latestHeight === false ? undefined : message.latestHeight; return obj; }, fromAminoMsg(object: QueryConsensusStateRequestAminoMsg): QueryConsensusStateRequest { @@ -1102,7 +1102,7 @@ export const QueryConsensusStatesRequest = { }, toAmino(message: QueryConsensusStatesRequest): QueryConsensusStatesRequestAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.pagination = message.pagination ? PageRequest.toAmino(message.pagination) : undefined; return obj; }, @@ -1184,7 +1184,7 @@ export const QueryConsensusStatesResponse = { if (message.consensusStates) { obj.consensus_states = message.consensusStates.map(e => e ? ConsensusStateWithHeight.toAmino(e) : undefined); } else { - obj.consensus_states = []; + obj.consensus_states = message.consensusStates; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; return obj; @@ -1255,7 +1255,7 @@ export const QueryClientStatusRequest = { }, toAmino(message: QueryClientStatusRequest): QueryClientStatusRequestAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; return obj; }, fromAminoMsg(object: QueryClientStatusRequestAminoMsg): QueryClientStatusRequest { @@ -1324,7 +1324,7 @@ export const QueryClientStatusResponse = { }, toAmino(message: QueryClientStatusResponse): QueryClientStatusResponseAmino { const obj: any = {}; - obj.status = message.status; + obj.status = message.status === "" ? undefined : message.status; return obj; }, fromAminoMsg(object: QueryClientStatusResponseAminoMsg): QueryClientStatusResponse { diff --git a/packages/proto/src/codegen/ibc/core/client/v1/tx.ts b/packages/proto/src/codegen/ibc/core/client/v1/tx.ts index b67cdabd..2670f58c 100644 --- a/packages/proto/src/codegen/ibc/core/client/v1/tx.ts +++ b/packages/proto/src/codegen/ibc/core/client/v1/tx.ts @@ -316,7 +316,7 @@ export const MsgCreateClient = { const obj: any = {}; obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgCreateClientAminoMsg): MsgCreateClient { @@ -463,9 +463,9 @@ export const MsgUpdateClient = { }, toAmino(message: MsgUpdateClient): MsgUpdateClientAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.header = message.header ? Any.toAmino(message.header) : undefined; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgUpdateClientAminoMsg): MsgUpdateClient { @@ -645,12 +645,12 @@ export const MsgUpgradeClient = { }, toAmino(message: MsgUpgradeClient): MsgUpgradeClientAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; obj.proof_upgrade_client = message.proofUpgradeClient ? base64FromBytes(message.proofUpgradeClient) : undefined; obj.proof_upgrade_consensus_state = message.proofUpgradeConsensusState ? base64FromBytes(message.proofUpgradeConsensusState) : undefined; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgUpgradeClientAminoMsg): MsgUpgradeClient { @@ -797,9 +797,9 @@ export const MsgSubmitMisbehaviour = { }, toAmino(message: MsgSubmitMisbehaviour): MsgSubmitMisbehaviourAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.misbehaviour = message.misbehaviour ? Any.toAmino(message.misbehaviour) : undefined; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgSubmitMisbehaviourAminoMsg): MsgSubmitMisbehaviour { diff --git a/packages/proto/src/codegen/ibc/core/commitment/v1/commitment.ts b/packages/proto/src/codegen/ibc/core/commitment/v1/commitment.ts index 42743ea5..a986d63d 100644 --- a/packages/proto/src/codegen/ibc/core/commitment/v1/commitment.ts +++ b/packages/proto/src/codegen/ibc/core/commitment/v1/commitment.ts @@ -315,7 +315,7 @@ export const MerklePath = { if (message.keyPath) { obj.key_path = message.keyPath.map(e => e); } else { - obj.key_path = []; + obj.key_path = message.keyPath; } return obj; }, @@ -386,7 +386,7 @@ export const MerkleProof = { if (message.proofs) { obj.proofs = message.proofs.map(e => e ? CommitmentProof.toAmino(e) : undefined); } else { - obj.proofs = []; + obj.proofs = message.proofs; } return obj; }, diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/connection.ts b/packages/proto/src/codegen/ibc/core/connection/v1/connection.ts index c8e0c91d..ce8f4398 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/connection.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/connection.ts @@ -421,7 +421,7 @@ export const ConnectionEnd = { } message.versions = object.versions?.map(e => Version.fromAmino(e)) || []; if (object.state !== undefined && object.state !== null) { - message.state = stateFromJSON(object.state); + message.state = object.state; } if (object.counterparty !== undefined && object.counterparty !== null) { message.counterparty = Counterparty.fromAmino(object.counterparty); @@ -433,15 +433,15 @@ export const ConnectionEnd = { }, toAmino(message: ConnectionEnd): ConnectionEndAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; if (message.versions) { obj.versions = message.versions.map(e => e ? Version.toAmino(e) : undefined); } else { - obj.versions = []; + obj.versions = message.versions; } - obj.state = message.state; + obj.state = message.state === 0 ? undefined : message.state; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; - obj.delay_period = message.delayPeriod ? message.delayPeriod.toString() : undefined; + obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod.toString() : undefined; return obj; }, fromAminoMsg(object: ConnectionEndAminoMsg): ConnectionEnd { @@ -551,7 +551,7 @@ export const IdentifiedConnection = { } message.versions = object.versions?.map(e => Version.fromAmino(e)) || []; if (object.state !== undefined && object.state !== null) { - message.state = stateFromJSON(object.state); + message.state = object.state; } if (object.counterparty !== undefined && object.counterparty !== null) { message.counterparty = Counterparty.fromAmino(object.counterparty); @@ -563,16 +563,16 @@ export const IdentifiedConnection = { }, toAmino(message: IdentifiedConnection): IdentifiedConnectionAmino { const obj: any = {}; - obj.id = message.id; - obj.client_id = message.clientId; + obj.id = message.id === "" ? undefined : message.id; + obj.client_id = message.clientId === "" ? undefined : message.clientId; if (message.versions) { obj.versions = message.versions.map(e => e ? Version.toAmino(e) : undefined); } else { - obj.versions = []; + obj.versions = message.versions; } - obj.state = message.state; + obj.state = message.state === 0 ? undefined : message.state; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; - obj.delay_period = message.delayPeriod ? message.delayPeriod.toString() : undefined; + obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod.toString() : undefined; return obj; }, fromAminoMsg(object: IdentifiedConnectionAminoMsg): IdentifiedConnection { @@ -663,8 +663,8 @@ export const Counterparty = { }, toAmino(message: Counterparty): CounterpartyAmino { const obj: any = {}; - obj.client_id = message.clientId; - obj.connection_id = message.connectionId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; obj.prefix = message.prefix ? MerklePrefix.toAmino(message.prefix) : undefined; return obj; }, @@ -735,7 +735,7 @@ export const ClientPaths = { if (message.paths) { obj.paths = message.paths.map(e => e); } else { - obj.paths = []; + obj.paths = message.paths; } return obj; }, @@ -814,11 +814,11 @@ export const ConnectionPaths = { }, toAmino(message: ConnectionPaths): ConnectionPathsAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; if (message.paths) { obj.paths = message.paths.map(e => e); } else { - obj.paths = []; + obj.paths = message.paths; } return obj; }, @@ -897,11 +897,11 @@ export const Version = { }, toAmino(message: Version): VersionAmino { const obj: any = {}; - obj.identifier = message.identifier; + obj.identifier = message.identifier === "" ? undefined : message.identifier; if (message.features) { obj.features = message.features.map(e => e); } else { - obj.features = []; + obj.features = message.features; } return obj; }, @@ -971,7 +971,7 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.max_expected_time_per_block = message.maxExpectedTimePerBlock ? message.maxExpectedTimePerBlock.toString() : undefined; + obj.max_expected_time_per_block = message.maxExpectedTimePerBlock !== BigInt(0) ? message.maxExpectedTimePerBlock.toString() : undefined; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/genesis.ts b/packages/proto/src/codegen/ibc/core/connection/v1/genesis.ts index a6537486..e8f56369 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/genesis.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/genesis.ts @@ -107,14 +107,14 @@ export const GenesisState = { if (message.connections) { obj.connections = message.connections.map(e => e ? IdentifiedConnection.toAmino(e) : undefined); } else { - obj.connections = []; + obj.connections = message.connections; } if (message.clientConnectionPaths) { obj.client_connection_paths = message.clientConnectionPaths.map(e => e ? ConnectionPaths.toAmino(e) : undefined); } else { - obj.client_connection_paths = []; + obj.client_connection_paths = message.clientConnectionPaths; } - obj.next_connection_sequence = message.nextConnectionSequence ? message.nextConnectionSequence.toString() : undefined; + obj.next_connection_sequence = message.nextConnectionSequence !== BigInt(0) ? message.nextConnectionSequence.toString() : undefined; obj.params = message.params ? Params.toAmino(message.params) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/query.ts b/packages/proto/src/codegen/ibc/core/connection/v1/query.ts index 5a353535..8224c816 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/query.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/query.ts @@ -420,7 +420,7 @@ export const QueryConnectionRequest = { }, toAmino(message: QueryConnectionRequest): QueryConnectionRequestAmino { const obj: any = {}; - obj.connection_id = message.connectionId; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; return obj; }, fromAminoMsg(object: QueryConnectionRequestAminoMsg): QueryConnectionRequest { @@ -674,7 +674,7 @@ export const QueryConnectionsResponse = { if (message.connections) { obj.connections = message.connections.map(e => e ? IdentifiedConnection.toAmino(e) : undefined); } else { - obj.connections = []; + obj.connections = message.connections; } obj.pagination = message.pagination ? PageResponse.toAmino(message.pagination) : undefined; obj.height = message.height ? Height.toAmino(message.height) : {}; @@ -746,7 +746,7 @@ export const QueryClientConnectionsRequest = { }, toAmino(message: QueryClientConnectionsRequest): QueryClientConnectionsRequestAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; return obj; }, fromAminoMsg(object: QueryClientConnectionsRequestAminoMsg): QueryClientConnectionsRequest { @@ -838,7 +838,7 @@ export const QueryClientConnectionsResponse = { if (message.connectionPaths) { obj.connection_paths = message.connectionPaths.map(e => e); } else { - obj.connection_paths = []; + obj.connection_paths = message.connectionPaths; } obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; @@ -910,7 +910,7 @@ export const QueryConnectionClientStateRequest = { }, toAmino(message: QueryConnectionClientStateRequest): QueryConnectionClientStateRequestAmino { const obj: any = {}; - obj.connection_id = message.connectionId; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; return obj; }, fromAminoMsg(object: QueryConnectionClientStateRequestAminoMsg): QueryConnectionClientStateRequest { @@ -1094,9 +1094,9 @@ export const QueryConnectionConsensusStateRequest = { }, toAmino(message: QueryConnectionConsensusStateRequest): QueryConnectionConsensusStateRequestAmino { const obj: any = {}; - obj.connection_id = message.connectionId; - obj.revision_number = message.revisionNumber ? message.revisionNumber.toString() : undefined; - obj.revision_height = message.revisionHeight ? message.revisionHeight.toString() : undefined; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.revision_number = message.revisionNumber !== BigInt(0) ? message.revisionNumber.toString() : undefined; + obj.revision_height = message.revisionHeight !== BigInt(0) ? message.revisionHeight.toString() : undefined; return obj; }, fromAminoMsg(object: QueryConnectionConsensusStateRequestAminoMsg): QueryConnectionConsensusStateRequest { @@ -1199,7 +1199,7 @@ export const QueryConnectionConsensusStateResponse = { toAmino(message: QueryConnectionConsensusStateResponse): QueryConnectionConsensusStateResponseAmino { const obj: any = {}; obj.consensus_state = message.consensusState ? Any.toAmino(message.consensusState) : undefined; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.proof = message.proof ? base64FromBytes(message.proof) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; return obj; diff --git a/packages/proto/src/codegen/ibc/core/connection/v1/tx.ts b/packages/proto/src/codegen/ibc/core/connection/v1/tx.ts index 253f6201..5df3d879 100644 --- a/packages/proto/src/codegen/ibc/core/connection/v1/tx.ts +++ b/packages/proto/src/codegen/ibc/core/connection/v1/tx.ts @@ -396,11 +396,11 @@ export const MsgConnectionOpenInit = { }, toAmino(message: MsgConnectionOpenInit): MsgConnectionOpenInitAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; obj.version = message.version ? Version.toAmino(message.version) : undefined; - obj.delay_period = message.delayPeriod ? message.delayPeriod.toString() : undefined; - obj.signer = message.signer; + obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod.toString() : undefined; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgConnectionOpenInitAminoMsg): MsgConnectionOpenInit { @@ -644,22 +644,22 @@ export const MsgConnectionOpenTry = { }, toAmino(message: MsgConnectionOpenTry): MsgConnectionOpenTryAmino { const obj: any = {}; - obj.client_id = message.clientId; - obj.previous_connection_id = message.previousConnectionId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.previous_connection_id = message.previousConnectionId === "" ? undefined : message.previousConnectionId; obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; obj.counterparty = message.counterparty ? Counterparty.toAmino(message.counterparty) : undefined; - obj.delay_period = message.delayPeriod ? message.delayPeriod.toString() : undefined; + obj.delay_period = message.delayPeriod !== BigInt(0) ? message.delayPeriod.toString() : undefined; if (message.counterpartyVersions) { obj.counterparty_versions = message.counterpartyVersions.map(e => e ? Version.toAmino(e) : undefined); } else { - obj.counterparty_versions = []; + obj.counterparty_versions = message.counterpartyVersions; } obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; obj.proof_init = message.proofInit ? base64FromBytes(message.proofInit) : undefined; obj.proof_client = message.proofClient ? base64FromBytes(message.proofClient) : undefined; obj.proof_consensus = message.proofConsensus ? base64FromBytes(message.proofConsensus) : undefined; obj.consensus_height = message.consensusHeight ? Height.toAmino(message.consensusHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgConnectionOpenTryAminoMsg): MsgConnectionOpenTry { @@ -883,8 +883,8 @@ export const MsgConnectionOpenAck = { }, toAmino(message: MsgConnectionOpenAck): MsgConnectionOpenAckAmino { const obj: any = {}; - obj.connection_id = message.connectionId; - obj.counterparty_connection_id = message.counterpartyConnectionId; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; + obj.counterparty_connection_id = message.counterpartyConnectionId === "" ? undefined : message.counterpartyConnectionId; obj.version = message.version ? Version.toAmino(message.version) : undefined; obj.client_state = message.clientState ? Any.toAmino(message.clientState) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; @@ -892,7 +892,7 @@ export const MsgConnectionOpenAck = { obj.proof_client = message.proofClient ? base64FromBytes(message.proofClient) : undefined; obj.proof_consensus = message.proofConsensus ? base64FromBytes(message.proofConsensus) : undefined; obj.consensus_height = message.consensusHeight ? Height.toAmino(message.consensusHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgConnectionOpenAckAminoMsg): MsgConnectionOpenAck { @@ -1050,10 +1050,10 @@ export const MsgConnectionOpenConfirm = { }, toAmino(message: MsgConnectionOpenConfirm): MsgConnectionOpenConfirmAmino { const obj: any = {}; - obj.connection_id = message.connectionId; + obj.connection_id = message.connectionId === "" ? undefined : message.connectionId; obj.proof_ack = message.proofAck ? base64FromBytes(message.proofAck) : undefined; obj.proof_height = message.proofHeight ? Height.toAmino(message.proofHeight) : {}; - obj.signer = message.signer; + obj.signer = message.signer === "" ? undefined : message.signer; return obj; }, fromAminoMsg(object: MsgConnectionOpenConfirmAminoMsg): MsgConnectionOpenConfirm { diff --git a/packages/proto/src/codegen/ibc/lightclients/localhost/v1/localhost.ts b/packages/proto/src/codegen/ibc/lightclients/localhost/v1/localhost.ts index 6df23987..d358f91d 100644 --- a/packages/proto/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +++ b/packages/proto/src/codegen/ibc/lightclients/localhost/v1/localhost.ts @@ -91,7 +91,7 @@ export const ClientState = { }, toAmino(message: ClientState): ClientStateAmino { const obj: any = {}; - obj.chain_id = message.chainId; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; obj.height = message.height ? Height.toAmino(message.height) : {}; return obj; }, diff --git a/packages/proto/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts b/packages/proto/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts index f34aaea0..8a8e7dfe 100644 --- a/packages/proto/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +++ b/packages/proto/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts @@ -723,10 +723,10 @@ export const ClientState = { }, toAmino(message: ClientState): ClientStateAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.frozen_sequence = message.frozenSequence ? message.frozenSequence.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.frozen_sequence = message.frozenSequence !== BigInt(0) ? message.frozenSequence.toString() : undefined; obj.consensus_state = message.consensusState ? ConsensusState.toAmino(message.consensusState) : undefined; - obj.allow_update_after_proposal = message.allowUpdateAfterProposal; + obj.allow_update_after_proposal = message.allowUpdateAfterProposal === false ? undefined : message.allowUpdateAfterProposal; return obj; }, fromAminoMsg(object: ClientStateAminoMsg): ClientState { @@ -818,8 +818,8 @@ export const ConsensusState = { toAmino(message: ConsensusState): ConsensusStateAmino { const obj: any = {}; obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.diversifier = message.diversifier; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.diversifier = message.diversifier === "" ? undefined : message.diversifier; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: ConsensusStateAminoMsg): ConsensusState { @@ -932,11 +932,11 @@ export const Header = { }, toAmino(message: Header): HeaderAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; obj.new_public_key = message.newPublicKey ? Any.toAmino(message.newPublicKey) : undefined; - obj.new_diversifier = message.newDiversifier; + obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier; return obj; }, fromAminoMsg(object: HeaderAminoMsg): Header { @@ -1038,8 +1038,8 @@ export const Misbehaviour = { }, toAmino(message: Misbehaviour): MisbehaviourAmino { const obj: any = {}; - obj.client_id = message.clientId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; obj.signature_one = message.signatureOne ? SignatureAndData.toAmino(message.signatureOne) : undefined; obj.signature_two = message.signatureTwo ? SignatureAndData.toAmino(message.signatureTwo) : undefined; return obj; @@ -1131,7 +1131,7 @@ export const SignatureAndData = { message.signature = bytesFromBase64(object.signature); } if (object.data_type !== undefined && object.data_type !== null) { - message.dataType = dataTypeFromJSON(object.data_type); + message.dataType = object.data_type; } if (object.data !== undefined && object.data !== null) { message.data = bytesFromBase64(object.data); @@ -1144,9 +1144,9 @@ export const SignatureAndData = { toAmino(message: SignatureAndData): SignatureAndDataAmino { const obj: any = {}; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - obj.data_type = message.dataType; + obj.data_type = message.dataType === 0 ? undefined : message.dataType; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: SignatureAndDataAminoMsg): SignatureAndData { @@ -1227,7 +1227,7 @@ export const TimestampedSignatureData = { toAmino(message: TimestampedSignatureData): TimestampedSignatureDataAmino { const obj: any = {}; obj.signature_data = message.signatureData ? base64FromBytes(message.signatureData) : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: TimestampedSignatureDataAminoMsg): TimestampedSignatureData { @@ -1331,7 +1331,7 @@ export const SignBytes = { message.diversifier = object.diversifier; } if (object.data_type !== undefined && object.data_type !== null) { - message.dataType = dataTypeFromJSON(object.data_type); + message.dataType = object.data_type; } if (object.data !== undefined && object.data !== null) { message.data = bytesFromBase64(object.data); @@ -1340,10 +1340,10 @@ export const SignBytes = { }, toAmino(message: SignBytes): SignBytesAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; - obj.diversifier = message.diversifier; - obj.data_type = message.dataType; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; + obj.diversifier = message.diversifier === "" ? undefined : message.diversifier; + obj.data_type = message.dataType === 0 ? undefined : message.dataType; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1425,7 +1425,7 @@ export const HeaderData = { toAmino(message: HeaderData): HeaderDataAmino { const obj: any = {}; obj.new_pub_key = message.newPubKey ? Any.toAmino(message.newPubKey) : undefined; - obj.new_diversifier = message.newDiversifier; + obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier; return obj; }, fromAminoMsg(object: HeaderDataAminoMsg): HeaderData { @@ -2061,7 +2061,7 @@ export const NextSequenceRecvData = { toAmino(message: NextSequenceRecvData): NextSequenceRecvDataAmino { const obj: any = {}; obj.path = message.path ? base64FromBytes(message.path) : undefined; - obj.next_seq_recv = message.nextSeqRecv ? message.nextSeqRecv.toString() : undefined; + obj.next_seq_recv = message.nextSeqRecv !== BigInt(0) ? message.nextSeqRecv.toString() : undefined; return obj; }, fromAminoMsg(object: NextSequenceRecvDataAminoMsg): NextSequenceRecvData { diff --git a/packages/proto/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts b/packages/proto/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts index 4e7d7ea8..5007c029 100644 --- a/packages/proto/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +++ b/packages/proto/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts @@ -723,10 +723,10 @@ export const ClientState = { }, toAmino(message: ClientState): ClientStateAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.is_frozen = message.isFrozen; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.is_frozen = message.isFrozen === false ? undefined : message.isFrozen; obj.consensus_state = message.consensusState ? ConsensusState.toAmino(message.consensusState) : undefined; - obj.allow_update_after_proposal = message.allowUpdateAfterProposal; + obj.allow_update_after_proposal = message.allowUpdateAfterProposal === false ? undefined : message.allowUpdateAfterProposal; return obj; }, fromAminoMsg(object: ClientStateAminoMsg): ClientState { @@ -818,8 +818,8 @@ export const ConsensusState = { toAmino(message: ConsensusState): ConsensusStateAmino { const obj: any = {}; obj.public_key = message.publicKey ? Any.toAmino(message.publicKey) : undefined; - obj.diversifier = message.diversifier; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.diversifier = message.diversifier === "" ? undefined : message.diversifier; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: ConsensusStateAminoMsg): ConsensusState { @@ -932,11 +932,11 @@ export const Header = { }, toAmino(message: Header): HeaderAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; obj.new_public_key = message.newPublicKey ? Any.toAmino(message.newPublicKey) : undefined; - obj.new_diversifier = message.newDiversifier; + obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier; return obj; }, fromAminoMsg(object: HeaderAminoMsg): Header { @@ -1038,8 +1038,8 @@ export const Misbehaviour = { }, toAmino(message: Misbehaviour): MisbehaviourAmino { const obj: any = {}; - obj.client_id = message.clientId; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; + obj.client_id = message.clientId === "" ? undefined : message.clientId; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; obj.signature_one = message.signatureOne ? SignatureAndData.toAmino(message.signatureOne) : undefined; obj.signature_two = message.signatureTwo ? SignatureAndData.toAmino(message.signatureTwo) : undefined; return obj; @@ -1131,7 +1131,7 @@ export const SignatureAndData = { message.signature = bytesFromBase64(object.signature); } if (object.data_type !== undefined && object.data_type !== null) { - message.dataType = dataTypeFromJSON(object.data_type); + message.dataType = object.data_type; } if (object.data !== undefined && object.data !== null) { message.data = bytesFromBase64(object.data); @@ -1144,9 +1144,9 @@ export const SignatureAndData = { toAmino(message: SignatureAndData): SignatureAndDataAmino { const obj: any = {}; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; - obj.data_type = message.dataType; + obj.data_type = message.dataType === 0 ? undefined : message.dataType; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: SignatureAndDataAminoMsg): SignatureAndData { @@ -1227,7 +1227,7 @@ export const TimestampedSignatureData = { toAmino(message: TimestampedSignatureData): TimestampedSignatureDataAmino { const obj: any = {}; obj.signature_data = message.signatureData ? base64FromBytes(message.signatureData) : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; return obj; }, fromAminoMsg(object: TimestampedSignatureDataAminoMsg): TimestampedSignatureData { @@ -1331,7 +1331,7 @@ export const SignBytes = { message.diversifier = object.diversifier; } if (object.data_type !== undefined && object.data_type !== null) { - message.dataType = dataTypeFromJSON(object.data_type); + message.dataType = object.data_type; } if (object.data !== undefined && object.data !== null) { message.data = bytesFromBase64(object.data); @@ -1340,10 +1340,10 @@ export const SignBytes = { }, toAmino(message: SignBytes): SignBytesAmino { const obj: any = {}; - obj.sequence = message.sequence ? message.sequence.toString() : undefined; - obj.timestamp = message.timestamp ? message.timestamp.toString() : undefined; - obj.diversifier = message.diversifier; - obj.data_type = message.dataType; + obj.sequence = message.sequence !== BigInt(0) ? message.sequence.toString() : undefined; + obj.timestamp = message.timestamp !== BigInt(0) ? message.timestamp.toString() : undefined; + obj.diversifier = message.diversifier === "" ? undefined : message.diversifier; + obj.data_type = message.dataType === 0 ? undefined : message.dataType; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; }, @@ -1425,7 +1425,7 @@ export const HeaderData = { toAmino(message: HeaderData): HeaderDataAmino { const obj: any = {}; obj.new_pub_key = message.newPubKey ? Any.toAmino(message.newPubKey) : undefined; - obj.new_diversifier = message.newDiversifier; + obj.new_diversifier = message.newDiversifier === "" ? undefined : message.newDiversifier; return obj; }, fromAminoMsg(object: HeaderDataAminoMsg): HeaderData { @@ -2061,7 +2061,7 @@ export const NextSequenceRecvData = { toAmino(message: NextSequenceRecvData): NextSequenceRecvDataAmino { const obj: any = {}; obj.path = message.path ? base64FromBytes(message.path) : undefined; - obj.next_seq_recv = message.nextSeqRecv ? message.nextSeqRecv.toString() : undefined; + obj.next_seq_recv = message.nextSeqRecv !== BigInt(0) ? message.nextSeqRecv.toString() : undefined; return obj; }, fromAminoMsg(object: NextSequenceRecvDataAminoMsg): NextSequenceRecvData { diff --git a/packages/proto/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts b/packages/proto/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts index c50fe683..0a9542f7 100644 --- a/packages/proto/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +++ b/packages/proto/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts @@ -439,7 +439,7 @@ export const ClientState = { }, toAmino(message: ClientState): ClientStateAmino { const obj: any = {}; - obj.chain_id = message.chainId; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; obj.trust_level = message.trustLevel ? Fraction.toAmino(message.trustLevel) : undefined; obj.trusting_period = message.trustingPeriod ? Duration.toAmino(message.trustingPeriod) : undefined; obj.unbonding_period = message.unbondingPeriod ? Duration.toAmino(message.unbondingPeriod) : undefined; @@ -449,15 +449,15 @@ export const ClientState = { if (message.proofSpecs) { obj.proof_specs = message.proofSpecs.map(e => e ? ProofSpec.toAmino(e) : undefined); } else { - obj.proof_specs = []; + obj.proof_specs = message.proofSpecs; } if (message.upgradePath) { obj.upgrade_path = message.upgradePath.map(e => e); } else { - obj.upgrade_path = []; + obj.upgrade_path = message.upgradePath; } - obj.allow_update_after_expiry = message.allowUpdateAfterExpiry; - obj.allow_update_after_misbehaviour = message.allowUpdateAfterMisbehaviour; + obj.allow_update_after_expiry = message.allowUpdateAfterExpiry === false ? undefined : message.allowUpdateAfterExpiry; + obj.allow_update_after_misbehaviour = message.allowUpdateAfterMisbehaviour === false ? undefined : message.allowUpdateAfterMisbehaviour; return obj; }, fromAminoMsg(object: ClientStateAminoMsg): ClientState { @@ -641,7 +641,7 @@ export const Misbehaviour = { }, toAmino(message: Misbehaviour): MisbehaviourAmino { const obj: any = {}; - obj.client_id = message.clientId; + obj.client_id = message.clientId === "" ? undefined : message.clientId; obj.header_1 = message.header1 ? Header.toAmino(message.header1) : undefined; obj.header_2 = message.header2 ? Header.toAmino(message.header2) : undefined; return obj; @@ -828,8 +828,8 @@ export const Fraction = { }, toAmino(message: Fraction): FractionAmino { const obj: any = {}; - obj.numerator = message.numerator ? message.numerator.toString() : undefined; - obj.denominator = message.denominator ? message.denominator.toString() : undefined; + obj.numerator = message.numerator !== BigInt(0) ? message.numerator.toString() : undefined; + obj.denominator = message.denominator !== BigInt(0) ? message.denominator.toString() : undefined; return obj; }, fromAminoMsg(object: FractionAminoMsg): Fraction { diff --git a/packages/proto/src/codegen/index.ts b/packages/proto/src/codegen/index.ts index 95b60554..76d852df 100644 --- a/packages/proto/src/codegen/index.ts +++ b/packages/proto/src/codegen/index.ts @@ -1,5 +1,5 @@ /** - * This file and any referenced files were automatically generated by @cosmology/telescope@1.4.12 + * This file and any referenced files were automatically generated by @cosmology/telescope@1.5.3 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/proto/src/codegen/mint/v1beta1/gov.ts b/packages/proto/src/codegen/mint/v1beta1/gov.ts index 18b487e2..419ab7d7 100644 --- a/packages/proto/src/codegen/mint/v1beta1/gov.ts +++ b/packages/proto/src/codegen/mint/v1beta1/gov.ts @@ -101,8 +101,8 @@ export const UpdateMinterProposal = { }, toAmino(message: UpdateMinterProposal): UpdateMinterProposalAmino { const obj: any = {}; - obj.title = message.title; - obj.description = message.description; + obj.title = message.title === "" ? undefined : message.title; + obj.description = message.description === "" ? undefined : message.description; obj.minter = message.minter ? Minter.toAmino(message.minter) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/mint/v1beta1/mint.ts b/packages/proto/src/codegen/mint/v1beta1/mint.ts index df86588a..8274d919 100644 --- a/packages/proto/src/codegen/mint/v1beta1/mint.ts +++ b/packages/proto/src/codegen/mint/v1beta1/mint.ts @@ -300,14 +300,14 @@ export const Minter = { }, toAmino(message: Minter): MinterAmino { const obj: any = {}; - obj.start_date = message.startDate; - obj.end_date = message.endDate; - obj.denom = message.denom; - obj.total_mint_amount = message.totalMintAmount ? message.totalMintAmount.toString() : undefined; - obj.remaining_mint_amount = message.remainingMintAmount ? message.remainingMintAmount.toString() : undefined; - obj.last_mint_amount = message.lastMintAmount ? message.lastMintAmount.toString() : undefined; - obj.last_mint_date = message.lastMintDate; - obj.last_mint_height = message.lastMintHeight ? message.lastMintHeight.toString() : undefined; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.total_mint_amount = message.totalMintAmount !== BigInt(0) ? message.totalMintAmount.toString() : undefined; + obj.remaining_mint_amount = message.remainingMintAmount !== BigInt(0) ? message.remainingMintAmount.toString() : undefined; + obj.last_mint_amount = message.lastMintAmount !== BigInt(0) ? message.lastMintAmount.toString() : undefined; + obj.last_mint_date = message.lastMintDate === "" ? undefined : message.lastMintDate; + obj.last_mint_height = message.lastMintHeight !== BigInt(0) ? message.lastMintHeight.toString() : undefined; return obj; }, fromAminoMsg(object: MinterAminoMsg): Minter { @@ -392,9 +392,9 @@ export const ScheduledTokenRelease = { }, toAmino(message: ScheduledTokenRelease): ScheduledTokenReleaseAmino { const obj: any = {}; - obj.start_date = message.startDate; - obj.end_date = message.endDate; - obj.token_release_amount = message.tokenReleaseAmount ? message.tokenReleaseAmount.toString() : undefined; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.token_release_amount = message.tokenReleaseAmount !== BigInt(0) ? message.tokenReleaseAmount.toString() : undefined; return obj; }, fromAminoMsg(object: ScheduledTokenReleaseAminoMsg): ScheduledTokenRelease { @@ -466,11 +466,11 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.mint_denom = message.mintDenom; + obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; if (message.tokenReleaseSchedule) { obj.token_release_schedule = message.tokenReleaseSchedule.map(e => e ? ScheduledTokenRelease.toAmino(e) : undefined); } else { - obj.token_release_schedule = []; + obj.token_release_schedule = message.tokenReleaseSchedule; } return obj; }, @@ -567,10 +567,10 @@ export const Version2Minter = { }, toAmino(message: Version2Minter): Version2MinterAmino { const obj: any = {}; - obj.last_mint_amount = message.lastMintAmount; - obj.last_mint_date = message.lastMintDate; - obj.last_mint_height = message.lastMintHeight ? message.lastMintHeight.toString() : undefined; - obj.denom = message.denom; + obj.last_mint_amount = message.lastMintAmount === "" ? undefined : message.lastMintAmount; + obj.last_mint_date = message.lastMintDate === "" ? undefined : message.lastMintDate; + obj.last_mint_height = message.lastMintHeight !== BigInt(0) ? message.lastMintHeight.toString() : undefined; + obj.denom = message.denom === "" ? undefined : message.denom; return obj; }, fromAminoMsg(object: Version2MinterAminoMsg): Version2Minter { @@ -644,8 +644,8 @@ export const Version2ScheduledTokenRelease = { }, toAmino(message: Version2ScheduledTokenRelease): Version2ScheduledTokenReleaseAmino { const obj: any = {}; - obj.date = message.date; - obj.token_release_amount = message.tokenReleaseAmount ? message.tokenReleaseAmount.toString() : undefined; + obj.date = message.date === "" ? undefined : message.date; + obj.token_release_amount = message.tokenReleaseAmount !== BigInt(0) ? message.tokenReleaseAmount.toString() : undefined; return obj; }, fromAminoMsg(object: Version2ScheduledTokenReleaseAminoMsg): Version2ScheduledTokenRelease { @@ -717,11 +717,11 @@ export const Version2Params = { }, toAmino(message: Version2Params): Version2ParamsAmino { const obj: any = {}; - obj.mint_denom = message.mintDenom; + obj.mint_denom = message.mintDenom === "" ? undefined : message.mintDenom; if (message.tokenReleaseSchedule) { obj.token_release_schedule = message.tokenReleaseSchedule.map(e => e ? Version2ScheduledTokenRelease.toAmino(e) : undefined); } else { - obj.token_release_schedule = []; + obj.token_release_schedule = message.tokenReleaseSchedule; } return obj; }, diff --git a/packages/proto/src/codegen/mint/v1beta1/query.ts b/packages/proto/src/codegen/mint/v1beta1/query.ts index 2b99ef52..37c84177 100644 --- a/packages/proto/src/codegen/mint/v1beta1/query.ts +++ b/packages/proto/src/codegen/mint/v1beta1/query.ts @@ -393,14 +393,14 @@ export const QueryMinterResponse = { }, toAmino(message: QueryMinterResponse): QueryMinterResponseAmino { const obj: any = {}; - obj.start_date = message.startDate; - obj.end_date = message.endDate; - obj.denom = message.denom; - obj.total_mint_amount = message.totalMintAmount ? message.totalMintAmount.toString() : undefined; - obj.remaining_mint_amount = message.remainingMintAmount ? message.remainingMintAmount.toString() : undefined; - obj.last_mint_amount = message.lastMintAmount ? message.lastMintAmount.toString() : undefined; - obj.last_mint_date = message.lastMintDate; - obj.last_mint_height = message.lastMintHeight ? message.lastMintHeight.toString() : undefined; + obj.start_date = message.startDate === "" ? undefined : message.startDate; + obj.end_date = message.endDate === "" ? undefined : message.endDate; + obj.denom = message.denom === "" ? undefined : message.denom; + obj.total_mint_amount = message.totalMintAmount !== BigInt(0) ? message.totalMintAmount.toString() : undefined; + obj.remaining_mint_amount = message.remainingMintAmount !== BigInt(0) ? message.remainingMintAmount.toString() : undefined; + obj.last_mint_amount = message.lastMintAmount !== BigInt(0) ? message.lastMintAmount.toString() : undefined; + obj.last_mint_date = message.lastMintDate === "" ? undefined : message.lastMintDate; + obj.last_mint_height = message.lastMintHeight !== BigInt(0) ? message.lastMintHeight.toString() : undefined; return obj; }, fromAminoMsg(object: QueryMinterResponseAminoMsg): QueryMinterResponse { diff --git a/packages/proto/src/codegen/oracle/genesis.ts b/packages/proto/src/codegen/oracle/genesis.ts index a5fc1738..4d8f1915 100644 --- a/packages/proto/src/codegen/oracle/genesis.ts +++ b/packages/proto/src/codegen/oracle/genesis.ts @@ -181,27 +181,27 @@ export const GenesisState = { if (message.feederDelegations) { obj.feeder_delegations = message.feederDelegations.map((e) => (e ? FeederDelegation.toAmino(e) : undefined)); } else { - obj.feeder_delegations = []; + obj.feeder_delegations = message.feederDelegations; } if (message.exchangeRates) { obj.exchange_rates = message.exchangeRates.map((e) => (e ? ExchangeRateTuple.toAmino(e) : undefined)); } else { - obj.exchange_rates = []; + obj.exchange_rates = message.exchangeRates; } if (message.penaltyCounters) { obj.penalty_counters = message.penaltyCounters.map((e) => (e ? PenaltyCounter.toAmino(e) : undefined)); } else { - obj.penalty_counters = []; + obj.penalty_counters = message.penaltyCounters; } if (message.aggregateExchangeRateVotes) { obj.aggregate_exchange_rate_votes = message.aggregateExchangeRateVotes.map((e) => (e ? AggregateExchangeRateVote.toAmino(e) : undefined)); } else { - obj.aggregate_exchange_rate_votes = []; + obj.aggregate_exchange_rate_votes = message.aggregateExchangeRateVotes; } if (message.priceSnapshots) { obj.price_snapshots = message.priceSnapshots.map((e) => (e ? PriceSnapshot.toAmino(e) : undefined)); } else { - obj.price_snapshots = []; + obj.price_snapshots = message.priceSnapshots; } return obj; }, @@ -276,8 +276,8 @@ export const FeederDelegation = { }, toAmino(message: FeederDelegation): FeederDelegationAmino { const obj: any = {}; - obj.feeder_address = message.feederAddress; - obj.validator_address = message.validatorAddress; + obj.feeder_address = message.feederAddress === '' ? undefined : message.feederAddress; + obj.validator_address = message.validatorAddress === '' ? undefined : message.validatorAddress; return obj; }, fromAminoMsg(object: FeederDelegationAminoMsg): FeederDelegation { @@ -352,7 +352,7 @@ export const PenaltyCounter = { }, toAmino(message: PenaltyCounter): PenaltyCounterAmino { const obj: any = {}; - obj.validator_address = message.validatorAddress; + obj.validator_address = message.validatorAddress === '' ? undefined : message.validatorAddress; obj.vote_penalty_counter = message.votePenaltyCounter ? VotePenaltyCounter.toAmino(message.votePenaltyCounter) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/oracle/oracle.ts b/packages/proto/src/codegen/oracle/oracle.ts index fe82cddd..333c384f 100644 --- a/packages/proto/src/codegen/oracle/oracle.ts +++ b/packages/proto/src/codegen/oracle/oracle.ts @@ -329,18 +329,18 @@ export const Params = { }, toAmino(message: Params): ParamsAmino { const obj: any = {}; - obj.vote_period = message.votePeriod ? message.votePeriod.toString() : undefined; - obj.vote_threshold = message.voteThreshold; - obj.reward_band = message.rewardBand; + obj.vote_period = message.votePeriod !== BigInt(0) ? message.votePeriod.toString() : undefined; + obj.vote_threshold = message.voteThreshold === '' ? undefined : message.voteThreshold; + obj.reward_band = message.rewardBand === '' ? undefined : message.rewardBand; if (message.whitelist) { obj.whitelist = message.whitelist.map((e) => (e ? Denom.toAmino(e) : undefined)); } else { - obj.whitelist = []; + obj.whitelist = message.whitelist; } - obj.slash_fraction = message.slashFraction; - obj.slash_window = message.slashWindow ? message.slashWindow.toString() : undefined; - obj.min_valid_per_window = message.minValidPerWindow; - obj.lookback_duration = message.lookbackDuration ? message.lookbackDuration.toString() : undefined; + obj.slash_fraction = message.slashFraction === '' ? undefined : message.slashFraction; + obj.slash_window = message.slashWindow !== BigInt(0) ? message.slashWindow.toString() : undefined; + obj.min_valid_per_window = message.minValidPerWindow === '' ? undefined : message.minValidPerWindow; + obj.lookback_duration = message.lookbackDuration !== BigInt(0) ? message.lookbackDuration.toString() : undefined; return obj; }, fromAminoMsg(object: ParamsAminoMsg): Params { @@ -403,7 +403,7 @@ export const Denom = { }, toAmino(message: Denom): DenomAmino { const obj: any = {}; - obj.name = message.name; + obj.name = message.name === '' ? undefined : message.name; return obj; }, fromAminoMsg(object: DenomAminoMsg): Denom { @@ -478,9 +478,9 @@ export const AggregateExchangeRateVote = { if (message.exchangeRateTuples) { obj.exchange_rate_tuples = message.exchangeRateTuples.map((e) => (e ? ExchangeRateTuple.toAmino(e) : undefined)); } else { - obj.exchange_rate_tuples = []; + obj.exchange_rate_tuples = message.exchangeRateTuples; } - obj.voter = message.voter; + obj.voter = message.voter === '' ? undefined : message.voter; return obj; }, fromAminoMsg(object: AggregateExchangeRateVoteAminoMsg): AggregateExchangeRateVote { @@ -554,8 +554,8 @@ export const ExchangeRateTuple = { }, toAmino(message: ExchangeRateTuple): ExchangeRateTupleAmino { const obj: any = {}; - obj.denom = message.denom; - obj.exchange_rate = message.exchangeRate; + obj.denom = message.denom === '' ? undefined : message.denom; + obj.exchange_rate = message.exchangeRate === '' ? undefined : message.exchangeRate; return obj; }, fromAminoMsg(object: ExchangeRateTupleAminoMsg): ExchangeRateTuple { @@ -641,9 +641,9 @@ export const OracleExchangeRate = { }, toAmino(message: OracleExchangeRate): OracleExchangeRateAmino { const obj: any = {}; - obj.exchange_rate = message.exchangeRate; - obj.last_update = message.lastUpdate; - obj.last_update_timestamp = message.lastUpdateTimestamp ? message.lastUpdateTimestamp.toString() : undefined; + obj.exchange_rate = message.exchangeRate === '' ? undefined : message.exchangeRate; + obj.last_update = message.lastUpdate === '' ? undefined : message.lastUpdate; + obj.last_update_timestamp = message.lastUpdateTimestamp !== BigInt(0) ? message.lastUpdateTimestamp.toString() : undefined; return obj; }, fromAminoMsg(object: OracleExchangeRateAminoMsg): OracleExchangeRate { @@ -718,7 +718,7 @@ export const PriceSnapshotItem = { }, toAmino(message: PriceSnapshotItem): PriceSnapshotItemAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; obj.oracle_exchange_rate = message.oracleExchangeRate ? OracleExchangeRate.toAmino(message.oracleExchangeRate) : undefined; return obj; }, @@ -792,11 +792,11 @@ export const PriceSnapshot = { }, toAmino(message: PriceSnapshot): PriceSnapshotAmino { const obj: any = {}; - obj.snapshot_timestamp = message.snapshotTimestamp ? message.snapshotTimestamp.toString() : undefined; + obj.snapshot_timestamp = message.snapshotTimestamp !== BigInt(0) ? message.snapshotTimestamp.toString() : undefined; if (message.priceSnapshotItems) { obj.price_snapshot_items = message.priceSnapshotItems.map((e) => (e ? PriceSnapshotItem.toAmino(e) : undefined)); } else { - obj.price_snapshot_items = []; + obj.price_snapshot_items = message.priceSnapshotItems; } return obj; }, @@ -882,9 +882,9 @@ export const OracleTwap = { }, toAmino(message: OracleTwap): OracleTwapAmino { const obj: any = {}; - obj.denom = message.denom; - obj.twap = message.twap; - obj.lookback_seconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : undefined; + obj.denom = message.denom === '' ? undefined : message.denom; + obj.twap = message.twap === '' ? undefined : message.twap; + obj.lookback_seconds = message.lookbackSeconds !== BigInt(0) ? message.lookbackSeconds.toString() : undefined; return obj; }, fromAminoMsg(object: OracleTwapAminoMsg): OracleTwap { @@ -969,9 +969,9 @@ export const VotePenaltyCounter = { }, toAmino(message: VotePenaltyCounter): VotePenaltyCounterAmino { const obj: any = {}; - obj.miss_count = message.missCount ? message.missCount.toString() : undefined; - obj.abstain_count = message.abstainCount ? message.abstainCount.toString() : undefined; - obj.success_count = message.successCount ? message.successCount.toString() : undefined; + obj.miss_count = message.missCount !== BigInt(0) ? message.missCount.toString() : undefined; + obj.abstain_count = message.abstainCount !== BigInt(0) ? message.abstainCount.toString() : undefined; + obj.success_count = message.successCount !== BigInt(0) ? message.successCount.toString() : undefined; return obj; }, fromAminoMsg(object: VotePenaltyCounterAminoMsg): VotePenaltyCounter { diff --git a/packages/proto/src/codegen/oracle/query.ts b/packages/proto/src/codegen/oracle/query.ts index 1e8ba6e1..f9da0c83 100644 --- a/packages/proto/src/codegen/oracle/query.ts +++ b/packages/proto/src/codegen/oracle/query.ts @@ -542,7 +542,7 @@ export const QueryExchangeRateRequest = { }, toAmino(message: QueryExchangeRateRequest): QueryExchangeRateRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryExchangeRateRequestAminoMsg): QueryExchangeRateRequest { @@ -731,7 +731,7 @@ export const DenomOracleExchangeRatePair = { }, toAmino(message: DenomOracleExchangeRatePair): DenomOracleExchangeRatePairAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; obj.oracle_exchange_rate = message.oracleExchangeRate ? OracleExchangeRate.toAmino(message.oracleExchangeRate) : undefined; return obj; }, @@ -796,7 +796,7 @@ export const QueryExchangeRatesResponse = { if (message.denomOracleExchangeRatePairs) { obj.denom_oracle_exchange_rate_pairs = message.denomOracleExchangeRatePairs.map((e) => (e ? DenomOracleExchangeRatePair.toAmino(e) : undefined)); } else { - obj.denom_oracle_exchange_rate_pairs = []; + obj.denom_oracle_exchange_rate_pairs = message.denomOracleExchangeRatePairs; } return obj; }, @@ -911,7 +911,7 @@ export const QueryActivesResponse = { if (message.actives) { obj.actives = message.actives.map((e) => e); } else { - obj.actives = []; + obj.actives = message.actives; } return obj; }, @@ -1026,7 +1026,7 @@ export const QueryVoteTargetsResponse = { if (message.voteTargets) { obj.vote_targets = message.voteTargets.map((e) => e); } else { - obj.vote_targets = []; + obj.vote_targets = message.voteTargets; } return obj; }, @@ -1141,7 +1141,7 @@ export const QueryPriceSnapshotHistoryResponse = { if (message.priceSnapshots) { obj.price_snapshots = message.priceSnapshots.map((e) => (e ? PriceSnapshot.toAmino(e) : undefined)); } else { - obj.price_snapshots = []; + obj.price_snapshots = message.priceSnapshots; } return obj; }, @@ -1205,7 +1205,7 @@ export const QueryTwapsRequest = { }, toAmino(message: QueryTwapsRequest): QueryTwapsRequestAmino { const obj: any = {}; - obj.lookback_seconds = message.lookbackSeconds ? message.lookbackSeconds.toString() : undefined; + obj.lookback_seconds = message.lookbackSeconds !== BigInt(0) ? message.lookbackSeconds.toString() : undefined; return obj; }, fromAminoMsg(object: QueryTwapsRequestAminoMsg): QueryTwapsRequest { @@ -1269,7 +1269,7 @@ export const QueryTwapsResponse = { if (message.oracleTwaps) { obj.oracle_twaps = message.oracleTwaps.map((e) => (e ? OracleTwap.toAmino(e) : undefined)); } else { - obj.oracle_twaps = []; + obj.oracle_twaps = message.oracleTwaps; } return obj; }, @@ -1333,7 +1333,7 @@ export const QueryFeederDelegationRequest = { }, toAmino(message: QueryFeederDelegationRequest): QueryFeederDelegationRequestAmino { const obj: any = {}; - obj.validator_addr = message.validatorAddr; + obj.validator_addr = message.validatorAddr === '' ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryFeederDelegationRequestAminoMsg): QueryFeederDelegationRequest { @@ -1396,7 +1396,7 @@ export const QueryFeederDelegationResponse = { }, toAmino(message: QueryFeederDelegationResponse): QueryFeederDelegationResponseAmino { const obj: any = {}; - obj.feeder_addr = message.feederAddr; + obj.feeder_addr = message.feederAddr === '' ? undefined : message.feederAddr; return obj; }, fromAminoMsg(object: QueryFeederDelegationResponseAminoMsg): QueryFeederDelegationResponse { @@ -1459,7 +1459,7 @@ export const QueryVotePenaltyCounterRequest = { }, toAmino(message: QueryVotePenaltyCounterRequest): QueryVotePenaltyCounterRequestAmino { const obj: any = {}; - obj.validator_addr = message.validatorAddr; + obj.validator_addr = message.validatorAddr === '' ? undefined : message.validatorAddr; return obj; }, fromAminoMsg(object: QueryVotePenaltyCounterRequestAminoMsg): QueryVotePenaltyCounterRequest { @@ -1636,7 +1636,7 @@ export const QuerySlashWindowResponse = { }, toAmino(message: QuerySlashWindowResponse): QuerySlashWindowResponseAmino { const obj: any = {}; - obj.window_progress = message.windowProgress ? message.windowProgress.toString() : undefined; + obj.window_progress = message.windowProgress !== BigInt(0) ? message.windowProgress.toString() : undefined; return obj; }, fromAminoMsg(object: QuerySlashWindowResponseAminoMsg): QuerySlashWindowResponse { diff --git a/packages/proto/src/codegen/oracle/tx.ts b/packages/proto/src/codegen/oracle/tx.ts index a3c6b757..16d4cc03 100644 --- a/packages/proto/src/codegen/oracle/tx.ts +++ b/packages/proto/src/codegen/oracle/tx.ts @@ -162,9 +162,9 @@ export const MsgAggregateExchangeRateVote = { }, toAmino(message: MsgAggregateExchangeRateVote): MsgAggregateExchangeRateVoteAmino { const obj: any = {}; - obj.exchange_rates = message.exchangeRates; - obj.feeder = message.feeder; - obj.validator = message.validator; + obj.exchange_rates = message.exchangeRates === '' ? undefined : message.exchangeRates; + obj.feeder = message.feeder === '' ? undefined : message.feeder; + obj.validator = message.validator === '' ? undefined : message.validator; return obj; }, fromAminoMsg(object: MsgAggregateExchangeRateVoteAminoMsg): MsgAggregateExchangeRateVote { @@ -288,8 +288,8 @@ export const MsgDelegateFeedConsent = { }, toAmino(message: MsgDelegateFeedConsent): MsgDelegateFeedConsentAmino { const obj: any = {}; - obj.operator = message.operator; - obj.delegate = message.delegate; + obj.operator = message.operator === '' ? undefined : message.operator; + obj.delegate = message.delegate === '' ? undefined : message.delegate; return obj; }, fromAminoMsg(object: MsgDelegateFeedConsentAminoMsg): MsgDelegateFeedConsent { diff --git a/packages/proto/src/codegen/tendermint/abci/types.ts b/packages/proto/src/codegen/tendermint/abci/types.ts index d4c7297b..f2fff5f8 100644 --- a/packages/proto/src/codegen/tendermint/abci/types.ts +++ b/packages/proto/src/codegen/tendermint/abci/types.ts @@ -1660,7 +1660,7 @@ export const RequestEcho = { }, toAmino(message: RequestEcho): RequestEchoAmino { const obj: any = {}; - obj.message = message.message; + obj.message = message.message === "" ? undefined : message.message; return obj; }, fromAminoMsg(object: RequestEchoAminoMsg): RequestEcho { @@ -1795,9 +1795,9 @@ export const RequestInfo = { }, toAmino(message: RequestInfo): RequestInfoAmino { const obj: any = {}; - obj.version = message.version; - obj.block_version = message.blockVersion ? message.blockVersion.toString() : undefined; - obj.p2p_version = message.p2pVersion ? message.p2pVersion.toString() : undefined; + obj.version = message.version === "" ? undefined : message.version; + obj.block_version = message.blockVersion !== BigInt(0) ? message.blockVersion.toString() : undefined; + obj.p2p_version = message.p2pVersion !== BigInt(0) ? message.p2pVersion.toString() : undefined; return obj; }, fromAminoMsg(object: RequestInfoAminoMsg): RequestInfo { @@ -1871,8 +1871,8 @@ export const RequestSetOption = { }, toAmino(message: RequestSetOption): RequestSetOptionAmino { const obj: any = {}; - obj.key = message.key; - obj.value = message.value; + obj.key = message.key === "" ? undefined : message.key; + obj.value = message.value === "" ? undefined : message.value; return obj; }, fromAminoMsg(object: RequestSetOptionAminoMsg): RequestSetOption { @@ -1989,15 +1989,15 @@ export const RequestInitChain = { toAmino(message: RequestInitChain): RequestInitChainAmino { const obj: any = {}; obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.chain_id = message.chainId; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; obj.consensus_params = message.consensusParams ? ConsensusParams.toAmino(message.consensusParams) : undefined; if (message.validators) { obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } obj.app_state_bytes = message.appStateBytes ? base64FromBytes(message.appStateBytes) : undefined; - obj.initial_height = message.initialHeight ? message.initialHeight.toString() : undefined; + obj.initial_height = message.initialHeight !== BigInt(0) ? message.initialHeight.toString() : undefined; return obj; }, fromAminoMsg(object: RequestInitChainAminoMsg): RequestInitChain { @@ -2094,9 +2094,9 @@ export const RequestQuery = { toAmino(message: RequestQuery): RequestQueryAmino { const obj: any = {}; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.path = message.path; - obj.height = message.height ? message.height.toString() : undefined; - obj.prove = message.prove; + obj.path = message.path === "" ? undefined : message.path; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.prove = message.prove === false ? undefined : message.prove; return obj; }, fromAminoMsg(object: RequestQueryAminoMsg): RequestQuery { @@ -2196,7 +2196,7 @@ export const RequestBeginBlock = { if (message.byzantineValidators) { obj.byzantine_validators = message.byzantineValidators.map(e => e ? Evidence.toAmino(e) : undefined); } else { - obj.byzantine_validators = []; + obj.byzantine_validators = message.byzantineValidators; } return obj; }, @@ -2265,14 +2265,14 @@ export const RequestCheckTx = { message.tx = bytesFromBase64(object.tx); } if (object.type !== undefined && object.type !== null) { - message.type = checkTxTypeFromJSON(object.type); + message.type = object.type; } return message; }, toAmino(message: RequestCheckTx): RequestCheckTxAmino { const obj: any = {}; obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; - obj.type = message.type; + obj.type = message.type === 0 ? undefined : message.type; return obj; }, fromAminoMsg(object: RequestCheckTxAminoMsg): RequestCheckTx { @@ -2398,7 +2398,7 @@ export const RequestEndBlock = { }, toAmino(message: RequestEndBlock): RequestEndBlockAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; return obj; }, fromAminoMsg(object: RequestEndBlockAminoMsg): RequestEndBlock { @@ -2658,9 +2658,9 @@ export const RequestLoadSnapshotChunk = { }, toAmino(message: RequestLoadSnapshotChunk): RequestLoadSnapshotChunkAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.format = message.format; - obj.chunk = message.chunk; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunk = message.chunk === 0 ? undefined : message.chunk; return obj; }, fromAminoMsg(object: RequestLoadSnapshotChunkAminoMsg): RequestLoadSnapshotChunk { @@ -2745,9 +2745,9 @@ export const RequestApplySnapshotChunk = { }, toAmino(message: RequestApplySnapshotChunk): RequestApplySnapshotChunkAmino { const obj: any = {}; - obj.index = message.index; + obj.index = message.index === 0 ? undefined : message.index; obj.chunk = message.chunk ? base64FromBytes(message.chunk) : undefined; - obj.sender = message.sender; + obj.sender = message.sender === "" ? undefined : message.sender; return obj; }, fromAminoMsg(object: RequestApplySnapshotChunkAminoMsg): RequestApplySnapshotChunk { @@ -3053,7 +3053,7 @@ export const ResponseException = { }, toAmino(message: ResponseException): ResponseExceptionAmino { const obj: any = {}; - obj.error = message.error; + obj.error = message.error === "" ? undefined : message.error; return obj; }, fromAminoMsg(object: ResponseExceptionAminoMsg): ResponseException { @@ -3116,7 +3116,7 @@ export const ResponseEcho = { }, toAmino(message: ResponseEcho): ResponseEchoAmino { const obj: any = {}; - obj.message = message.message; + obj.message = message.message === "" ? undefined : message.message; return obj; }, fromAminoMsg(object: ResponseEchoAminoMsg): ResponseEcho { @@ -3273,10 +3273,10 @@ export const ResponseInfo = { }, toAmino(message: ResponseInfo): ResponseInfoAmino { const obj: any = {}; - obj.data = message.data; - obj.version = message.version; - obj.app_version = message.appVersion ? message.appVersion.toString() : undefined; - obj.last_block_height = message.lastBlockHeight ? message.lastBlockHeight.toString() : undefined; + obj.data = message.data === "" ? undefined : message.data; + obj.version = message.version === "" ? undefined : message.version; + obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; + obj.last_block_height = message.lastBlockHeight !== BigInt(0) ? message.lastBlockHeight.toString() : undefined; obj.last_block_app_hash = message.lastBlockAppHash ? base64FromBytes(message.lastBlockAppHash) : undefined; return obj; }, @@ -3362,9 +3362,9 @@ export const ResponseSetOption = { }, toAmino(message: ResponseSetOption): ResponseSetOptionAmino { const obj: any = {}; - obj.code = message.code; - obj.log = message.log; - obj.info = message.info; + obj.code = message.code === 0 ? undefined : message.code; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; return obj; }, fromAminoMsg(object: ResponseSetOptionAminoMsg): ResponseSetOption { @@ -3451,7 +3451,7 @@ export const ResponseInitChain = { if (message.validators) { obj.validators = message.validators.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } obj.app_hash = message.appHash ? base64FromBytes(message.appHash) : undefined; return obj; @@ -3604,15 +3604,15 @@ export const ResponseQuery = { }, toAmino(message: ResponseQuery): ResponseQueryAmino { const obj: any = {}; - obj.code = message.code; - obj.log = message.log; - obj.info = message.info; - obj.index = message.index ? message.index.toString() : undefined; + obj.code = message.code === 0 ? undefined : message.code; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; obj.key = message.key ? base64FromBytes(message.key) : undefined; obj.value = message.value ? base64FromBytes(message.value) : undefined; obj.proof_ops = message.proofOps ? ProofOps.toAmino(message.proofOps) : undefined; - obj.height = message.height ? message.height.toString() : undefined; - obj.codespace = message.codespace; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.codespace = message.codespace === "" ? undefined : message.codespace; return obj; }, fromAminoMsg(object: ResponseQueryAminoMsg): ResponseQuery { @@ -3676,7 +3676,7 @@ export const ResponseBeginBlock = { if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } return obj; }, @@ -3815,18 +3815,18 @@ export const ResponseCheckTx = { }, toAmino(message: ResponseCheckTx): ResponseCheckTxAmino { const obj: any = {}; - obj.code = message.code; + obj.code = message.code === 0 ? undefined : message.code; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log; - obj.info = message.info; - obj.gas_wanted = message.gasWanted ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed ? message.gasUsed.toString() : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } - obj.codespace = message.codespace; + obj.codespace = message.codespace === "" ? undefined : message.codespace; return obj; }, fromAminoMsg(object: ResponseCheckTxAminoMsg): ResponseCheckTx { @@ -3964,18 +3964,18 @@ export const ResponseDeliverTx = { }, toAmino(message: ResponseDeliverTx): ResponseDeliverTxAmino { const obj: any = {}; - obj.code = message.code; + obj.code = message.code === 0 ? undefined : message.code; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.log = message.log; - obj.info = message.info; - obj.gas_wanted = message.gasWanted ? message.gasWanted.toString() : undefined; - obj.gas_used = message.gasUsed ? message.gasUsed.toString() : undefined; + obj.log = message.log === "" ? undefined : message.log; + obj.info = message.info === "" ? undefined : message.info; + obj.gas_wanted = message.gasWanted !== BigInt(0) ? message.gasWanted.toString() : undefined; + obj.gas_used = message.gasUsed !== BigInt(0) ? message.gasUsed.toString() : undefined; if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } - obj.codespace = message.codespace; + obj.codespace = message.codespace === "" ? undefined : message.codespace; return obj; }, fromAminoMsg(object: ResponseDeliverTxAminoMsg): ResponseDeliverTx { @@ -4059,13 +4059,13 @@ export const ResponseEndBlock = { if (message.validatorUpdates) { obj.validator_updates = message.validatorUpdates.map(e => e ? ValidatorUpdate.toAmino(e) : undefined); } else { - obj.validator_updates = []; + obj.validator_updates = message.validatorUpdates; } obj.consensus_param_updates = message.consensusParamUpdates ? ConsensusParams.toAmino(message.consensusParamUpdates) : undefined; if (message.events) { obj.events = message.events.map(e => e ? Event.toAmino(e) : undefined); } else { - obj.events = []; + obj.events = message.events; } return obj; }, @@ -4141,7 +4141,7 @@ export const ResponseCommit = { toAmino(message: ResponseCommit): ResponseCommitAmino { const obj: any = {}; obj.data = message.data ? base64FromBytes(message.data) : undefined; - obj.retain_height = message.retainHeight ? message.retainHeight.toString() : undefined; + obj.retain_height = message.retainHeight !== BigInt(0) ? message.retainHeight.toString() : undefined; return obj; }, fromAminoMsg(object: ResponseCommitAminoMsg): ResponseCommit { @@ -4205,7 +4205,7 @@ export const ResponseListSnapshots = { if (message.snapshots) { obj.snapshots = message.snapshots.map(e => e ? Snapshot.toAmino(e) : undefined); } else { - obj.snapshots = []; + obj.snapshots = message.snapshots; } return obj; }, @@ -4263,13 +4263,13 @@ export const ResponseOfferSnapshot = { fromAmino(object: ResponseOfferSnapshotAmino): ResponseOfferSnapshot { const message = createBaseResponseOfferSnapshot(); if (object.result !== undefined && object.result !== null) { - message.result = responseOfferSnapshot_ResultFromJSON(object.result); + message.result = object.result; } return message; }, toAmino(message: ResponseOfferSnapshot): ResponseOfferSnapshotAmino { const obj: any = {}; - obj.result = message.result; + obj.result = message.result === 0 ? undefined : message.result; return obj; }, fromAminoMsg(object: ResponseOfferSnapshotAminoMsg): ResponseOfferSnapshot { @@ -4414,7 +4414,7 @@ export const ResponseApplySnapshotChunk = { fromAmino(object: ResponseApplySnapshotChunkAmino): ResponseApplySnapshotChunk { const message = createBaseResponseApplySnapshotChunk(); if (object.result !== undefined && object.result !== null) { - message.result = responseApplySnapshotChunk_ResultFromJSON(object.result); + message.result = object.result; } message.refetchChunks = object.refetch_chunks?.map(e => e) || []; message.rejectSenders = object.reject_senders?.map(e => e) || []; @@ -4422,16 +4422,16 @@ export const ResponseApplySnapshotChunk = { }, toAmino(message: ResponseApplySnapshotChunk): ResponseApplySnapshotChunkAmino { const obj: any = {}; - obj.result = message.result; + obj.result = message.result === 0 ? undefined : message.result; if (message.refetchChunks) { obj.refetch_chunks = message.refetchChunks.map(e => e); } else { - obj.refetch_chunks = []; + obj.refetch_chunks = message.refetchChunks; } if (message.rejectSenders) { obj.reject_senders = message.rejectSenders.map(e => e); } else { - obj.reject_senders = []; + obj.reject_senders = message.rejectSenders; } return obj; }, @@ -4605,8 +4605,8 @@ export const BlockParams = { }, toAmino(message: BlockParams): BlockParamsAmino { const obj: any = {}; - obj.max_bytes = message.maxBytes ? message.maxBytes.toString() : undefined; - obj.max_gas = message.maxGas ? message.maxGas.toString() : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; return obj; }, fromAminoMsg(object: BlockParamsAminoMsg): BlockParams { @@ -4678,11 +4678,11 @@ export const LastCommitInfo = { }, toAmino(message: LastCommitInfo): LastCommitInfoAmino { const obj: any = {}; - obj.round = message.round; + obj.round = message.round === 0 ? undefined : message.round; if (message.votes) { obj.votes = message.votes.map(e => e ? VoteInfo.toAmino(e) : undefined); } else { - obj.votes = []; + obj.votes = message.votes; } return obj; }, @@ -4755,11 +4755,11 @@ export const Event = { }, toAmino(message: Event): EventAmino { const obj: any = {}; - obj.type = message.type; + obj.type = message.type === "" ? undefined : message.type; if (message.attributes) { obj.attributes = message.attributes.map(e => e ? EventAttribute.toAmino(e) : undefined); } else { - obj.attributes = []; + obj.attributes = message.attributes; } return obj; }, @@ -4847,7 +4847,7 @@ export const EventAttribute = { const obj: any = {}; obj.key = message.key ? base64FromBytes(message.key) : undefined; obj.value = message.value ? base64FromBytes(message.value) : undefined; - obj.index = message.index; + obj.index = message.index === false ? undefined : message.index; return obj; }, fromAminoMsg(object: EventAttributeAminoMsg): EventAttribute { @@ -4943,8 +4943,8 @@ export const TxResult = { }, toAmino(message: TxResult): TxResultAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.index = message.index; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.index = message.index === 0 ? undefined : message.index; obj.tx = message.tx ? base64FromBytes(message.tx) : undefined; obj.result = message.result ? ResponseDeliverTx.toAmino(message.result) : undefined; return obj; @@ -5021,7 +5021,7 @@ export const Validator = { toAmino(message: Validator): ValidatorAmino { const obj: any = {}; obj.address = message.address ? base64FromBytes(message.address) : undefined; - obj.power = message.power ? message.power.toString() : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; return obj; }, fromAminoMsg(object: ValidatorAminoMsg): Validator { @@ -5096,7 +5096,7 @@ export const ValidatorUpdate = { toAmino(message: ValidatorUpdate): ValidatorUpdateAmino { const obj: any = {}; obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.power = message.power ? message.power.toString() : undefined; + obj.power = message.power !== BigInt(0) ? message.power.toString() : undefined; return obj; }, fromAminoMsg(object: ValidatorUpdateAminoMsg): ValidatorUpdate { @@ -5171,7 +5171,7 @@ export const VoteInfo = { toAmino(message: VoteInfo): VoteInfoAmino { const obj: any = {}; obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.signed_last_block = message.signedLastBlock; + obj.signed_last_block = message.signedLastBlock === false ? undefined : message.signedLastBlock; return obj; }, fromAminoMsg(object: VoteInfoAminoMsg): VoteInfo { @@ -5260,7 +5260,7 @@ export const Evidence = { fromAmino(object: EvidenceAmino): Evidence { const message = createBaseEvidence(); if (object.type !== undefined && object.type !== null) { - message.type = evidenceTypeFromJSON(object.type); + message.type = object.type; } if (object.validator !== undefined && object.validator !== null) { message.validator = Validator.fromAmino(object.validator); @@ -5278,11 +5278,11 @@ export const Evidence = { }, toAmino(message: Evidence): EvidenceAmino { const obj: any = {}; - obj.type = message.type; + obj.type = message.type === 0 ? undefined : message.type; obj.validator = message.validator ? Validator.toAmino(message.validator) : undefined; - obj.height = message.height ? message.height.toString() : undefined; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; - obj.total_voting_power = message.totalVotingPower ? message.totalVotingPower.toString() : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; return obj; }, fromAminoMsg(object: EvidenceAminoMsg): Evidence { @@ -5389,9 +5389,9 @@ export const Snapshot = { }, toAmino(message: Snapshot): SnapshotAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.format = message.format; - obj.chunks = message.chunks; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.format = message.format === 0 ? undefined : message.format; + obj.chunks = message.chunks === 0 ? undefined : message.chunks; obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; obj.metadata = message.metadata ? base64FromBytes(message.metadata) : undefined; return obj; diff --git a/packages/proto/src/codegen/tendermint/crypto/proof.ts b/packages/proto/src/codegen/tendermint/crypto/proof.ts index f28b7af9..18d1ff64 100644 --- a/packages/proto/src/codegen/tendermint/crypto/proof.ts +++ b/packages/proto/src/codegen/tendermint/crypto/proof.ts @@ -206,13 +206,13 @@ export const Proof = { }, toAmino(message: Proof): ProofAmino { const obj: any = {}; - obj.total = message.total ? message.total.toString() : undefined; - obj.index = message.index ? message.index.toString() : undefined; + obj.total = message.total !== BigInt(0) ? message.total.toString() : undefined; + obj.index = message.index !== BigInt(0) ? message.index.toString() : undefined; obj.leaf_hash = message.leafHash ? base64FromBytes(message.leafHash) : undefined; if (message.aunts) { obj.aunts = message.aunts.map(e => base64FromBytes(e)); } else { - obj.aunts = []; + obj.aunts = message.aunts; } return obj; }, @@ -373,9 +373,9 @@ export const DominoOp = { }, toAmino(message: DominoOp): DominoOpAmino { const obj: any = {}; - obj.key = message.key; - obj.input = message.input; - obj.output = message.output; + obj.key = message.key === "" ? undefined : message.key; + obj.input = message.input === "" ? undefined : message.input; + obj.output = message.output === "" ? undefined : message.output; return obj; }, fromAminoMsg(object: DominoOpAminoMsg): DominoOp { @@ -460,7 +460,7 @@ export const ProofOp = { }, toAmino(message: ProofOp): ProofOpAmino { const obj: any = {}; - obj.type = message.type; + obj.type = message.type === "" ? undefined : message.type; obj.key = message.key ? base64FromBytes(message.key) : undefined; obj.data = message.data ? base64FromBytes(message.data) : undefined; return obj; @@ -526,7 +526,7 @@ export const ProofOps = { if (message.ops) { obj.ops = message.ops.map(e => e ? ProofOp.toAmino(e) : undefined); } else { - obj.ops = []; + obj.ops = message.ops; } return obj; }, diff --git a/packages/proto/src/codegen/tendermint/libs/bits/types.ts b/packages/proto/src/codegen/tendermint/libs/bits/types.ts index 8e9cb41d..7cdff45c 100644 --- a/packages/proto/src/codegen/tendermint/libs/bits/types.ts +++ b/packages/proto/src/codegen/tendermint/libs/bits/types.ts @@ -81,11 +81,11 @@ export const BitArray = { }, toAmino(message: BitArray): BitArrayAmino { const obj: any = {}; - obj.bits = message.bits ? message.bits.toString() : undefined; + obj.bits = message.bits !== BigInt(0) ? message.bits.toString() : undefined; if (message.elems) { obj.elems = message.elems.map(e => e.toString()); } else { - obj.elems = []; + obj.elems = message.elems; } return obj; }, diff --git a/packages/proto/src/codegen/tendermint/p2p/types.ts b/packages/proto/src/codegen/tendermint/p2p/types.ts index 53edd323..4df87a77 100644 --- a/packages/proto/src/codegen/tendermint/p2p/types.ts +++ b/packages/proto/src/codegen/tendermint/p2p/types.ts @@ -197,9 +197,9 @@ export const ProtocolVersion = { }, toAmino(message: ProtocolVersion): ProtocolVersionAmino { const obj: any = {}; - obj.p2p = message.p2p ? message.p2p.toString() : undefined; - obj.block = message.block ? message.block.toString() : undefined; - obj.app = message.app ? message.app.toString() : undefined; + obj.p2p = message.p2p !== BigInt(0) ? message.p2p.toString() : undefined; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; return obj; }, fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion { @@ -340,12 +340,12 @@ export const NodeInfo = { toAmino(message: NodeInfo): NodeInfoAmino { const obj: any = {}; obj.protocol_version = message.protocolVersion ? ProtocolVersion.toAmino(message.protocolVersion) : undefined; - obj.node_id = message.nodeId; - obj.listen_addr = message.listenAddr; - obj.network = message.network; - obj.version = message.version; + obj.node_id = message.nodeId === "" ? undefined : message.nodeId; + obj.listen_addr = message.listenAddr === "" ? undefined : message.listenAddr; + obj.network = message.network === "" ? undefined : message.network; + obj.version = message.version === "" ? undefined : message.version; obj.channels = message.channels ? base64FromBytes(message.channels) : undefined; - obj.moniker = message.moniker; + obj.moniker = message.moniker === "" ? undefined : message.moniker; obj.other = message.other ? NodeInfoOther.toAmino(message.other) : undefined; return obj; }, @@ -420,8 +420,8 @@ export const NodeInfoOther = { }, toAmino(message: NodeInfoOther): NodeInfoOtherAmino { const obj: any = {}; - obj.tx_index = message.txIndex; - obj.rpc_address = message.rpcAddress; + obj.tx_index = message.txIndex === "" ? undefined : message.txIndex; + obj.rpc_address = message.rpcAddress === "" ? undefined : message.rpcAddress; return obj; }, fromAminoMsg(object: NodeInfoOtherAminoMsg): NodeInfoOther { @@ -504,11 +504,11 @@ export const PeerInfo = { }, toAmino(message: PeerInfo): PeerInfoAmino { const obj: any = {}; - obj.id = message.id; + obj.id = message.id === "" ? undefined : message.id; if (message.addressInfo) { obj.address_info = message.addressInfo.map(e => e ? PeerAddressInfo.toAmino(e) : undefined); } else { - obj.address_info = []; + obj.address_info = message.addressInfo; } obj.last_connected = message.lastConnected ? Timestamp.toAmino(toTimestamp(message.lastConnected)) : undefined; return obj; @@ -606,10 +606,10 @@ export const PeerAddressInfo = { }, toAmino(message: PeerAddressInfo): PeerAddressInfoAmino { const obj: any = {}; - obj.address = message.address; + obj.address = message.address === "" ? undefined : message.address; obj.last_dial_success = message.lastDialSuccess ? Timestamp.toAmino(toTimestamp(message.lastDialSuccess)) : undefined; obj.last_dial_failure = message.lastDialFailure ? Timestamp.toAmino(toTimestamp(message.lastDialFailure)) : undefined; - obj.dial_failures = message.dialFailures; + obj.dial_failures = message.dialFailures === 0 ? undefined : message.dialFailures; return obj; }, fromAminoMsg(object: PeerAddressInfoAminoMsg): PeerAddressInfo { diff --git a/packages/proto/src/codegen/tendermint/types/evidence.ts b/packages/proto/src/codegen/tendermint/types/evidence.ts index 4c41b71d..cee31f8d 100644 --- a/packages/proto/src/codegen/tendermint/types/evidence.ts +++ b/packages/proto/src/codegen/tendermint/types/evidence.ts @@ -269,8 +269,8 @@ export const DuplicateVoteEvidence = { const obj: any = {}; obj.vote_a = message.voteA ? Vote.toAmino(message.voteA) : undefined; obj.vote_b = message.voteB ? Vote.toAmino(message.voteB) : undefined; - obj.total_voting_power = message.totalVotingPower ? message.totalVotingPower.toString() : undefined; - obj.validator_power = message.validatorPower ? message.validatorPower.toString() : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; + obj.validator_power = message.validatorPower !== BigInt(0) ? message.validatorPower.toString() : undefined; obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; return obj; }, @@ -377,13 +377,13 @@ export const LightClientAttackEvidence = { toAmino(message: LightClientAttackEvidence): LightClientAttackEvidenceAmino { const obj: any = {}; obj.conflicting_block = message.conflictingBlock ? LightBlock.toAmino(message.conflictingBlock) : undefined; - obj.common_height = message.commonHeight ? message.commonHeight.toString() : undefined; + obj.common_height = message.commonHeight !== BigInt(0) ? message.commonHeight.toString() : undefined; if (message.byzantineValidators) { obj.byzantine_validators = message.byzantineValidators.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.byzantine_validators = []; + obj.byzantine_validators = message.byzantineValidators; } - obj.total_voting_power = message.totalVotingPower ? message.totalVotingPower.toString() : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; return obj; }, @@ -448,7 +448,7 @@ export const EvidenceList = { if (message.evidence) { obj.evidence = message.evidence.map(e => e ? Evidence.toAmino(e) : undefined); } else { - obj.evidence = []; + obj.evidence = message.evidence; } return obj; }, diff --git a/packages/proto/src/codegen/tendermint/types/params.ts b/packages/proto/src/codegen/tendermint/types/params.ts index ea439d05..4d16f446 100644 --- a/packages/proto/src/codegen/tendermint/types/params.ts +++ b/packages/proto/src/codegen/tendermint/types/params.ts @@ -403,9 +403,9 @@ export const BlockParams = { }, toAmino(message: BlockParams): BlockParamsAmino { const obj: any = {}; - obj.max_bytes = message.maxBytes ? message.maxBytes.toString() : undefined; - obj.max_gas = message.maxGas ? message.maxGas.toString() : undefined; - obj.time_iota_ms = message.timeIotaMs ? message.timeIotaMs.toString() : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; + obj.max_gas = message.maxGas !== BigInt(0) ? message.maxGas.toString() : undefined; + obj.time_iota_ms = message.timeIotaMs !== BigInt(0) ? message.timeIotaMs.toString() : undefined; return obj; }, fromAminoMsg(object: BlockParamsAminoMsg): BlockParams { @@ -490,9 +490,9 @@ export const EvidenceParams = { }, toAmino(message: EvidenceParams): EvidenceParamsAmino { const obj: any = {}; - obj.max_age_num_blocks = message.maxAgeNumBlocks ? message.maxAgeNumBlocks.toString() : undefined; + obj.max_age_num_blocks = message.maxAgeNumBlocks !== BigInt(0) ? message.maxAgeNumBlocks.toString() : undefined; obj.max_age_duration = message.maxAgeDuration ? Duration.toAmino(message.maxAgeDuration) : undefined; - obj.max_bytes = message.maxBytes ? message.maxBytes.toString() : undefined; + obj.max_bytes = message.maxBytes !== BigInt(0) ? message.maxBytes.toString() : undefined; return obj; }, fromAminoMsg(object: EvidenceParamsAminoMsg): EvidenceParams { @@ -556,7 +556,7 @@ export const ValidatorParams = { if (message.pubKeyTypes) { obj.pub_key_types = message.pubKeyTypes.map(e => e); } else { - obj.pub_key_types = []; + obj.pub_key_types = message.pubKeyTypes; } return obj; }, @@ -620,7 +620,7 @@ export const VersionParams = { }, toAmino(message: VersionParams): VersionParamsAmino { const obj: any = {}; - obj.app_version = message.appVersion ? message.appVersion.toString() : undefined; + obj.app_version = message.appVersion !== BigInt(0) ? message.appVersion.toString() : undefined; return obj; }, fromAminoMsg(object: VersionParamsAminoMsg): VersionParams { @@ -694,8 +694,8 @@ export const HashedParams = { }, toAmino(message: HashedParams): HashedParamsAmino { const obj: any = {}; - obj.block_max_bytes = message.blockMaxBytes ? message.blockMaxBytes.toString() : undefined; - obj.block_max_gas = message.blockMaxGas ? message.blockMaxGas.toString() : undefined; + obj.block_max_bytes = message.blockMaxBytes !== BigInt(0) ? message.blockMaxBytes.toString() : undefined; + obj.block_max_gas = message.blockMaxGas !== BigInt(0) ? message.blockMaxGas.toString() : undefined; return obj; }, fromAminoMsg(object: HashedParamsAminoMsg): HashedParams { diff --git a/packages/proto/src/codegen/tendermint/types/types.ts b/packages/proto/src/codegen/tendermint/types/types.ts index a7f2e864..03a84ef7 100644 --- a/packages/proto/src/codegen/tendermint/types/types.ts +++ b/packages/proto/src/codegen/tendermint/types/types.ts @@ -564,7 +564,7 @@ export const PartSetHeader = { }, toAmino(message: PartSetHeader): PartSetHeaderAmino { const obj: any = {}; - obj.total = message.total; + obj.total = message.total === 0 ? undefined : message.total; obj.hash = message.hash ? base64FromBytes(message.hash) : undefined; return obj; }, @@ -650,7 +650,7 @@ export const Part = { }, toAmino(message: Part): PartAmino { const obj: any = {}; - obj.index = message.index; + obj.index = message.index === 0 ? undefined : message.index; obj.bytes = message.bytes ? base64FromBytes(message.bytes) : undefined; obj.proof = message.proof ? Proof.toAmino(message.proof) : undefined; return obj; @@ -934,8 +934,8 @@ export const Header = { toAmino(message: Header): HeaderAmino { const obj: any = {}; obj.version = message.version ? Consensus.toAmino(message.version) : undefined; - obj.chain_id = message.chainId; - obj.height = message.height ? message.height.toString() : undefined; + obj.chain_id = message.chainId === "" ? undefined : message.chainId; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; obj.time = message.time ? Timestamp.toAmino(toTimestamp(message.time)) : undefined; obj.last_block_id = message.lastBlockId ? BlockID.toAmino(message.lastBlockId) : undefined; obj.last_commit_hash = message.lastCommitHash ? base64FromBytes(message.lastCommitHash) : undefined; @@ -1010,7 +1010,7 @@ export const Data = { if (message.txs) { obj.txs = message.txs.map(e => base64FromBytes(e)); } else { - obj.txs = []; + obj.txs = message.txs; } return obj; }, @@ -1124,7 +1124,7 @@ export const Vote = { fromAmino(object: VoteAmino): Vote { const message = createBaseVote(); if (object.type !== undefined && object.type !== null) { - message.type = signedMsgTypeFromJSON(object.type); + message.type = object.type; } if (object.height !== undefined && object.height !== null) { message.height = BigInt(object.height); @@ -1151,13 +1151,13 @@ export const Vote = { }, toAmino(message: Vote): VoteAmino { const obj: any = {}; - obj.type = message.type; - obj.height = message.height ? message.height.toString() : undefined; - obj.round = message.round; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; - obj.validator_index = message.validatorIndex; + obj.validator_index = message.validatorIndex === 0 ? undefined : message.validatorIndex; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; return obj; }, @@ -1252,13 +1252,13 @@ export const Commit = { }, toAmino(message: Commit): CommitAmino { const obj: any = {}; - obj.height = message.height ? message.height.toString() : undefined; - obj.round = message.round; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; if (message.signatures) { obj.signatures = message.signatures.map(e => e ? CommitSig.toAmino(e) : undefined); } else { - obj.signatures = []; + obj.signatures = message.signatures; } return obj; }, @@ -1340,7 +1340,7 @@ export const CommitSig = { fromAmino(object: CommitSigAmino): CommitSig { const message = createBaseCommitSig(); if (object.block_id_flag !== undefined && object.block_id_flag !== null) { - message.blockIdFlag = blockIDFlagFromJSON(object.block_id_flag); + message.blockIdFlag = object.block_id_flag; } if (object.validator_address !== undefined && object.validator_address !== null) { message.validatorAddress = bytesFromBase64(object.validator_address); @@ -1355,7 +1355,7 @@ export const CommitSig = { }, toAmino(message: CommitSig): CommitSigAmino { const obj: any = {}; - obj.block_id_flag = message.blockIdFlag; + obj.block_id_flag = message.blockIdFlag === 0 ? undefined : message.blockIdFlag; obj.validator_address = message.validatorAddress ? base64FromBytes(message.validatorAddress) : undefined; obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; @@ -1463,7 +1463,7 @@ export const Proposal = { fromAmino(object: ProposalAmino): Proposal { const message = createBaseProposal(); if (object.type !== undefined && object.type !== null) { - message.type = signedMsgTypeFromJSON(object.type); + message.type = object.type; } if (object.height !== undefined && object.height !== null) { message.height = BigInt(object.height); @@ -1487,10 +1487,10 @@ export const Proposal = { }, toAmino(message: Proposal): ProposalAmino { const obj: any = {}; - obj.type = message.type; - obj.height = message.height ? message.height.toString() : undefined; - obj.round = message.round; - obj.pol_round = message.polRound; + obj.type = message.type === 0 ? undefined : message.type; + obj.height = message.height !== BigInt(0) ? message.height.toString() : undefined; + obj.round = message.round === 0 ? undefined : message.round; + obj.pol_round = message.polRound === 0 ? undefined : message.polRound; obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; obj.timestamp = message.timestamp ? Timestamp.toAmino(toTimestamp(message.timestamp)) : undefined; obj.signature = message.signature ? base64FromBytes(message.signature) : undefined; @@ -1740,9 +1740,9 @@ export const BlockMeta = { toAmino(message: BlockMeta): BlockMetaAmino { const obj: any = {}; obj.block_id = message.blockId ? BlockID.toAmino(message.blockId) : undefined; - obj.block_size = message.blockSize ? message.blockSize.toString() : undefined; + obj.block_size = message.blockSize !== BigInt(0) ? message.blockSize.toString() : undefined; obj.header = message.header ? Header.toAmino(message.header) : undefined; - obj.num_txs = message.numTxs ? message.numTxs.toString() : undefined; + obj.num_txs = message.numTxs !== BigInt(0) ? message.numTxs.toString() : undefined; return obj; }, fromAminoMsg(object: BlockMetaAminoMsg): BlockMeta { diff --git a/packages/proto/src/codegen/tendermint/types/validator.ts b/packages/proto/src/codegen/tendermint/types/validator.ts index f00750a7..65b44853 100644 --- a/packages/proto/src/codegen/tendermint/types/validator.ts +++ b/packages/proto/src/codegen/tendermint/types/validator.ts @@ -137,10 +137,10 @@ export const ValidatorSet = { if (message.validators) { obj.validators = message.validators.map(e => e ? Validator.toAmino(e) : undefined); } else { - obj.validators = []; + obj.validators = message.validators; } obj.proposer = message.proposer ? Validator.toAmino(message.proposer) : undefined; - obj.total_voting_power = message.totalVotingPower ? message.totalVotingPower.toString() : undefined; + obj.total_voting_power = message.totalVotingPower !== BigInt(0) ? message.totalVotingPower.toString() : undefined; return obj; }, fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet { @@ -238,8 +238,8 @@ export const Validator = { const obj: any = {}; obj.address = message.address ? base64FromBytes(message.address) : undefined; obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower ? message.votingPower.toString() : undefined; - obj.proposer_priority = message.proposerPriority ? message.proposerPriority.toString() : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; + obj.proposer_priority = message.proposerPriority !== BigInt(0) ? message.proposerPriority.toString() : undefined; return obj; }, fromAminoMsg(object: ValidatorAminoMsg): Validator { @@ -314,7 +314,7 @@ export const SimpleValidator = { toAmino(message: SimpleValidator): SimpleValidatorAmino { const obj: any = {}; obj.pub_key = message.pubKey ? PublicKey.toAmino(message.pubKey) : undefined; - obj.voting_power = message.votingPower ? message.votingPower.toString() : undefined; + obj.voting_power = message.votingPower !== BigInt(0) ? message.votingPower.toString() : undefined; return obj; }, fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator { diff --git a/packages/proto/src/codegen/tendermint/version/types.ts b/packages/proto/src/codegen/tendermint/version/types.ts index 7b4cf3b0..18bf8a5a 100644 --- a/packages/proto/src/codegen/tendermint/version/types.ts +++ b/packages/proto/src/codegen/tendermint/version/types.ts @@ -124,8 +124,8 @@ export const App = { }, toAmino(message: App): AppAmino { const obj: any = {}; - obj.protocol = message.protocol ? message.protocol.toString() : undefined; - obj.software = message.software; + obj.protocol = message.protocol !== BigInt(0) ? message.protocol.toString() : undefined; + obj.software = message.software === "" ? undefined : message.software; return obj; }, fromAminoMsg(object: AppAminoMsg): App { @@ -199,8 +199,8 @@ export const Consensus = { }, toAmino(message: Consensus): ConsensusAmino { const obj: any = {}; - obj.block = message.block ? message.block.toString() : undefined; - obj.app = message.app ? message.app.toString() : undefined; + obj.block = message.block !== BigInt(0) ? message.block.toString() : undefined; + obj.app = message.app !== BigInt(0) ? message.app.toString() : undefined; return obj; }, fromAminoMsg(object: ConsensusAminoMsg): Consensus { diff --git a/packages/proto/src/codegen/tokenfactory/authorityMetadata.ts b/packages/proto/src/codegen/tokenfactory/authorityMetadata.ts index a768dfd4..50275c81 100644 --- a/packages/proto/src/codegen/tokenfactory/authorityMetadata.ts +++ b/packages/proto/src/codegen/tokenfactory/authorityMetadata.ts @@ -77,7 +77,7 @@ export const DenomAuthorityMetadata = { }, toAmino(message: DenomAuthorityMetadata): DenomAuthorityMetadataAmino { const obj: any = {}; - obj.admin = message.admin; + obj.admin = message.admin === '' ? undefined : message.admin; return obj; }, fromAminoMsg(object: DenomAuthorityMetadataAminoMsg): DenomAuthorityMetadata { diff --git a/packages/proto/src/codegen/tokenfactory/genesis.ts b/packages/proto/src/codegen/tokenfactory/genesis.ts index e84f19ac..7625a6aa 100644 --- a/packages/proto/src/codegen/tokenfactory/genesis.ts +++ b/packages/proto/src/codegen/tokenfactory/genesis.ts @@ -118,7 +118,7 @@ export const GenesisState = { if (message.factoryDenoms) { obj.factory_denoms = message.factoryDenoms.map((e) => (e ? GenesisDenom.toAmino(e) : undefined)); } else { - obj.factory_denoms = []; + obj.factory_denoms = message.factoryDenoms; } return obj; }, @@ -194,7 +194,7 @@ export const GenesisDenom = { }, toAmino(message: GenesisDenom): GenesisDenomAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; obj.authority_metadata = message.authorityMetadata ? DenomAuthorityMetadata.toAmino(message.authorityMetadata) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/tokenfactory/query.ts b/packages/proto/src/codegen/tokenfactory/query.ts index 6ac017a7..069c6aac 100644 --- a/packages/proto/src/codegen/tokenfactory/query.ts +++ b/packages/proto/src/codegen/tokenfactory/query.ts @@ -363,7 +363,7 @@ export const QueryDenomAuthorityMetadataRequest = { }, toAmino(message: QueryDenomAuthorityMetadataRequest): QueryDenomAuthorityMetadataRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryDenomAuthorityMetadataRequestAminoMsg): QueryDenomAuthorityMetadataRequest { @@ -490,7 +490,7 @@ export const QueryDenomsFromCreatorRequest = { }, toAmino(message: QueryDenomsFromCreatorRequest): QueryDenomsFromCreatorRequestAmino { const obj: any = {}; - obj.creator = message.creator; + obj.creator = message.creator === '' ? undefined : message.creator; return obj; }, fromAminoMsg(object: QueryDenomsFromCreatorRequestAminoMsg): QueryDenomsFromCreatorRequest { @@ -554,7 +554,7 @@ export const QueryDenomsFromCreatorResponse = { if (message.denoms) { obj.denoms = message.denoms.map((e) => e); } else { - obj.denoms = []; + obj.denoms = message.denoms; } return obj; }, @@ -618,7 +618,7 @@ export const QueryDenomMetadataRequest = { }, toAmino(message: QueryDenomMetadataRequest): QueryDenomMetadataRequestAmino { const obj: any = {}; - obj.denom = message.denom; + obj.denom = message.denom === '' ? undefined : message.denom; return obj; }, fromAminoMsg(object: QueryDenomMetadataRequestAminoMsg): QueryDenomMetadataRequest { diff --git a/packages/proto/src/codegen/tokenfactory/tx.ts b/packages/proto/src/codegen/tokenfactory/tx.ts index a783dcca..ab1ce481 100644 --- a/packages/proto/src/codegen/tokenfactory/tx.ts +++ b/packages/proto/src/codegen/tokenfactory/tx.ts @@ -339,8 +339,8 @@ export const MsgCreateDenom = { }, toAmino(message: MsgCreateDenom): MsgCreateDenomAmino { const obj: any = {}; - obj.sender = message.sender; - obj.subdenom = message.subdenom; + obj.sender = message.sender === '' ? undefined : message.sender; + obj.subdenom = message.subdenom === '' ? undefined : message.subdenom; return obj; }, fromAminoMsg(object: MsgCreateDenomAminoMsg): MsgCreateDenom { @@ -403,7 +403,7 @@ export const MsgCreateDenomResponse = { }, toAmino(message: MsgCreateDenomResponse): MsgCreateDenomResponseAmino { const obj: any = {}; - obj.new_token_denom = message.newTokenDenom; + obj.new_token_denom = message.newTokenDenom === '' ? undefined : message.newTokenDenom; return obj; }, fromAminoMsg(object: MsgCreateDenomResponseAminoMsg): MsgCreateDenomResponse { @@ -477,7 +477,7 @@ export const MsgMint = { }, toAmino(message: MsgMint): MsgMintAmino { const obj: any = {}; - obj.sender = message.sender; + obj.sender = message.sender === '' ? undefined : message.sender; obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; return obj; }, @@ -602,7 +602,7 @@ export const MsgBurn = { }, toAmino(message: MsgBurn): MsgBurnAmino { const obj: any = {}; - obj.sender = message.sender; + obj.sender = message.sender === '' ? undefined : message.sender; obj.amount = message.amount ? Coin.toAmino(message.amount) : undefined; return obj; }, @@ -738,9 +738,9 @@ export const MsgChangeAdmin = { }, toAmino(message: MsgChangeAdmin): MsgChangeAdminAmino { const obj: any = {}; - obj.sender = message.sender; - obj.denom = message.denom; - obj.new_admin = message.newAdmin; + obj.sender = message.sender === '' ? undefined : message.sender; + obj.denom = message.denom === '' ? undefined : message.denom; + obj.new_admin = message.newAdmin === '' ? undefined : message.newAdmin; return obj; }, fromAminoMsg(object: MsgChangeAdminAminoMsg): MsgChangeAdmin { @@ -864,7 +864,7 @@ export const MsgSetDenomMetadata = { }, toAmino(message: MsgSetDenomMetadata): MsgSetDenomMetadataAmino { const obj: any = {}; - obj.sender = message.sender; + obj.sender = message.sender === '' ? undefined : message.sender; obj.metadata = message.metadata ? Metadata.toAmino(message.metadata) : undefined; return obj; }, diff --git a/packages/proto/src/codegen/types.ts b/packages/proto/src/codegen/types.ts index 41368c8c..f38aac05 100644 --- a/packages/proto/src/codegen/types.ts +++ b/packages/proto/src/codegen/types.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.12 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.3 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/proto/src/codegen/varint.ts b/packages/proto/src/codegen/varint.ts index 199e5186..5dc22cb3 100644 --- a/packages/proto/src/codegen/varint.ts +++ b/packages/proto/src/codegen/varint.ts @@ -1,5 +1,5 @@ /** -* This file and any referenced files were automatically generated by @cosmology/telescope@1.4.12 +* This file and any referenced files were automatically generated by @cosmology/telescope@1.5.3 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ diff --git a/packages/proto/tsconfig.declaration.json b/packages/proto/tsconfig.declaration.json new file mode 100644 index 00000000..7d2850cd --- /dev/null +++ b/packages/proto/tsconfig.declaration.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist/types", + "declaration": true, + "emitDeclarationOnly": true, + "isolatedModules": false, + "preserveConstEnums": false + } +} diff --git a/packages/proto/tsconfig.json b/packages/proto/tsconfig.json index e66b6ab9..4dd1e2f0 100644 --- a/packages/proto/tsconfig.json +++ b/packages/proto/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "outDir": "./dist/types", - }, "include": ["./src/**/*"], "exclude": ["node_modules"], "typedocOptions": { diff --git a/tsconfig.base.json b/tsconfig.base.json index f75dfaad..8a394c77 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,19 +1,17 @@ { "compilerOptions": { - "target": "ES2022", - "module": "ES2022", + "target": "ES2020", + "module": "ES2020", "strict": true, - "moduleResolution": "Bundler", + "moduleResolution": "Node", "allowSyntheticDefaultImports": true, "esModuleInterop": true, "skipLibCheck": true, "noImplicitAny": false, "lib": ["ES2022"], "resolveJsonModule": true, - "isolatedModules": true, "forceConsistentCasingInFileNames": true, - "declaration": true, - "emitDeclarationOnly": true, + "declaration": false, "baseUrl": "./", "paths": { diff --git a/yarn.lock b/yarn.lock index 5f9aefcc..1e07b547 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,11 +22,6 @@ resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== -"@alloc/quick-lru@^5.2.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz#7bf68b20c0a350f936915fcae06f58e32007ce30" - integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw== - "@ampproject/remapping@^2.1.0", "@ampproject/remapping@^2.2.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" @@ -1446,79 +1441,6 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@chain-registry/client@^1.18.0": - version "1.21.3" - resolved "https://registry.yarnpkg.com/@chain-registry/client/-/client-1.21.3.tgz#fe364e889a05a51ed46e2c5e9da328548e932ac2" - integrity sha512-R5YarbUD5xDZH97i+RvK3Fw2aUaGuVGMDxmZRmRGrgKiJV9Fh3dx1YsQ3IeBXV7L8YDRdt6KB0mECUTW/Qwgcw== - dependencies: - "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.18.5" - "@chain-registry/utils" "^1.19.4" - bfs-path "^1.0.2" - cross-fetch "^3.1.5" - -"@chain-registry/cosmostation@1.26.0": - version "1.26.0" - resolved "https://registry.yarnpkg.com/@chain-registry/cosmostation/-/cosmostation-1.26.0.tgz#0d3967b8d320168a5c9c7b56b3352dcf3f2945b0" - integrity sha512-MmjThpQ0U0EJF66UJzPy67iKC9hY7ljrpGtQOPfeYGB/lUlKZTsE/mgF2XkKGUf7wJK8LugOqU5Zul7C1/ZA4Q== - dependencies: - "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.17.0" - "@chain-registry/utils" "^1.15.0" - "@cosmostation/extension-client" "0.1.15" - -"@chain-registry/cosmostation@^1.26.0": - version "1.36.9" - resolved "https://registry.yarnpkg.com/@chain-registry/cosmostation/-/cosmostation-1.36.9.tgz#2c10b77b625942a3cbdfae110395aa7b32080d99" - integrity sha512-utMm6ulIQvNVuvdDnSS/+EkeWpfer9lzWGUGUJF5OriyKy4eGC9lHWtZz4YIGqQJzF9I7TdUOoE9TXFyep57XQ== - dependencies: - "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.18.5" - "@chain-registry/utils" "^1.19.4" - "@cosmostation/extension-client" "0.1.15" - -"@chain-registry/keplr@1.28.0": - version "1.28.0" - resolved "https://registry.yarnpkg.com/@chain-registry/keplr/-/keplr-1.28.0.tgz#c53d52ff0487eb6798722eb1cf5bd4dc82a141be" - integrity sha512-MRAEgUpafyGLRDQc4SPB+R/If4CL2SREqdbxZMKHX9aeqzKXhJlEM5IPjJTZCWTbUP/eGXC9JNjxPNUYd92PqQ== - dependencies: - "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.17.0" - "@keplr-wallet/cosmos" "0.12.28" - "@keplr-wallet/crypto" "0.12.28" - semver "^7.5.0" - -"@chain-registry/types@0.17.0": - version "0.17.0" - resolved "https://registry.yarnpkg.com/@chain-registry/types/-/types-0.17.0.tgz#bbe9176a6d30a491259fab1fcdcee2b7edf6141f" - integrity sha512-lavACU4oDxioUy8lZOFZN0Vrr2qR+Dg2yEh/mkrPfOldcioavREXJou0elDyyXwq4pGLC5YQ+IISCtQ4Du0bdw== - dependencies: - "@babel/runtime" "^7.21.0" - -"@chain-registry/types@^0.17.0": - version "0.17.1" - resolved "https://registry.yarnpkg.com/@chain-registry/types/-/types-0.17.1.tgz#0ac7bda6178d3917834578627f232a247fe5def8" - integrity sha512-O0CgrtJgIlqXvZm1CqDZe/7jZz068O/uuCIoyDXCegFHK03rdHacKcDGwEIUuI0MNUf8YV3jdE4xHQMSAX+79w== - dependencies: - "@babel/runtime" "^7.21.0" - -"@chain-registry/types@^0.18.5": - version "0.18.5" - resolved "https://registry.yarnpkg.com/@chain-registry/types/-/types-0.18.5.tgz#dfb1b0e1df2b2e38f6e2cb916be6a3237eb212b2" - integrity sha512-AN7XSyuyFM3JFW5JY7VNjd3nyzkBzgHxdsw+gVodVlEtJgPn911jxA7yPWEw25eCcYRAxYyt43lPAc9OQ+XJUw== - dependencies: - "@babel/runtime" "^7.21.0" - -"@chain-registry/utils@^1.15.0", "@chain-registry/utils@^1.19.4": - version "1.19.4" - resolved "https://registry.yarnpkg.com/@chain-registry/utils/-/utils-1.19.4.tgz#1e381ab532462646e614e7c2a07af515ed41b394" - integrity sha512-7nSZnb/9TIyeKDv3XN1aedLt/RVJsdFMZ5TMbIYpvwkyGwdew5/1pYcBvYwF1bLcZzItG85FMZzBeEj5kNrUCQ== - dependencies: - "@babel/runtime" "^7.21.0" - "@chain-registry/types" "^0.18.5" - bignumber.js "9.1.1" - sha.js "^2.4.11" - "@changesets/apply-release-plan@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@changesets/apply-release-plan/-/apply-release-plan-7.0.0.tgz#ce3c3dfc5720550a5d592b54ad2f411f816ec5ff" @@ -1761,16 +1683,6 @@ "@cosmjs/math" "^0.29.5" "@cosmjs/utils" "^0.29.5" -"@cosmjs/amino@^0.31.0", "@cosmjs/amino@^0.31.3": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.31.3.tgz#0f4aa6bd68331c71bd51b187fa64f00eb075db0a" - integrity sha512-36emtUq895sPRX8PTSOnG+lhJDCVyIcE0Tr5ct59sUbgQiI14y43vj/4WAlJ/utSOxy+Zhj9wxcs4AZfu0BHsw== - dependencies: - "@cosmjs/crypto" "^0.31.3" - "@cosmjs/encoding" "^0.31.3" - "@cosmjs/math" "^0.31.3" - "@cosmjs/utils" "^0.31.3" - "@cosmjs/amino@^0.32.2", "@cosmjs/amino@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.32.3.tgz#b81d4a2b8d61568431a1afcd871e1344a19d97ff" @@ -1798,22 +1710,6 @@ long "^4.0.0" pako "^2.0.2" -"@cosmjs/cosmwasm-stargate@^0.32.2": - version "0.32.3" - resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.32.3.tgz#26a110a6bb0c15fdeef647e3433bd9553a1acd5f" - integrity sha512-pqkt+QsLIPNMTRh9m+igJgIpzXXgn1BxmxfAb9zlC23kvsuzY/12un9M7iAdim1NwKXDFeYw46xC2YkprwQp+g== - dependencies: - "@cosmjs/amino" "^0.32.3" - "@cosmjs/crypto" "^0.32.3" - "@cosmjs/encoding" "^0.32.3" - "@cosmjs/math" "^0.32.3" - "@cosmjs/proto-signing" "^0.32.3" - "@cosmjs/stargate" "^0.32.3" - "@cosmjs/tendermint-rpc" "^0.32.3" - "@cosmjs/utils" "^0.32.3" - cosmjs-types "^0.9.0" - pako "^2.0.2" - "@cosmjs/crypto@0.29.0": version "0.29.0" resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.29.0.tgz#c914424a8b538f6624e505bc2015a71e3977c2fb" @@ -1840,20 +1736,7 @@ elliptic "^6.5.4" libsodium-wrappers "^0.7.6" -"@cosmjs/crypto@^0.31.3": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.31.3.tgz#c752cb6d682fdc735dcb45a2519f89c56ba16c26" - integrity sha512-vRbvM9ZKR2017TO73dtJ50KxoGcFzKtKI7C8iO302BQ5p+DuB+AirUg1952UpSoLfv5ki9O416MFANNg8UN/EQ== - dependencies: - "@cosmjs/encoding" "^0.31.3" - "@cosmjs/math" "^0.31.3" - "@cosmjs/utils" "^0.31.3" - "@noble/hashes" "^1" - bn.js "^5.2.0" - elliptic "^6.5.4" - libsodium-wrappers-sumo "^0.7.11" - -"@cosmjs/crypto@^0.32.2", "@cosmjs/crypto@^0.32.3": +"@cosmjs/crypto@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.32.3.tgz#787f8e659709678722068ee1ddf379f65051a25e" integrity sha512-niQOWJHUtlJm2GG4F00yGT7sGPKxfUwz+2qQ30uO/E3p58gOusTcH2qjiJNVxb8vScYJhFYFqpm/OA/mVqoUGQ== @@ -1875,16 +1758,7 @@ bech32 "^1.1.4" readonly-date "^1.0.0" -"@cosmjs/encoding@^0.31.3": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.31.3.tgz#2519d9c9ae48368424971f253775c4580b54c5aa" - integrity sha512-6IRtG0fiVYwyP7n+8e54uTx2pLYijO48V3t9TLiROERm5aUAIzIlz6Wp0NYaI5he9nh1lcEGJ1lkquVKFw3sUg== - dependencies: - base64-js "^1.3.0" - bech32 "^1.1.4" - readonly-date "^1.0.0" - -"@cosmjs/encoding@^0.32.2", "@cosmjs/encoding@^0.32.3": +"@cosmjs/encoding@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.32.3.tgz#e245ff511fe4a0df7ba427b5187aab69e3468e5b" integrity sha512-p4KF7hhv8jBQX3MkB3Defuhz/W0l3PwWVYU2vkVuBJ13bJcXyhU9nJjiMkaIv+XP+W2QgRceqNNgFUC5chNR7w== @@ -1916,14 +1790,7 @@ dependencies: bn.js "^5.2.0" -"@cosmjs/math@^0.31.3": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.31.3.tgz#767f7263d12ba1b9ed2f01f68d857597839fd957" - integrity sha512-kZ2C6glA5HDb9hLz1WrftAjqdTBb3fWQsRR+Us2HsjAYdeE6M3VdXMsYCP5M3yiihal1WDwAY2U7HmfJw7Uh4A== - dependencies: - bn.js "^5.2.0" - -"@cosmjs/math@^0.32.2", "@cosmjs/math@^0.32.3": +"@cosmjs/math@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.32.3.tgz#16e4256f4da507b9352327da12ae64056a2ba6c9" integrity sha512-amumUtZs8hCCnV+lSBaJIiZkGabQm22QGg/IotYrhcmoOEOjt82n7hMNlNXRs7V6WLMidGrGYcswB5zcmp0Meg== @@ -1943,18 +1810,6 @@ cosmjs-types "^0.5.0" long "^4.0.0" -"@cosmjs/proto-signing@0.32.2": - version "0.32.2" - resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.32.2.tgz#26ed2675978ce24078981f4c15a06c5d6b808f44" - integrity sha512-UV4WwkE3W3G3s7wwU9rizNcUEz2g0W8jQZS5J6/3fiN0mRPwtPKQ6EinPN9ASqcAJ7/VQH4/9EPOw7d6XQGnqw== - dependencies: - "@cosmjs/amino" "^0.32.2" - "@cosmjs/crypto" "^0.32.2" - "@cosmjs/encoding" "^0.32.2" - "@cosmjs/math" "^0.32.2" - "@cosmjs/utils" "^0.32.2" - cosmjs-types "^0.9.0" - "@cosmjs/proto-signing@^0.29.0", "@cosmjs/proto-signing@^0.29.5": version "0.29.5" resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.29.5.tgz#af3b62a46c2c2f1d2327d678b13b7262db1fe87c" @@ -1968,19 +1823,6 @@ cosmjs-types "^0.5.2" long "^4.0.0" -"@cosmjs/proto-signing@^0.31.0": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.31.3.tgz#20440b7b96fb2cd924256a10e656fd8d4481cdcd" - integrity sha512-24+10/cGl6lLS4VCrGTCJeDRPQTn1K5JfknzXzDIHOx8THR31JxA7/HV5eWGHqWgAbudA7ccdSvEK08lEHHtLA== - dependencies: - "@cosmjs/amino" "^0.31.3" - "@cosmjs/crypto" "^0.31.3" - "@cosmjs/encoding" "^0.31.3" - "@cosmjs/math" "^0.31.3" - "@cosmjs/utils" "^0.31.3" - cosmjs-types "^0.8.0" - long "^4.0.0" - "@cosmjs/proto-signing@^0.32.2", "@cosmjs/proto-signing@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.32.3.tgz#91ae149b747d18666a6ccc924165b306431f7c0d" @@ -2049,7 +1891,7 @@ protobufjs "~6.11.3" xstream "^11.14.0" -"@cosmjs/stargate@^0.32.2", "@cosmjs/stargate@^0.32.3": +"@cosmjs/stargate@^0.32.2": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.32.3.tgz#5a92b222ada960ebecea72cc9f366370763f4b66" integrity sha512-OQWzO9YWKerUinPIxrO1MARbe84XkeXJAW0lyMIjXIEikajuXZ+PwftiKA5yA+8OyditVmHVLtPud6Pjna2s5w== @@ -2116,25 +1958,20 @@ resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.29.5.tgz#3fed1b3528ae8c5f1eb5d29b68755bebfd3294ee" integrity sha512-m7h+RXDUxOzEOGt4P+3OVPX7PuakZT3GBmaM/Y2u+abN3xZkziykD/NvedYFvvCCdQo714XcGl33bwifS9FZPQ== -"@cosmjs/utils@^0.31.3": - version "0.31.3" - resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.31.3.tgz#f97bbfda35ad69e80cd5c7fe0a270cbda16db1ed" - integrity sha512-VBhAgzrrYdIe0O5IbKRqwszbQa7ZyQLx9nEQuHQ3HUplQW7P44COG/ye2n6AzCudtqxmwdX7nyX8ta1J07GoqA== - -"@cosmjs/utils@^0.32.2", "@cosmjs/utils@^0.32.3": +"@cosmjs/utils@^0.32.3": version "0.32.3" resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.32.3.tgz#5dcaee6dd7cc846cdc073e9a7a7f63242f5f7e31" integrity sha512-WCZK4yksj2hBDz4w7xFZQTRZQ/RJhBX26uFHmmQFIcNUUVAihrLO+RerqJgk0dZqC42wstM9pEUQGtPmLcIYvg== -"@cosmology/ast@^1.5.1": - version "1.5.1" - resolved "https://registry.yarnpkg.com/@cosmology/ast/-/ast-1.5.1.tgz#e941690fdc91daca3ddbf17c3ed8e3f4ecacbf61" - integrity sha512-+zqdY4K+zDSNz7DCA2Z+5AqtGMgVmngsOjayNu7mLi/Lfm9r+JGoITrOGQRltRjg/G9yN/UH2VAHnIr5TH94Jg== +"@cosmology/ast@^1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@cosmology/ast/-/ast-1.5.3.tgz#c7fd20a3e907491d574110d97b42443ed92f6bc0" + integrity sha512-+ENh0e53BgJK5U6E2WtBp0TWbacfkcFLPZ7dzVEEJ299KRNKuprTtCr4bAaIMrRyF65GycCFg8i/pn3LKNXPOw== dependencies: "@babel/parser" "^7.23.6" "@babel/types" "7.23.6" - "@cosmology/types" "^1.5.0" - "@cosmology/utils" "^1.5.0" + "@cosmology/types" "^1.5.2" + "@cosmology/utils" "^1.5.2" case "1.6.3" dotty "0.1.2" @@ -2145,14 +1982,14 @@ dependencies: axios "1.6.0" -"@cosmology/proto-parser@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@cosmology/proto-parser/-/proto-parser-1.5.0.tgz#1a38a0e2fd8ae79fbf399a89287f1ef2450bdb11" - integrity sha512-JaT62afyETA9kugHg8B6ikISeDcgZO1Jk/QBnjI1F2zwMjTvsAiYZoID9l5dG0zLXH8S61vcx+C1b2zP4Cqcgw== +"@cosmology/proto-parser@^1.5.2": + version "1.5.2" + resolved "https://registry.yarnpkg.com/@cosmology/proto-parser/-/proto-parser-1.5.2.tgz#c166b70493e004d10f0a33e1b32e3946720ad64b" + integrity sha512-pWxDiK1LuYtiRAtX7kAYyrv3tZqH7q2M9FPZM+wmnW4T/4iDKgv1Uuz0I5WWw8+wJ0fczeYpary97U8GERaeUg== dependencies: "@cosmology/protobufjs" "6.11.6" - "@cosmology/types" "^1.5.0" - "@cosmology/utils" "^1.5.0" + "@cosmology/types" "^1.5.2" + "@cosmology/utils" "^1.5.2" dotty "0.1.2" glob "8.0.3" minimatch "5.1.0" @@ -2177,19 +2014,19 @@ "@types/node" ">=13.7.0" long "^4.0.0" -"@cosmology/telescope@^1.4.12": - version "1.5.1" - resolved "https://registry.yarnpkg.com/@cosmology/telescope/-/telescope-1.5.1.tgz#3e395d452fd97c1eee6fabf0deb2a9ba58bcaecf" - integrity sha512-nGB7AYv5kZeQ311HlYv3znBiKfnBu5E3OHgm2pjbFbl8iDbrL18hlHg0VSr5jRjTHAGRGQ1FnjEoP0XoccPUaA== +"@cosmology/telescope@^1.5.3": + version "1.5.3" + resolved "https://registry.yarnpkg.com/@cosmology/telescope/-/telescope-1.5.3.tgz#439355c5a5b4202411cefd8491ea96dbd1d7b5eb" + integrity sha512-4NuCwoD7Vbf8Wd7vWgDjHUEcpM3sSgOn0O27w0SnfGE9bMOnkDwQSdN906VvojjR6rjAr3JBrKcFjsQkADMyhw== dependencies: "@babel/generator" "^7.23.6" "@babel/parser" "^7.23.6" "@babel/traverse" "7.23.6" "@babel/types" "7.23.6" - "@cosmology/ast" "^1.5.1" - "@cosmology/proto-parser" "^1.5.0" - "@cosmology/types" "^1.5.0" - "@cosmology/utils" "^1.5.0" + "@cosmology/ast" "^1.5.3" + "@cosmology/proto-parser" "^1.5.2" + "@cosmology/types" "^1.5.2" + "@cosmology/utils" "^1.5.2" "@cosmwasm/ts-codegen" "0.34.0" "@types/parse-package-name" "0.1.0" case "1.6.3" @@ -2206,382 +2043,21 @@ parse-package-name "1.0.0" rimraf "5.0.0" -"@cosmology/types@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@cosmology/types/-/types-1.5.0.tgz#0279cd32899e5ec7493ed1e306d2985483a1665c" - integrity sha512-wJhCsDGpscxIhZm9IbNbRUnjtiFhSuyBf5ou0y/utLBGheReXgtbriBdXEqqhVXcRSKqImXqMUHGwKWaBDVAIQ== +"@cosmology/types@^1.5.2": + version "1.5.2" + resolved "https://registry.yarnpkg.com/@cosmology/types/-/types-1.5.2.tgz#9d6dc68ea1349dc1160c880856ca520834197724" + integrity sha512-fw222Zr8zd6tB29mq9+xpcNqSNBmi+FSbxB5GEi72InJ5hP6HOe05eJTg3c2Ht91FLLVWv5nrykNtIP7ZH42iQ== dependencies: case "1.6.3" -"@cosmology/utils@^1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@cosmology/utils/-/utils-1.5.0.tgz#dafa16e3757b73898b5310fee41e82ae830c1d9b" - integrity sha512-Jm53GUymOuXlPUjECEC2mrTOLmD7e0VdpRSSWgvmUZsfD3HfKw690asykoKTCPXWypO5zox1cTJIcmoNKdoOVw== +"@cosmology/utils@^1.5.2": + version "1.5.2" + resolved "https://registry.yarnpkg.com/@cosmology/utils/-/utils-1.5.2.tgz#0121e4a40692f85de615835eebff1dc04ccbb453" + integrity sha512-9T7i2uFeLTlYJxmSD8lcbHZa0MGlZjUFwbDhmnIas416PqGi7kKjxWtIttSsM3iPp7/JnrP1+e2g9Oo1KEvFGw== dependencies: - "@cosmology/types" "^1.5.0" + "@cosmology/types" "^1.5.2" dotty "0.1.2" -"@cosmos-kit/coin98-extension@^2.7.10": - version "2.7.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/coin98-extension/-/coin98-extension-2.7.10.tgz#8a37aa788f809e734637c50452ca5bc0f89fdeba" - integrity sha512-xTSIEQTYrUN1xIgPYIvMMFvHVbljA04fgdSQCgvUWHCNFtoYQrYdH5sgY6L9AGe+Aejr2C6Jmejnf3GM9wXxuQ== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - cosmjs-types ">=0.9.0" - -"@cosmos-kit/coin98@^2.6.10": - version "2.6.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/coin98/-/coin98-2.6.10.tgz#7f4df0f64ac47cd2a9d30a2d0ced4123e348f1e8" - integrity sha512-bkWCtWDl18OgaMgeyRyDsasrmfCmBRqkpoltPjZ3TfQPlTIYJP667McOvi+7grxLR5Smwo/uCDCNZM6zHJtSKw== - dependencies: - "@cosmos-kit/coin98-extension" "^2.7.10" - -"@cosmos-kit/compass-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/compass-extension/-/compass-extension-2.6.9.tgz#994e8ce618e2f19e6cda92c6acd507a9604f3881" - integrity sha512-r5YVzfRThbcDbU5mQdiEMGXBDrm4m8k5clPNTTpNqk3GqSbVXhQUlDQMb7fYEtZRSu/J4lB8fZwt4C9829xIZA== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/compass@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/compass/-/compass-2.6.9.tgz#22f8bb42260691c4fedd27673d5b3664f0958e18" - integrity sha512-XHHV3rI6MxpiB3Ir7PHI/ft7VgFDUjNFpo1sttpBFWtW32PBe2EZ4COHpzUz9LtVwRhnkdWT6PK1oZshpKVXaA== - dependencies: - "@cosmos-kit/compass-extension" "^2.6.9" - -"@cosmos-kit/core@^2.8.9": - version "2.8.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/core/-/core-2.8.9.tgz#3e6b40fa14c5d143065d3ec6a894e386f95ea4ad" - integrity sha512-e0Fqbut9mqHlFS6QnLSbU8AFYPtXUcKVaMJsL1dKbfTotACsECgnAs4gzXaTFo3sTwEJrNZ6cq86qvqV85X6uw== - dependencies: - "@chain-registry/client" "^1.18.0" - "@chain-registry/types" "0.17.0" - "@cosmjs/amino" "^0.32.2" - "@cosmjs/cosmwasm-stargate" "^0.32.2" - "@cosmjs/proto-signing" "^0.32.2" - "@cosmjs/stargate" "^0.32.2" - "@walletconnect/types" "2.11.0" - bowser "2.11.0" - cosmjs-types "^0.9.0" - events "3.3.0" - uuid "^9.0.1" - -"@cosmos-kit/cosmostation-extension@^2.7.10": - version "2.7.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/cosmostation-extension/-/cosmostation-extension-2.7.10.tgz#2120fa826c692732e7c539a35141df0f8e832876" - integrity sha512-x0rBk4Ht6uicfZxIXRbwUi5WHrvKsI11oXbf9bYL9nRBfRTgpbO6zIW9791oTVjiJLzHbKaBQoqh1R233YcHbg== - dependencies: - "@chain-registry/cosmostation" "^1.26.0" - "@cosmos-kit/core" "^2.8.9" - cosmjs-types "^0.9.0" - -"@cosmos-kit/cosmostation-mobile@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/cosmostation-mobile/-/cosmostation-mobile-2.6.9.tgz#1c304ac12cccc05de93c9ed927243d51087426f6" - integrity sha512-GjZetNMFrz2oLisdp14ahxftkwPz5v1OYRGvD4MLTdMSA71JUTzX8A4At4uo4M7nwG09H1yQ2/CLQy9XGVRinA== - dependencies: - "@chain-registry/cosmostation" "1.26.0" - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/walletconnect" "^2.5.9" - -"@cosmos-kit/cosmostation@^2.6.10": - version "2.6.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/cosmostation/-/cosmostation-2.6.10.tgz#406d93a29c154e988f4d60425d8edbba4f0cd455" - integrity sha512-DWR28fnkv04yr5Eyo/CS7yOiYr3cwld9lE/F2qGIYGb2Tw/eUWhKSl05+2ly8S15xoKOXT7wxXOsFIXYYUQ8/g== - dependencies: - "@cosmos-kit/cosmostation-extension" "^2.7.10" - "@cosmos-kit/cosmostation-mobile" "^2.6.9" - -"@cosmos-kit/exodus-extension@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/exodus-extension/-/exodus-extension-2.5.9.tgz#d898ef4e8794aa6ea9ce98f85cf8c05519b6b434" - integrity sha512-iPFWs3pPLYcEkRfw32qwM7/iZJX5un0tDIGdqdIR0l0qJWxwU3Fsbrrk4v/qbbRzHlHtcfiohlUOR+m52zj5zA== - dependencies: - "@cosmos-kit/core" "^2.8.9" - react-icons "4.4.0" - -"@cosmos-kit/exodus@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/exodus/-/exodus-2.5.9.tgz#b265d7e42b97e5bf2debb728e244414e51db3f66" - integrity sha512-szvol6Q5ypE8VBjrqvswnAGLfQBBqPNOqJ6cW53qRU123Y9f1PwfHwDWhtBM9UO4hnfbqgoET3ezCJlTV53zgQ== - dependencies: - "@cosmos-kit/exodus-extension" "^2.5.9" - -"@cosmos-kit/fin-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/fin-extension/-/fin-extension-2.6.9.tgz#167e153850566a7060b3b54e060ea8e835cc1ae5" - integrity sha512-e9hcEye/7OVln40Rh6q4rQ3NHl2/toBwnDSFDDeSCbP8sXEsboVLVT8WSkgxU8OY/iP9R8DJz49JviHnMsyn5g== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/fin@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/fin/-/fin-2.6.9.tgz#cb9319323623a66db1d8715c84db289dfbfd572b" - integrity sha512-lbXJnWZGMqorPj2WQI4KTS51XtJbgFsoLG7aF4wyfG7euZrlBeazOr+h49WOLvIPgiMWCYascYkuHiFuurtxQw== - dependencies: - "@cosmos-kit/fin-extension" "^2.6.9" - -"@cosmos-kit/frontier-extension@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/frontier-extension/-/frontier-extension-2.5.9.tgz#1082aaa35ef02f20af4f9de4d5d76068aa15191e" - integrity sha512-YjHaxvlH1YSZj3epKXHstSNRyWdd8YZUPzpftLLuhebuaINHWk6V92MnUtXYo8UKIKOSw3UIHjZii/MieJ1STQ== - dependencies: - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/frontier@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/frontier/-/frontier-2.5.9.tgz#96bb0408038fa9a7fb24fb91a7095aa3cd5bda84" - integrity sha512-iYneO93TK+ksNgWl3wXafKW7UGTQ/b+cSJcneGZJ3C8r4AGdjtgmcMgFgS6NcbQxB/1l0IBmwzkhyUcBzC/hjQ== - dependencies: - "@cosmos-kit/frontier-extension" "^2.5.9" - -"@cosmos-kit/keplr-extension@^2.7.9": - version "2.7.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/keplr-extension/-/keplr-extension-2.7.9.tgz#16586c94452a5e65713cdead07446447c511fa0e" - integrity sha512-asIjLzJjNa1mpQRohoT5zwnutk93WaQ/Y6ndb2CITfjXzM7HWrbhUzShy3FXZjHNO9CbPTjpsHNzhyScTc7fgg== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - "@keplr-wallet/types" "^0.12.58" - -"@cosmos-kit/keplr-mobile@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/keplr-mobile/-/keplr-mobile-2.6.9.tgz#28fcdffc8da11c34a2ece2bbef58e29dc68d0df3" - integrity sha512-kw0g/TOBKMJMDiIld2wZ7Id47hUA7G3tauijSwbMC+scXnnmOCKZ1x0lRUvW13onV7SiRT21sOm7msl8XwUlgQ== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/walletconnect" "^2.5.9" - -"@cosmos-kit/keplr@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/keplr/-/keplr-2.6.9.tgz#d861f8ea4471fc72f54c19e287623341e586e8a2" - integrity sha512-HW+WhELS1dHokSq58NDNCIQaA0xRrg293uKM989XQgDOgD/xsEaRrwwTaj3guOXxVm8BE51PLTFbZesHhflmaQ== - dependencies: - "@cosmos-kit/keplr-extension" "^2.7.9" - "@cosmos-kit/keplr-mobile" "^2.6.9" - -"@cosmos-kit/leap-extension@^2.7.10": - version "2.7.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/leap-extension/-/leap-extension-2.7.10.tgz#ff109ead4358f9cbe0b5a727733689d2bea3a60a" - integrity sha512-vVMkF+64oMFLbrw244AxoUR4vrFSKlOHhFHw7wOEHfeTSdvX4mcCsU8CC1LtVV5Bc0msVdkNWVbE04VEump8rg== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/leap-metamask-cosmos-snap@^0.6.2": - version "0.6.2" - resolved "https://registry.yarnpkg.com/@cosmos-kit/leap-metamask-cosmos-snap/-/leap-metamask-cosmos-snap-0.6.2.tgz#951d3934c781a8135247e5270bdb52a5fb6be311" - integrity sha512-47Kq0ZrXNinbTfNH0i0GtxdfIDkq7iaixLQ5p9qc56CtiqBtT4bSrZoYqUl3nlM7iFKTtrb7FdCPkAVkWpYUew== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - "@leapwallet/cosmos-snap-provider" "0.1.25" - "@metamask/providers" "^11.1.1" - -"@cosmos-kit/leap-mobile@^2.6.10": - version "2.6.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/leap-mobile/-/leap-mobile-2.6.10.tgz#f7fdc404c41f61d8e8d6a4e70f77c71e5dcca31d" - integrity sha512-IpKThc3BMM6X/ItXK0kuEnaN/0397aCXNbRmx4mWnxQgFljEo+XncoOs8VZcf6q89Td+GOAvuMQ5djDKXNR4Ew== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/walletconnect" "^2.5.9" - -"@cosmos-kit/leap@^2.6.12": - version "2.6.12" - resolved "https://registry.yarnpkg.com/@cosmos-kit/leap/-/leap-2.6.12.tgz#769bbb2426049bfa8d4b71e3aa1f8d4ae1b1aba1" - integrity sha512-oBxj3pQEuF2YPIJdn2hZ6pOHF1hsqpmPNg3ywDDlOXJE4pubtVYqk5pQpPVndt9OHzCSTyJr1pj2ZH+Pksb9Hg== - dependencies: - "@cosmos-kit/leap-extension" "^2.7.10" - "@cosmos-kit/leap-metamask-cosmos-snap" "^0.6.2" - "@cosmos-kit/leap-mobile" "^2.6.10" - -"@cosmos-kit/ledger@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/ledger/-/ledger-2.6.9.tgz#e37dfb2ac5941c825477210e091c2a745daf3d61" - integrity sha512-+zn2U6v2c7vDSz8vTe/4oR4lSO/LH/FkdcrstuFTJm1Mk4tpYmJkJGmUQhYV4ZfjSHXfbfccrCl1jgu4uQgiZQ== - dependencies: - "@cosmos-kit/core" "^2.8.9" - "@ledgerhq/hw-app-cosmos" "^6.28.1" - "@ledgerhq/hw-transport-webhid" "^6.27.15" - "@ledgerhq/hw-transport-webusb" "^6.27.15" - -"@cosmos-kit/okxwallet-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/okxwallet-extension/-/okxwallet-extension-2.6.9.tgz#004a83b2b88d26951d74f7eb6747bdca68583d7b" - integrity sha512-QWPtBSd9l7C5O3P+Djvhq/54KORpvGkk/pixsYmaf2Uyq7jbQUFLdeE9ZDsikWdaYtfvb9F4P+YEA1LfbpeaEg== - dependencies: - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/omni-mobile@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/omni-mobile/-/omni-mobile-2.5.9.tgz#c039dd9e1a99d799ad6e92d9094bd7e55bc0f480" - integrity sha512-SRu6S/PLRfVpO6BFHgPfwuO5om3HhizFYrOvynxZ7zp4yOWsc8c5tQjNcMSpQOFrLx24cJUFiCdd8hfOFthPXw== - dependencies: - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/walletconnect" "^2.5.9" - -"@cosmos-kit/omni@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/omni/-/omni-2.5.9.tgz#931c15d3ea3b1d53cf73393d3f842fc4b4520aa3" - integrity sha512-oJ5ve7Sf7i7g/wpFtisPJfYGpjXweldw0LaYUWPUSttjS+WWhMFWkQGr2lKjyC1A/8Jdmsl8STOJmfyYpD8MMg== - dependencies: - "@cosmos-kit/omni-mobile" "^2.5.9" - -"@cosmos-kit/owallet-extension@^2.7.10": - version "2.7.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/owallet-extension/-/owallet-extension-2.7.10.tgz#62a19002a83ba615dafab18528cec49b3dfb4d8d" - integrity sha512-JiOjIccx9RPFvkjCXJ76j5APGnuIJHmdHCu1NJ6BKu7uYHlRAuwV4z5ozU4KbSEqIDn+3I2ShdogQR7HoWlbGQ== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - "@keplr-wallet/types" "^0.12.58" - -"@cosmos-kit/owallet@^2.6.10": - version "2.6.10" - resolved "https://registry.yarnpkg.com/@cosmos-kit/owallet/-/owallet-2.6.10.tgz#29f6f7a0769c2f1c04d15033ad368e343b28e0b6" - integrity sha512-5/bkJYrvxYfkyU90XW8+HyK7JYFBWYM0WdZn9melDMRk7u7rKUm2BYCv0AJL4WT4xi///7ZG+3C+WPplhwr+DA== - dependencies: - "@cosmos-kit/owallet-extension" "^2.7.10" - -"@cosmos-kit/react-lite@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/react-lite/-/react-lite-2.6.9.tgz#11d1ad07fc087bad5cac5ee623596bdf70b80681" - integrity sha512-lDD6JcJstQrrQ5ZpdK2xk2OVma8DNwBe3ng3oNKAQmFTAagRjFS+TwkYF1Onl1kAcNmk0TIYStPzzUm9RkwSNw== - dependencies: - "@chain-registry/types" "0.17.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/react@^2.10.11": - version "2.10.11" - resolved "https://registry.yarnpkg.com/@cosmos-kit/react/-/react-2.10.11.tgz#04b3bf084c320f65fec4d1d509805965adf92170" - integrity sha512-8/EFsEGCznrptZscg8fO/9YuE0QrkKWUjCDN9F40cG0sLDGVJig0V2rLalqL5935eH3+W2lwPyr5ASWiVJlLoQ== - dependencies: - "@chain-registry/types" "0.17.0" - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/react-lite" "^2.6.9" - "@react-icons/all-files" "^4.1.0" - -"@cosmos-kit/shell-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/shell-extension/-/shell-extension-2.6.9.tgz#a6b3c4611b273fbaf034bba47b9ac196c6bb8f8c" - integrity sha512-Tl4mnWr0ns8SCNeV1cTqBcQvywl+EiR5YsdlFDnQ04u167Bxe++VXUKKSPBHcwSe2xHslzp9UGK3jGhspaQDWQ== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/shell@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/shell/-/shell-2.6.9.tgz#61cb3390fdac87773caddd5cd5cb0880fde0acd3" - integrity sha512-YgjYw4m53IsLw9Gusq8IlewcVuR8aF/3+UU9+H1EXVpBiEEDwzEW2+k6Q8XqtSJUAy87BCwjn5cgAxQp73spLw== - dependencies: - "@cosmos-kit/shell-extension" "^2.6.9" - -"@cosmos-kit/station-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/station-extension/-/station-extension-2.6.9.tgz#83beddee1cb407f89d7844735478746bc0877f90" - integrity sha512-OHtOYHGW5/i+l4VpV8zu1Vfduy+aJpH9b8yUjuumcYS1u95zDvBSFNc1ejHcBeOey+fEVObbid6e5WX5B5pmQQ== - dependencies: - "@chain-registry/types" "0.17.0" - "@cosmos-kit/core" "^2.8.9" - "@terra-money/feather.js" "^1.0.8" - "@terra-money/station-connector" "^1.0.5" - "@terra-money/wallet-types" "^3.11.2" - -"@cosmos-kit/station@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/station/-/station-2.5.9.tgz#a71b4bbb497c49dab3782a494da3e9a655a4268f" - integrity sha512-EIDt586MmT72sCERPOobpUxDQWMoitGIISY9X0fA0NeKTvf4l963ROewx/KHSs/oKRKI5OeM4DShJIF1B7+ZNQ== - dependencies: - "@cosmos-kit/station-extension" "^2.6.9" - -"@cosmos-kit/tailwind-extension@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@cosmos-kit/tailwind-extension/-/tailwind-extension-1.0.1.tgz#0c10ec807e080820f38dfc39c1b765df32d8b24b" - integrity sha512-72YVvmEvhjQeJMAcgaiG7OZj7NDRPM6whZRA4TnbULpWJ2EjCELFuzQSrvLf8pK8PPrH3AeNbTZG9XOyh0qiEg== - dependencies: - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/tailwind@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@cosmos-kit/tailwind/-/tailwind-1.0.2.tgz#5bcda45a2187fa973c90452992dc6d10be826500" - integrity sha512-xPI6v537SOxSKuKxaZgDg/J1Gm/JxcJApG6UXlKP35Q73WzC3tvK52+pUrmXoWJnn0CIfBkVA07cz/2eK5otVg== - dependencies: - "@cosmos-kit/tailwind-extension" "^1.0.1" - -"@cosmos-kit/trust-extension@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/trust-extension/-/trust-extension-2.5.9.tgz#1c460fdaf8463442a9d8f8efa28978bb7847a41d" - integrity sha512-zmHb2eNKgoH2zqlSqJh15Uo229xUte7nufTqBBvMmW251dLaQvhMtg94onAMO1RE0221FCpTTuX/M64tSmVtCg== - dependencies: - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/trust-mobile@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/trust-mobile/-/trust-mobile-2.5.9.tgz#b469252096b03d2ede9bb68a7d172fd4ff7478e5" - integrity sha512-ib9Ojk02hZeKslDfu1S8rbmGu7Hnc+ldcm6hydshmubPAozF8o5Mv6KisTSdktewgkYrZzKVd6xWaB1zxQFEOA== - dependencies: - "@cosmos-kit/core" "^2.8.9" - "@cosmos-kit/walletconnect" "^2.5.9" - -"@cosmos-kit/trust@^2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@cosmos-kit/trust/-/trust-2.6.0.tgz#718d3d991d3e468b4d0b340e4cd0508753ed6d41" - integrity sha512-4paN6EJIkHVWPEdUc+IK9jR7jj1AKHQlJLEDk3V1XYm6kGInSBf/08MXzgVwaMT2FU4UQN6kk+Z6dVrvnLOCtg== - dependencies: - "@cosmos-kit/trust-extension" "^2.5.9" - "@cosmos-kit/trust-mobile" "^2.5.9" - -"@cosmos-kit/vectis-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/vectis-extension/-/vectis-extension-2.6.9.tgz#6f0d3e19c38ef158746522ba3a622ec9c3e02636" - integrity sha512-Q8lzeOt0wEGqLWvEQ+cijkgiF7LZWVu6vsCJ6EKLl5814N92TiWOCLWEVJnaZx2rbG8dkxWQW5HpEOVfpUf4+w== - dependencies: - "@chain-registry/keplr" "1.28.0" - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/vectis@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/vectis/-/vectis-2.6.9.tgz#9110658a0e5417b34f9168032c3db960d23c485a" - integrity sha512-9tVdus0cqudVND5GPUhQgptpHgY1BGNAOsek//WBy3wwmzu6tbZfCwQBGG7hcz1p9peDfUHSLHNvKbvX9/KgJw== - dependencies: - "@cosmos-kit/vectis-extension" "^2.6.9" - -"@cosmos-kit/walletconnect@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/walletconnect/-/walletconnect-2.5.9.tgz#10c9b6f0077801e39eedf89092deb6310b47d746" - integrity sha512-wQ3qR75Q5ZpUZMO96FwBVSuLme4z4mZ8OD8fFgs1QM16Kn81+oQ00kXDT/MkokDAVCdz91qS4XHxQEAvxSm0qw== - dependencies: - "@cosmjs/proto-signing" "0.32.2" - "@cosmos-kit/core" "^2.8.9" - "@walletconnect/sign-client" "^2.9.0" - "@walletconnect/utils" "^2.9.0" - events "3.3.0" - -"@cosmos-kit/xdefi-extension@^2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/xdefi-extension/-/xdefi-extension-2.6.9.tgz#d3a9938a8b907cd5ac86966fad636b9568ce13b6" - integrity sha512-TenOQOzCiYjQ+LaEkgTnwynRy7T09WK6e7FvsWFcF9HSduJvc4pUuy7Bd/oHfyMiNgeq6ccWxgkFGUh74qkAuw== - dependencies: - "@cosmos-kit/core" "^2.8.9" - -"@cosmos-kit/xdefi@^2.5.9": - version "2.5.9" - resolved "https://registry.yarnpkg.com/@cosmos-kit/xdefi/-/xdefi-2.5.9.tgz#5ec9c5eed555da4e4c7e118f1902f6fcfdc11938" - integrity sha512-GgSXDaPLBNV9AjIQkmU/NWduYJM15Qqvi2D4B6fw4aWHEsRODw15gnGQMpAvGTBtNU0iYTp7MvvvnjT1wTQxeg== - dependencies: - "@cosmos-kit/xdefi-extension" "^2.6.9" - -"@cosmostation/extension-client@0.1.15": - version "0.1.15" - resolved "https://registry.yarnpkg.com/@cosmostation/extension-client/-/extension-client-0.1.15.tgz#cdc6d8fce42217704c1c0d5814f0ee7ce27e8dab" - integrity sha512-HlXYJjFrNpjiV/GUKhri1UL8/bhlOIFFLpRF78YDSqq16x0+plIqx5CAvEusFcKTDpVfpeD5sfUHiKvP7euNFg== - "@cosmwasm/ts-codegen@0.34.0": version "0.34.0" resolved "https://registry.yarnpkg.com/@cosmwasm/ts-codegen/-/ts-codegen-0.34.0.tgz#659bb69fc5f74cbd623567f3090e69072f08b23c" @@ -2741,11 +2217,6 @@ resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.3.1.tgz#d0fce5d07b0620caa282b5131c297bb60f9d87e6" integrity sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww== -"@esbuild-plugins/node-globals-polyfill@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@esbuild-plugins/node-globals-polyfill/-/node-globals-polyfill-0.2.3.tgz#0e4497a2b53c9e9485e149bc92ddb228438d6bcf" - integrity sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw== - "@esbuild/aix-ppc64@0.19.12": version "0.19.12" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" @@ -2930,348 +2401,6 @@ ethereum-cryptography "^2.0.0" micro-ftch "^0.3.1" -"@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abi/-/abi-5.7.0.tgz#b3f3e045bbbeed1af3947335c247ad625a44e449" - integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/abstract-provider@5.7.0", "@ethersproject/abstract-provider@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" - integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/networks" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/web" "^5.7.0" - -"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz#13f4f32117868452191a4649723cb086d2b596b2" - integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - -"@ethersproject/address@5.7.0", "@ethersproject/address@^5.6.0", "@ethersproject/address@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/address/-/address-5.7.0.tgz#19b56c4d74a3b0a46bfdbb6cfcc0a153fc697f37" - integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - -"@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/base64/-/base64-5.7.0.tgz#ac4ee92aa36c1628173e221d0d01f53692059e1c" - integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - -"@ethersproject/basex@5.7.0", "@ethersproject/basex@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/basex/-/basex-5.7.0.tgz#97034dc7e8938a8ca943ab20f8a5e492ece4020b" - integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - -"@ethersproject/bignumber@5.7.0", "@ethersproject/bignumber@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/bignumber/-/bignumber-5.7.0.tgz#e2f03837f268ba655ffba03a57853e18a18dc9c2" - integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - bn.js "^5.2.1" - -"@ethersproject/bytes@5.7.0", "@ethersproject/bytes@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/bytes/-/bytes-5.7.0.tgz#a00f6ea8d7e7534d6d87f47188af1148d71f155d" - integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/constants@5.7.0", "@ethersproject/constants@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/constants/-/constants-5.7.0.tgz#df80a9705a7e08984161f09014ea012d1c75295e" - integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - -"@ethersproject/contracts@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/contracts/-/contracts-5.7.0.tgz#c305e775abd07e48aa590e1a877ed5c316f8bd1e" - integrity sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg== - dependencies: - "@ethersproject/abi" "^5.7.0" - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - -"@ethersproject/hash@5.7.0", "@ethersproject/hash@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hash/-/hash-5.7.0.tgz#eb7aca84a588508369562e16e514b539ba5240a7" - integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/hdnode@5.7.0", "@ethersproject/hdnode@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/hdnode/-/hdnode-5.7.0.tgz#e627ddc6b466bc77aebf1a6b9e47405ca5aef9cf" - integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/basex" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/pbkdf2" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/wordlists" "^5.7.0" - -"@ethersproject/json-wallets@5.7.0", "@ethersproject/json-wallets@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz#5e3355287b548c32b368d91014919ebebddd5360" - integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/hdnode" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/pbkdf2" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/random" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - aes-js "3.0.0" - scrypt-js "3.0.1" - -"@ethersproject/keccak256@5.7.0", "@ethersproject/keccak256@^5.5.0", "@ethersproject/keccak256@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/keccak256/-/keccak256-5.7.0.tgz#3186350c6e1cd6aba7940384ec7d6d9db01f335a" - integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - js-sha3 "0.8.0" - -"@ethersproject/logger@5.7.0", "@ethersproject/logger@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/logger/-/logger-5.7.0.tgz#6ce9ae168e74fecf287be17062b590852c311892" - integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== - -"@ethersproject/networks@5.7.1", "@ethersproject/networks@^5.7.0": - version "5.7.1" - resolved "https://registry.yarnpkg.com/@ethersproject/networks/-/networks-5.7.1.tgz#118e1a981d757d45ccea6bb58d9fd3d9db14ead6" - integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/pbkdf2@5.7.0", "@ethersproject/pbkdf2@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz#d2267d0a1f6e123f3771007338c47cccd83d3102" - integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - -"@ethersproject/properties@5.7.0", "@ethersproject/properties@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/properties/-/properties-5.7.0.tgz#a6e12cb0439b878aaf470f1902a176033067ed30" - integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/providers@5.7.2": - version "5.7.2" - resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" - integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/base64" "^5.7.0" - "@ethersproject/basex" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/networks" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/random" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/web" "^5.7.0" - bech32 "1.1.4" - ws "7.4.6" - -"@ethersproject/random@5.7.0", "@ethersproject/random@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/random/-/random-5.7.0.tgz#af19dcbc2484aae078bb03656ec05df66253280c" - integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/rlp@5.7.0", "@ethersproject/rlp@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/rlp/-/rlp-5.7.0.tgz#de39e4d5918b9d74d46de93af80b7685a9c21304" - integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/sha2@5.7.0", "@ethersproject/sha2@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/sha2/-/sha2-5.7.0.tgz#9a5f7a7824ef784f7f7680984e593a800480c9fb" - integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - hash.js "1.1.7" - -"@ethersproject/signing-key@5.7.0", "@ethersproject/signing-key@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/signing-key/-/signing-key-5.7.0.tgz#06b2df39411b00bc57c7c09b01d1e41cf1b16ab3" - integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - bn.js "^5.2.1" - elliptic "6.5.4" - hash.js "1.1.7" - -"@ethersproject/solidity@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/solidity/-/solidity-5.7.0.tgz#5e9c911d8a2acce2a5ebb48a5e2e0af20b631cb8" - integrity sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/strings@5.7.0", "@ethersproject/strings@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/strings/-/strings-5.7.0.tgz#54c9d2a7c57ae8f1205c88a9d3a56471e14d5ed2" - integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/transactions@5.7.0", "@ethersproject/transactions@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/transactions/-/transactions-5.7.0.tgz#91318fc24063e057885a6af13fdb703e1f993d3b" - integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - -"@ethersproject/units@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/units/-/units-5.7.0.tgz#637b563d7e14f42deeee39245275d477aae1d8b1" - integrity sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/wallet@5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wallet/-/wallet-5.7.0.tgz#4e5d0790d96fe21d61d38fb40324e6c7ef350b2d" - integrity sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/hdnode" "^5.7.0" - "@ethersproject/json-wallets" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/random" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/wordlists" "^5.7.0" - -"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": - version "5.7.1" - resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" - integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== - dependencies: - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/wordlists@5.7.0", "@ethersproject/wordlists@^5.7.0": - version "5.7.0" - resolved "https://registry.yarnpkg.com/@ethersproject/wordlists/-/wordlists-5.7.0.tgz#8fb2c07185d68c3e09eb3bfd6e779ba2774627f5" - integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@humanwhocodes/config-array@^0.11.10", "@humanwhocodes/config-array@^0.11.14": version "0.11.14" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" @@ -3291,13 +2420,6 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz#d9fae00a2d5cb40f92cfe64b47ad749fbc38f917" integrity sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw== -"@improbable-eng/grpc-web@^0.14.1": - version "0.14.1" - resolved "https://registry.yarnpkg.com/@improbable-eng/grpc-web/-/grpc-web-0.14.1.tgz#f4662f64dc89c0f956a94bb8a3b576556c74589c" - integrity sha512-XaIYuunepPxoiGVLLHmlnVminUGzBTnXr8Wv7khzmLWbNw4TCwJKX09GSMJlKhu/TRk6gms0ySFxewaETSBqgw== - dependencies: - browser-headers "^0.4.1" - "@isaacs/cliui@^8.0.2": version "8.0.2" resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" @@ -3625,92 +2747,6 @@ resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@keplr-wallet/common@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/common/-/common-0.12.28.tgz#1d5d985070aced31a34a6426c9ac4b775081acca" - integrity sha512-ESQorPZw8PRiUXhsrxED+E1FEWkAdc6Kwi3Az7ce204gMBQDI2j0XJtTd4uCUp+C24Em9fk0samdHzdoB4caIg== - dependencies: - "@keplr-wallet/crypto" "0.12.28" - "@keplr-wallet/types" "0.12.28" - buffer "^6.0.3" - delay "^4.4.0" - mobx "^6.1.7" - -"@keplr-wallet/cosmos@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/cosmos/-/cosmos-0.12.28.tgz#d56e73468256e7276a66bb41f145449dbf11efa1" - integrity sha512-IuqmSBgKgIeWBA0XGQKKs28IXFeFMCrfadCbtiZccNc7qnNr5Y/Cyyk01BPC8Dd1ZyEyAByoICgrxvtGN0GGvA== - dependencies: - "@ethersproject/address" "^5.6.0" - "@keplr-wallet/common" "0.12.28" - "@keplr-wallet/crypto" "0.12.28" - "@keplr-wallet/proto-types" "0.12.28" - "@keplr-wallet/simple-fetch" "0.12.28" - "@keplr-wallet/types" "0.12.28" - "@keplr-wallet/unit" "0.12.28" - bech32 "^1.1.4" - buffer "^6.0.3" - long "^4.0.0" - protobufjs "^6.11.2" - -"@keplr-wallet/crypto@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/crypto/-/crypto-0.12.28.tgz#28410ba1f707fa5a1506f111f6fd8baf071c394d" - integrity sha512-le1je+78/4213qshSMgQTYqhCCvzsL9+YfhjXg1kd/ali69MLWK8L8Z09ducHPS6C+LqQXXTNJQpbH2uiFSd5w== - dependencies: - "@ethersproject/keccak256" "^5.5.0" - bip32 "^2.0.6" - bip39 "^3.0.3" - bs58check "^2.1.2" - buffer "^6.0.3" - crypto-js "^4.0.0" - elliptic "^6.5.3" - sha.js "^2.4.11" - -"@keplr-wallet/proto-types@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/proto-types/-/proto-types-0.12.28.tgz#2fb2c37749ce7db974f01d07387e966c9b99027d" - integrity sha512-ukti/eCTltPUP64jxtk5TjtwJogyfKPqlBIT3KGUCGzBLIPeYMsffL5w5aoHsMjINzOITjYqzXyEF8LTIK/fmw== - dependencies: - long "^4.0.0" - protobufjs "^6.11.2" - -"@keplr-wallet/simple-fetch@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/simple-fetch/-/simple-fetch-0.12.28.tgz#44225df5b329c823076280df1ec9930a21b1373e" - integrity sha512-T2CiKS2B5n0ZA7CWw0CA6qIAH0XYI1siE50MP+i+V0ZniCGBeL+BMcDw64vFJUcEH+1L5X4sDAzV37fQxGwllA== - -"@keplr-wallet/types@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.28.tgz#eac3c2c9d4560856c5c403a87e67925992a04fbf" - integrity sha512-EcM9d46hYDm3AO4lf4GUbTSLRySONtTmhKb7p88q56OQOgJN3MMjRacEo2p9jX9gpPe7gRIjMUalhAfUiFpZoQ== - dependencies: - long "^4.0.0" - -"@keplr-wallet/types@^0.11.41": - version "0.11.64" - resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.11.64.tgz#5a308c8c019b4e18f894e0f35f0904b60134d605" - integrity sha512-GgzeLDHHfZFyne3O7UIfFHj/uYqVbxAZI31RbBwt460OBbvwQzjrlZwvJW3vieWRAgxKSITjzEDBl2WneFTQdQ== - dependencies: - axios "^0.27.2" - long "^4.0.0" - -"@keplr-wallet/types@^0.12.58": - version "0.12.75" - resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.75.tgz#499f8a9afcea91988b8a025dc3b5cd97af88cfee" - integrity sha512-tXgQILt2xXogZsF1Y36sB0PPQezHwgKa3swmHgKupBcva6DkR0kf5fuCFEjA86cAIUOXlrd+Qil7/AZlIVvUSA== - dependencies: - long "^4.0.0" - -"@keplr-wallet/unit@0.12.28": - version "0.12.28" - resolved "https://registry.yarnpkg.com/@keplr-wallet/unit/-/unit-0.12.28.tgz#907c7fa0b49a729cda207fca14fc0a38871cc6c4" - integrity sha512-kpXigHDBJGOmhtPkv9hqsQid9zkFo7OQPeKgO2n8GUlOINIXW6kWG5LXYTi/Yg9Uiw1CQF69gFMuZCJ8IzVHlA== - dependencies: - "@keplr-wallet/types" "0.12.28" - big-integer "^1.6.48" - utility-types "^3.10.0" - "@knodes/typedoc-plugin-pages@^0.23.4": version "0.23.4" resolved "https://registry.yarnpkg.com/@knodes/typedoc-plugin-pages/-/typedoc-plugin-pages-0.23.4.tgz#0a647e6c2c48a4d1cd1092d1bfa2e5a2668cd118" @@ -3729,75 +2765,6 @@ pkg-up "^3.1.0" semver "^7.3.5" -"@leapwallet/cosmos-snap-provider@0.1.25": - version "0.1.25" - resolved "https://registry.yarnpkg.com/@leapwallet/cosmos-snap-provider/-/cosmos-snap-provider-0.1.25.tgz#f256cd4c7ef89aa9209ed8dbaf16487db24bde10" - integrity sha512-oov2jgISkvoAYvGsWkPscFt/XEEv1McTehTqJRfIJPO8uebIE6goJi4wjaaMW3wDIDsMMK54uGSdqbL6C8ciYQ== - dependencies: - "@cosmjs/amino" "^0.31.0" - "@cosmjs/proto-signing" "^0.31.0" - bignumber.js "^9.1.2" - long "^5.2.3" - -"@ledgerhq/devices@^8.2.2": - version "8.2.2" - resolved "https://registry.yarnpkg.com/@ledgerhq/devices/-/devices-8.2.2.tgz#d6d758182d690ad66e14f88426c448e8c54d259d" - integrity sha512-SKahGA4p0mZ3ovypOJ2wa5mUvUkArE3HBrwWKYf+cRs+t/Licp3OJfhj+DHIxP3AfyH2xR6CFFWECYHeKwGsDQ== - dependencies: - "@ledgerhq/errors" "^6.16.3" - "@ledgerhq/logs" "^6.12.0" - rxjs "^7.8.1" - semver "^7.3.5" - -"@ledgerhq/errors@^6.16.3": - version "6.16.3" - resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-6.16.3.tgz#646f68cc7e6e8d5126bce1ca06140c5ad963bee8" - integrity sha512-3w7/SJVXOPa9mpzyll7VKoKnGwDD3BzWgN1Nom8byR40DiQvOKjHX+kKQausCedTHVNBn9euzPCNsftZ9+mxfw== - -"@ledgerhq/hw-app-cosmos@^6.28.1": - version "6.29.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-cosmos/-/hw-app-cosmos-6.29.5.tgz#87a76a1a0c969986223b78c84372965efa935e09" - integrity sha512-NcfrS5pE3kQt6mBizOm9rK7+3XtWZ7LrWkO4Iz6giHkkJShnDCVFdJHxtxbhQ+6XRCADn7W75YrwnOsX5E0WbQ== - dependencies: - "@ledgerhq/errors" "^6.16.3" - "@ledgerhq/hw-transport" "^6.30.5" - bip32-path "^0.4.2" - -"@ledgerhq/hw-transport-webhid@^6.27.15": - version "6.28.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webhid/-/hw-transport-webhid-6.28.5.tgz#f3c44e7840b07e5db05ef027aa5c3c50aa16f7f1" - integrity sha512-swRq9xhOQ2w7YCRnBd7pOnniPQOnhSV23dLUKBiQHYbOAGyPRDdNnZSCu0nPmGI+o9VUKAuH953R7z9LIFWegg== - dependencies: - "@ledgerhq/devices" "^8.2.2" - "@ledgerhq/errors" "^6.16.3" - "@ledgerhq/hw-transport" "^6.30.5" - "@ledgerhq/logs" "^6.12.0" - -"@ledgerhq/hw-transport-webusb@^6.27.15": - version "6.28.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport-webusb/-/hw-transport-webusb-6.28.5.tgz#2aadc6b700e5dd3b6664ead404d04d131945b8ee" - integrity sha512-93mye+T/deqwYfJV89iTqoLxJY6zXhT57vLTWUkae0s1S9n7Lj53KNWCOGVqdlq9DMY2qGrtnAw3V0xtfgsLXw== - dependencies: - "@ledgerhq/devices" "^8.2.2" - "@ledgerhq/errors" "^6.16.3" - "@ledgerhq/hw-transport" "^6.30.5" - "@ledgerhq/logs" "^6.12.0" - -"@ledgerhq/hw-transport@^6.30.5": - version "6.30.5" - resolved "https://registry.yarnpkg.com/@ledgerhq/hw-transport/-/hw-transport-6.30.5.tgz#841c9e4bb3849536db110ca2894d693d55bf54fd" - integrity sha512-JMl//7BgPBvWxrWyMu82jj6JEYtsQyOyhYtonWNgtxn6KUZWht3gU4gxmLpeIRr+DiS7e50mW7m3GA+EudZmmA== - dependencies: - "@ledgerhq/devices" "^8.2.2" - "@ledgerhq/errors" "^6.16.3" - "@ledgerhq/logs" "^6.12.0" - events "^3.3.0" - -"@ledgerhq/logs@^6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/logs/-/logs-6.12.0.tgz#ad903528bf3687a44da435d7b2479d724d374f5d" - integrity sha512-ExDoj1QV5eC6TEbMdLUMMk9cfvNKhhv5gXol4SmULRVCx/3iyCPhJ74nsb3S0Vb+/f+XujBEj3vQn5+cwS0fNA== - "@lit-labs/ssr-dom-shim@^1.0.0", "@lit-labs/ssr-dom-shim@^1.1.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz#353ce4a76c83fadec272ea5674ede767650762fd" @@ -3810,13 +2777,6 @@ dependencies: "@lit-labs/ssr-dom-shim" "^1.0.0" -"@ljharb/through@^2.3.13": - version "2.3.13" - resolved "https://registry.yarnpkg.com/@ljharb/through/-/through-2.3.13.tgz#b7e4766e0b65aa82e529be945ab078de79874edc" - integrity sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ== - dependencies: - call-bind "^1.0.7" - "@manypkg/find-root@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@manypkg/find-root/-/find-root-1.1.0.tgz#a62d8ed1cd7e7d4c11d9d52a8397460b5d4ad29f" @@ -3904,23 +2864,6 @@ pump "^3.0.0" webextension-polyfill-ts "^0.25.0" -"@metamask/providers@^11.1.1": - version "11.1.2" - resolved "https://registry.yarnpkg.com/@metamask/providers/-/providers-11.1.2.tgz#6fb559699dd1806ca3524f35bd0a2286946624e4" - integrity sha512-xjE4cKrGpKZjripkMKMStc0H4LXrWJPijfbaj1kKeDLVhRH2Yu3ZecV3iIhf1EIJePeA+Kx6Pcm7d0IVJ+ea7g== - dependencies: - "@metamask/object-multiplex" "^1.1.0" - "@metamask/safe-event-emitter" "^3.0.0" - detect-browser "^5.2.0" - eth-rpc-errors "^4.0.2" - extension-port-stream "^2.1.1" - fast-deep-equal "^3.1.3" - is-stream "^2.0.0" - json-rpc-engine "^6.1.0" - json-rpc-middleware-stream "^4.2.1" - pump "^3.0.0" - webextension-polyfill "^0.10.0" - "@metamask/rpc-errors@^6.2.1": version "6.2.1" resolved "https://registry.yarnpkg.com/@metamask/rpc-errors/-/rpc-errors-6.2.1.tgz#f5daf429ededa7cb83069dc621bd5738fe2a1d80" @@ -4121,16 +3064,11 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699" integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA== -"@noble/hashes@^1", "@noble/hashes@^1.0.0", "@noble/hashes@^1.2.0", "@noble/hashes@^1.3.1": +"@noble/hashes@^1", "@noble/hashes@^1.0.0", "@noble/hashes@^1.3.1": version "1.4.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== -"@noble/secp256k1@1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" - integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== - "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -4683,11 +3621,6 @@ mz "^2.7.0" prettier "^2.6.2" -"@react-icons/all-files@^4.1.0": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@react-icons/all-files/-/all-files-4.1.0.tgz#477284873a0821928224b6fc84c62d2534d6650b" - integrity sha512-hxBI2UOuVaI3O/BhQfhtb4kcGn9ft12RWAFVMUeNjqqhLsHvFtzIkFaptBJpFDANTKoDfdVoHTKZDlwKCACbMQ== - "@react-native-async-storage/async-storage@^1.17.11": version "1.23.1" resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-1.23.1.tgz#cad3cd4fab7dacfe9838dce6ecb352f79150c883" @@ -4755,36 +3688,6 @@ "@noble/hashes" "~1.3.2" "@scure/base" "~1.1.4" -"@sei-js/cosmjs@0.0.0-internal-evm-20240325234009": - version "0.0.0-internal-evm-20240325234009" - resolved "https://registry.yarnpkg.com/@sei-js/cosmjs/-/cosmjs-0.0.0-internal-evm-20240325234009.tgz#89cddaf68dd4fe63c7a8a23a9a4de42d3a95b7e4" - integrity sha512-vGppAfVeHB9nxQ+I1B9LK98l1sVcnFND5lffqi6wZ1De8Fi2M9M9d2Q78XLu+5U7JNiMAej1hvo2PILoFvGsJQ== - dependencies: - "@cosmjs/amino" "^0.29.5" - "@cosmjs/cosmwasm-stargate" "^0.29.5" - "@cosmjs/crypto" "^0.29.5" - "@cosmjs/encoding" "^0.32.3" - "@cosmjs/json-rpc" "^0.29.5" - "@cosmjs/math" "^0.29.5" - "@cosmjs/proto-signing" "^0.29.5" - "@cosmjs/stargate" "^0.29.5" - "@cosmjs/tendermint-rpc" "^0.29.5" - "@cosmjs/utils" "^0.29.5" - "@cosmos-kit/fin" "^2.6.9" - "@ethersproject/keccak256" "^5.7.0" - "@keplr-wallet/types" "^0.11.41" - "@noble/secp256k1" "1.7.1" - "@react-icons/all-files" "^4.1.0" - bech32 "^2.0.0" - buffer "^6.0.3" - elliptic "^6.5.4" - moment "^2.30.1" - process "^0.11.10" - readonly-date "^1.0.0" - sha.js "^2.4.11" - styled-components "^6.1.1" - xstream "^11.14.0" - "@sinclair/typebox@^0.24.1": version "0.24.51" resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.51.tgz#645f33fe4e02defe26f2f5c0410e1c094eac7f5f" @@ -5075,76 +3978,6 @@ dependencies: "@swc/counter" "^0.1.3" -"@tanstack/query-core@5.28.8": - version "5.28.8" - resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.28.8.tgz#48571172ed2d70fc0eae7004ccf445ad4e8b0558" - integrity sha512-cx64XHeB0kvKxFt22ibvegPeOxnaWVFUbAuhXoIrb7+XePEexHWoB9Kq5n9qroNPkRwQZwgFAP9HNbQz5ohoIg== - -"@tanstack/react-query@^5.25.0": - version "5.28.8" - resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.28.8.tgz#8afc45057f0d8f0b9ba78093e749dc3b4ee5a7a4" - integrity sha512-4XYhoRmcThqziB32HsyiBLNXJcukaeGfYwAQ+fZqUUE3ZP4oB/Zy41UJdql+TUg98+vsezfbixxAwAbGHfc5Hg== - dependencies: - "@tanstack/query-core" "5.28.8" - -"@terra-money/feather.js@^1.0.8": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@terra-money/feather.js/-/feather.js-1.2.1.tgz#e89f615aa3628a8e87720c161cecc4ae402a057f" - integrity sha512-OyXkWriNwb0lCF45eMmtjdOPEmfGKJxgGSnxpM7VxD0Vqr1qqtlcYyQG9wOHXNQrExvZv+uo922B2ZA4S77HsQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@terra-money/legacy.proto" "npm:@terra-money/terra.proto@^0.1.7" - "@terra-money/terra.proto" "^4.0.3" - assert "^2.0.0" - axios "^0.27.2" - bech32 "^2.0.0" - bip32 "^2.0.6" - bip39 "^3.0.3" - bufferutil "^4.0.3" - crypto-browserify "^3.12.0" - decimal.js "^10.2.1" - ethers "^5.7.2" - jscrypto "^1.0.1" - keccak256 "^1.0.6" - long "^5.2.3" - readable-stream "^3.6.0" - secp256k1 "^4.0.2" - tmp "^0.2.1" - utf-8-validate "^5.0.5" - ws "^7.5.9" - -"@terra-money/legacy.proto@npm:@terra-money/terra.proto@^0.1.7": - version "0.1.7" - resolved "https://registry.yarnpkg.com/@terra-money/terra.proto/-/terra.proto-0.1.7.tgz#59c18f30da10d43200bab3ba8feb5b17e43a365f" - integrity sha512-NXD7f6pQCulvo6+mv6MAPzhOkUzRjgYVuHZE/apih+lVnPG5hDBU0rRYnOGGofwvKT5/jQoOENnFn/gioWWnyQ== - dependencies: - google-protobuf "^3.17.3" - long "^4.0.0" - protobufjs "~6.11.2" - -"@terra-money/station-connector@^1.0.5": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@terra-money/station-connector/-/station-connector-1.1.0.tgz#f0e0241e871c486535493fbbe72026371600a4ea" - integrity sha512-InaiuZjLBF92s88aFHxDXJZS751mFr+pa5xbjwyIWWhfWV6RdONXGvuOZ79OPg6H8fUQHJGfosNxeNteGO+Yaw== - dependencies: - bech32 "^2.0.0" - -"@terra-money/terra.proto@^4.0.3": - version "4.0.10" - resolved "https://registry.yarnpkg.com/@terra-money/terra.proto/-/terra.proto-4.0.10.tgz#a5c5edce2f4a4eab046bf740edde871874443d10" - integrity sha512-cSTGri/X7r+RjTHKQ40lUDM7+lwWIiodLmBvuCUWMH8svji0D45StZTVGfaQ5wCnPr7KcDbZTERzyLKiSwsBqg== - dependencies: - "@improbable-eng/grpc-web" "^0.14.1" - browser-headers "^0.4.1" - google-protobuf "^3.17.3" - long "^4.0.0" - protobufjs "~6.11.2" - -"@terra-money/wallet-types@^3.11.2": - version "3.11.2" - resolved "https://registry.yarnpkg.com/@terra-money/wallet-types/-/wallet-types-3.11.2.tgz#5be7016abcd249b4839b1aadb837a6aa043dfaf2" - integrity sha512-vIHCqL4gtiAlvhnxDSnh6bTXIIZGNOIEfH/lWEgwCHXp4cGh0MeZixcnd4UvpW2ynirwtWkppAz9N4qX9zTtAA== - "@testing-library/dom@^9.0.0": version "9.3.4" resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-9.3.4.tgz#50696ec28376926fec0a1bf87d9dbac5e27f60ce" @@ -5252,13 +4085,6 @@ dependencies: "@types/node" "*" -"@types/boxen@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/boxen/-/boxen-3.0.1.tgz#0b5f34d42be6ad719ff16f58bc6b2ab39c9a2d18" - integrity sha512-ObwY6IiWavHUIev4fO/t+bsUYiNXEDrCjKNWFBr4YuyvJ0Jls6hLCOpIRIzwGayG7AUjlQRNmNmlVUQpjbHjeA== - dependencies: - boxen "*" - "@types/chrome@^0.0.136": version "0.0.136" resolved "https://registry.yarnpkg.com/@types/chrome/-/chrome-0.0.136.tgz#7c011b9f997b0156f25a140188a0c5689d3f368f" @@ -5318,14 +4144,6 @@ resolved "https://registry.yarnpkg.com/@types/har-format/-/har-format-1.2.15.tgz#f352493638c2f89d706438a19a9eb300b493b506" integrity sha512-RpQH4rXLuvTXKR0zqHq3go0RVXYv/YVqv4TnPH95VbwUxZdQlK1EtcMvQvMpDngHbt13Csh9Z4qT9AbkiQH5BA== -"@types/inquirer@^9.0.7": - version "9.0.7" - resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-9.0.7.tgz#61bb8d0e42f038b9a1738b08fba7fa98ad9b4b24" - integrity sha512-Q0zyBupO6NxGRZut/JdmqYKOnN95Eg5V8Csg3PGKkP+FnvsUZx1jAyK7fztIszxxMuoBA6E3KXWvdZVXIpx60g== - dependencies: - "@types/through" "*" - rxjs "^7.2.0" - "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": version "2.0.6" resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" @@ -5399,11 +4217,6 @@ dependencies: undici-types "~5.26.4" -"@types/node@10.12.18": - version "10.12.18" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.18.tgz#1d3ca764718915584fcd9f6344621b7672665c67" - integrity sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ== - "@types/node@18.15.13": version "18.15.13" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.13.tgz#f64277c341150c979e42b00e4ac289290c9df469" @@ -5499,13 +4312,6 @@ resolved "https://registry.yarnpkg.com/@types/stylis/-/stylis-4.2.0.tgz#199a3f473f0c3a6f6e4e1b17cdbc967f274bdc6b" integrity sha512-n4sx2bqL0mW1tvDf/loQ+aMX7GQD3lc3fkCMC55VFNDu/vBOabO+LTIeXKM14xK0ppk5TUGcWRjiSpIlUpghKw== -"@types/through@*": - version "0.0.33" - resolved "https://registry.yarnpkg.com/@types/through/-/through-0.0.33.tgz#14ebf599320e1c7851e7d598149af183c6b9ea56" - integrity sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ== - dependencies: - "@types/node" "*" - "@types/tough-cookie@*": version "4.0.5" resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz#cb6e2a691b70cb177c6e3ae9c1d2e8b2ea8cd304" @@ -5677,10 +4483,10 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== -"@wagmi/connectors@4.1.18": - version "4.1.18" - resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-4.1.18.tgz#b95350ff2cb527093ff9dd11d382e0563ec546e3" - integrity sha512-K/iLH/Z8jwvgPAYESU/uCQtQBvcIR1Jrqk+t2uCDSxew/tYtkOo2yOjtaPuOb+xJ5OrMGg+0tVHhGChYXry9Ow== +"@wagmi/connectors@4.1.24": + version "4.1.24" + resolved "https://registry.yarnpkg.com/@wagmi/connectors/-/connectors-4.1.24.tgz#e9ffa2944391ef24ced6e2dc524f429514274722" + integrity sha512-gFziI7E3m+ESJmEnsvlm/eMlboKwdfGqOOQIU068MoZ+ZcNxoLZe4gu8CqnrmG7ksdPtwG38prsMl96opZexIA== dependencies: "@coinbase/wallet-sdk" "3.9.1" "@metamask/sdk" "0.14.3" @@ -5689,10 +4495,10 @@ "@walletconnect/ethereum-provider" "2.11.2" "@walletconnect/modal" "2.6.2" -"@wagmi/core@2.6.9": - version "2.6.9" - resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.6.9.tgz#6b2659c7a4420c1d3876902a051ac9487aa604eb" - integrity sha512-AbNbHK+m60mfMTds0flv5YYJGp+JSz8O8ikzX+T7MdemFrYA9tZr6G+iSEnf+JLtcgiaCgQqUwac/WmmTkDiMA== +"@wagmi/core@2.6.15": + version "2.6.15" + resolved "https://registry.yarnpkg.com/@wagmi/core/-/core-2.6.15.tgz#14dca5f575d5267d72016448623bdd6c959d178b" + integrity sha512-P3w7NIPBs6Pt3j8k5Tq9cVYjvUiyuEAk3WxZfUG5NyaveLqs3b6IC6Frl63zriSV3Bj0tdJJXhEVoIIeIUqMCA== dependencies: eventemitter3 "5.0.1" mipd "0.0.5" @@ -5721,29 +4527,6 @@ lodash.isequal "4.5.0" uint8arrays "^3.1.0" -"@walletconnect/core@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/core/-/core-2.11.3.tgz#c81855722cb9afd411f91f5345c7874f48bade0b" - integrity sha512-/9m4EqiggFUwkQDv5PDWbcTI+yCVnBd/iYW5iIHEkivg2/mnBr2bQz2r/vtPjp19r/ZK62Dx0+UN3U+BWP8ulQ== - dependencies: - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-provider" "1.0.13" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/jsonrpc-ws-connection" "1.0.14" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/relay-auth" "^1.0.4" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/utils" "2.11.3" - events "^3.3.0" - isomorphic-unfetch "3.1.0" - lodash.isequal "4.5.0" - uint8arrays "^3.1.0" - "@walletconnect/environment@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/environment/-/environment-1.0.1.tgz#1d7f82f0009ab821a2ba5ad5e5a7b8ae3b214cd7" @@ -5914,21 +4697,6 @@ "@walletconnect/utils" "2.11.2" events "^3.3.0" -"@walletconnect/sign-client@^2.9.0": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/sign-client/-/sign-client-2.11.3.tgz#3ea7b3acf92ee31cc42b45d42e66c44b4720b28b" - integrity sha512-JVjLTxN/3NjMXv5zalSGKuSYLRyU2yX6AWEdq17cInlrwODpbWZr6PS1uxMWdH4r90DXBLhdtwDbEq/pfd0BPg== - dependencies: - "@walletconnect/core" "2.11.3" - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-utils" "1.0.8" - "@walletconnect/logger" "^2.0.1" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/utils" "2.11.3" - events "^3.3.0" - "@walletconnect/time@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@walletconnect/time/-/time-1.0.2.tgz#6c5888b835750ecb4299d28eecc5e72c6d336523" @@ -5936,18 +4704,6 @@ dependencies: tslib "1.14.1" -"@walletconnect/types@2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.0.tgz#474a009c56faa9ef4063b76ed84415c801dc9f1e" - integrity sha512-AB5b1lrEbCGHxqS2vqfCkIoODieH+ZAUp9rA1O2ftrhnqDJiJK983Df87JhYhECsQUBHHfALphA8ydER0q+9sw== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - events "^3.3.0" - "@walletconnect/types@2.11.2": version "2.11.2" resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.2.tgz#d0359dd4106fcaa1634241a00428d3ea08d0d3c7" @@ -5960,18 +4716,6 @@ "@walletconnect/logger" "^2.0.1" events "^3.3.0" -"@walletconnect/types@2.11.3": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/types/-/types-2.11.3.tgz#8ce43cb77e8fd9d5269847cdd73bcfa7cce7dd1a" - integrity sha512-JY4wA9MVosDW9dcJMTpnwliste0aJGJ1X6Q4ulLsQsgWRSEBRkLila0oUT01TDBW9Yq8uUp7uFOUTaKx6KWVAg== - dependencies: - "@walletconnect/events" "^1.0.1" - "@walletconnect/heartbeat" "1.2.1" - "@walletconnect/jsonrpc-types" "1.0.3" - "@walletconnect/keyvaluestorage" "^1.1.1" - "@walletconnect/logger" "^2.0.1" - events "^3.3.0" - "@walletconnect/universal-provider@2.11.2": version "2.11.2" resolved "https://registry.yarnpkg.com/@walletconnect/universal-provider/-/universal-provider-2.11.2.tgz#bec3038f51445d707bbec75f0cb8af0a1f1e04db" @@ -6007,26 +4751,6 @@ query-string "7.1.3" uint8arrays "^3.1.0" -"@walletconnect/utils@2.11.3", "@walletconnect/utils@^2.9.0": - version "2.11.3" - resolved "https://registry.yarnpkg.com/@walletconnect/utils/-/utils-2.11.3.tgz#3731809b54902655cf202e0bf0e8f268780e8b54" - integrity sha512-jsdNkrl/IcTkzWFn0S2d0urzBXg6RxVJtUYRsUx3qI3wzOGiABP9ui3yiZ3SgZOv9aRe62PaNp1qpbYZ+zPb8Q== - dependencies: - "@stablelib/chacha20poly1305" "1.0.1" - "@stablelib/hkdf" "1.0.1" - "@stablelib/random" "^1.0.2" - "@stablelib/sha256" "1.0.1" - "@stablelib/x25519" "^1.0.3" - "@walletconnect/relay-api" "^1.0.9" - "@walletconnect/safe-json" "^1.0.2" - "@walletconnect/time" "^1.0.2" - "@walletconnect/types" "2.11.3" - "@walletconnect/window-getters" "^1.0.1" - "@walletconnect/window-metadata" "^1.0.1" - detect-browser "5.3.0" - query-string "7.1.3" - uint8arrays "^3.1.0" - "@walletconnect/window-getters@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@walletconnect/window-getters/-/window-getters-1.0.1.tgz#f36d1c72558a7f6b87ecc4451fc8bd44f63cbbdc" @@ -6120,11 +4844,6 @@ address@^1.0.1: resolved "https://registry.yarnpkg.com/address/-/address-1.2.2.tgz#2b5248dac5485a6390532c6a517fda2e3faac89e" integrity sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA== -aes-js@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-3.0.0.tgz#e21df10ad6c2053295bcbb8dab40b09dbea87e4d" - integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw== - aes-js@4.0.0-beta.5: version "4.0.0-beta.5" resolved "https://registry.yarnpkg.com/aes-js/-/aes-js-4.0.0-beta.5.tgz#8d2452c52adedebc3a3e28465d858c11ca315873" @@ -6147,13 +4866,6 @@ ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ansi-align@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" - integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== - dependencies: - string-width "^4.1.0" - ansi-colors@^4.1.1, ansi-colors@^4.1.3: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" @@ -6169,7 +4881,7 @@ ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.2.1, ansi-escapes@^4.3.2: +ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== @@ -6253,11 +4965,6 @@ arg@^4.1.0: resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== -arg@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" - integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== - argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -6339,26 +5046,6 @@ arrify@^1.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== -asn1.js@^4.10.1: - version "4.10.1" - resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" - integrity sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw== - dependencies: - bn.js "^4.0.0" - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - -assert@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/assert/-/assert-2.1.0.tgz#6d92a238d05dc02e7427c881fb8be81c8448b2dd" - integrity sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw== - dependencies: - call-bind "^1.0.2" - is-nan "^1.3.2" - object-is "^1.1.5" - object.assign "^4.1.4" - util "^0.12.5" - ast-stringify@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/ast-stringify/-/ast-stringify-0.1.0.tgz#5c6439fbfb4513dcc26c7d34464ccd084ed91cb7" @@ -6388,18 +5075,6 @@ atomic-sleep@^1.0.0: resolved "https://registry.yarnpkg.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz#eb85b77a601fc932cfe432c5acd364a9e2c9075b" integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ== -autoprefixer@^10.4.18: - version "10.4.19" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.19.tgz#ad25a856e82ee9d7898c59583c1afeb3fa65f89f" - integrity sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew== - dependencies: - browserslist "^4.23.0" - caniuse-lite "^1.0.30001599" - fraction.js "^4.3.7" - normalize-range "^0.1.2" - picocolors "^1.0.0" - postcss-value-parser "^4.2.0" - available-typed-arrays@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" @@ -6432,14 +5107,6 @@ axios@^0.21.2: dependencies: follow-redirects "^1.14.0" -axios@^0.27.2: - version "0.27.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" - integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== - dependencies: - follow-redirects "^1.14.9" - form-data "^4.0.0" - axios@^1.6.0: version "1.6.8" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66" @@ -6768,19 +5435,12 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base-x@^3.0.2: - version "3.0.9" - resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.9.tgz#6349aaabb58526332de9f60995e548a53fe21320" - integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== - dependencies: - safe-buffer "^5.0.1" - base64-js@^1.3.0, base64-js@^1.3.1: version "1.5.1" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -bech32@1.1.4, bech32@^1.1.4: +bech32@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/bech32/-/bech32-1.1.4.tgz#e38c9f37bf179b8eb16ae3a772b40c356d4832e9" integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== @@ -6797,64 +5457,12 @@ better-path-resolve@1.0.0: dependencies: is-windows "^1.0.0" -bfs-path@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bfs-path/-/bfs-path-1.0.2.tgz#9b5fa4b8c4ad226597fc4d2ee15398bdcc644a07" - integrity sha512-KTKx2JJtAAAT7C/rJYDXXWA2VLPycAS4kwFktKsxUo0hj4UTtw/Gm5PJuY7Uf3xSlIQNo7HRCSWei2ivncVwbQ== - -big-integer@^1.6.48: - version "1.6.52" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.52.tgz#60a887f3047614a8e1bffe5d7173490a97dc8c85" - integrity sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg== - -bignumber.js@9.1.1: - version "9.1.1" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.1.tgz#c4df7dc496bd849d4c9464344c1aa74228b4dac6" - integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig== - -bignumber.js@^9.1.2: - version "9.1.2" - resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-9.1.2.tgz#b7c4242259c008903b13707983b5f4bbd31eda0c" - integrity sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug== - binary-extensions@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== -bindings@^1.3.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bip32-path@^0.4.2: - version "0.4.2" - resolved "https://registry.yarnpkg.com/bip32-path/-/bip32-path-0.4.2.tgz#5db0416ad6822712f077836e2557b8697c0c7c99" - integrity sha512-ZBMCELjJfcNMkz5bDuJ1WrYvjlhEF5k6mQ8vUr4N7MbVRsXei7ZOg8VhhwMfNiW68NWmLkgkc6WvTickrLGprQ== - -bip32@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/bip32/-/bip32-2.0.6.tgz#6a81d9f98c4cd57d05150c60d8f9e75121635134" - integrity sha512-HpV5OMLLGTjSVblmrtYRfFFKuQB+GArM0+XP8HGWfJ5vxYBqo+DesvJwOdC2WJ3bCkZShGf0QIfoIpeomVzVdA== - dependencies: - "@types/node" "10.12.18" - bs58check "^2.1.1" - create-hash "^1.2.0" - create-hmac "^1.1.7" - tiny-secp256k1 "^1.1.3" - typeforce "^1.11.5" - wif "^2.0.6" - -bip39@^3.0.3: - version "3.1.0" - resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.1.0.tgz#c55a418deaf48826a6ceb34ac55b3ee1577e18a3" - integrity sha512-c9kiwdk45Do5GL0vJMe7tS95VjCii65mYAH7DfWl3uW8AVzXKQVUm64i3hzVybBDMp9r7j9iNxR85+ul8MdN/A== - dependencies: - "@noble/hashes" "^1.2.0" - -bl@^4.0.3, bl@^4.1.0: +bl@^4.0.3: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== @@ -6863,35 +5471,21 @@ bl@^4.0.3, bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" -bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.8, bn.js@^4.11.9: +bn.js@^4.11.9: version "4.12.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88" integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== -bn.js@^5.0.0, bn.js@^5.2.0, bn.js@^5.2.1: +bn.js@^5.2.0, bn.js@^5.2.1: version "5.2.1" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70" integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== -bowser@2.11.0, bowser@^2.9.0: +bowser@^2.9.0: version "2.11.0" resolved "https://registry.yarnpkg.com/bowser/-/bowser-2.11.0.tgz#5ca3c35757a7aa5771500c70a73a9f91ef420a8f" integrity sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA== -boxen@*, boxen@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-7.1.1.tgz#f9ba525413c2fec9cdb88987d835c4f7cad9c8f4" - integrity sha512-2hCgjEmP8YLWQ130n2FerGv7rYpfBmnmp9Uy2Le1vge6X3gZIfSmEzP5QTDElFxcvVcXlEn8Aq6MU/PZygIOog== - dependencies: - ansi-align "^3.0.1" - camelcase "^7.0.1" - chalk "^5.2.0" - cli-boxes "^3.0.0" - string-width "^5.1.2" - type-fest "^2.13.0" - widest-line "^4.0.1" - wrap-ansi "^8.1.0" - brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" @@ -6921,76 +5515,16 @@ breakword@^1.0.5: dependencies: wcwidth "^1.0.1" -brorand@^1.0.1, brorand@^1.1.0: +brorand@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== -browser-headers@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/browser-headers/-/browser-headers-0.4.1.tgz#4308a7ad3b240f4203dbb45acedb38dc2d65dd02" - integrity sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg== - browser-process-hrtime@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserify-aes@^1.0.4, browserify-aes@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" - integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -browserify-cipher@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" - integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w== - dependencies: - browserify-aes "^1.0.4" - browserify-des "^1.0.0" - evp_bytestokey "^1.0.0" - -browserify-des@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" - integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A== - dependencies: - cipher-base "^1.0.1" - des.js "^1.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - -browserify-rsa@^4.0.0, browserify-rsa@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.1.0.tgz#b2fd06b5b75ae297f7ce2dc651f918f5be158c8d" - integrity sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog== - dependencies: - bn.js "^5.0.0" - randombytes "^2.0.1" - -browserify-sign@^4.0.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.2.3.tgz#7afe4c01ec7ee59a89a558a4b75bd85ae62d4208" - integrity sha512-JWCZW6SKhfhjJxO8Tyiiy+XYB7cqd2S5/+WeYHsKdNKFlCBhKbblba1A/HN/90YwtxKc8tCErjffZl++UNmGiw== - dependencies: - bn.js "^5.2.1" - browserify-rsa "^4.1.0" - create-hash "^1.2.0" - create-hmac "^1.1.7" - elliptic "^6.5.5" - hash-base "~3.0" - inherits "^2.0.4" - parse-asn1 "^5.1.7" - readable-stream "^2.3.8" - safe-buffer "^5.2.1" - browserslist@^4.22.2, browserslist@^4.23.0: version "4.23.0" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" @@ -7008,22 +5542,6 @@ bs-logger@0.x: dependencies: fast-json-stable-stringify "2.x" -bs58@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/bs58/-/bs58-4.0.1.tgz#be161e76c354f6f788ae4071f63f34e8c4f0a42a" - integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== - dependencies: - base-x "^3.0.2" - -bs58check@<3.0.0, bs58check@^2.1.1, bs58check@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/bs58check/-/bs58check-2.1.2.tgz#53b018291228d82a5aa08e7d796fdafda54aebfc" - integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== - dependencies: - bs58 "^4.0.0" - create-hash "^1.1.0" - safe-buffer "^5.1.2" - bser@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" @@ -7036,11 +5554,6 @@ buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" - integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== - buffer@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" @@ -7057,7 +5570,7 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -bufferutil@^4.0.3, bufferutil@^4.0.8: +bufferutil@^4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.8.tgz#1de6a71092d65d7766c4d8a522b261a6e787e8ea" integrity sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw== @@ -7071,7 +5584,7 @@ builtins@^5.0.0: dependencies: semver "^7.0.0" -call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: +call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== @@ -7092,11 +5605,6 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== -camelcase-css@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/camelcase-css/-/camelcase-css-2.0.1.tgz#ee978f6947914cc30c6b44741b6ed1df7f043fd5" - integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA== - camelcase-keys@^6.2.2: version "6.2.2" resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" @@ -7116,17 +5624,12 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -camelcase@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-7.0.1.tgz#f02e50af9fd7782bc8b88a3558c32fd3a388f048" - integrity sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw== - camelize@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.1.tgz#89b7e16884056331a35d6b5ad064332c91daa6c3" integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ== -caniuse-lite@^1.0.30001587, caniuse-lite@^1.0.30001599: +caniuse-lite@^1.0.30001587: version "1.0.30001600" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001600.tgz#93a3ee17a35aa6a9f0c6ef1b2ab49507d1ab9079" integrity sha512-+2S9/2JFhYmYaDpZvo0lKkfvuKIglrx68MwOBqMGHhQsNkLjB5xtc/TGoEPs+MxjSyN/72qer2g97nzR641mOQ== @@ -7172,11 +5675,6 @@ chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: ansi-styles "^4.1.0" supports-color "^7.1.0" -chalk@^5.2.0, chalk@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" - integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== - char-regex@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" @@ -7192,7 +5690,7 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^3.4.0, chokidar@^3.4.3, chokidar@^3.5.2, chokidar@^3.5.3, chokidar@^3.6.0: +chokidar@^3.4.0, chokidar@^3.4.3, chokidar@^3.5.2, chokidar@^3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== @@ -7217,14 +5715,6 @@ ci-info@^3.2.0, ci-info@^3.7.0: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" - integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - citty@^0.1.5, citty@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/citty/-/citty-0.1.6.tgz#0f7904da1ed4625e1a9ea7e0fa780981aab7c5e4" @@ -7237,11 +5727,6 @@ cjs-module-lexer@^1.0.0: resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz#6c370ab19f8a3394e318fe682686ec0ac684d107" integrity sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ== -cli-boxes@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-3.0.0.tgz#71a10c716feeba005e4504f36329ef0b17cf3145" - integrity sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g== - cli-color@^2.0.2: version "2.0.4" resolved "https://registry.yarnpkg.com/cli-color/-/cli-color-2.0.4.tgz#d658080290968816b322248b7306fad2346fb2c8" @@ -7282,11 +5767,6 @@ cli-width@^2.0.0: resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== -cli-width@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5" - integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ== - clipboardy@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/clipboardy/-/clipboardy-4.0.0.tgz#e73ced93a76d19dd379ebf1f297565426dffdca1" @@ -7392,7 +5872,7 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" -commander@^4.0.0, commander@^4.0.1: +commander@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068" integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== @@ -7489,11 +5969,6 @@ cosmjs-types@0.5.1: long "^4.0.0" protobufjs "~6.11.2" -cosmjs-types@>=0.9.0, cosmjs-types@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.9.0.tgz#c3bc482d28c7dfa25d1445093fdb2d9da1f6cfcc" - integrity sha512-MN/yUe6mkJwHnCFfsNPeCfXVhyxHYW6c/xDUzrSbBycYzw++XvWDMJArXp2pLdgD6FQ8DW79vkPjeNKVrXaHeQ== - cosmjs-types@^0.5.0, cosmjs-types@^0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.5.2.tgz#2d42b354946f330dfb5c90a87fdc2a36f97b965d" @@ -7502,74 +5977,16 @@ cosmjs-types@^0.5.0, cosmjs-types@^0.5.2: long "^4.0.0" protobufjs "~6.11.2" -cosmjs-types@^0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.8.0.tgz#2ed78f3e990f770229726f95f3ef5bf9e2b6859b" - integrity sha512-Q2Mj95Fl0PYMWEhA2LuGEIhipF7mQwd9gTQ85DdP9jjjopeoGaDxvmPa5nakNzsq7FnO1DMTatXTAx6bxMH7Lg== - dependencies: - long "^4.0.0" - protobufjs "~6.11.2" - -cosmos-kit@^2.9.3: - version "2.9.3" - resolved "https://registry.yarnpkg.com/cosmos-kit/-/cosmos-kit-2.9.3.tgz#c901ced5e591f37d7b477666903cc063816ec3d8" - integrity sha512-pYUR7NDsLi4cI6Mj7XNGbTgkp3HScE7G3PJ+7g41FzLXkJUN8PciLc4VRDM9dIWiQpqRslgD+jOMWkuqFseu8Q== - dependencies: - "@cosmos-kit/coin98" "^2.6.10" - "@cosmos-kit/compass" "^2.6.9" - "@cosmos-kit/cosmostation" "^2.6.10" - "@cosmos-kit/exodus" "^2.5.9" - "@cosmos-kit/fin" "^2.6.9" - "@cosmos-kit/frontier" "^2.5.9" - "@cosmos-kit/keplr" "^2.6.9" - "@cosmos-kit/leap" "^2.6.12" - "@cosmos-kit/ledger" "^2.6.9" - "@cosmos-kit/okxwallet-extension" "^2.6.9" - "@cosmos-kit/omni" "^2.5.9" - "@cosmos-kit/owallet" "^2.6.10" - "@cosmos-kit/shell" "^2.6.9" - "@cosmos-kit/station" "^2.5.9" - "@cosmos-kit/tailwind" "^1.0.2" - "@cosmos-kit/trust" "^2.6.0" - "@cosmos-kit/vectis" "^2.6.9" - "@cosmos-kit/xdefi" "^2.5.9" +cosmjs-types@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.9.0.tgz#c3bc482d28c7dfa25d1445093fdb2d9da1f6cfcc" + integrity sha512-MN/yUe6mkJwHnCFfsNPeCfXVhyxHYW6c/xDUzrSbBycYzw++XvWDMJArXp2pLdgD6FQ8DW79vkPjeNKVrXaHeQ== crc-32@^1.2.0: version "1.2.2" resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== -create-ecdh@^4.0.0: - version "4.0.4" - resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.4.tgz#d6e7f4bffa66736085a0762fd3a632684dabcc4e" - integrity sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A== - dependencies: - bn.js "^4.1.0" - elliptic "^6.5.3" - -create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" - integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" - integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - create-jest@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" @@ -7632,28 +6049,6 @@ crossws@^0.2.0, crossws@^0.2.2: resolved "https://registry.yarnpkg.com/crossws/-/crossws-0.2.4.tgz#82a8b518bff1018ab1d21ced9e35ffbe1681ad03" integrity sha512-DAxroI2uSOgUKLz00NX6A8U/8EE3SZHmIND+10jkVSaypvyt57J5JEOxAQOL6lQxyzi/wZbTIwssU1uy69h5Vg== -crypto-browserify@^3.12.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" - integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== - dependencies: - browserify-cipher "^1.0.0" - browserify-sign "^4.0.0" - create-ecdh "^4.0.0" - create-hash "^1.1.0" - create-hmac "^1.1.0" - diffie-hellman "^5.0.0" - inherits "^2.0.1" - pbkdf2 "^3.0.3" - public-encrypt "^4.0.0" - randombytes "^2.0.0" - randomfill "^1.0.3" - -crypto-js@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.2.0.tgz#4d931639ecdfd12ff80e8186dba6af2c2e856631" - integrity sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q== - css-color-keywords@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05" @@ -7673,11 +6068,6 @@ css.escape@^1.5.1: resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" integrity sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg== -cssesc@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" - integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== - cssom@^0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36" @@ -7813,7 +6203,7 @@ decamelize@^1.1.0, decamelize@^1.2.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== -decimal.js@^10.2.1, decimal.js@^10.3.1: +decimal.js@^10.3.1: version "10.4.3" resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== @@ -7902,16 +6292,6 @@ defu@^6.1.3, defu@^6.1.4: resolved "https://registry.yarnpkg.com/defu/-/defu-6.1.4.tgz#4e0c9cf9ff68fe5f3d7f2765cc1a012dfdcb0479" integrity sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg== -degit@^2.8.4: - version "2.8.4" - resolved "https://registry.yarnpkg.com/degit/-/degit-2.8.4.tgz#3bb9c5c00f157c44724dd4a50724e4aa75a54d38" - integrity sha512-vqYuzmSA5I50J882jd+AbAhQtgK6bdKUJIex1JNfEUPENCgYsxugzKVZlFyMwV4i06MmnV47/Iqi5Io86zf3Ng== - -delay@^4.4.0: - version "4.4.1" - resolved "https://registry.yarnpkg.com/delay/-/delay-4.4.1.tgz#6e02d02946a1b6ab98b39262ced965acba2ac4d1" - integrity sha512-aL3AhqtfhOlT/3ai6sWXeqwnw63ATNpnUiN4HL7x9q+My5QtHlO3OIkasmug9LKzpheLdmUKGRKnYXYAS7FQkQ== - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -7922,14 +6302,6 @@ dequal@^2.0.3: resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== -des.js@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.1.0.tgz#1d37f5766f3bbff4ee9638e871a8768c173b81da" - integrity sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg== - dependencies: - inherits "^2.0.1" - minimalistic-assert "^1.0.0" - destr@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/destr/-/destr-2.0.3.tgz#7f9e97cb3d16dbdca7be52aca1644ce402cfe449" @@ -7970,11 +6342,6 @@ detect-port@^1.5.1: address "^1.0.1" debug "4" -didyoumean@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" - integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== - diff-sequences@^29.6.3: version "29.6.3" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" @@ -7985,15 +6352,6 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -diffie-hellman@^5.0.0: - version "5.0.3" - resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" - integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg== - dependencies: - bn.js "^4.1.0" - miller-rabin "^4.0.0" - randombytes "^2.0.0" - dijkstrajs@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/dijkstrajs/-/dijkstrajs-1.0.3.tgz#4c8dbdea1f0f6478bff94d9c49c784d623e4fc23" @@ -8006,11 +6364,6 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -dlv@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/dlv/-/dlv-1.1.3.tgz#5c198a8a11453596e751494d49874bc7732f2e79" - integrity sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA== - doctrine@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" @@ -8096,20 +6449,7 @@ electron-to-chromium@^1.4.668: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.716.tgz#90c229ce0af2ad3b6e54472af1200e07f10293a4" integrity sha512-t/MXMzFKQC3UfMDpw7V5wdB/UAB8dWx4hEsy+fpPYJWW3gqh3u5T1uXp6vR+H6dGCPBxkRo+YBcapBLvbGQHRw== -elliptic@6.5.4: - version "6.5.4" - resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" - integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - -elliptic@^6.4.0, elliptic@^6.5.3, elliptic@^6.5.4, elliptic@^6.5.5: +elliptic@^6.5.3, elliptic@^6.5.4: version "6.5.5" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.5.tgz#c715e09f78b6923977610d4c2346d6ce22e6dded" integrity sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw== @@ -8600,42 +6940,6 @@ ethereum-cryptography@^2.0.0: "@scure/bip32" "1.3.3" "@scure/bip39" "1.2.2" -ethers@^5.7.2: - version "5.7.2" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-5.7.2.tgz#3a7deeabbb8c030d4126b24f84e525466145872e" - integrity sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg== - dependencies: - "@ethersproject/abi" "5.7.0" - "@ethersproject/abstract-provider" "5.7.0" - "@ethersproject/abstract-signer" "5.7.0" - "@ethersproject/address" "5.7.0" - "@ethersproject/base64" "5.7.0" - "@ethersproject/basex" "5.7.0" - "@ethersproject/bignumber" "5.7.0" - "@ethersproject/bytes" "5.7.0" - "@ethersproject/constants" "5.7.0" - "@ethersproject/contracts" "5.7.0" - "@ethersproject/hash" "5.7.0" - "@ethersproject/hdnode" "5.7.0" - "@ethersproject/json-wallets" "5.7.0" - "@ethersproject/keccak256" "5.7.0" - "@ethersproject/logger" "5.7.0" - "@ethersproject/networks" "5.7.1" - "@ethersproject/pbkdf2" "5.7.0" - "@ethersproject/properties" "5.7.0" - "@ethersproject/providers" "5.7.2" - "@ethersproject/random" "5.7.0" - "@ethersproject/rlp" "5.7.0" - "@ethersproject/sha2" "5.7.0" - "@ethersproject/signing-key" "5.7.0" - "@ethersproject/solidity" "5.7.0" - "@ethersproject/strings" "5.7.0" - "@ethersproject/transactions" "5.7.0" - "@ethersproject/units" "5.7.0" - "@ethersproject/wallet" "5.7.0" - "@ethersproject/web" "5.7.1" - "@ethersproject/wordlists" "5.7.0" - ethers@^6.11.1: version "6.11.1" resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.11.1.tgz#96aae00b627c2e35f9b0a4d65c7ab658259ee6af" @@ -8667,19 +6971,11 @@ eventemitter3@5.0.1, eventemitter3@^5.0.1: resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== -events@3.3.0, events@^3.3.0: +events@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== -evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" - integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - execa@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" @@ -8738,7 +7034,7 @@ extendable-error@^0.1.5: resolved "https://registry.yarnpkg.com/extendable-error/-/extendable-error-0.1.7.tgz#60b9adf206264ac920058a7395685ae4670c2b96" integrity sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg== -extension-port-stream@^2.0.1, extension-port-stream@^2.1.1: +extension-port-stream@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/extension-port-stream/-/extension-port-stream-2.1.1.tgz#ec11f2a5ed95655d8c40805d7cb0c39939ee9ef4" integrity sha512-qknp5o5rj2J9CRKfVB8KJr+uXQlrojNZzdESUPhKYLXf97TPcGf6qWWKmpsNNtUyOdzFhab1ON0jzouNxHHvow== @@ -8784,7 +7080,7 @@ fast-glob@3.2.7: merge2 "^1.3.0" micromatch "^4.0.4" -fast-glob@^3.2.9, fast-glob@^3.3.0: +fast-glob@^3.2.9: version "3.3.2" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== @@ -8834,7 +7130,7 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" -figures@3.2.0, figures@^3.2.0: +figures@3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== @@ -8855,11 +7151,6 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - filelist@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" @@ -8943,7 +7234,7 @@ flatted@^3.2.9: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== -follow-redirects@^1.14.0, follow-redirects@^1.14.9, follow-redirects@^1.15.0, follow-redirects@^1.15.6: +follow-redirects@^1.14.0, follow-redirects@^1.15.0, follow-redirects@^1.15.6: version "1.15.6" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== @@ -8972,11 +7263,6 @@ form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" -fraction.js@^4.3.7: - version "4.3.7" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" - integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== - fs-constants@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" @@ -9207,11 +7493,6 @@ globby@^11.0.0, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -google-protobuf@^3.17.3: - version "3.21.2" - resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.21.2.tgz#4580a2bea8bbb291ee579d1fefb14d6fa3070ea4" - integrity sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA== - gopd@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" @@ -9306,24 +7587,7 @@ has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: dependencies: has-symbols "^1.0.3" -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" - integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash-base@~3.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" - integrity sha512-EeeoJKjTyt868liAlVmcv2ZsUfGHlE3Q+BICOXcZiwN3osr5Q/zFGYmTJpoIzuaSTAwndFy+GqhEwlU4L3j4Ow== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3: +hash.js@^1.0.0, hash.js@^1.0.3: version "1.1.7" resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== @@ -9593,27 +7857,6 @@ inquirer@^6.0.0: strip-ansi "^5.1.0" through "^2.3.6" -inquirer@^9.2.15: - version "9.2.16" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.2.16.tgz#9291fbfdf96fd793179c9575f76fa50a5ed27349" - integrity sha512-qzgbB+yNjgSzk2omeqMDtO9IgJet/UL67luT1MaaggRpGK73DBQct5Q4pipwFQcIKK1GbMODYd4UfsRCkSP1DA== - dependencies: - "@ljharb/through" "^2.3.13" - ansi-escapes "^4.3.2" - chalk "^5.3.0" - cli-cursor "^3.1.0" - cli-width "^4.1.0" - external-editor "^3.1.0" - figures "^3.2.0" - lodash "^4.17.21" - mute-stream "1.0.0" - ora "^5.4.1" - run-async "^3.0.0" - rxjs "^7.8.1" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wrap-ansi "^6.2.0" - inquirerer@0.1.3: version "0.1.3" resolved "https://registry.yarnpkg.com/inquirerer/-/inquirerer-0.1.3.tgz#ecf91dc672b3bf45211d7f64bf5e8d5e171fd2ad" @@ -9784,14 +8027,6 @@ is-map@^2.0.2, is-map@^2.0.3: resolved "https://registry.yarnpkg.com/is-map/-/is-map-2.0.3.tgz#ede96b7fe1e270b3c4465e3a465658764926d62e" integrity sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw== -is-nan@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/is-nan/-/is-nan-1.3.2.tgz#043a54adea31748b55b6cd4e09aadafa69bd9e1d" - integrity sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - is-negative-zero@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" @@ -10505,16 +8740,11 @@ jest@29.7.0, jest@^29.7.0: import-local "^3.0.2" jest-cli "^29.7.0" -jiti@^1.19.1, jiti@^1.21.0: +jiti@^1.21.0: version "1.21.0" resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== -js-sha3@0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" - integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== - "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -10540,11 +8770,6 @@ js-yaml@^3.10.0, js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@^3.6.1: argparse "^1.0.7" esprima "^4.0.0" -jscrypto@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/jscrypto/-/jscrypto-1.0.3.tgz#598febca2a939d6f679c54f56e1fe364cef30cc9" - integrity sha512-lryZl0flhodv4SZHOqyb1bx5sKcJxj0VBo0Kzb4QMAg3L021IC9uGpl0RCZa+9KJwlRGSK2C80ITcwbe19OKLQ== - jsdom@^19.0.0: version "19.0.0" resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-19.0.0.tgz#93e67c149fe26816d38a849ea30ac93677e16b6a" @@ -10681,16 +8906,7 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -keccak256@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/keccak256/-/keccak256-1.0.6.tgz#dd32fb771558fed51ce4e45a035ae7515573da58" - integrity sha512-8GLiM01PkdJVGUhR1e6M/AvWnSqYS0HaERI+K/QtStGDGlSTx2B1zTqZk4Zlqu5TxHJNTxWAdP9Y+WI50OApUw== - dependencies: - bn.js "^5.2.0" - buffer "^6.0.3" - keccak "^3.0.2" - -keccak@^3.0.2, keccak@^3.0.3: +keccak@^3.0.3: version "3.0.4" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" integrity sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q== @@ -10763,16 +8979,6 @@ libsodium@^0.7.13: resolved "https://registry.yarnpkg.com/libsodium/-/libsodium-0.7.13.tgz#230712ec0b7447c57b39489c48a4af01985fb393" integrity sha512-mK8ju0fnrKXXfleL53vtp9xiPq5hKM0zbDQtcxQIsSmxNgSxqCj6R7Hl9PkrNe2j29T4yoDaF7DJLK9/i5iWUw== -lilconfig@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== - -lilconfig@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-3.1.1.tgz#9d8a246fa753106cfc205fd2d77042faca56e5e3" - integrity sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ== - lines-and-columns@^1.1.6: version "1.2.4" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" @@ -10904,7 +9110,7 @@ lodash@^4.17.12, lodash@^4.17.15, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.3.0 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -log-symbols@^4.0.0, log-symbols@^4.1.0: +log-symbols@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== @@ -10917,7 +9123,7 @@ long@^4.0.0: resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.0.0, long@^5.2.0, long@^5.2.1, long@^5.2.3: +long@^5.0.0, long@^5.2.0, long@^5.2.1: version "5.2.3" resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== @@ -11015,15 +9221,6 @@ marked@^4.3.0: resolved "https://registry.yarnpkg.com/marked/-/marked-4.3.0.tgz#796362821b019f734054582038b116481b456cf3" integrity sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A== -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" - integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - memoizee@^0.4.15: version "0.4.15" resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.15.tgz#e6f3d2da863f318d02225391829a6c5956555b72" @@ -11085,14 +9282,6 @@ micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: braces "^3.0.2" picomatch "^2.3.1" -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" - integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - mime-db@1.52.0: version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" @@ -11246,11 +9435,6 @@ mlly@^1.2.0, mlly@^1.6.1: pkg-types "^1.0.3" ufo "^1.3.2" -mobx@^6.1.7: - version "6.12.1" - resolved "https://registry.yarnpkg.com/mobx/-/mobx-6.12.1.tgz#78a32cfe6e1a2339426e284f8c5d90b0a5396fc5" - integrity sha512-HN5/fmWCnePVI4u3Y487x3G0LIQ+qnQjowylhVxXPvBmbwottKm8R7GrsYAqljzekZUj+LoBcAUp3l8/3EPCGQ== - moment@^2.30.1: version "2.30.1" resolved "https://registry.yarnpkg.com/moment/-/moment-2.30.1.tgz#f8c91c07b7a786e30c59926df530b4eac96974ae" @@ -11293,11 +9477,6 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ== -mute-stream@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-1.0.0.tgz#e31bd9fe62f0aed23520aa4324ea6671531e013e" - integrity sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA== - mz@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32" @@ -11307,12 +9486,7 @@ mz@^2.7.0: object-assign "^4.0.1" thenify-all "^1.0.0" -nan@^2.13.2: - version "2.19.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.19.0.tgz#bb58122ad55a6c5bc973303908d5b16cfdd5a8c0" - integrity sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw== - -nanoid@^3.3.6, nanoid@^3.3.7: +nanoid@^3.3.6: version "3.3.7" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== @@ -11430,11 +9604,6 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" - integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== - npm-package-arg@11.0.1: version "11.0.1" resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.1.tgz#f208b0022c29240a1c532a449bdde3f0a4708ebc" @@ -11545,11 +9714,6 @@ object-assign@^4.0.1: resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== -object-hash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" - integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== - object-inspect@^1.13.1: version "1.13.1" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" @@ -11673,21 +9837,6 @@ ora@5.3.0: strip-ansi "^6.0.0" wcwidth "^1.0.1" -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" @@ -11767,18 +9916,6 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-asn1@^5.0.0, parse-asn1@^5.1.7: - version "5.1.7" - resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.7.tgz#73cdaaa822125f9647165625eb45f8a051d2df06" - integrity sha512-CTM5kuWR3sx9IFamcl5ErfPl6ea/N8IYwiJ+vpeB2g+1iknv7zBl5uPwbMbRVznRVbrNY6lGuDoE5b30grmbqg== - dependencies: - asn1.js "^4.10.1" - browserify-aes "^1.2.0" - evp_bytestokey "^1.0.3" - hash-base "~3.0" - pbkdf2 "^3.1.2" - safe-buffer "^5.2.1" - parse-json@^5.0.0, parse-json@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" @@ -11852,17 +9989,6 @@ pathe@^1.1.0, pathe@^1.1.1, pathe@^1.1.2: resolved "https://registry.yarnpkg.com/pathe/-/pathe-1.1.2.tgz#6c4cb47a945692e48a1ddd6e4094d170516437ec" integrity sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ== -pbkdf2@^3.0.3, pbkdf2@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.1.2.tgz#dd822aa0887580e52f1a039dc3eda108efae3075" - integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" @@ -11873,11 +9999,6 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -pify@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== - pify@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" @@ -11923,7 +10044,7 @@ pino@7.11.0: sonic-boom "^2.2.1" thread-stream "^0.15.1" -pirates@^4.0.1, pirates@^4.0.4, pirates@^4.0.6: +pirates@^4.0.4, pirates@^4.0.6: version "4.0.6" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== @@ -11973,46 +10094,7 @@ possible-typed-array-names@^1.0.0: resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== -postcss-import@^15.1.0: - version "15.1.0" - resolved "https://registry.yarnpkg.com/postcss-import/-/postcss-import-15.1.0.tgz#41c64ed8cc0e23735a9698b3249ffdbf704adc70" - integrity sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew== - dependencies: - postcss-value-parser "^4.0.0" - read-cache "^1.0.0" - resolve "^1.1.7" - -postcss-js@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/postcss-js/-/postcss-js-4.0.1.tgz#61598186f3703bab052f1c4f7d805f3991bee9d2" - integrity sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw== - dependencies: - camelcase-css "^2.0.1" - -postcss-load-config@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-4.0.2.tgz#7159dcf626118d33e299f485d6afe4aff7c4a3e3" - integrity sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ== - dependencies: - lilconfig "^3.0.0" - yaml "^2.3.4" - -postcss-nested@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/postcss-nested/-/postcss-nested-6.0.1.tgz#f83dc9846ca16d2f4fa864f16e9d9f7d0961662c" - integrity sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ== - dependencies: - postcss-selector-parser "^6.0.11" - -postcss-selector-parser@^6.0.11: - version "6.0.16" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz#3b88b9f5c5abd989ef4e2fc9ec8eedd34b20fb04" - integrity sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw== - dependencies: - cssesc "^3.0.0" - util-deprecate "^1.0.2" - -postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2, postcss-value-parser@^4.2.0: +postcss-value-parser@^4.0.2: version "4.2.0" resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== @@ -12026,15 +10108,6 @@ postcss@8.4.31: picocolors "^1.0.0" source-map-js "^1.0.2" -postcss@^8.4.23, postcss@^8.4.35: - version "8.4.38" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== - dependencies: - nanoid "^3.3.7" - picocolors "^1.0.0" - source-map-js "^1.2.0" - preact@^10.16.0: version "10.20.1" resolved "https://registry.yarnpkg.com/preact/-/preact-10.20.1.tgz#1bc598ab630d8612978f7533da45809a8298542b" @@ -12131,7 +10204,7 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" -protobufjs@^6.11.2, protobufjs@^6.11.3, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: +protobufjs@^6.11.3, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: version "6.11.4" resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.4.tgz#29a412c38bf70d89e537b6d02d904a6f448173aa" integrity sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw== @@ -12193,18 +10266,6 @@ pstree.remy@^1.1.8: resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a" integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w== -public-encrypt@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0" - integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q== - dependencies: - bn.js "^4.1.0" - browserify-rsa "^4.0.0" - create-hash "^1.1.0" - parse-asn1 "^5.0.0" - randombytes "^2.0.1" - safe-buffer "^5.1.2" - pump@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -12285,21 +10346,6 @@ radix3@^1.1.0: resolved "https://registry.yarnpkg.com/radix3/-/radix3-1.1.2.tgz#fd27d2af3896c6bf4bcdfab6427c69c2afc69ec0" integrity sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA== -randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -randomfill@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" - integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw== - dependencies: - randombytes "^2.0.5" - safe-buffer "^5.1.0" - react-dom@^18.2.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" @@ -12316,11 +10362,6 @@ react-i18next@^13.2.2: "@babel/runtime" "^7.22.5" html-parse-stringify "^3.0.1" -react-icons@4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.4.0.tgz#a13a8a20c254854e1ec9aecef28a95cdf24ef703" - integrity sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg== - react-is@^16.7.0: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" @@ -12351,13 +10392,6 @@ react@^18.2.0: dependencies: loose-envify "^1.1.0" -read-cache@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774" - integrity sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA== - dependencies: - pify "^2.3.0" - read-pkg-up@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" @@ -12400,7 +10434,7 @@ readable-stream@2.3.3: string_decoder "~1.0.3" util-deprecate "~1.0.1" -readable-stream@^2.3.3, readable-stream@^2.3.7, readable-stream@^2.3.8: +readable-stream@^2.3.3, readable-stream@^2.3.7: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -12566,7 +10600,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.22.2: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.14.2, resolve@^1.19.0, resolve@^1.20.0: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -12610,14 +10644,6 @@ rimraf@5.0.0: dependencies: glob "^10.0.0" -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" - integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - rollup-plugin-visualizer@^5.9.2: version "5.12.0" resolved "https://registry.yarnpkg.com/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.12.0.tgz#661542191ce78ee4f378995297260d0c1efb1302" @@ -12633,11 +10659,6 @@ run-async@^2.2.0, run-async@^2.3.0: resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== -run-async@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-3.0.0.tgz#42a432f6d76c689522058984384df28be379daad" - integrity sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q== - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" @@ -12664,13 +10685,6 @@ rxjs@^6.4.0: dependencies: tslib "^1.9.0" -rxjs@^7.2.0, rxjs@^7.8.1: - version "7.8.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" - integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== - dependencies: - tslib "^2.1.0" - safe-array-concat@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb" @@ -12681,7 +10695,7 @@ safe-array-concat@^1.1.2: has-symbols "^1.0.3" isarray "^2.0.5" -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@^5.2.1, safe-buffer@~5.2.0: +safe-buffer@^5.0.1, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -12724,20 +10738,6 @@ scheduler@^0.23.0: dependencies: loose-envify "^1.1.0" -scrypt-js@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/scrypt-js/-/scrypt-js-3.0.1.tgz#d314a57c2aef69d1ad98a138a21fe9eafa9ee312" - integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== - -secp256k1@^4.0.2: - version "4.0.3" - resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-4.0.3.tgz#c4559ecd1b8d3c1827ed2d1b94190d69ce267303" - integrity sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA== - dependencies: - elliptic "^6.5.4" - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - secp256k1@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/secp256k1/-/secp256k1-5.0.0.tgz#be6f0c8c7722e2481e9773336d351de8cddd12f7" @@ -12757,7 +10757,7 @@ semver@^6.1.1, semver@^6.1.2, semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.0.0, semver@^7.3.5, semver@^7.3.8, semver@^7.5.0, semver@^7.5.3, semver@^7.5.4: +semver@^7.0.0, semver@^7.3.5, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4: version "7.6.0" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== @@ -12791,7 +10791,7 @@ set-function-name@^2.0.1: functions-have-names "^1.2.3" has-property-descriptors "^1.0.2" -sha.js@^2.4.0, sha.js@^2.4.11, sha.js@^2.4.8: +sha.js@^2.4.11: version "2.4.11" resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== @@ -12938,7 +10938,7 @@ sonic-boom@^2.2.1: dependencies: atomic-sleep "^1.0.0" -source-map-js@^1.0.2, source-map-js@^1.2.0: +source-map-js@^1.0.2: version "1.2.0" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== @@ -13263,19 +11263,6 @@ stylis@4.3.1: resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.3.1.tgz#ed8a9ebf9f76fe1e12d462f5cc3c4c980b23a7eb" integrity sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ== -sucrase@^3.32.0: - version "3.35.0" - resolved "https://registry.yarnpkg.com/sucrase/-/sucrase-3.35.0.tgz#57f17a3d7e19b36d8995f06679d121be914ae263" - integrity sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA== - dependencies: - "@jridgewell/gen-mapping" "^0.3.2" - commander "^4.0.0" - glob "^10.3.10" - lines-and-columns "^1.1.6" - mz "^2.7.0" - pirates "^4.0.1" - ts-interface-checker "^0.1.9" - superstruct@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-1.0.4.tgz#0adb99a7578bd2f1c526220da6571b2d485d91ca" @@ -13327,34 +11314,6 @@ system-architecture@^0.1.0: resolved "https://registry.yarnpkg.com/system-architecture/-/system-architecture-0.1.0.tgz#71012b3ac141427d97c67c56bc7921af6bff122d" integrity sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA== -tailwindcss@^3.4.1: - version "3.4.1" - resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.1.tgz#f512ca5d1dd4c9503c7d3d28a968f1ad8f5c839d" - integrity sha512-qAYmXRfk3ENzuPBakNK0SRrUDipP8NQnEY6772uDhflcQz5EhRdD7JNZxyrFHVQNCwULPBn6FNPp9brpO7ctcA== - dependencies: - "@alloc/quick-lru" "^5.2.0" - arg "^5.0.2" - chokidar "^3.5.3" - didyoumean "^1.2.2" - dlv "^1.1.3" - fast-glob "^3.3.0" - glob-parent "^6.0.2" - is-glob "^4.0.3" - jiti "^1.19.1" - lilconfig "^2.1.0" - micromatch "^4.0.5" - normalize-path "^3.0.0" - object-hash "^3.0.0" - picocolors "^1.0.0" - postcss "^8.4.23" - postcss-import "^15.1.0" - postcss-js "^4.0.1" - postcss-load-config "^4.0.1" - postcss-nested "^6.0.1" - postcss-selector-parser "^6.0.11" - resolve "^1.22.2" - sucrase "^3.32.0" - tar-stream@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" @@ -13431,17 +11390,6 @@ timers-ext@^0.1.7: es5-ext "~0.10.46" next-tick "1" -tiny-secp256k1@^1.1.3: - version "1.1.6" - resolved "https://registry.yarnpkg.com/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz#7e224d2bee8ab8283f284e40e6b4acb74ffe047c" - integrity sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA== - dependencies: - bindings "^1.3.0" - bn.js "^4.11.8" - create-hmac "^1.1.7" - elliptic "^6.4.0" - nan "^2.13.2" - tmp@^0.0.33: version "0.0.33" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" @@ -13449,7 +11397,7 @@ tmp@^0.0.33: dependencies: os-tmpdir "~1.0.2" -tmp@^0.2.1, tmp@~0.2.1: +tmp@~0.2.1: version "0.2.3" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== @@ -13520,11 +11468,6 @@ ts-api-utils@^1.0.1: resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== -ts-interface-checker@^0.1.9: - version "0.1.13" - resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" - integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== - ts-jest@29.1.1: version "29.1.1" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b" @@ -13596,7 +11539,7 @@ tslib@2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.6.2: +tslib@^2.0.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -13651,11 +11594,6 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== -type-fest@^2.13.0: - version "2.19.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.19.0.tgz#88068015bb33036a598b952e55e9311a60fd3a9b" - integrity sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA== - type@^2.7.2: version "2.7.2" resolved "https://registry.yarnpkg.com/type/-/type-2.7.2.tgz#2376a15a3a28b1efa0f5350dcf72d24df6ef98d0" @@ -13722,15 +11660,10 @@ typedoc@^0.25.12: minimatch "^9.0.3" shiki "^0.14.7" -typeforce@^1.11.5: - version "1.18.0" - resolved "https://registry.yarnpkg.com/typeforce/-/typeforce-1.18.0.tgz#d7416a2c5845e085034d70fcc5b6cc4a90edbfdc" - integrity sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g== - -typescript@5.4.2: - version "5.4.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.2.tgz#0ae9cebcfae970718474fe0da2c090cad6577372" - integrity sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ== +typescript@5.4.4: + version "5.4.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.4.tgz#eb2471e7b0a5f1377523700a21669dce30c2d952" + integrity sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw== typescript@~5.3.2: version "5.3.3" @@ -13886,13 +11819,6 @@ use-sync-external-store@1.2.0: resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz#7dbefd6ef3fe4e767a0cf5d7287aacfb5846928a" integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA== -utf-8-validate@^5.0.5: - version "5.0.10" - resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.10.tgz#d7d10ea39318171ca982718b6b96a8d2442571a2" - integrity sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ== - dependencies: - node-gyp-build "^4.3.0" - utf-8-validate@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-6.0.3.tgz#7d8c936d854e86b24d1d655f138ee27d2636d777" @@ -13900,7 +11826,7 @@ utf-8-validate@^6.0.3: dependencies: node-gyp-build "^4.3.0" -util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: +util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== @@ -13912,7 +11838,7 @@ util@^0.10.3: dependencies: inherits "2.0.3" -util@^0.12.4, util@^0.12.5: +util@^0.12.4: version "0.12.5" resolved "https://registry.yarnpkg.com/util/-/util-0.12.5.tgz#5f17a6059b73db61a875668781a1c2b136bd6fbc" integrity sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA== @@ -13923,11 +11849,6 @@ util@^0.12.4, util@^0.12.5: is-typed-array "^1.1.3" which-typed-array "^1.1.2" -utility-types@^3.10.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.11.0.tgz#607c40edb4f258915e901ea7995607fdf319424c" - integrity sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw== - uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" @@ -14039,13 +11960,13 @@ w3c-xmlserializer@^3.0.0: dependencies: xml-name-validator "^4.0.0" -wagmi@^2.5.7: - version "2.5.12" - resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.5.12.tgz#972603870d3b692d8957cfcd3503a58ed83b0c8a" - integrity sha512-n9XxiDgBUUzibZqFIdQI6/vKDjNlOTXH6mIHcuVO7ujYJuyw4aEjOJzDWivIGjVf2ygmb1aGryh2jx6W5KwjRw== +wagmi@^2.5.17: + version "2.5.18" + resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-2.5.18.tgz#aff4477929399ba55eb29766249ba51f51f390c7" + integrity sha512-V2NTcgI1kZxLZcpW/FaS5KEoc89IkW8b39kBEZLzCFMIiSYqOINoq2N1S5Y9ZD8PYFmBmvFC0KxQ0uNBmWi+pg== dependencies: - "@wagmi/connectors" "4.1.18" - "@wagmi/core" "2.6.9" + "@wagmi/connectors" "4.1.24" + "@wagmi/core" "2.6.15" use-sync-external-store "1.2.0" walker@^1.0.8: @@ -14081,7 +12002,7 @@ webextension-polyfill-ts@^0.25.0: dependencies: webextension-polyfill "^0.7.0" -"webextension-polyfill@>=0.10.0 <1.0", webextension-polyfill@^0.10.0: +"webextension-polyfill@>=0.10.0 <1.0": version "0.10.0" resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.10.0.tgz#ccb28101c910ba8cf955f7e6a263e662d744dbb8" integrity sha512-c5s35LgVa5tFaHhrZDnr3FpQpjj1BB+RXhLTYUxGqBVN460HkbM8TBtEqdXWbpTKfzwCcjAZVF7zXCYSKtcp9g== @@ -14196,20 +12117,6 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -widest-line@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-4.0.1.tgz#a0fc673aaba1ea6f0a0d35b3c2795c9a9cc2ebf2" - integrity sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig== - dependencies: - string-width "^5.0.1" - -wif@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/wif/-/wif-2.0.6.tgz#08d3f52056c66679299726fade0d432ae74b4704" - integrity sha512-HIanZn1zmduSF+BQhkE+YXIbEiH0xPr1012QbFEGB0xsKqJii0/SqJjyn8dFv6y36kOznMgMB+LGcbZTJ1xACQ== - dependencies: - bs58check "<3.0.0" - "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -14250,11 +12157,6 @@ write-file-atomic@^4.0.1, write-file-atomic@^4.0.2: imurmurhash "^0.1.4" signal-exit "^3.0.7" -ws@7.4.6: - version "7.4.6" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c" - integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== - ws@8.13.0: version "8.13.0" resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0" @@ -14265,7 +12167,7 @@ ws@8.5.0: resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f" integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== -ws@^7, ws@^7.5.1, ws@^7.5.9: +ws@^7, ws@^7.5.1: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== @@ -14338,11 +12240,6 @@ yaml@^1.10.0, yaml@^1.7.2: resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== -yaml@^2.3.4: - version "2.4.1" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.4.1.tgz#2e57e0b5e995292c25c75d2658f0664765210eed" - integrity sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg== - yargs-parser@21.1.1, yargs-parser@>=21.1.1, yargs-parser@^21.0.1, yargs-parser@^21.1.1: version "21.1.1" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"