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

@omisego/omg-js-childchain

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@omisego/omg-js-childchain - npm Package Compare versions

Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.10

10

package.json
{
"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"
}

26

src/childchain.js

@@ -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

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