@avalabs/avalanche-module
Advanced tools
Comparing version 0.0.0-cp-8362-20240708142222 to 0.0.0-cp-8362-20240708152409
# @avalabs/avalanche-module | ||
## 0.0.0-cp-8362-20240708142222 | ||
## 0.0.0-cp-8362-20240708152409 | ||
@@ -9,2 +9,2 @@ ### Patch Changes | ||
- Updated dependencies [c7dbdcd] | ||
- @avalabs/vm-module-types@0.0.0-cp-8362-20240708142222 | ||
- @avalabs/vm-module-types@0.0.0-cp-8362-20240708152409 |
@@ -1,2 +0,2 @@ | ||
import { Module, GetBalancesParams, GetBalancesResponse, Manifest, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types'; | ||
import { Module, GetBalancesParams, GetBalancesResponse, Manifest, Network, NetworkFees, GetTransactionHistory, RpcRequest } from '@avalabs/vm-module-types'; | ||
@@ -8,3 +8,3 @@ declare class AvalancheModule implements Module { | ||
getNetworkFee(_: { | ||
chainId: string; | ||
network: Network; | ||
}): Promise<NetworkFees>; | ||
@@ -11,0 +11,0 @@ getTransactionHistory(_: GetTransactionHistory): Promise<{ |
import { parseManifest } from '@avalabs/vm-module-types'; | ||
var s={name:"AVM",description:"",version:"0.0.1",sources:{module:{checksum:"",location:{npm:{filePath:"dist/bundle.js",packageName:"@avalabs/avalanche-module",registry:"https://registry.npmjs.org"}}},provider:{checksum:"",location:{npm:{filePath:"dist/provider.js",packageName:"@avalabs/avalanche-module",registry:"https://registry.npmjs.org"}}}},network:{chainIds:["avax:2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM","avax:2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm","avax:11111111111111111111111111111111LpoYY","avax:fuji-11111111111111111111111111111111LpoYY"],namespaces:["avax"]},cointype:"",permissions:{rpc:{dapps:!0,methods:["avalanche_sendTransaction","avalanche_*"]}},manifestVersion:"0.0"};var a=class{getAddress(){return Promise.resolve("Avalanche address")}getBalances(e){return Promise.resolve({})}getManifest(){let e=parseManifest(s);return e.success?e.data:void 0}getNetworkFee(e){return Promise.resolve({low:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},medium:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},high:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},baseFee:0n})}getTransactionHistory(e){return Promise.resolve({transactions:[]})}getTokens(e){return Promise.resolve([])}async onRpcRequest(e){switch(e.method){default:return {error:new Error(`Method ${e.method} not supported`)}}}}; | ||
var s={name:"AVM",description:"",version:"0.0.1",sources:{module:{checksum:"",location:{npm:{filePath:"dist/bundle.js",packageName:"@avalabs/avalanche-module",registry:"https://registry.npmjs.org"}}},provider:{checksum:"",location:{npm:{filePath:"dist/provider.js",packageName:"@avalabs/avalanche-module",registry:"https://registry.npmjs.org"}}}},network:{chainIds:["avax:2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM","avax:2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm","avax:11111111111111111111111111111111LpoYY","avax:fuji-11111111111111111111111111111111LpoYY"],namespaces:["avax"]},cointype:"",permissions:{rpc:{dapps:!0,methods:["avalanche_sendTransaction","avalanche_*"]}},manifestVersion:"0.0"};var r=class{getAddress(){return Promise.resolve("Avalanche address")}getBalances(e){return Promise.resolve({})}getManifest(){let e=parseManifest(s);return e.success?e.data:void 0}getNetworkFee(e){return Promise.resolve({low:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},medium:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},high:{maxPriorityFeePerGas:0n,maxFeePerGas:0n},baseFee:0n})}getTransactionHistory(e){return Promise.resolve({transactions:[]})}getTokens(e){return Promise.resolve([])}async onRpcRequest(e){switch(e.method){default:return {error:new Error(`Method ${e.method} not supported`)}}}}; | ||
export { a as AvalancheModule }; | ||
export { r as AvalancheModule }; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@avalabs/avalanche-module", | ||
"version": "0.0.0-cp-8362-20240708142222", | ||
"version": "0.0.0-cp-8362-20240708152409", | ||
"main": "dist/index.cjs", | ||
@@ -9,3 +9,3 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@avalabs/vm-module-types": "0.0.0-cp-8362-20240708142222" | ||
"@avalabs/vm-module-types": "0.0.0-cp-8362-20240708152409" | ||
}, | ||
@@ -18,3 +18,3 @@ "devDependencies": { | ||
"@internal/tsup-config": "0.0.1", | ||
"eslint-config-custom": "0.0.0-cp-8362-20240708142222" | ||
"eslint-config-custom": "0.0.0-cp-8362-20240708152409" | ||
}, | ||
@@ -21,0 +21,0 @@ "scripts": { |
@@ -9,2 +9,3 @@ import type { | ||
GetBalancesParams, | ||
Network, | ||
} from '@avalabs/vm-module-types'; | ||
@@ -28,3 +29,3 @@ import { parseManifest } from '@avalabs/vm-module-types'; | ||
getNetworkFee(_: { chainId: string }): Promise<NetworkFees> { | ||
getNetworkFee(_: { network: Network }): Promise<NetworkFees> { | ||
return Promise.resolve({ | ||
@@ -31,0 +32,0 @@ low: { maxPriorityFeePerGas: 0n, maxFeePerGas: 0n }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17609
154
+ Added@avalabs/vm-module-types@0.0.0-cp-8362-20240708152409(transitive)
- Removed@avalabs/vm-module-types@0.0.0-cp-8362-20240708142222(transitive)
Updated@avalabs/vm-module-types@0.0.0-cp-8362-20240708152409