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

@vires.finance/dapp

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vires.finance/dapp - npm Package Compare versions

Comparing version 0.0.66 to 0.0.67

44

dappWrite.d.ts

@@ -33,27 +33,27 @@ import { IConfig, SignerOrKeeper } from './generic';

export declare const dappWrite: (config: IConfig, signerOrKeeper: SignerOrKeeper, _fetch?: typeof fetch) => {
deposit: ({ assetId, paymentAmount, useAsCollateral }: depositParams) => Promise<string>;
depositEarlyBirdRefBonus: ({ assetId, paymentAmount, useAsCollateral, ref }: depositEarlyBirdRefBonusParams) => Promise<string>;
withdraw: ({ assetId, amount }: withdrawParams) => Promise<string>;
borrow: ({ assetId, amount }: borrowParams) => Promise<string>;
repay: ({ assetId, paymentAmount }: repayParams) => Promise<string>;
redeemAtokens: ({ assetId, aTokensAmount }: redeemAtokensParams) => Promise<string>;
replenishWithAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<string>;
collapseDebt: ({ assetId, amount }: collapseDebtParams) => Promise<string>;
mintAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<string>;
enableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<string>;
disableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<string>;
deposit: ({ assetId, paymentAmount, useAsCollateral }: depositParams) => Promise<any>;
depositEarlyBirdRefBonus: ({ assetId, paymentAmount, useAsCollateral, ref }: depositEarlyBirdRefBonusParams) => Promise<any>;
withdraw: ({ assetId, amount }: withdrawParams) => Promise<any>;
borrow: ({ assetId, amount }: borrowParams) => Promise<any>;
repay: ({ assetId, paymentAmount }: repayParams) => Promise<any>;
redeemAtokens: ({ assetId, aTokensAmount }: redeemAtokensParams) => Promise<any>;
replenishWithAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<any>;
collapseDebt: ({ assetId, amount }: collapseDebtParams) => Promise<any>;
mintAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<any>;
enableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<any>;
disableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<any>;
};
export declare type DappWrite = ReturnType<typeof dappWrite>;
export declare const reserves: (config: IConfig, signerOrKeeper: SignerOrKeeper, _fetch?: typeof fetch) => {
deposit: ({ assetId, paymentAmount, useAsCollateral }: depositParams) => Promise<string>;
depositEarlyBirdRefBonus: ({ assetId, paymentAmount, useAsCollateral, ref }: depositEarlyBirdRefBonusParams) => Promise<string>;
withdraw: ({ assetId, amount }: withdrawParams) => Promise<string>;
borrow: ({ assetId, amount }: borrowParams) => Promise<string>;
repay: ({ assetId, paymentAmount }: repayParams) => Promise<string>;
redeemAtokens: ({ assetId, aTokensAmount }: redeemAtokensParams) => Promise<string>;
replenishWithAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<string>;
collapseDebt: ({ assetId, amount }: collapseDebtParams) => Promise<string>;
mintAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<string>;
enableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<string>;
disableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<string>;
deposit: ({ assetId, paymentAmount, useAsCollateral }: depositParams) => Promise<any>;
depositEarlyBirdRefBonus: ({ assetId, paymentAmount, useAsCollateral, ref }: depositEarlyBirdRefBonusParams) => Promise<any>;
withdraw: ({ assetId, amount }: withdrawParams) => Promise<any>;
borrow: ({ assetId, amount }: borrowParams) => Promise<any>;
repay: ({ assetId, paymentAmount }: repayParams) => Promise<any>;
redeemAtokens: ({ assetId, aTokensAmount }: redeemAtokensParams) => Promise<any>;
replenishWithAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<any>;
collapseDebt: ({ assetId, amount }: collapseDebtParams) => Promise<any>;
mintAtoken: ({ assetId, aTokensAmount }: replenishWithAtokenParams) => Promise<any>;
enableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<any>;
disableUseAsCollateral: ({ assetId }: AssetIdParam) => Promise<any>;
};

@@ -37,3 +37,3 @@ import { KeeperAPI } from './keeper';

};
export declare const broadcastInvoke: ({ nodeApi }: IConfig, signerOrKeeper: SignerOrKeeper, { dApp, func, args, fee, feeAssetId, payment }: broadcastInvokeParams, _fetch?: typeof fetch) => Promise<string>;
export declare const broadcastInvoke: ({ nodeApi }: IConfig, signerOrKeeper: SignerOrKeeper, { dApp, func, args, fee, feeAssetId, payment }: broadcastInvokeParams, _fetch?: typeof fetch) => Promise<any>;
declare type broadcastTransferParams = {

@@ -46,4 +46,4 @@ recipient: string;

};
export declare const broadcastTransfer: ({ nodeApi }: IConfig, signerOrKeeper: SignerOrKeeper, { recipient, assetId, amount, fee, feeAssetId }: broadcastTransferParams, _fetch?: typeof fetch) => Promise<string>;
export declare const broadcastTransfer: ({ nodeApi }: IConfig, signerOrKeeper: SignerOrKeeper, { recipient, assetId, amount, fee, feeAssetId }: broadcastTransferParams, _fetch?: typeof fetch) => Promise<any>;
export declare const signCustomData: (signerOrKeeper: SignerOrKeeper, bytes: string) => Promise<string>;
export {};

@@ -75,3 +75,3 @@ "use strict";

} })
}).then(function (x) { return JSON.parse(x).id; })
}).then(extractId)
: signerOrKeeper.invoke(__assign(__assign({}, params), { fee: fee, feeAssetId: feeAssetId })).broadcast()

@@ -104,9 +104,12 @@ .then(extractId)).then(function (txId) { return __awaiter(void 0, void 0, void 0, function () {

recipient: recipient,
amount: { assetId: assetId, amount: amount },
amount: {
coins: amount,
assetId: assetId,
},
fee: {
amount: fee,
coins: fee,
assetId: feeAssetId || 'WAVES',
},
}
}).then(function (x) { return JSON.parse(x).id; })
}).then(extractId)
: signerOrKeeper.transfer({

@@ -146,7 +149,7 @@ recipient: recipient,

var extractId = function (x) {
var _a, _b;
var y = x;
var id = (_b = (_a = y[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : y === null || y === void 0 ? void 0 : y.id;
return id;
var _a;
return typeof x === 'string'
? JSON.parse(x).id
: ((_a = x[0]) === null || _a === void 0 ? void 0 : _a.id) || (x === null || x === void 0 ? void 0 : x.id);
};
//# sourceMappingURL=generic.js.map
{
"name": "@vires.finance/dapp",
"version": "0.0.66",
"version": "0.0.67",
"description": "vires.finance smart contract interactions",

@@ -35,3 +35,3 @@ "keywords": [

"@types/ncp": "^2.0.5",
"@types/node": "^16.6.1",
"@types/node": "^16.7.1",
"@types/node-fetch": "^2.5.12",

@@ -41,8 +41,8 @@ "@waves/ts-contract": "0.0.17",

"@waves/waves-transactions": "^4.2.1",
"http-server": "13.0.0",
"http-server": "13.0.1",
"node-fetch": "^2.6.1",
"ts-loader": "^9.2.5",
"typescript": "^4.3.5",
"webpack": "^5.50.0",
"webpack-cli": "^4.7.2"
"webpack": "^5.51.1",
"webpack-cli": "^4.8.0"
},

@@ -49,0 +49,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

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