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

@tharsis/proto

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tharsis/proto - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

4

dist/messages/staking.d.ts

@@ -15,2 +15,6 @@ import * as staking from '../proto/cosmos/staking/v1beta1/tx';

};
export interface MsgWithdrawDelegatorRewardProtoInterface {
path: string;
message: dist.cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward;
}
export declare function createMsgWithdrawDelegatorReward(delegatorAddress: string, validatorAddress: string): {

@@ -17,0 +21,0 @@ message: dist.cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward;

@@ -8,2 +8,3 @@ import * as tx from '../proto/cosmos/tx/v1beta1/tx';

}
export declare function createBodyWithMultipleMessages(messages: any[], memo: string): tx.cosmos.tx.v1beta1.TxBody;
export declare function createBody(message: any, memo: string): tx.cosmos.tx.v1beta1.TxBody;

@@ -14,2 +15,14 @@ export declare function createFee(fee: string, denom: string, gasLimit: number): tx.cosmos.tx.v1beta1.Fee;

export declare function createSigDoc(bodyBytes: Uint8Array, authInfoBytes: Uint8Array, chainId: string, accountNumber: number): tx.cosmos.tx.v1beta1.SignDoc;
export declare function createTransactionWithMultipleMessages(messages: any, memo: string, fee: string, denom: string, gasLimit: number, algo: string, pubKey: string, sequence: number, accountNumber: number, chainId: string): {
legacyAmino: {
body: tx.cosmos.tx.v1beta1.TxBody;
authInfo: tx.cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
signDirect: {
body: tx.cosmos.tx.v1beta1.TxBody;
authInfo: tx.cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
};
export declare function createTransaction(message: any, memo: string, fee: string, denom: string, gasLimit: number, algo: string, pubKey: string, sequence: number, accountNumber: number, chainId: string): {

@@ -16,0 +29,0 @@ legacyAmino: {

25

dist/transaction/transaction.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.createTransaction = exports.createSigDoc = exports.createAuthInfo = exports.createSignerInfo = exports.createFee = exports.createBody = exports.protoTxNamespace = exports.LEGACY_AMINO = exports.SIGN_DIRECT = void 0;
exports.createTransaction = exports.createTransactionWithMultipleMessages = exports.createSigDoc = exports.createAuthInfo = exports.createSignerInfo = exports.createFee = exports.createBody = exports.createBodyWithMultipleMessages = exports.protoTxNamespace = exports.LEGACY_AMINO = exports.SIGN_DIRECT = void 0;
const sha3_1 = require("sha3");

@@ -37,9 +37,16 @@ const tx = __importStar(require("../proto/cosmos/tx/v1beta1/tx"));

})(protoTxNamespace = exports.protoTxNamespace || (exports.protoTxNamespace = {}));
function createBody(message, memo) {
const msg = new tx.cosmos.tx.v1beta1.TxBody({
messages: [(0, utils_1.createAnyMessage)(message)],
function createBodyWithMultipleMessages(messages, memo) {
const content = [];
messages.forEach((message) => {
content.push((0, utils_1.createAnyMessage)(message));
});
return new tx.cosmos.tx.v1beta1.TxBody({
messages: content,
memo,
});
return msg;
}
exports.createBodyWithMultipleMessages = createBodyWithMultipleMessages;
function createBody(message, memo) {
return createBodyWithMultipleMessages([message], memo);
}
exports.createBody = createBody;

@@ -104,4 +111,4 @@ function createFee(fee, denom, gasLimit) {

exports.createSigDoc = createSigDoc;
function createTransaction(message, memo, fee, denom, gasLimit, algo, pubKey, sequence, accountNumber, chainId) {
const body = createBody(message, memo);
function createTransactionWithMultipleMessages(messages, memo, fee, denom, gasLimit, algo, pubKey, sequence, accountNumber, chainId) {
const body = createBodyWithMultipleMessages(messages, memo);
const feeMessage = createFee(fee, denom, gasLimit);

@@ -134,3 +141,7 @@ const pubKeyDecoded = Buffer.from(pubKey, 'base64');

}
exports.createTransactionWithMultipleMessages = createTransactionWithMultipleMessages;
function createTransaction(message, memo, fee, denom, gasLimit, algo, pubKey, sequence, accountNumber, chainId) {
return createTransactionWithMultipleMessages([message], memo, fee, denom, gasLimit, algo, pubKey, sequence, accountNumber, chainId);
}
exports.createTransaction = createTransaction;
//# sourceMappingURL=transaction.js.map
{
"name": "@tharsis/proto",
"description": "Protobuf files for EVMOS.",
"version": "0.1.14",
"version": "0.1.15",
"license": "MIT",

@@ -42,3 +42,3 @@ "eslintIgnore": [

},
"gitHead": "281e886ae1b8bb75978a4bbc7c2c99702007b98b"
"gitHead": "9e7e24e5c9e8248a664bc72ca3032c5c355df901"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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