@cosmjs/proto-signing
Advanced tools
Comparing version 0.29.0-alpha.3 to 0.29.0-rc.1
@@ -13,4 +13,4 @@ import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin"; | ||
readonly sequence: number; | ||
}>, feeAmount: readonly Coin[], gasLimit: number, signMode?: SignMode): Uint8Array; | ||
}>, feeAmount: readonly Coin[], gasLimit: number, feeGranter: string | undefined, feePayer: string | undefined, signMode?: SignMode): Uint8Array; | ||
export declare function makeSignDoc(bodyBytes: Uint8Array, authInfoBytes: Uint8Array, chainId: string, accountNumber: number): SignDoc; | ||
export declare function makeSignBytes({ accountNumber, authInfoBytes, bodyBytes, chainId }: SignDoc): Uint8Array; |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.makeSignBytes = exports.makeSignDoc = exports.makeAuthInfoBytes = void 0; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
const utils_1 = require("@cosmjs/utils"); | ||
const signing_1 = require("cosmjs-types/cosmos/tx/signing/v1beta1/signing"); | ||
@@ -30,3 +32,6 @@ const tx_1 = require("cosmjs-types/cosmos/tx/v1beta1/tx"); | ||
*/ | ||
function makeAuthInfoBytes(signers, feeAmount, gasLimit, signMode = signing_1.SignMode.SIGN_MODE_DIRECT) { | ||
function makeAuthInfoBytes(signers, feeAmount, gasLimit, feeGranter, feePayer, signMode = signing_1.SignMode.SIGN_MODE_DIRECT) { | ||
// Required arguments 4 and 5 were added in CosmJS 0.29. Use runtime checks to help our non-TS users. | ||
(0, utils_1.assert)(feeGranter === undefined || typeof feeGranter === "string", "feeGranter must be undefined or string"); | ||
(0, utils_1.assert)(feePayer === undefined || typeof feePayer === "string", "feePayer must be undefined or string"); | ||
const authInfo = { | ||
@@ -37,2 +42,4 @@ signerInfos: makeSignerInfos(signers, signMode), | ||
gasLimit: long_1.default.fromNumber(gasLimit), | ||
granter: feeGranter, | ||
payer: feePayer, | ||
}, | ||
@@ -39,0 +46,0 @@ }; |
{ | ||
"name": "@cosmjs/proto-signing", | ||
"version": "0.29.0-alpha.3", | ||
"version": "0.29.0-rc.1", | ||
"description": "Utilities for protobuf based signing (Cosmos SDK 0.40+)", | ||
@@ -42,7 +42,7 @@ "contributors": [ | ||
"dependencies": { | ||
"@cosmjs/amino": "0.29.0-alpha.3", | ||
"@cosmjs/crypto": "0.29.0-alpha.3", | ||
"@cosmjs/encoding": "0.29.0-alpha.3", | ||
"@cosmjs/math": "0.29.0-alpha.3", | ||
"@cosmjs/utils": "0.29.0-alpha.3", | ||
"@cosmjs/amino": "^0.29.0-rc.1", | ||
"@cosmjs/crypto": "^0.29.0-rc.1", | ||
"@cosmjs/encoding": "^0.29.0-rc.1", | ||
"@cosmjs/math": "^0.29.0-rc.1", | ||
"@cosmjs/utils": "^0.29.0-rc.1", | ||
"cosmjs-types": "^0.5.0", | ||
@@ -49,0 +49,0 @@ "long": "^4.0.0" |
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
77606
1067
+ Added@cosmjs/amino@0.29.5(transitive)
+ Added@cosmjs/crypto@0.29.5(transitive)
+ Added@cosmjs/encoding@0.29.5(transitive)
+ Added@cosmjs/math@0.29.5(transitive)
+ Added@cosmjs/utils@0.29.5(transitive)
- Removed@cosmjs/amino@0.29.0-alpha.3(transitive)
- Removed@cosmjs/crypto@0.29.0-alpha.3(transitive)
- Removed@cosmjs/encoding@0.29.0-alpha.3(transitive)
- Removed@cosmjs/math@0.29.0-alpha.3(transitive)
- Removed@cosmjs/utils@0.29.0-alpha.3(transitive)
Updated@cosmjs/amino@^0.29.0-rc.1
Updated@cosmjs/crypto@^0.29.0-rc.1
Updated@cosmjs/math@^0.29.0-rc.1
Updated@cosmjs/utils@^0.29.0-rc.1