@coinmasters/toolbox-evm
Advanced tools
Comparing version 4.0.1 to 4.0.2
import type { Asset } from '@coinmasters/types'; | ||
import { AssetValue } from '@coinmasters/helpers'; | ||
import { BaseDecimal } from '@coinmasters/types'; | ||
import { BaseDecimal as BaseDecimal_2 } from '@swapkit/types'; | ||
import type { BigNumberish } from 'ethers'; | ||
import { BrowserProvider } from 'ethers'; | ||
import { Chain } from '@coinmasters/types'; | ||
import { Chain as Chain_2 } from '@swapkit/types'; | ||
import { ChainId } from '@coinmasters/types'; | ||
import { ChainId as ChainId_2 } from '@swapkit/types'; | ||
import { Contract } from 'ethers'; | ||
@@ -15,6 +12,4 @@ import { ContractTransaction } from 'ethers'; | ||
import { EVMChain } from '@coinmasters/types'; | ||
import { EVMChain as EVMChain_2 } from '@swapkit/types'; | ||
import type { EVMTxBaseParams } from '@coinmasters/types'; | ||
import { FeeOption } from '@coinmasters/types'; | ||
import { FeeOption as FeeOption_2 } from '@swapkit/types'; | ||
import { Fragment } from 'ethers'; | ||
@@ -27,3 +22,2 @@ import { HDNodeWallet } from 'ethers'; | ||
import { RPCUrl } from '@coinmasters/types'; | ||
import { RPCUrl as RPCUrl_2 } from '@swapkit/types'; | ||
import { Signer } from 'ethers'; | ||
@@ -35,3 +29,2 @@ import type { Transaction } from 'ethers'; | ||
import { WalletTxParams } from '@coinmasters/types'; | ||
import { WalletTxParams as WalletTxParams_2 } from '@swapkit/types'; | ||
@@ -495,3 +488,3 @@ export declare const addAccountsChangedCallback: (callback: () => void) => void; | ||
export declare const getToolboxByChain: (chain: EVMChain_2) => Promise<(({ api, provider, signer, covalentApiKey, }: { | ||
export declare const getToolboxByChain: (chain: EVMChain) => Promise<(({ api, provider, signer, covalentApiKey, }: { | ||
api?: { | ||
@@ -501,3 +494,3 @@ getBalance: (address: any) => Promise<{ | ||
decimal: number; | ||
chain: Chain_2; | ||
chain: Chain; | ||
symbol: string; | ||
@@ -511,8 +504,8 @@ }[]>; | ||
getNetworkParams: () => { | ||
chainId: ChainId_2; | ||
chainId: ChainId; | ||
chainName: string; | ||
nativeCurrency: { | ||
name: string; | ||
symbol: Chain_2; | ||
decimals: BaseDecimal_2; | ||
symbol: Chain; | ||
decimals: BaseDecimal; | ||
}; | ||
@@ -531,3 +524,3 @@ rpcUrls: string[]; | ||
estimateCall: (params: EstimateCallParams) => Promise<bigint>; | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams_2 & { | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams & { | ||
assetValue: AssetValue; | ||
@@ -569,3 +562,3 @@ }) => Promise<bigint>; | ||
isApproved: (params: IsApprovedParams) => Promise<boolean>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption_2) => Promise<string | TransactionResponse>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption) => Promise<string | TransactionResponse>; | ||
transfer: (params: TransferParams) => Promise<string | TransactionResponse>; | ||
@@ -576,3 +569,3 @@ validateAddress: (address: string) => boolean; | ||
getBalance: (address: string) => Promise<{ | ||
chain: Chain_2; | ||
chain: Chain; | ||
symbol: string; | ||
@@ -596,3 +589,3 @@ value: string; | ||
estimateCall: (params: EstimateCallParams) => Promise<bigint>; | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams_2 & { | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams & { | ||
assetValue: AssetValue; | ||
@@ -634,3 +627,3 @@ }) => Promise<bigint>; | ||
isApproved: (params: IsApprovedParams) => Promise<boolean>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption_2) => Promise<string | TransactionResponse>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption) => Promise<string | TransactionResponse>; | ||
transfer: (params: TransferParams) => Promise<string | TransactionResponse>; | ||
@@ -643,3 +636,3 @@ validateAddress: (address: string) => boolean; | ||
decimal: number; | ||
chain: Chain_2; | ||
chain: Chain; | ||
symbol: string; | ||
@@ -658,10 +651,10 @@ }[]>; | ||
getNetworkParams: () => { | ||
chainId: ChainId_2; | ||
chainId: ChainId; | ||
chainName: string; | ||
nativeCurrency: { | ||
name: string; | ||
symbol: Chain_2; | ||
decimals: BaseDecimal_2; | ||
symbol: Chain; | ||
decimals: BaseDecimal; | ||
}; | ||
rpcUrls: RPCUrl_2[]; | ||
rpcUrls: RPCUrl[]; | ||
blockExplorerUrls: string[]; | ||
@@ -698,7 +691,7 @@ }; | ||
estimateCall: (params: EstimateCallParams) => Promise<bigint>; | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams_2 & { | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams & { | ||
assetValue: AssetValue; | ||
}) => Promise<bigint>; | ||
isApproved: (params: IsApprovedParams) => Promise<boolean>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption_2) => Promise<string | TransactionResponse>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption) => Promise<string | TransactionResponse>; | ||
transfer: (params: TransferParams) => Promise<string | TransactionResponse>; | ||
@@ -711,3 +704,3 @@ validateAddress: (address: string) => boolean; | ||
decimal: number; | ||
chain: Chain_2; | ||
chain: Chain; | ||
symbol: string; | ||
@@ -721,10 +714,10 @@ }[]>; | ||
getNetworkParams: () => { | ||
chainId: ChainId_2; | ||
chainId: ChainId; | ||
chainName: string; | ||
nativeCurrency: { | ||
name: string; | ||
symbol: Chain_2; | ||
decimals: BaseDecimal_2; | ||
symbol: Chain; | ||
decimals: BaseDecimal; | ||
}; | ||
rpcUrls: RPCUrl_2[]; | ||
rpcUrls: RPCUrl[]; | ||
blockExplorerUrls: string[]; | ||
@@ -752,7 +745,7 @@ }; | ||
estimateCall: (params: EstimateCallParams) => Promise<bigint>; | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams_2 & { | ||
estimateGasLimit: ({ assetValue, recipient, memo, }: WalletTxParams & { | ||
assetValue: AssetValue; | ||
}) => Promise<bigint>; | ||
isApproved: (params: IsApprovedParams) => Promise<boolean>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption_2) => Promise<string | TransactionResponse>; | ||
sendTransaction: (params: EIP1559TxParams, feeOption: FeeOption) => Promise<string | TransactionResponse>; | ||
transfer: (params: TransferParams) => Promise<string | TransactionResponse>; | ||
@@ -759,0 +752,0 @@ validateAddress: (address: string) => boolean; |
@@ -17,4 +17,4 @@ { | ||
"vitest": "0.34.6", | ||
"@coinmasters/helpers": "4.0.1", | ||
"@internal/config": "2.0.1" | ||
"@internal/config": "2.0.1", | ||
"@coinmasters/helpers": "4.0.1" | ||
}, | ||
@@ -50,3 +50,3 @@ "eslintConfig": { | ||
"types": "./dist/index.d.ts", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"scripts": { | ||
@@ -53,0 +53,0 @@ "build": "vite build", |
@@ -1,2 +0,2 @@ | ||
import { Chain, type EVMChain } from '@swapkit/types'; | ||
import { Chain, type EVMChain } from '@coinmasters/types'; | ||
@@ -3,0 +3,0 @@ import { ARBToolbox } from './arb.ts'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
843218
17908