@avalabs/vm-module-types
Advanced tools
Comparing version 0.0.0-cp-8362-20240702210302 to 0.0.0-cp-8362-20240703143542
# @avalabs/vm-module-types | ||
## 0.0.0-cp-8362-20240702210302 | ||
## 0.0.0-cp-8362-20240703143542 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
{ | ||
"name": "@avalabs/vm-module-types", | ||
"version": "0.0.0-cp-8362-20240702210302", | ||
"version": "0.0.0-cp-8362-20240703143542", | ||
"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-20240702210302" | ||
"eslint-config-custom": "0.0.0-cp-8362-20240703143542" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -0,6 +1,6 @@ | ||
import type { Cache } from './common'; | ||
import type { NetworkContractToken, NetworkToken, TokenType } from './token'; | ||
import type { CacheProviderParams } from './common'; | ||
import BN from 'bn.js'; | ||
export type GetBalancesParams = CacheProviderParams & { | ||
export type GetBalancesParams = { | ||
chainId: string; | ||
@@ -10,2 +10,3 @@ addresses: string[]; // addressC of each account | ||
currency: string; | ||
cache?: Cache; | ||
}; | ||
@@ -12,0 +13,0 @@ |
@@ -11,7 +11,5 @@ export type Chain = { | ||
export type GetCache = (id: string) => unknown; | ||
export type SetCache = (id: string, data: unknown) => void; | ||
export type CacheProviderParams = { | ||
getCache?: GetCache; | ||
setCache?: SetCache; | ||
export type Cache = { | ||
get: (id: string) => unknown; | ||
set: (id: string, data: unknown) => void; | ||
}; |
17191
471