mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-01-26 14:36:07 -05:00
bump version to v0.0.12
This commit is contained in:
parent
9480118041
commit
ac788ca45e
4
dist/HavenoClient.d.ts
vendored
4
dist/HavenoClient.d.ts
vendored
@ -421,12 +421,12 @@ export default class HavenoClient {
|
|||||||
* @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount
|
* @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount
|
||||||
* @param {number} price - trade price (optional, default to market price)
|
* @param {number} price - trade price (optional, default to market price)
|
||||||
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
||||||
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
|
||||||
* @param {number} triggerPrice - price to remove offer (optional)
|
* @param {number} triggerPrice - price to remove offer (optional)
|
||||||
|
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
||||||
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
||||||
* @return {OfferInfo} the posted offer
|
* @return {OfferInfo} the posted offer
|
||||||
*/
|
*/
|
||||||
postOffer(direction: string, amount: bigint, assetCode: string, paymentAccountId: string, buyerSecurityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, reserveExactAmount?: boolean, minAmount?: bigint): Promise<OfferInfo>;
|
postOffer(direction: string, amount: bigint, assetCode: string, paymentAccountId: string, buyerSecurityDepositPct: number, price?: number, marketPriceMarginPct?: number, triggerPrice?: number, minAmount?: bigint, reserveExactAmount?: boolean): Promise<OfferInfo>;
|
||||||
/**
|
/**
|
||||||
* Remove a posted offer, releasing its reserved funds.
|
* Remove a posted offer, releasing its reserved funds.
|
||||||
*
|
*
|
||||||
|
4
dist/HavenoClient.js
vendored
4
dist/HavenoClient.js
vendored
@ -977,12 +977,12 @@ class HavenoClient {
|
|||||||
* @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount
|
* @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount
|
||||||
* @param {number} price - trade price (optional, default to market price)
|
* @param {number} price - trade price (optional, default to market price)
|
||||||
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
|
||||||
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
|
||||||
* @param {number} triggerPrice - price to remove offer (optional)
|
* @param {number} triggerPrice - price to remove offer (optional)
|
||||||
|
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
|
||||||
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
|
||||||
* @return {OfferInfo} the posted offer
|
* @return {OfferInfo} the posted offer
|
||||||
*/
|
*/
|
||||||
async postOffer(direction, amount, assetCode, paymentAccountId, buyerSecurityDepositPct, price, marketPriceMarginPct, triggerPrice, reserveExactAmount, minAmount) {
|
async postOffer(direction, amount, assetCode, paymentAccountId, buyerSecurityDepositPct, price, marketPriceMarginPct, triggerPrice, minAmount, reserveExactAmount) {
|
||||||
try {
|
try {
|
||||||
const request = new grpc_pb_1.PostOfferRequest()
|
const request = new grpc_pb_1.PostOfferRequest()
|
||||||
.setDirection(direction)
|
.setDirection(direction)
|
||||||
|
2
dist/HavenoClient.js.map
vendored
2
dist/HavenoClient.js.map
vendored
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "haveno-ts",
|
"name": "haveno-ts",
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "haveno-ts",
|
"name": "haveno-ts",
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "^18.14.2",
|
"@types/node": "^18.14.2",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "haveno-ts",
|
"name": "haveno-ts",
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"description": "Haveno TypeScript interface",
|
"description": "Haveno TypeScript interface",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user