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

@bitgo-beta/abstract-cosmos

Package Overview
Dependencies
Maintainers
0
Versions
804
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo-beta/abstract-cosmos - npm Package Compare versions

Comparing version 1.0.0-alpha.188 to 1.0.0-alpha.189

20

CHANGELOG.md

@@ -6,2 +6,22 @@ # Change Log

## [11.2.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.11...@bitgo/abstract-cosmos@11.2.12) (2024-12-24)
**Note:** Version bump only for package @bitgo/abstract-cosmos
## [11.2.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.10...@bitgo/abstract-cosmos@11.2.11) (2024-12-19)
**Note:** Version bump only for package @bitgo/abstract-cosmos
## [11.2.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.8...@bitgo/abstract-cosmos@11.2.10) (2024-12-17)
**Note:** Version bump only for package @bitgo/abstract-cosmos
## [11.2.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.8...@bitgo/abstract-cosmos@11.2.9) (2024-12-17)
**Note:** Version bump only for package @bitgo/abstract-cosmos
## [11.2.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.7...@bitgo/abstract-cosmos@11.2.8) (2024-12-12)
**Note:** Version bump only for package @bitgo/abstract-cosmos
## [11.2.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-cosmos@11.2.6...@bitgo/abstract-cosmos@11.2.7) (2024-12-11)

@@ -8,0 +28,0 @@

5

dist/src/lib/keyPair.js

@@ -44,6 +44,5 @@ "use strict";

getKeys() {
var _a;
return {
pub: this.getPublicKey({ compressed: true }).toString('hex'),
prv: (_a = this.getPrivateKey()) === null || _a === void 0 ? void 0 : _a.toString('hex'),
prv: this.getPrivateKey()?.toString('hex'),
};

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4ge1xuICAgICAgcHViOiB0aGlzLmdldFB1YmxpY0tleSh7IGNvbXByZXNzZWQ6IHRydWUgfSkudG9TdHJpbmcoJ2hleCcpLFxuICAgICAgcHJ2OiB0aGlzLmdldFByaXZhdGVLZXkoKT8udG9TdHJpbmcoJ2hleCcpLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==

@@ -34,7 +34,6 @@ "use strict";

get id() {
var _a;
if (this._id) {
return this._id;
}
else if (((_a = this._cosmosLikeTransaction) === null || _a === void 0 ? void 0 : _a.hash) !== undefined) {
else if (this._cosmosLikeTransaction?.hash !== undefined) {
return this._cosmosLikeTransaction.hash;

@@ -112,5 +111,4 @@ }

serialize() {
var _a;
const txRaw = this._utils.createTxRawFromCosmosLikeTransaction(this.cosmosLikeTransaction);
if (((_a = this.cosmosLikeTransaction) === null || _a === void 0 ? void 0 : _a.publicKey) !== undefined && this._signatures.length > 0) {
if (this.cosmosLikeTransaction?.publicKey !== undefined && this._signatures.length > 0) {
const signedRawTx = this._utils.createSignedTxRaw(this.cosmosLikeTransaction.publicKey, this._signatures[0], txRaw);

@@ -186,8 +184,7 @@ return (0, encoding_1.toBase64)(tx_1.TxRaw.encode(signedRawTx).finish());

outputs = json.sendMessages.map((message) => {
var _a, _b, _c, _d, _e, _f;
const executeContractMessage = message.value;
outputAmount = outputAmount + BigInt((_c = (_b = (_a = executeContractMessage.funds) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.amount) !== null && _c !== void 0 ? _c : '0');
outputAmount = outputAmount + BigInt(executeContractMessage.funds?.[0]?.amount ?? '0');
return {
address: executeContractMessage.contract,
amount: (_f = (_e = (_d = executeContractMessage.funds) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.amount) !== null && _f !== void 0 ? _f : '0',
amount: executeContractMessage.funds?.[0]?.amount ?? '0',
};

@@ -218,3 +215,3 @@ });

...explanationResult,
outputAmount: outputAmount === null || outputAmount === void 0 ? void 0 : outputAmount.toString(),
outputAmount: outputAmount?.toString(),
outputs,

@@ -283,7 +280,6 @@ };

this.cosmosLikeTransaction.sendMessages.forEach((message) => {
var _a, _b, _c, _d, _e, _f;
const executeContractMessage = message.value;
inputs.push({
address: executeContractMessage.sender,
value: (_c = (_b = (_a = executeContractMessage.funds) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.amount) !== null && _c !== void 0 ? _c : '0',
value: executeContractMessage.funds?.[0]?.amount ?? '0',
coin: this._coinConfig.name,

@@ -293,3 +289,3 @@ });

address: executeContractMessage.contract,
value: (_f = (_e = (_d = executeContractMessage.funds) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.amount) !== null && _f !== void 0 ? _f : '0',
value: executeContractMessage.funds?.[0]?.amount ?? '0',
coin: this._coinConfig.name,

@@ -343,2 +339,2 @@ });

exports.CosmosTransaction = CosmosTransaction;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3RyYW5zYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLG1EQVE4QjtBQUU5QiwrQ0FBcUQ7QUFDckQseURBQXNEO0FBQ3RELDBEQUEwRDtBQUMxRCwyQ0FBK0M7QUFhL0MsTUFBYSxpQkFBa0IsU0FBUSwwQkFBZTtJQU9wRCxZQUFZLFdBQWlDLEVBQUUsS0FBa0I7UUFDL0QsS0FBSyxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ25CLElBQUksQ0FBQyxNQUFNLEdBQUcsS0FBSyxDQUFDO0lBQ3RCLENBQUM7SUFFRCxJQUFJLHFCQUFxQjtRQUN2QixPQUFPLElBQUksQ0FBQyxzQkFBc0IsQ0FBQztJQUNyQyxDQUFDO0lBRUQsSUFBSSxxQkFBcUIsQ0FBQy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gICAgfVxuICAgIGlmICh0aGlzLmNvc21vc0xpa2VUcmFuc2FjdGlvbi5zaWduYXR1cmUpIHtcbiAgICAgIHRoaXMuYWRkU2lnbmF0dXJlKEJ1ZmZlci5mcm9tKHRoaXMuY29zbW9zTGlrZVRyYW5zYWN0aW9uLnNpZ25hdHVyZSkudG9TdHJpbmcoJ2hleCcpKTtcbiAgICB9XG4gICAgY29uc3QgdHlwZVVybCA9IHRoaXMuY29zbW9zTGlrZVRyYW5zYWN0aW9uLnNlbmRNZXNzYWdlc1swXS50eXBlVXJsO1xuICAgIGNvbnN0IHRyYW5zYWN0aW9uVHlwZSA9IHRoaXMuX3V0aWxzLmdldFRyYW5zYWN0aW9uVHlwZUZyb21UeXBlVXJsKHR5cGVVcmwpO1xuXG4gICAgaWYgKHRyYW5zYWN0aW9uVHlwZSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ1RyYW5zYWN0aW9uIHR5cGUgaXMgbm90IHN1cHBvcnRlZCAnICsgdHlwZVVybCk7XG4gICAgfVxuICAgIHRoaXMudHJhbnNhY3Rpb25UeXBlID0gdHJhbnNhY3Rpb25UeXBlO1xuICB9XG59XG4iXX0=

@@ -122,3 +122,2 @@ "use strict";

async buildImplementation() {
var _a;
this.transaction.transactionType = this.transactionType;

@@ -132,3 +131,3 @@ if (this._accountNumber) {

this.transaction.cosmosLikeTransaction = this._utils.createTransaction(this._sequence, this._messages, this._gasBudget, this._publicKey, this._memo);
const privateKey = (_a = this._signer) === null || _a === void 0 ? void 0 : _a.getPrivateKey();
const privateKey = this._signer?.getPrivateKey();
if (privateKey !== undefined && this.transaction.cosmosLikeTransaction.publicKey !== undefined) {

@@ -178,2 +177,2 @@ const signDoc = this._utils.createSignDoc(this.transaction.cosmosLikeTransaction, this._accountNumber, this._chainId);

exports.CosmosTransactionBuilder = CosmosTransactionBuilder;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid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HRocm93IG5ldyBJbnZhbGlkVHJhbnNhY3Rpb25FcnJvcignSW52YWxpZCByYXcgdHJhbnNhY3Rpb246IFVuZGVmaW5lZCByYXdUcmFuc2FjdGlvbicpO1xuICAgIH1cbiAgICB0cnkge1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIHRocm93IG5ldyBJbnZhbGlkVHJhbnNhY3Rpb25FcnJvcignSW52YWxpZCByYXcgdHJhbnNhY3Rpb246ICcgKyBlLm1lc3NhZ2UpO1xuICAgIH1cbiAgICBjb25zdCBjb3Ntb3NUcmFuc2FjdGlvbiA9IHRoaXMuX3V0aWxzLmRlc2VyaWFsaXplVHJhbnNhY3Rpb24ocmF3VHJhbnNhY3Rpb24pO1xuICAgIHRoaXMuX3V0aWxzLnZhbGlkYXRlVHJhbnNhY3Rpb24oY29zbW9zVHJhbnNhY3Rpb24pO1xuICB9XG5cbiAgLyoqIEBpbmhlcml0ZG9jICovXG4gIHZhbGlkYXRlVHJhbnNhY3Rpb24odHJhbnNhY3Rpb246IENvc21vc1RyYW5zYWN0aW9uKTogdm9pZCB7XG4gICAgdGhpcy5fdXRpbHMudmFsaWRhdGVUcmFuc2FjdGlvbih7XG4gICAgICBzZXF1ZW5jZTogdGhpcy5fc2VxdWVuY2UsXG4gICAgICBzZW5kTWVzc2FnZXM6IHRoaXMuX21lc3NhZ2VzLFxuICAgICAgZ2FzQnVkZ2V0OiB0aGlzLl9nYXNCdWRnZXQsXG4gICAgICBwdWJsaWNLZXk6IHRoaXMuX3B1YmxpY0tleSxcbiAgICB9KTtcbiAgfVxufVxuIl19

10

package.json
{
"name": "@bitgo-beta/abstract-cosmos",
"version": "1.0.0-alpha.188",
"version": "1.0.0-alpha.189",
"description": "BitGo SDK coin library for COSMOS base implementation",

@@ -41,5 +41,5 @@ "main": "./dist/src/index.js",

"dependencies": {
"@bitgo-beta/sdk-core": "2.4.1-alpha.239",
"@bitgo-beta/statics": "10.0.1-alpha.239",
"@bitgo-beta/utxo-lib": "4.0.1-alpha.240",
"@bitgo-beta/sdk-core": "2.4.1-alpha.240",
"@bitgo-beta/statics": "10.0.1-alpha.240",
"@bitgo-beta/utxo-lib": "4.0.1-alpha.241",
"@cosmjs/amino": "^0.29.5",

@@ -59,3 +59,3 @@ "@cosmjs/crypto": "^0.30.1",

},
"gitHead": "b8d9edc7b5bfd2f12fbfa35af656400997bcb395"
"gitHead": "46a36bbd361f9d8aefca22c40bd5e6da588eee4b"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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