New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@broxus/js-core

Package Overview
Dependencies
Maintainers
0
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@broxus/js-core - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

16

dist/cjs/models/dex-account/DexAccount.js

@@ -18,6 +18,6 @@ "use strict";

const core_1 = require("../../core");
const models_1 = require("../../models");
const contracts_1 = require("../../models/dex-account/contracts");
const DexAccountUtils_1 = require("../../models/dex-account/DexAccountUtils");
const TvmTokenUtils_1 = require("../../models/tvm-token/TvmTokenUtils");
const dex_pair_1 = require("../../models/dex-pair");
const tvm_token_1 = require("../../models/tvm-token");
const tvm_token_wallet_1 = require("../../models/tvm-token-wallet");

@@ -193,2 +193,3 @@ const utils_1 = require("../../utils");

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -257,2 +258,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -291,3 +293,3 @@ return transaction;

?? (params.senderAddress && params.tokenAddress
? await TvmTokenUtils_1.TvmTokenUtils.walletOf(this._connection, {
? await tvm_token_1.TvmToken.Utils.walletOf(this._connection, {
ownerAddress: params.senderAddress,

@@ -334,3 +336,3 @@ tokenAddress: params.tokenAddress,

.delayed(s => s.first());
const message = await tvm_token_wallet_1.TvmTokenWalletUtils.transferToWallet(this._provider, senderTokenWalletAddress, {
const message = await tvm_token_wallet_1.TvmTokenWallet.Utils.transferToWallet(this._provider, senderTokenWalletAddress, {
amount: params.amount,

@@ -346,2 +348,3 @@ recipientTokenWallet: params.recipientTokenWallet,

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -384,3 +387,3 @@ return transaction;

.filterMap(async (tx) => {
const decodedTx = await (0, models_1.dexPairCallbacksContract)(this._connection, senderAddress).decodeTransaction({
const decodedTx = await (0, dex_pair_1.dexPairCallbacksContract)(this._connection, senderAddress).decodeTransaction({
methods: [

@@ -443,2 +446,3 @@ 'dexPairOperationCancelled',

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -509,2 +513,3 @@ return transaction;

callId,
deployWalletGrams: params.deployWalletGrams,
recipientAddress: params.recipientAddress,

@@ -520,2 +525,3 @@ sendGasTo: params.sendGasTo,

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -522,0 +528,0 @@ return transaction;

@@ -143,2 +143,6 @@ "use strict";

}
async getPoolDirectNoFeeWithdrawGas(params) {
const result = await DexGasValues.Utils.getPoolDirectNoFeeWithdrawGas(this._connection, this.address, params, this.contractState);
return calcGas(result.fixedValue, result.dynamicGas, this.options?.gasPrice);
}
}

@@ -200,1 +204,7 @@ exports.DexGasValues = DexGasValues;

], DexGasValues.prototype, "getDeployPoolGas", null);
__decorate([
mobx_1.action.bound,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DexGasValues.prototype, "getPoolDirectNoFeeWithdrawGas", null);

@@ -53,3 +53,15 @@ "use strict";

}
static async getPoolDirectNoFeeWithdrawGas(connection, address, params, cachedState) {
if (params.tokenCount < 2) {
throw new Error('Tokens count can`t be lower than 2');
}
const result = await (0, contracts_1.dexGasValuesContract)(connection, address)
.methods.getPoolDirectNoFeeWithdrawGas({
deployWalletValue: params.deployWalletValue,
N: params.tokenCount,
})
.call({ cachedState });
return result.value0;
}
}
exports.DexGasValuesUtils = DexGasValuesUtils;

@@ -18,4 +18,5 @@ "use strict";

const TvmContractWrapper_1 = require("../../core/TvmContractWrapper");
const models_1 = require("../../models");
const contracts_1 = require("../../models/dex-pair/contracts");
const DexPairUtils_1 = require("../../models/dex-pair/DexPairUtils");
const tvm_token_1 = require("../../models/tvm-token");
const utils_1 = require("../../utils");

@@ -178,3 +179,3 @@ class DexPair extends TvmContractWrapper_1.TvmContractWrapper {

.filterMap(async (tx) => {
const decodedTx = await (0, models_1.dexPairCallbacksContract)(this._connection, params.ownerAddress).decodeTransaction({
const decodedTx = await (0, contracts_1.dexPairCallbacksContract)(this._connection, params.ownerAddress).decodeTransaction({
methods: ['dexPairOperationCancelled', 'dexPairWithdrawSuccess'],

@@ -208,7 +209,7 @@ transaction: tx,

const ownerLpWalletAddress = params.ownerLpWalletAddress
?? (await models_1.TvmTokenUtils.walletOf(this._connection, {
?? (await tvm_token_1.TvmToken.Utils.walletOf(this._connection, {
ownerAddress: params.ownerAddress,
tokenAddress: this.lpToken.address,
}, this.lpToken.contractState));
const lpUserWallet = await models_1.TvmTokenWallet.create(this._connection, { address: ownerLpWalletAddress }, { sync: true }, this._provider);
const lpUserWallet = await tvm_token_1.TvmToken.Wallet.create(this._connection, { address: ownerLpWalletAddress }, { sync: true }, this._provider);
if (!this.lpWallet?.isDeployed || !lpUserWallet?.isDeployed) {

@@ -233,2 +234,3 @@ (0, js_utils_1.throwException)('LP wallets not exists');

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -235,0 +237,0 @@ return transaction;

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

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
if (params.expectedAddress) {

@@ -253,2 +254,3 @@ await stream();

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
if (params.expectedAddress) {

@@ -255,0 +257,0 @@ await stream();

@@ -16,7 +16,7 @@ "use strict";

const console_1 = require("../../console");
const TvmContractWrapper_1 = require("../../core/TvmContractWrapper");
const core_1 = require("../../core");
const tvm_token_1 = require("../../models/tvm-token");
const TvmTokenWalletUtils_1 = require("../../models/tvm-token-wallet/TvmTokenWalletUtils");
const utils_1 = require("../../utils");
class TvmTokenWallet extends TvmContractWrapper_1.TvmContractWrapper {
class TvmTokenWallet extends core_1.TvmContractWrapper {
_connection;

@@ -23,0 +23,0 @@ options;

@@ -93,3 +93,4 @@ "use strict";

transaction = await message.transaction;
await stream?.();
await params.onTransactionSent?.({ callId, transaction });
await stream();
return transaction;

@@ -96,0 +97,0 @@ }

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

const core_1 = require("../../core");
const models_1 = require("../../models");
const tvm_token_1 = require("../../models/tvm-token");
const VaultTokenWalletUtils_1 = require("../../models/vault-token-wallet/VaultTokenWalletUtils");

@@ -48,3 +48,3 @@ const utils_1 = require("../../utils");

else {
address = await models_1.TvmToken.Utils.walletOf(connection, {
address = await tvm_token_1.TvmToken.Utils.walletOf(connection, {
ownerAddress: config.ownerAddress,

@@ -51,0 +51,0 @@ tokenAddress: config.tokenAddress,

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

const console_1 = require("../../console");
const models_1 = require("../../models");
const tvm_token_1 = require("../../models/tvm-token");
const contracts_1 = require("../../models/vault-token-wallet/contracts");

@@ -133,3 +133,3 @@ const utils_1 = require("../../utils");

else if ('tokenAddress' in params && 'ownerAddress' in params) {
tokenWalletAddress = await models_1.TvmToken.Utils.walletOf(connection, params);
tokenWalletAddress = await tvm_token_1.TvmToken.Utils.walletOf(connection, params);
}

@@ -136,0 +136,0 @@ // @ts-ignore

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

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -271,2 +272,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -340,2 +342,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -411,2 +414,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -413,0 +417,0 @@ return transaction;

@@ -8,7 +8,7 @@ "use strict";

const bignumber_js_1 = __importDefault(require("bignumber.js"));
const models_1 = require("../../models");
const contracts_1 = require("../../models/wrapped-currency-vault/contracts");
const utils_1 = require("../../utils");
class WrappedCurrencyVaultUtils {
static async wrap(provider, vaultAddress, params, args) {
return (0, models_1.wrappedCurrencyVaultContract)(provider, vaultAddress)
return (0, contracts_1.wrappedCurrencyVaultContract)(provider, vaultAddress)
.methods.wrap({

@@ -15,0 +15,0 @@ gas_back_address: (0, utils_1.resolveTvmAddress)(params.remainingGasTo),

import { type Address, type ProviderRpcClient, type SendInternalParams, type Subscriber, type Transaction } from 'everscale-inpage-provider';
import { TvmContractWrapper } from '../../core';
import { type DexPairDepositLiquiditySuccess, type DexPairDepositLiquiditySuccessV2, type DexPairOperationCancelled } from '../../models';
import { type Dex } from '../../models/dex';
import { type DexAccountAddPairAbiParams, type DexAccountAddPoolAbiParams, type DexAccountDepositLiquidityAbiParams, DexAccountUtils, type DexAccountWithdrawAbiParams } from '../../models/dex-account/DexAccountUtils';
import { type DexPairDepositLiquiditySuccess, type DexPairDepositLiquiditySuccessV2, type DexPairOperationCancelled } from '../../models/dex-pair';
import { type TvmTokenWalletTransferToWalletAbiParams } from '../../models/tvm-token-wallet';

@@ -7,0 +7,0 @@ import { type CallId, type Forceable, type SendMessageCallback, type Silentable, type Syncable, type TransactionCallbacks, type TransactionFailureReason, type TransactionSuccessResult, type Watchable } from '../../types';

@@ -15,7 +15,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

import { TvmContractWrapper } from '../../core';
import { dexPairCallbacksContract, } from '../../models';
import { dexAccountContract } from '../../models/dex-account/contracts';
import { DexAccountUtils, } from '../../models/dex-account/DexAccountUtils';
import { TvmTokenUtils } from '../../models/tvm-token/TvmTokenUtils';
import { TvmTokenWalletUtils } from '../../models/tvm-token-wallet';
import { dexPairCallbacksContract, } from '../../models/dex-pair';
import { TvmToken } from '../../models/tvm-token';
import { TvmTokenWallet } from '../../models/tvm-token-wallet';
import { ProviderNotDefinedError, contractStateChangeDebugMessage, getRandomUint, isAddressesEquals, resolveTvmAddress, subscribeDebugMessage, syncErrorMessage, unsubscribeDebugMessage, unsubscribeErrorMessage, } from '../../utils';

@@ -190,2 +190,3 @@ export class DexAccount extends TvmContractWrapper {

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -254,2 +255,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -288,3 +290,3 @@ return transaction;

?? (params.senderAddress && params.tokenAddress
? await TvmTokenUtils.walletOf(this._connection, {
? await TvmToken.Utils.walletOf(this._connection, {
ownerAddress: params.senderAddress,

@@ -331,3 +333,3 @@ tokenAddress: params.tokenAddress,

.delayed(s => s.first());
const message = await TvmTokenWalletUtils.transferToWallet(this._provider, senderTokenWalletAddress, {
const message = await TvmTokenWallet.Utils.transferToWallet(this._provider, senderTokenWalletAddress, {
amount: params.amount,

@@ -343,2 +345,3 @@ recipientTokenWallet: params.recipientTokenWallet,

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -439,2 +442,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -505,2 +509,3 @@ return transaction;

callId,
deployWalletGrams: params.deployWalletGrams,
recipientAddress: params.recipientAddress,

@@ -516,2 +521,3 @@ sendGasTo: params.sendGasTo,

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -518,0 +524,0 @@ return transaction;

import { type Address, type ProviderRpcClient, type Subscriber } from 'everscale-inpage-provider';
import { TvmContractWrapper } from '../../core';
import { type DexCtorOptions } from '../../models/dex';
import { DexGasValuesUtils, type GetAccountDepositGas, type GetAccountWithdrawGas, type GetAddPoolGasAbiParams, type GetDeployPoolGasAbiParams } from '../../models/dex-gas-values/DexGasValuesUtils';
import { DexGasValuesUtils, type GetAccountDepositGas, type GetAccountWithdrawGas, type GetAddPoolGasAbiParams, type GetDeployPoolGasAbiParams, type GetPoolDirectNoFeeWithdrawGasAbiParams } from '../../models/dex-gas-values/DexGasValuesUtils';
import { type Forceable, type Silentable, type Syncable, type Watchable } from '../../types';

@@ -46,2 +46,3 @@ /**

getDeployPoolGas(params: GetDeployPoolGasAbiParams): Promise<string>;
getPoolDirectNoFeeWithdrawGas(params: GetPoolDirectNoFeeWithdrawGasAbiParams): Promise<string>;
}

@@ -136,2 +136,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
async getPoolDirectNoFeeWithdrawGas(params) {
const result = await DexGasValues.Utils.getPoolDirectNoFeeWithdrawGas(this._connection, this.address, params, this.contractState);
return calcGas(result.fixedValue, result.dynamicGas, this.options?.gasPrice);
}
}

@@ -192,1 +196,7 @@ __decorate([

], DexGasValues.prototype, "getDeployPoolGas", null);
__decorate([
action.bound,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DexGasValues.prototype, "getPoolDirectNoFeeWithdrawGas", null);

@@ -19,2 +19,6 @@ import { type Address, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';

}
export interface GetPoolDirectNoFeeWithdrawGasAbiParams {
deployWalletValue: string | number;
tokenCount: number;
}
export declare abstract class DexGasValuesUtils {

@@ -27,2 +31,3 @@ static getDeployAccountGas(connection: ProviderRpcClient, address: Address | string, cachedState?: FullContractState): Promise<GasValuesResponse>;

static getDeployPoolGas(connection: ProviderRpcClient, address: Address | string, params: GetDeployPoolGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
static getPoolDirectNoFeeWithdrawGas(connection: ProviderRpcClient, address: Address | string, params: GetPoolDirectNoFeeWithdrawGasAbiParams, cachedState?: FullContractState): Promise<GasValuesResponse>;
}

@@ -50,2 +50,14 @@ import { ZeroAddress } from '../../constants';

}
static async getPoolDirectNoFeeWithdrawGas(connection, address, params, cachedState) {
if (params.tokenCount < 2) {
throw new Error('Tokens count can`t be lower than 2');
}
const result = await dexGasValuesContract(connection, address)
.methods.getPoolDirectNoFeeWithdrawGas({
deployWalletValue: params.deployWalletValue,
N: params.tokenCount,
})
.call({ cachedState });
return result.value0;
}
}
import { type Address, type ProviderRpcClient, type SendInternalParams, type Subscriber, type Transaction } from 'everscale-inpage-provider';
import { TvmContractWrapper } from '../../core/TvmContractWrapper';
import { type DexPairOperationCancelled, type DexPairWithdrawSuccess } from '../../models';
import { type Dex, type DexDeployPairCallbacks } from '../../models/dex';
import { type DexPairFullDetails, DexPairUtils } from '../../models/dex-pair/DexPairUtils';
import { type DexPairOperationCancelled, type DexPairWithdrawSuccess } from '../../models/dex-pair/types';
import { type CallId, type Forceable, type SendMessageCallback, type Silentable, type Syncable, type TransactionCallbacks, type TransactionFailureReason, type TransactionSuccessResult, type Watchable } from '../../types';

@@ -30,3 +30,3 @@ export interface DexPairCtorOptions {

amount: string | number;
deployWalletGrams?: string;
deployWalletGrams?: string | number;
lastLt?: string;

@@ -33,0 +33,0 @@ notify?: boolean;

@@ -15,4 +15,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

import { TvmContractWrapper } from '../../core/TvmContractWrapper';
import { TvmTokenUtils, TvmTokenWallet, dexPairCallbacksContract, } from '../../models';
import { dexPairCallbacksContract } from '../../models/dex-pair/contracts';
import { DexPairUtils } from '../../models/dex-pair/DexPairUtils';
import { TvmToken } from '../../models/tvm-token';
import { ProviderNotDefinedError, contractStateChangeDebugMessage, getRandomUint, isAddressesEquals, resolveTvmAddress, subscribeDebugMessage, syncErrorMessage, unsubscribeDebugMessage, unsubscribeErrorMessage, } from '../../utils';

@@ -204,7 +205,7 @@ export class DexPair extends TvmContractWrapper {

const ownerLpWalletAddress = params.ownerLpWalletAddress
?? (await TvmTokenUtils.walletOf(this._connection, {
?? (await TvmToken.Utils.walletOf(this._connection, {
ownerAddress: params.ownerAddress,
tokenAddress: this.lpToken.address,
}, this.lpToken.contractState));
const lpUserWallet = await TvmTokenWallet.create(this._connection, { address: ownerLpWalletAddress }, { sync: true }, this._provider);
const lpUserWallet = await TvmToken.Wallet.create(this._connection, { address: ownerLpWalletAddress }, { sync: true }, this._provider);
if (!this.lpWallet?.isDeployed || !lpUserWallet?.isDeployed) {

@@ -229,2 +230,3 @@ throwException('LP wallets not exists');

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -231,0 +233,0 @@ return transaction;

import { type Address, type ProviderRpcClient, type Subscriber } from 'everscale-inpage-provider';
import { TvmContractWrapper } from '../../core';
import { type Dex } from '../../models';
import { type Dex } from '../../models/dex';
import { DexStablePoolUtils, type StablePoolFullDetails } from '../../models/dex-stable-pool/DexStablePoolUtils';

@@ -5,0 +5,0 @@ import { type Forceable, type Silentable, type Syncable, type Watchable } from '../../types';

@@ -179,2 +179,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
if (params.expectedAddress) {

@@ -250,2 +251,3 @@ await stream();

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
if (params.expectedAddress) {

@@ -252,0 +254,0 @@ await stream();

import { type Address, type DelayedMessageExecution, type ProviderRpcClient, type SendInternalParams, type Subscriber } from 'everscale-inpage-provider';
import { TvmContractWrapper } from '../../core/TvmContractWrapper';
import { TvmContractWrapper } from '../../core';
import { type TvmTokenWalletBurnAbiParams, type TvmTokenWalletDestroyAbiParams, type TvmTokenWalletTransferAbiParams, type TvmTokenWalletTransferToWalletAbiParams, TvmTokenWalletUtils } from '../../models/tvm-token-wallet/TvmTokenWalletUtils';

@@ -4,0 +4,0 @@ import { type Forceable, type Silentable, type Syncable, type Watchable } from '../../types';

@@ -13,3 +13,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

import { errorLabelStyle, inheritTextStyle } from '../../console';
import { TvmContractWrapper } from '../../core/TvmContractWrapper';
import { TvmContractWrapper } from '../../core';
import { TvmToken } from '../../models/tvm-token';

@@ -16,0 +16,0 @@ import { TvmTokenWalletUtils, } from '../../models/tvm-token-wallet/TvmTokenWalletUtils';

@@ -90,3 +90,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

transaction = await message.transaction;
await stream?.();
await params.onTransactionSent?.({ callId, transaction });
await stream();
return transaction;

@@ -93,0 +94,0 @@ }

@@ -14,3 +14,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

import { TvmContractWrapper } from '../../core';
import { TvmToken } from '../../models';
import { TvmToken } from '../../models/tvm-token';
import { VaultTokenWalletUtils, } from '../../models/vault-token-wallet/VaultTokenWalletUtils';

@@ -17,0 +17,0 @@ import { ProviderNotDefinedError, contractStateChangeDebugMessage, isAddressesEquals, subscribeDebugMessage, unsubscribeDebugMessage, unsubscribeErrorMessage, } from '../../utils';

import { debug, groupCollapsed, groupEnd, sliceAddress } from '@broxus/js-utils';
import { getScanLink, inheritTextStyle, successLabelStyle, successTextStyle } from '../../console';
import { TvmToken } from '../../models';
import { TvmToken } from '../../models/tvm-token';
import { vaultTokenWalletContract } from '../../models/vault-token-wallet/contracts';

@@ -5,0 +5,0 @@ import { getFullContractState, resolveTvmAddress } from '../../utils';

@@ -199,2 +199,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -268,2 +269,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -337,2 +339,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -408,2 +411,3 @@ return transaction;

transaction = await message.transaction;
await params.onTransactionSent?.({ callId, transaction });
await stream();

@@ -410,0 +414,0 @@ return transaction;

@@ -1,4 +0,2 @@

import { type Address, type DelayedMessageExecution, type FullContractState, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider';
import { type DecodedEvent } from 'everscale-inpage-provider/dist/contract';
import { type AbiEventName } from 'everscale-inpage-provider/dist/models';
import { type AbiEventName, type Address, type DecodedEvent, type DelayedMessageExecution, type FullContractState, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider';
import { type VoteEscrowAbi } from '../../models/vote-escrow/abi/VoteEscrow.abi';

@@ -5,0 +3,0 @@ import { type CallId } from '../../types';

import BigNumber from 'bignumber.js';
import { wrappedCurrencyVaultContract } from '../../models';
import { wrappedCurrencyVaultContract } from '../../models/wrapped-currency-vault/contracts';
import { resolveTvmAddress } from '../../utils';

@@ -4,0 +4,0 @@ export class WrappedCurrencyVaultUtils {

@@ -103,6 +103,10 @@ import { type Address, type DelayedMessageExecution, type Transaction } from 'everscale-inpage-provider';

}
export interface TransactionCallbacks<Result = any, Reason = any> {
export interface TransactionCallbacks<Result = any, Reason = any, SentDetails = any> {
onTransactionFailure?: (reason: Reason) => Promise<void> | void;
onTransactionSent?: (details: SentDetails) => Promise<void> | void;
onTransactionSuccess?: (result: Result) => Promise<void> | void;
}
export type TransactionSentDetails<AdditionalParams = {}> = AdditionalParams & CallId & {
transaction: Transaction;
};
export type TransactionSuccessResult<Input = any, AdditionalParams = {}> = AdditionalParams & CallId & {

@@ -109,0 +113,0 @@ input: Input;

{
"name": "@broxus/js-core",
"version": "0.17.0",
"version": "0.17.1",
"description": "MobX-based JavaScript Core library",

@@ -63,3 +63,3 @@ "license": "MIT",

},
"gitHead": "36491d93b1377d2e67dde19fe841a362994325c5"
"gitHead": "7a20a91ce76bd561c9c7526d077ce19e0e74171c"
}

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