Skip to content

Commit

Permalink
Update bitbox-sdk v
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed Feb 26, 2019
1 parent f196679 commit 33380ce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const repl = require("repl")
const SLP = require("./lib/SLP").default
const clone = require("git-clone")

program.version("2.1.0", "-v, --version")
program.version("2.1.1", "-v, --version")

program
.command("new <name>")
Expand Down
10 changes: 5 additions & 5 deletions lib/TokenType1.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var TokenType1 = /** @class */ (function () {
return [4 /*yield*/, bitboxNetwork.simpleTokenGenesis(name, symbol, initialTokenQty, documentUri, documentHash, decimals, tokenReceiverAddress, batonReceiverAddress, bchChangeReceiverAddress, balances.nonSlpUtxos)];
case 2:
genesisTxid = _a.sent();
return [2 /*return*/, genesisTxid[0]];
return [2 /*return*/, genesisTxid];
}
});
});
Expand Down Expand Up @@ -138,7 +138,7 @@ var TokenType1 = /** @class */ (function () {
return [4 /*yield*/, bitboxNetwork.simpleTokenMint(tokenId, mintQty, inputUtxos, tokenReceiverAddress, batonReceiverAddress, bchChangeReceiverAddress)];
case 3:
mintTxid = _a.sent();
return [2 /*return*/, mintTxid[0]];
return [2 /*return*/, mintTxid];
}
});
});
Expand Down Expand Up @@ -186,7 +186,7 @@ var TokenType1 = /** @class */ (function () {
return [4 /*yield*/, bitboxNetwork.simpleTokenSend(tokenId, amount, inputUtxos, tokenReceiverAddress, bchChangeReceiverAddress)];
case 3:
sendTxid = _a.sent();
return [2 /*return*/, sendTxid[0]];
return [2 /*return*/, sendTxid];
}
});
});
Expand Down Expand Up @@ -249,7 +249,7 @@ var TokenType1 = /** @class */ (function () {
return [4 /*yield*/, tmpBITBOX_1.RawTransactions.sendRawTransaction(hex)];
case 3:
txid = _a.sent();
return [2 /*return*/, txid[0]];
return [2 /*return*/, txid];
case 4:
error_1 = _a.sent();
return [2 /*return*/, error_1];
Expand Down Expand Up @@ -293,7 +293,7 @@ var TokenType1 = /** @class */ (function () {
return [4 /*yield*/, bitboxNetwork.simpleTokenBurn(burnConfig.tokenId, amount, inputUtxos, bchChangeReceiverAddress)];
case 3:
burnTxid = _a.sent();
return [2 /*return*/, burnTxid[0]];
return [2 /*return*/, burnTxid];
case 4:
error_2 = _a.sent();
return [2 /*return*/, error_2];
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slp-sdk",
"version": "2.1.0",
"version": "2.1.1",
"description": "SLP SDK powered by BITBOX",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -31,7 +31,7 @@
"axios": "^0.17.1",
"babel-register": "^6.26.0",
"bignumber.js": "^8.0.2",
"bitbox-sdk": "4.0.0",
"bitbox-sdk": "4.0.1",
"chalk": "^2.3.0",
"clear": "0.1.0",
"commander": "^2.13.0",
Expand Down
10 changes: 5 additions & 5 deletions src/TokenType1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class TokenType1 {
bchChangeReceiverAddress,
balances.nonSlpUtxos
)
return genesisTxid[0]
return genesisTxid
}

async mint(mintConfig: IMintConfig) {
Expand Down Expand Up @@ -141,7 +141,7 @@ class TokenType1 {
batonReceiverAddress,
bchChangeReceiverAddress
)
return mintTxid[0]
return mintTxid
}

async send(sendConfig: ISendConfig) {
Expand Down Expand Up @@ -194,7 +194,7 @@ class TokenType1 {
tokenReceiverAddress,
bchChangeReceiverAddress
)
return sendTxid[0]
return sendTxid
}

async burnAll(burnAllConfig: IBurnAllConfig) {
Expand Down Expand Up @@ -273,7 +273,7 @@ class TokenType1 {
let tx = transactionBuilder.build()
let hex = tx.toHex()
let txid = await tmpBITBOX.RawTransactions.sendRawTransaction(hex)
return txid[0]
return txid
} catch (error) {
return error
}
Expand Down Expand Up @@ -317,7 +317,7 @@ class TokenType1 {
inputUtxos,
bchChangeReceiverAddress
)
return burnTxid[0]
return burnTxid
} catch (error) {
return error
}
Expand Down

0 comments on commit 33380ce

Please sign in to comment.