{"_id":"@0xforager/interchainjs-cosmos-unordered","_rev":"3-2447ace0711ce8c236af50a69308bd8e","name":"@0xforager/interchainjs-cosmos-unordered","dist-tags":{"latest":"1.11.15-unordered.3"},"versions":{"1.11.15-unordered.1":{"name":"@0xforager/interchainjs-cosmos-unordered","version":"1.11.15-unordered.1","keywords":["cosmos","blockchain","transaction"],"author":{"name":"Hyperweb","email":"developers@hyperweb.io"},"license":"MIT","_id":"@0xforager/interchainjs-cosmos-unordered@1.11.15-unordered.1","maintainers":[{"name":"0xforager","email":"0xforager@gmail.com"}],"homepage":"https://github.com/hyperweb-io/interchainjs","bugs":{"url":"https://github.com/hyperweb-io/interchainjs/issues"},"dist":{"shasum":"c811ccfa783b3f3df0dd80e119962caf9fb53079","tarball":"https://registry.npmjs.org/@0xforager/interchainjs-cosmos-unordered/-/interchainjs-cosmos-unordered-1.11.15-unordered.1.tgz","fileCount":43,"integrity":"sha512-N5mVsHFYklPRmJ74xDTt1g2iiM7djRPJWpylpaXhp86TO39CnmRb9bpPVSwR7z/uAeEESOWVJbrbRgEUb8Hhrg==","signatures":[{"sig":"MEUCIQDFEDZ4dugbPOQs6AihxSquzIIIOIv3Dw/3tsATTv7g6AIgQIPF1OuNcnSw2uHpAqbu901+vwBL5JxcNwexwyu+Skk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154248},"main":"index.js","types":"index.d.ts","module":"esm/index.js","gitHead":"a6c5dba9ec6cc7c892c736a1e805353fccd050d3","scripts":{"copy":"copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist","lint":"eslint . --fix","build":"npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy","clean":"rimraf dist/**","prepare":"npm run build","starship":"starship --config ./starship/configs/config.yaml","build:dev":"npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy","test:token":"jest --preset ts-jest ./starship/__tests__/token.test.ts","starship:all":"yarn starship start","starship:test":"jest --config ./jest.starship.config.js --verbose --bail","starship:clean":"yarn starship stop","starship:debug":"jest --config ./jest.starship.config.js --runInBand --verbose --bail","starship:local":"starship --config ./starship/configs/config.local.yaml","starship:watch":"jest --watch --config ./jest.starship.config.js"},"_npmUser":{"name":"0xforager","email":"0xforager@gmail.com"},"repository":{"url":"git+https://github.com/hyperweb-io/interchainjs.git","type":"git"},"_npmVersion":"10.8.3","description":"Transaction codec and client to communicate with any cosmos blockchain","directories":{},"_nodeVersion":"22.9.0","dependencies":{"decimal.js":"^10.4.3","@noble/curves":"^1.1.0","@noble/hashes":"^1.3.1","@interchainjs/auth":"1.11.15","@interchainjs/types":"1.11.15","@interchainjs/utils":"1.11.15","@interchainjs/cosmos-types":"1.11.15"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/interchainjs-cosmos-unordered_1.11.15-unordered.1_1749954270035_0.5901793675115261","host":"s3://npm-registry-packages-npm-production"}},"1.11.15-unordered.2":{"name":"@0xforager/interchainjs-cosmos-unordered","version":"1.11.15-unordered.2","keywords":["cosmos","blockchain","transaction"],"author":{"name":"Hyperweb","email":"developers@hyperweb.io"},"license":"MIT","_id":"@0xforager/interchainjs-cosmos-unordered@1.11.15-unordered.2","maintainers":[{"name":"0xforager","email":"0xforager@gmail.com"}],"homepage":"https://github.com/hyperweb-io/interchainjs","bugs":{"url":"https://github.com/hyperweb-io/interchainjs/issues"},"dist":{"shasum":"0f3bd535fd9a49ababf788753e43c9ab8ba575b6","tarball":"https://registry.npmjs.org/@0xforager/interchainjs-cosmos-unordered/-/interchainjs-cosmos-unordered-1.11.15-unordered.2.tgz","fileCount":87,"integrity":"sha512-xQIyzYw+TCIGGz9OLXl6H02dJFjZQE0CT9kTdDXlFsNh9ot03Qtcu4njp+Isd2bc8fCLdhJATApx8837mc3vyg==","signatures":[{"sig":"MEUCIFi5dozJcMk0DeWxI89z5VmBFHSdRgjWaRbuYv8yHrGRAiEAw31GD2/+/gD/36OTFVHWCDC6ryefLA3CcMQmiX5piWk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":225635},"main":"index.js","types":"index.d.ts","module":"esm/index.js","gitHead":"a6c5dba9ec6cc7c892c736a1e805353fccd050d3","scripts":{"copy":"copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist","lint":"eslint . --fix","build":"npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy","clean":"rimraf dist/**","prepare":"npm run build","starship":"starship --config ./starship/configs/config.yaml","build:dev":"npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy","test:token":"jest --preset ts-jest ./starship/__tests__/token.test.ts","starship:all":"yarn starship start","starship:test":"jest --config ./jest.starship.config.js --verbose --bail","starship:clean":"yarn starship stop","starship:debug":"jest --config ./jest.starship.config.js --runInBand --verbose --bail","starship:local":"starship --config ./starship/configs/config.local.yaml","starship:watch":"jest --watch --config ./jest.starship.config.js"},"_npmUser":{"name":"0xforager","email":"0xforager@gmail.com"},"repository":{"url":"git+https://github.com/hyperweb-io/interchainjs.git","type":"git"},"_npmVersion":"10.8.3","description":"Transaction codec and client to communicate with any cosmos blockchain","directories":{},"_nodeVersion":"22.9.0","dependencies":{"decimal.js":"^10.4.3","@noble/curves":"^1.1.0","@noble/hashes":"^1.3.1","@interchainjs/auth":"1.11.15","@interchainjs/types":"1.11.15","@interchainjs/utils":"1.11.15","@interchainjs/cosmos-types":"1.11.15"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/interchainjs-cosmos-unordered_1.11.15-unordered.2_1749954692508_0.15973603144087378","host":"s3://npm-registry-packages-npm-production"}},"1.11.15-unordered.3":{"name":"@0xforager/interchainjs-cosmos-unordered","version":"1.11.15-unordered.3","description":"Transaction codec and client to communicate with any cosmos blockchain","main":"index.js","module":"esm/index.js","types":"index.d.ts","author":{"name":"Hyperweb","email":"developers@hyperweb.io"},"homepage":"https://github.com/hyperweb-io/interchainjs","repository":{"type":"git","url":"git+https://github.com/hyperweb-io/interchainjs.git"},"license":"MIT","publishConfig":{"access":"public","directory":"dist"},"scripts":{"copy":"copyfiles -f ../../LICENSE-MIT ../../LICENSE-Apache README.md package.json dist","clean":"rimraf dist/**","prepare":"npm run build","build":"npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy","build:dev":"npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy","lint":"eslint . --fix","starship":"starship --config ./starship/configs/config.yaml","starship:local":"starship --config ./starship/configs/config.local.yaml","starship:test":"jest --config ./jest.starship.config.js --verbose --bail","starship:debug":"jest --config ./jest.starship.config.js --runInBand --verbose --bail","starship:watch":"jest --watch --config ./jest.starship.config.js","starship:all":"yarn starship start","starship:clean":"yarn starship stop","test:token":"jest --preset ts-jest ./starship/__tests__/token.test.ts"},"dependencies":{"@interchainjs/auth":"1.11.15","@interchainjs/cosmos-types":"npm:@0xforager/interchainjs-cosmos-types-unordered@1.11.15-unordered.1","@interchainjs/types":"1.11.15","@interchainjs/utils":"1.11.15","@noble/curves":"^1.1.0","@noble/hashes":"^1.3.1","decimal.js":"^10.4.3"},"keywords":["cosmos","blockchain","transaction"],"_id":"@0xforager/interchainjs-cosmos-unordered@1.11.15-unordered.3","gitHead":"a6c5dba9ec6cc7c892c736a1e805353fccd050d3","bugs":{"url":"https://github.com/hyperweb-io/interchainjs/issues"},"_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-flsO/H9vnZmqK0Nmxf+QAWv1d971Urynigl0YorQuKQExvcF4YBJ7G+yn3vIt2gIBsP8qj1LndHiRhxN+lEs/Q==","shasum":"d44f22ffd2f13dced3fd6a058ffc2b7a6dfa4faf","tarball":"https://registry.npmjs.org/@0xforager/interchainjs-cosmos-unordered/-/interchainjs-cosmos-unordered-1.11.15-unordered.3.tgz","fileCount":87,"unpackedSize":225761,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAgri4TTuvqgNkfjtI/NpuAi104vD/Ke75UVm+Egkq8dAiAa3P6Id8NydZrHHXx4SSrh0w2dtzSX3F339nsUA4Plrw=="}]},"_npmUser":{"name":"0xforager","email":"0xforager@gmail.com"},"directories":{},"maintainers":[{"name":"0xforager","email":"0xforager@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/interchainjs-cosmos-unordered_1.11.15-unordered.3_1750039616380_0.5583701218385606"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-15T02:24:29.942Z","modified":"2025-06-16T02:06:56.723Z","1.11.15-unordered.1":"2025-06-15T02:24:30.263Z","1.11.15-unordered.2":"2025-06-15T02:31:32.691Z","1.11.15-unordered.3":"2025-06-16T02:06:56.574Z"},"bugs":{"url":"https://github.com/hyperweb-io/interchainjs/issues"},"author":{"name":"Hyperweb","email":"developers@hyperweb.io"},"license":"MIT","homepage":"https://github.com/hyperweb-io/interchainjs","keywords":["cosmos","blockchain","transaction"],"repository":{"type":"git","url":"git+https://github.com/hyperweb-io/interchainjs.git"},"description":"Transaction codec and client to communicate with any cosmos blockchain","maintainers":[{"name":"0xforager","email":"0xforager@gmail.com"}],"readme":"# @interchainjs/cosmos\n\n<p\n  align=\"center\"\n  style={{\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\",\n    gap: \"2px\",\n  }}\n>\n  <img\n    src=\"https://user-images.githubusercontent.com/545047/188804067-28e67e5e-0214-4449-ab04-2e0c564a6885.svg\"\n    width=\"80\"\n  />\n</p>\n\n<p\n  align=\"center\"\n  width=\"100%\"\n  style={{\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\",\n    gap: \"2px\",\n  }}\n>\n  <a href=\"https://github.com/hyperweb-io/interchainjs/blob/main/LICENSE-MIT\">\n    <img height=\"20\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\" />\n  </a>\n  <a href=\"https://github.com/hyperweb-io/interchainjs/blob/main/LICENSE-Apache\">\n    <img\n      height=\"20\"\n      src=\"https://img.shields.io/badge/license-Apache-blue.svg\"\n    />\n  </a>\n</p>\n\nTransaction codec and client to communicate with any cosmos blockchain.\n\n## Usage\n\n```sh\nnpm install @interchainjs/cosmos\n```\n\nExample for signing client here:\n\n```ts\nimport { SigningClient as CosmosSigningClient } from \"@interchainjs/cosmos/signing-client\";\n\nconst signingClient = await CosmosSigningClient.connectWithSigner(\n  await getRpcEndpoint(),\n  new DirectGenericOfflineSigner(directSigner),\n  {\n    registry: [\n      // as many as possible encoders registered here.\n      MsgDelegate,\n      MsgSend,\n    ],\n    broadcast: {\n      checkTx: true,\n    },\n  }\n);\n\n// sign and broadcast\nconst result = await signingClient.signAndBroadcast(<MESSAGE>[]);\nconsole.log(result.hash); // the hash of TxRaw\n```\n\nOr use the tree shakable helper functions (**Most Recommended**) we generate in interchainjs libs:\n\n```ts\nimport { SigningClient as CosmosSigningClient } from \"@interchainjs/cosmos/signing-client\";\nimport { submitProposal } from \"interchainjs/cosmos/gov/v1beta1/tx.rpc.func\";\n\nconst signingClient = await CosmosSigningClient.connectWithSigner(\n  await getRpcEndpoint(),\n  new DirectGenericOfflineSigner(directSigner),\n  {\n    // no registry needed here anymore\n    // registry: [\n    // ],\n    broadcast: {\n      checkTx: true,\n    },\n  }\n);\n\n// Necessary typeurl and codecs will be registered automatically in the helper functions. Meaning users don't have to register them all at once.\nconst result = await submitProposal(\n  signingClient,\n  directAddress,\n  {\n    proposer: directAddress,\n    initialDeposit: [\n      {\n        amount: \"1000000\",\n        denom: denom,\n      },\n    ],\n    content: {\n      typeUrl: \"/cosmos.gov.v1beta1.TextProposal\",\n      value: TextProposal.encode(contentMsg).finish(),\n    },\n  },\n  fee,\n  \"submit proposal\"\n);\nconsole.log(result.hash); // the hash of TxRaw\n```\n\nExamples for direct and amino signers here:\n\n```ts\nimport { DirectSigner } from \"@interchainjs/cosmos/signers/direct\";\n\n// const signer = new DirectSigner(<AUTH>, <ENCODER>[], <RPC_ENDPOINT>); // **ONLY** rpc endpoint is supported for now\nconst signer = new DirectSigner(\n  directAuth,\n  // as many as possible encoders registered here.\n  [MsgDelegate, TextProposal, MsgSubmitProposal, MsgVote],\n  rpcEndpoint,\n  { prefix: chainInfo.chain.bech32_prefix }\n);\nconst aminoSigner = new AminoSigner(\n  aminoAuth,\n  // as many as possible encoders registered here.\n  [MsgDelegate, TextProposal, MsgSubmitProposal, MsgVote],\n  // as many as possible converters registered here.\n  [MsgDelegate, TextProposal, MsgSubmitProposal, MsgVote],\n  rpcEndpoint,\n  { prefix: chainInfo.chain.bech32_prefix }\n);\nconst result = await signer.signAndBroadcast(<MESSAGE>[]);\nconsole.log(result.hash); // the hash of TxRaw\n```\n\n- See [@interchainjs/auth](/packages/auth/README.md) to construct `<AUTH>`\n- See [@interchainjs/cosmos-types](/networks/cosmos-msgs/README.md) to construct `<ENCODER>`s and `<CONVERTER>`s, and also different message types.\n\n## Implementations\n\n- **direct signer** from `@interchainjs/cosmos/signers/direct`\n- **amino signer** from `@interchainjs/cosmos/signers/amino`\n\n## Interchain JavaScript Stack ⚛️\n\nA unified toolkit for building applications and smart contracts in the Interchain ecosystem\n\n| Category                       | Tools                                                                                                                                                                                                     | Description                                                                                                         |\n| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |\n| **Chain Information**          | [**Chain Registry**](https://github.com/hyperweb-io/chain-registry), [**Utils**](https://www.npmjs.com/package/@chain-registry/utils), [**Client**](https://www.npmjs.com/package/@chain-registry/client) | Everything from token symbols, logos, and IBC denominations for all assets you want to support in your application. |\n| **Wallet Connectors**          | [**Interchain Kit**](https://github.com/hyperweb-io/interchain-kit), [**Cosmos Kit**](https://github.com/hyperweb-io/cosmos-kit)                                                           | Experience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface.    |\n| **Signing Clients**            | [**InterchainJS**](https://github.com/hyperweb-io/interchainjs), [**CosmJS**](https://github.com/cosmos/cosmjs)                                                                            | A single, universal signing interface for any network                                                               |\n| **SDK Clients**                | [**Telescope**](https://github.com/hyperweb-io/telescope)                                                                                                                                                 | Your Frontend Companion for Building with TypeScript with Cosmos SDK Modules.                                       |\n| **Starter Kits**               | [**Create Interchain App**](https://github.com/hyperweb-io/create-interchain-app), [**Create Cosmos App**](https://github.com/hyperweb-io/create-cosmos-app)                               | Set up a modern Interchain app by running one command.                                                              |\n| **UI Kits**                    | [**Interchain UI**](https://github.com/hyperweb-io/interchain-ui)                                                                                                                                         | The Interchain Design System, empowering developers with a flexible, easy-to-use UI kit.                            |\n| **Testing Frameworks**         | [**Starship**](https://github.com/hyperweb-io/starship)                                                                                                                                                   | Unified Testing and Development for the Interchain.                                                                 |\n| **TypeScript Smart Contracts** | [**Create Hyperweb App**](https://github.com/hyperweb-io/create-hyperweb-app)                                                                                                                             | Build and deploy full-stack blockchain applications with TypeScript                                                 |\n| **CosmWasm Contracts**         | [**CosmWasm TS Codegen**](https://github.com/CosmWasm/ts-codegen)                                                                                                                                         | Convert your CosmWasm smart contracts into dev-friendly TypeScript classes.                                         |\n\n## Credits\n\n🛠 Built by Hyperweb (formerly Cosmology) — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/hyperweb-io)\n\n## Disclaimer\n\nAS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.\n\nNo developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.\n","readmeFilename":"README.md"}