@avalabs/vm-module-types
Advanced tools
Comparing version 0.0.0-cp-8362-20240702190042 to 0.0.0-cp-8362-20240702210302
# @avalabs/vm-module-types | ||
## 0.0.0-cp-8362-20240702190042 | ||
## 0.0.0-cp-8362-20240702210302 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
{ | ||
"name": "@avalabs/vm-module-types", | ||
"version": "0.0.0-cp-8362-20240702190042", | ||
"version": "0.0.0-cp-8362-20240702210302", | ||
"main": "src/index.ts", | ||
@@ -13,3 +13,3 @@ "dependencies": { | ||
"@avalabs/utils-sdk": "2.8.0-canary.b4769c9.0", | ||
"eslint-config-custom": "0.0.0-cp-8362-20240702190042" | ||
"eslint-config-custom": "0.0.0-cp-8362-20240702210302" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
import type { NetworkContractToken, NetworkToken, TokenType } from './token'; | ||
import type { CacheProviderParams, Chain } from './common'; | ||
import type { CacheProviderParams } from './common'; | ||
import BN from 'bn.js'; | ||
export type GetBalancesParams = Chain & | ||
CacheProviderParams & { | ||
chainId: string; | ||
addresses: string[]; // addressC of each account | ||
networkToken: NetworkToken; | ||
customTokens: NetworkContractToken[]; | ||
currency: string; | ||
coingeckoPlatformId?: string; | ||
coingeckoTokenId?: string; | ||
}; | ||
export type GetBalancesParams = CacheProviderParams & { | ||
chainId: string; | ||
addresses: string[]; // addressC of each account | ||
customTokens?: NetworkContractToken[]; | ||
currency: string; | ||
}; | ||
@@ -16,0 +12,0 @@ export type TokenBalanceData = { |
import type { GetBalancesParams, GetBalancesResponse } from './balance'; | ||
import type { Manifest } from './manifest'; | ||
import type { GetNetworkFeeParams, NetworkFees } from './network-fee'; | ||
import type { NetworkFees } from './network-fee'; | ||
import type { RpcRequest, RpcResponse } from './rpc'; | ||
@@ -12,3 +12,3 @@ import type { NetworkContractToken } from './token'; | ||
getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>; | ||
getNetworkFee: (params: GetNetworkFeeParams) => Promise<NetworkFees>; | ||
getNetworkFee: ({ chainId }: { chainId: string }) => Promise<NetworkFees>; | ||
getAddress: () => Promise<string>; | ||
@@ -15,0 +15,0 @@ getTokens: (chainId: number) => Promise<NetworkContractToken[]>; |
@@ -1,3 +0,1 @@ | ||
import type { Chain } from './common'; | ||
export type NetworkFees = { | ||
@@ -9,3 +7,1 @@ low: { maxPriorityFeePerGas: bigint; maxFeePerGas: bigint }; | ||
}; | ||
export type GetNetworkFeeParams = Chain; |
55
17302
472