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

@chromia/bridge-client

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chromia/bridge-client - npm Package Compare versions

Comparing version 2.2.6 to 2.2.7

chunk-OJ5AYOYV.mjs

2

client/client.d.ts

@@ -14,3 +14,3 @@ import { BridgeClient } from './interface.js';

* @param {BrowserProvider | JsonRpcProvider} provider - Either a BrowserProvider or a JsonRpcProvider.
* @param {Session} ftSession - The FT4 Session.
* @param {Session=} ftSession - The FT4 Session. Optional.
* @returns {BridgeClient} A BridgeClient instance.

@@ -17,0 +17,0 @@ */

{
"name": "@chromia/bridge-client",
"version": "2.2.6",
"version": "2.2.7",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

@@ -13,2 +13,9 @@ import { QueryObject, Operation } from 'postchain-client';

}
declare enum WithdrawalStatus {
created = 0,
requested = 1,
pending = 2,
withdrawn = 3,
withdrawn_to_chromia = 4
}
type Erc20Withdrawal = {

@@ -43,3 +50,9 @@ transaction: number;

};
type Erc20WithdrawalHistoryEntry = {
withdrawal_id: number;
status: WithdrawalStatus;
timestamp: number;
};
type Erc20WithdrawalInfo = {
id: number;
serial: number;

@@ -52,2 +65,3 @@ network_id: number;

event_hash: Buffer;
status: WithdrawalStatus;
};

@@ -61,2 +75,3 @@ type WithdrawalFilter = {

tx_rid?: Buffer | null;
statuses?: WithdrawalStatus[] | null;
};

@@ -78,2 +93,3 @@ declare function getEventMerkleProofQueryObject(eventHash: string): QueryObject<Buffer>;

declare function getErc20DepositHistoryQueryObject(depositId: number): QueryObject<Erc20DepositHistoryEntry[]>;
declare function getErc20WithdrawalHistoryQueryObject(withdrawalId: number): QueryObject<Erc20WithdrawalHistoryEntry[]>;
declare function linkEvmEoaAccountOperation(address: Buffer): Operation;

@@ -84,2 +100,2 @@ declare function linkEvmScAccountOperation(address: Buffer, networkId: number): Operation;

export { BridgeMode, type DepositFilter, DepositState, type Erc20DepositHistoryEntry, type Erc20Info, type Erc20Withdrawal, type Erc20WithdrawalInfo, type GetScAddressesForAccountReturnType, type WithdrawalFilter, bridgeFt4TokenToEvmOperation, getAccountForEoaAddressQueryObject, getAccountForScAddressQueryObject, getEoaAddressesForAccountQueryObject, getErc20DepositHistoryQueryObject, getErc20DepositsQueryObject, getErc20ForAssetQueryObject, getErc20WithdrawalByTxQueryObject, getErc20WithdrawalQueryObject, getErc20WithdrawalsQueryObject, getEventMerkleProofQueryObject, getScAddressesForAccountQueryObject, linkEvmEoaAccountOperation, linkEvmScAccountOperation, recallPendingDepositOperation };
export { BridgeMode, type DepositFilter, DepositState, type Erc20DepositHistoryEntry, type Erc20Info, type Erc20Withdrawal, type Erc20WithdrawalHistoryEntry, type Erc20WithdrawalInfo, type GetScAddressesForAccountReturnType, type WithdrawalFilter, WithdrawalStatus, bridgeFt4TokenToEvmOperation, getAccountForEoaAddressQueryObject, getAccountForScAddressQueryObject, getEoaAddressesForAccountQueryObject, getErc20DepositHistoryQueryObject, getErc20DepositsQueryObject, getErc20ForAssetQueryObject, getErc20WithdrawalByTxQueryObject, getErc20WithdrawalHistoryQueryObject, getErc20WithdrawalQueryObject, getErc20WithdrawalsQueryObject, getEventMerkleProofQueryObject, getScAddressesForAccountQueryObject, linkEvmEoaAccountOperation, linkEvmScAccountOperation, recallPendingDepositOperation };

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

DepositState: () => DepositState,
WithdrawalStatus: () => WithdrawalStatus,
bridgeFt4TokenToEvmOperation: () => bridgeFt4TokenToEvmOperation,

@@ -34,2 +35,3 @@ getAccountForEoaAddressQueryObject: () => getAccountForEoaAddressQueryObject,

getErc20WithdrawalByTxQueryObject: () => getErc20WithdrawalByTxQueryObject,
getErc20WithdrawalHistoryQueryObject: () => getErc20WithdrawalHistoryQueryObject,
getErc20WithdrawalQueryObject: () => getErc20WithdrawalQueryObject,

@@ -55,2 +57,10 @@ getErc20WithdrawalsQueryObject: () => getErc20WithdrawalsQueryObject,

})(BridgeMode || {});
var WithdrawalStatus = /* @__PURE__ */ ((WithdrawalStatus2) => {
WithdrawalStatus2[WithdrawalStatus2["created"] = 0] = "created";
WithdrawalStatus2[WithdrawalStatus2["requested"] = 1] = "requested";
WithdrawalStatus2[WithdrawalStatus2["pending"] = 2] = "pending";
WithdrawalStatus2[WithdrawalStatus2["withdrawn"] = 3] = "withdrawn";
WithdrawalStatus2[WithdrawalStatus2["withdrawn_to_chromia"] = 4] = "withdrawn_to_chromia";
return WithdrawalStatus2;
})(WithdrawalStatus || {});
function getEventMerkleProofQueryObject(eventHash) {

@@ -126,2 +136,8 @@ return {

}
function getErc20WithdrawalHistoryQueryObject(withdrawalId) {
return {
name: "eif.hbridge.get_erc20_withdrawal_history",
args: { withdrawal_id: withdrawalId }
};
}
function linkEvmEoaAccountOperation(address) {

@@ -149,2 +165,3 @@ return { name: "eif.hbridge.link_evm_eoa_account", args: [address] };

DepositState,
WithdrawalStatus,
bridgeFt4TokenToEvmOperation,

@@ -158,2 +175,3 @@ getAccountForEoaAddressQueryObject,

getErc20WithdrawalByTxQueryObject,
getErc20WithdrawalHistoryQueryObject,
getErc20WithdrawalQueryObject,

@@ -160,0 +178,0 @@ getErc20WithdrawalsQueryObject,

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

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