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

@defichain/jellyfish-api-core

Package Overview
Dependencies
Maintainers
2
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@defichain/jellyfish-api-core - npm Package Compare versions

Comparing version 3.30.4 to 3.31.0

39

dist/category/account.d.ts

@@ -49,2 +49,15 @@ import BigNumber from 'bignumber.js';

}
export declare enum TransferDomainType {
NONE = 0,
/** type reserved for UTXO */
UTXO = 1,
/** type for DVM Token To EVM transfer */
DVM = 2,
/** type for EVM To DVM Token transfer */
EVM = 3
}
export declare enum TransferDomainKey {
SRC = "src",
DST = "dst"
}
/**

@@ -166,2 +179,3 @@ * Account RPCs for DeFi Blockchain

* @param {boolean} [options.symbolLookup=false] use token symbols in output, default = false
* @param {boolean} [options.includeEth=false] to include Eth balances in output, default = false
* @return {Promise<string[]>} resolves as [ '300.00000000@0', '200.00000000@1' ]

@@ -181,2 +195,3 @@ */

* @param {boolean} [options.symbolLookup=false] use token symbols in output, default = false
* @param {boolean} [options.includeEth=false] to include Eth balances in output, default = false
* @return {Promise<AccountAmount>} resolves as { '0': 300, '1': 200 }

@@ -186,2 +201,3 @@ */

symbolLookup: false;
includeEth: false;
}): Promise<AccountAmount>;

@@ -199,2 +215,3 @@ /**

* @param {boolean} [options.symbolLookup=false] use token symbols in output, default = false
* @param {boolean} [options.includeEth=false] to include Eth balances in output, default = false
* @return {Promise<string[]>} resolves as [ '300.00000000@DFI', '200.00000000@DBTC' ]

@@ -204,2 +221,3 @@ */

symbolLookup: true;
includeEth: false;
}): Promise<string[]>;

@@ -217,2 +235,3 @@ /**

* @param {boolean} [options.symbolLookup=false] use token symbols in output, default = false
* @param {boolean} [options.includeEth=false] to include Eth balances in output, default = false
* @return {Promise<AccountAmount>} resolves as { DFI: 300, DBTC: 200 }

@@ -222,2 +241,3 @@ */

symbolLookup: true;
includeEth: false;
}): Promise<AccountAmount>;

@@ -251,2 +271,15 @@ /**

/**
* Create an transfer domain transaction submitted to a connected node.
*
* @param {Array<Record<TransferDomainKey, TransferDomainInfo>>} payload[]
* @param {Record<TransferDomainKey, TransferDomainInfo>} payload
* @param {TransferDomainInfo} info
* @param {string} info.address
* @param {string} info.amount
* @param {TransferDomainType} info.domain
* @param {string} [info.data] optional data, note: currently its not used
* @return {Promise<string>}
*/
transferDomain(payload: Array<Record<TransferDomainKey, TransferDomainInfo>>): Promise<string>;
/**
* Create an Account to UTXOS transaction submitted to a connected node.

@@ -421,2 +454,3 @@ * Optionally, specific UTXOs to spend to create that transaction.

symbolLookup?: boolean;
includeEth?: boolean;
}

@@ -576,2 +610,7 @@ export interface BalanceTransferPayload {

}
export interface TransferDomainInfo {
address: string;
amount: string;
domain: TransferDomainType;
}
//# sourceMappingURL=account.d.ts.map

41

dist/category/account.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.Account = exports.SelectionModeType = exports.Format = exports.DfTxType = exports.OwnerType = void 0;
exports.Account = exports.TransferDomainKey = exports.TransferDomainType = exports.SelectionModeType = exports.Format = exports.DfTxType = exports.OwnerType = void 0;
/**

@@ -64,2 +64,18 @@ * Single account ID (CScript or address) or reserved words,

})(SelectionModeType = exports.SelectionModeType || (exports.SelectionModeType = {}));
var TransferDomainType;
(function (TransferDomainType) {
TransferDomainType[TransferDomainType["NONE"] = 0] = "NONE";
/** type reserved for UTXO */
TransferDomainType[TransferDomainType["UTXO"] = 1] = "UTXO";
/** type for DVM Token To EVM transfer */
TransferDomainType[TransferDomainType["DVM"] = 2] = "DVM";
/** type for EVM To DVM Token transfer */
TransferDomainType[TransferDomainType["EVM"] = 3] = "EVM";
})(TransferDomainType = exports.TransferDomainType || (exports.TransferDomainType = {}));
;
var TransferDomainKey;
(function (TransferDomainKey) {
TransferDomainKey["SRC"] = "src";
TransferDomainKey["DST"] = "dst";
})(TransferDomainKey = exports.TransferDomainKey || (exports.TransferDomainKey = {}));
/**

@@ -84,6 +100,6 @@ * Account RPCs for DeFi Blockchain

}
getTokenBalances(pagination = { limit: 100 }, indexedAmounts = false, options = { symbolLookup: false }) {
getTokenBalances(pagination = { limit: 100 }, indexedAmounts = false, options = { symbolLookup: false, includeEth: false }) {
return __awaiter(this, void 0, void 0, function* () {
const { symbolLookup } = options;
return yield this.client.call('gettokenbalances', [pagination, indexedAmounts, symbolLookup], 'bignumber');
const { symbolLookup, includeEth } = options;
return yield this.client.call('gettokenbalances', [pagination, indexedAmounts, symbolLookup, includeEth], 'bignumber');
});

@@ -126,2 +142,19 @@ }

/**
* Create an transfer domain transaction submitted to a connected node.
*
* @param {Array<Record<TransferDomainKey, TransferDomainInfo>>} payload[]
* @param {Record<TransferDomainKey, TransferDomainInfo>} payload
* @param {TransferDomainInfo} info
* @param {string} info.address
* @param {string} info.amount
* @param {TransferDomainType} info.domain
* @param {string} [info.data] optional data, note: currently its not used
* @return {Promise<string>}
*/
transferDomain(payload) {
return __awaiter(this, void 0, void 0, function* () {
return yield this.client.call('transferdomain', [payload], 'number');
});
}
/**
* Create an Account to UTXOS transaction submitted to a connected node.

@@ -128,0 +161,0 @@ * Optionally, specific UTXOs to spend to create that transaction.

3

dist/category/wallet.d.ts

@@ -11,3 +11,4 @@ import { ApiClient } from '../.';

P2SH_SEGWIT = "p2sh-segwit",
BECH32 = "bech32"
BECH32 = "bech32",
ETH = "eth"
}

@@ -14,0 +15,0 @@ export declare enum ScriptType {

@@ -24,2 +24,3 @@ "use strict";

AddressType["BECH32"] = "bech32";
AddressType["ETH"] = "eth";
})(AddressType = exports.AddressType || (exports.AddressType = {}));

@@ -26,0 +27,0 @@ var ScriptType;

{
"private": false,
"name": "@defichain/jellyfish-api-core",
"version": "3.30.4",
"version": "3.31.0",
"description": "SDK & Ecosystem for building modern lite DeFi Applications at scale.",

@@ -17,7 +17,7 @@ "repository": "BirthdayResearch/jellyfishsdk",

"dependencies": {
"@defichain/jellyfish-json": "3.30.4"
"@defichain/jellyfish-json": "3.31.0"
},
"peerDependencies": {
"defichain": "^3.30.4"
"defichain": "^3.31.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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