amp-wallet
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -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", |
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
49155
884