@avalabs/vm-module-types
Advanced tools
Comparing version 0.0.9 to 0.0.10
# @avalabs/vm-module-types | ||
## 0.0.10 | ||
### Patch Changes | ||
- 60f36fa: add getTokens function | ||
## 0.0.9 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@avalabs/vm-module-types", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"main": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -76,2 +76,3 @@ import { object, string, boolean, z } from 'zod'; | ||
getAddress: () => Promise<string>; | ||
getTokens: (chainId: number) => Promise<NetworkContractToken[]>; | ||
onRpcRequest: (request: RpcRequest) => Promise<RpcResponse>; | ||
@@ -157,2 +158,13 @@ } | ||
export interface NetworkContractToken { | ||
address: string; | ||
chainId?: number; | ||
color?: string; | ||
contractType: string; | ||
decimals: number; | ||
logoUri?: string; | ||
name: string; | ||
symbol: string; | ||
} | ||
const sourceSchema = object({ | ||
@@ -159,0 +171,0 @@ checksum: string(), |
Sorry, the diff of this file is not supported yet
5897
194