@avalabs/vm-module-types 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
 
2
- > @avalabs/vm-module-types@0.0.9 lint /home/runner/work/vm-modules/vm-modules/packages/types
2
+ > @avalabs/vm-module-types@0.0.10 lint /home/runner/work/vm-modules/vm-modules/packages/types
3
3
  > eslint "src/**/*.ts"
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @avalabs/vm-module-types
2
2
 
3
+ ## 0.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 60f36fa: add getTokens function
8
+
3
9
  ## 0.0.9
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/vm-module-types",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "main": "src/index.ts",
5
5
  "dependencies": {
6
6
  "zod": "3.23.8"
package/src/types.ts CHANGED
@@ -73,6 +73,7 @@ export interface Module {
73
73
  getTransactionHistory: (params: GetTransactionHistory) => Promise<TransactionHistoryResponse>;
74
74
  getNetworkFee: (params: GetNetworkFeeParams) => Promise<NetworkFees>;
75
75
  getAddress: () => Promise<string>;
76
+ getTokens: (chainId: number) => Promise<NetworkContractToken[]>;
76
77
  onRpcRequest: (request: RpcRequest) => Promise<RpcResponse>;
77
78
  }
78
79
 
@@ -153,6 +154,17 @@ export interface NetworkToken {
153
154
  logoUri: string;
154
155
  }
155
156
 
157
+ export interface NetworkContractToken {
158
+ address: string;
159
+ chainId?: number;
160
+ color?: string;
161
+ contractType: string;
162
+ decimals: number;
163
+ logoUri?: string;
164
+ name: string;
165
+ symbol: string;
166
+ }
167
+
156
168
  const sourceSchema = object({
157
169
  checksum: string(),
158
170
  location: object({