Socket
Socket
Sign inDemoInstall

@cosmjs/proto-signing

Package Overview
Dependencies
Maintainers
2
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cosmjs/proto-signing - npm Package Compare versions

Comparing version 0.29.0-alpha.3 to 0.29.0-rc.1

2

build/signing.d.ts

@@ -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

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