@cosmjs/stargate
Advanced tools
Comparing version 0.27.0 to 0.27.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
671397
+ Added@cosmjs/amino@0.27.1(transitive)
+ Added@cosmjs/crypto@0.27.1(transitive)
+ Added@cosmjs/encoding@0.27.1(transitive)
+ Added@cosmjs/json-rpc@0.27.1(transitive)
+ Added@cosmjs/math@0.27.1(transitive)
+ Added@cosmjs/proto-signing@0.27.1(transitive)
+ Added@cosmjs/socket@0.27.1(transitive)
+ Added@cosmjs/stream@0.27.1(transitive)
+ Added@cosmjs/tendermint-rpc@0.27.1(transitive)
+ Added@cosmjs/utils@0.27.1(transitive)
- Removed@cosmjs/amino@0.27.0(transitive)
- Removed@cosmjs/crypto@0.27.0(transitive)
- Removed@cosmjs/encoding@0.27.0(transitive)
- Removed@cosmjs/json-rpc@0.27.0(transitive)
- Removed@cosmjs/math@0.27.0(transitive)
- Removed@cosmjs/proto-signing@0.27.0(transitive)
- Removed@cosmjs/socket@0.27.0(transitive)
- Removed@cosmjs/stream@0.27.0(transitive)
- Removed@cosmjs/tendermint-rpc@0.27.0(transitive)
- Removed@cosmjs/utils@0.27.0(transitive)
Updated@cosmjs/amino@0.27.1
Updated@cosmjs/encoding@0.27.1
Updated@cosmjs/math@0.27.1
Updated@cosmjs/proto-signing@0.27.1
Updated@cosmjs/stream@0.27.1
Updated@cosmjs/utils@0.27.1