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

amp-wallet

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amp-wallet - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

23

lib/index.js

@@ -226,21 +226,18 @@ "use strict";

case 0:
_a.trys.push([0, 6, , 7]);
return [4 /*yield*/, (0, wallet_1.createAccount)(distPub)];
_a.trys.push([0, 5, , 6]);
return [4 /*yield*/, (0, wallet_1.createAccount)(distPub)
//create distributor wallet
];
case 1:
issuer = _a.sent();
return [4 /*yield*/, (0, wallet_1.setupIssuer)(issuer.key.secret)
//create distributor wallet
];
case 2:
_a.sent();
return [4 /*yield*/, (0, wallet_1.createAccount)(distPub)
//create trust-line between wallets
];
case 3:
case 2:
dist = _a.sent();
//create trust-line between wallets
return [4 /*yield*/, (0, wallet_1.createTrustLine)(issuer.key, dist.key, name)
return [4 /*yield*/, (0, wallet_1.createTrustLine)(issuer.key.secret, dist.key, name)
//send payment from issuer to distributor
];
case 4:
case 3:
//create trust-line between wallets

@@ -252,3 +249,3 @@ _a.sent();

];
case 5:
case 4:
//send payment from issuer to distributor

@@ -261,6 +258,6 @@ _a.sent();

}];
case 6:
case 5:
e_7 = _a.sent();
throw e_7;
case 7: return [2 /*return*/];
case 6: return [2 /*return*/];
}

@@ -267,0 +264,0 @@ });

@@ -97,3 +97,3 @@ import { AccountResponse } from 'stellar-sdk';

*/
export declare function createTrustLine(issuer: keyPair, acc: keyPair, assetName: string): Promise<any>;
export declare function createTrustLine(issuer: string, acc: keyPair, assetName: string): Promise<any>;
export {};

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

.addOperation(stellar_sdk_1.Operation.changeTrust({
asset: new stellar_sdk_1.Asset("".concat(assetName), issuer.publicKey)
asset: new stellar_sdk_1.Asset("".concat(assetName), issuer)
}))

@@ -321,0 +321,0 @@ .setTimeout(30)

{
"name": "amp-wallet",
"version": "1.0.31",
"version": "1.0.32",
"description": "Amanatpay Blockchain Wallet",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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