Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cosmjs/stargate

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/stargate - npm Package Compare versions

Comparing version 0.27.0 to 0.27.1

2

build/aminomsgs.d.ts

@@ -272,3 +272,3 @@ import { AminoMsg, Coin } from "@cosmjs/amino";

/**
* Timeout timestamp (in nanoseconds). The timeout is disabled when set to 0.
* Timeout timestamp in nanoseconds since Unix epoch. The timeout is disabled when set to 0.
*

@@ -275,0 +275,0 @@ * 0 values must be omitted (https://github.com/cosmos/cosmos-sdk/blob/v0.42.7/x/ibc/applications/transfer/types/tx.pb.go#L52).

@@ -389,3 +389,3 @@ "use strict";

if (!converter) {
throw new Error("Type URL does not exist in the Amino message type register. " +
throw new Error(`Type URL '${typeUrl}' does not exist in the Amino message type register. ` +
"If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. " +

@@ -402,3 +402,3 @@ "If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.");

if (!result) {
throw new Error("Type does not exist in the Amino message type register. " +
throw new Error(`Amino type identifier '${type}' does not exist in the Amino message type register. ` +
"If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. " +

@@ -405,0 +405,0 @@ "If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.");

@@ -512,3 +512,3 @@ "use strict";

it("throws for unknown type url", () => {
expect(() => new aminotypes_1.AminoTypes().toAmino({ typeUrl: "/xxx.Unknown", value: { foo: "bar" } })).toThrowError(/Type URL does not exist in the Amino message type register./i);
expect(() => new aminotypes_1.AminoTypes().toAmino({ typeUrl: "/xxx.Unknown", value: { foo: "bar" } })).toThrowError(/Type URL '\/xxx\.Unknown' does not exist in the Amino message type register./i);
});

@@ -921,3 +921,3 @@ });

it("throws for unknown type url", () => {
expect(() => new aminotypes_1.AminoTypes().fromAmino({ type: "cosmos-sdk/MsgUnknown", value: { foo: "bar" } })).toThrowError(/Type does not exist in the Amino message type register./i);
expect(() => new aminotypes_1.AminoTypes().fromAmino({ type: "cosmos-sdk/MsgUnknown", value: { foo: "bar" } })).toThrowError(/Amino type identifier 'cosmos-sdk\/MsgUnknown' does not exist in the Amino message type register./i);
});

@@ -924,0 +924,0 @@ });

@@ -111,9 +111,10 @@ # Custom Protocol Buffer Codecs

import { DirectSecp256k1HdWallet, Registry } from "@cosmjs/proto-signing";
import { defaultRegistryTypes, SigningStargateClient } from "@cosmjs/stargate";
import {
defaultRegistryTypes as defaultStargateTypes,
SigningStargateClient,
} from "@cosmjs/stargate";
import { MsgXxx } from "./path/to/generated/codec/my/custom/tx"; // Replace with your own Msg import
const myRegistry = new Registry([
...defaultRegistryTypes,
["/my.custom.MsgXxx", MsgXxx], // Replace with your own type URL and Msg class
]);
const myRegistry = new Registry(defaultStargateTypes);
myRegistry.register("/my.custom.MsgXxx", MsgXxx); // Replace with your own type URL and Msg class
const mnemonic = // Replace with your own mnemonic

@@ -120,0 +121,0 @@ "economy stock theory fatal elder harbor betray wasp final emotion task crumble siren bottom lizard educate guess current outdoor pair theory focus wife stone";

{
"name": "@cosmjs/stargate",
"version": "0.27.0",
"version": "0.27.1",
"description": "Utilities for Cosmos SDK 0.40",

@@ -42,9 +42,9 @@ "contributors": [

"@confio/ics23": "^0.6.3",
"@cosmjs/amino": "0.27.0",
"@cosmjs/encoding": "0.27.0",
"@cosmjs/math": "0.27.0",
"@cosmjs/proto-signing": "0.27.0",
"@cosmjs/stream": "0.27.0",
"@cosmjs/tendermint-rpc": "0.27.0",
"@cosmjs/utils": "0.27.0",
"@cosmjs/amino": "0.27.1",
"@cosmjs/encoding": "0.27.1",
"@cosmjs/math": "0.27.1",
"@cosmjs/proto-signing": "0.27.1",
"@cosmjs/stream": "0.27.1",
"@cosmjs/tendermint-rpc": "0.27.1",
"@cosmjs/utils": "0.27.1",
"cosmjs-types": "^0.4.0",

@@ -56,3 +56,3 @@ "long": "^4.0.0",

"devDependencies": {
"@cosmjs/crypto": "0.27.0",
"@cosmjs/crypto": "0.27.1",
"@istanbuljs/nyc-config-typescript": "^1.0.1",

@@ -59,0 +59,0 @@ "@types/eslint-plugin-prettier": "^3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc