account-mirror-proxy-client
Advanced tools
31
index.js
@@ -62,12 +62,21 @@ const rp = require('request-promise-native') | ||
async function entityName(){ | ||
return await doGet('/entityName') | ||
async function entityName(accountMirrorContractAddress){ | ||
const query = { | ||
accountMirrorContractAddress | ||
} | ||
return await doGet('/entityName', query) | ||
} | ||
async function currency(){ | ||
return await doGet('/currency') | ||
async function currency(accountMirrorContractAddress){ | ||
const query = { | ||
accountMirrorContractAddress | ||
} | ||
return await doGet('/currency', query) | ||
} | ||
async function country(){ | ||
return await doGet('/country') | ||
async function country(accountMirrorContractAddress){ | ||
const query = { | ||
accountMirrorContractAddress | ||
} | ||
return await doGet('/country', query) | ||
} | ||
@@ -83,6 +92,7 @@ | ||
async function generateSetBalanceTx(accountAddress, amount){ | ||
async function generateSetBalanceTx(accountAddress, amount, accountMirrorContractAddress){ | ||
const form = { | ||
accountAddress, | ||
amount | ||
amount, | ||
accountMirrorContractAddress | ||
} | ||
@@ -92,5 +102,6 @@ return await doPost('/generateSetBalanceTx', form) | ||
async function balanceOf(accountAddress){ | ||
async function balanceOf(accountAddress, accountMirrorContractAddress){ | ||
const query = { | ||
accountAddress | ||
accountAddress, | ||
accountMirrorContractAddress | ||
} | ||
@@ -97,0 +108,0 @@ return await doGet('/balanceOf', query) |
{ | ||
"name": "account-mirror-proxy-client", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Account Mirror Proxy Client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4116
11.36%106
11.58%1
Infinity%