@omisego/omg-js-childchain
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.10
{ | ||
"name": "@omisego/omg-js-childchain", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0-alpha.10", | ||
"description": "Module to interact with OMG ChildChain", | ||
@@ -14,3 +14,5 @@ "keywords": [ | ||
"Pong Cheecharern <pong@omise.co>", | ||
"Kevin Sullivan <kevinsul@omise.co>" | ||
"Kevin Sullivan <kevinsul@omise.co>", | ||
"Jarindr Thitadilaka <jarindr@omisego.co>", | ||
"Nicholas Mueller <nicholas@omisego.co>" | ||
], | ||
@@ -26,3 +28,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@omisego/omg-js-util": "^3.0.0-alpha.8", | ||
"@omisego/omg-js-util": "^3.0.0-alpha.10", | ||
"debug": "^4.0.1", | ||
@@ -37,3 +39,3 @@ "json-bigint": "^0.3.0", | ||
}, | ||
"gitHead": "b7bc7e73a6047e33f6b795510429228a4b5aa31e" | ||
"gitHead": "7de6ec5c4fcc2492cbc16b1b008ff7798c1f37d1" | ||
} |
@@ -36,3 +36,3 @@ /* | ||
/** | ||
* Gets the UTXOs of an address (includes both spent and unspent UTXOs) | ||
* Gets the UTXOs of an address | ||
* | ||
@@ -53,18 +53,2 @@ * @method getUtxos | ||
/** | ||
* Gets the exitable UTXOs of an address | ||
* | ||
* @method getExitableUtxos | ||
* @param {string} address | ||
* @return {Array} array of UTXOs | ||
*/ | ||
async getExitableUtxos (address) { | ||
validateAddress(address) | ||
return rpcApi.post({ | ||
url: `${this.watcherUrl}/account.get_exitable_utxos`, | ||
body: { address }, | ||
proxyUrl: this.watcherProxyUrl | ||
}) | ||
} | ||
/** | ||
* Get the balance of an address | ||
@@ -157,3 +141,3 @@ * | ||
*/ | ||
createTransaction (owner, payments, fee, metadata) { | ||
createTransaction ({ owner, payments, fee, metadata }) { | ||
return rpcApi.post({ | ||
@@ -257,3 +241,3 @@ url: `${this.watcherUrl}/transaction.create`, | ||
*/ | ||
async sendTransaction ( | ||
async sendTransaction ({ | ||
fromAddress, | ||
@@ -269,3 +253,3 @@ fromUtxos, | ||
feeCurrency | ||
) { | ||
}) { | ||
validateAddress(fromAddress) | ||
@@ -343,3 +327,3 @@ validateAddress(toAddress) | ||
txbytes: hexPrefix(txbytes), | ||
input_index: outputIndex | ||
output_index: outputIndex | ||
}, | ||
@@ -346,0 +330,0 @@ proxyUrl: this.watcherProxyUrl |
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
34176
688