@avalabs/avalanche-module
Advanced tools
Comparing version 0.0.0-refactor-params-20240711152250 to 0.0.0-test-changeset1-20240714230430
# @avalabs/avalanche-module | ||
## 0.0.0-refactor-params-20240711152250 | ||
## 0.0.0-test-changeset1-20240714230430 | ||
### Patch Changes | ||
- e0c3f2b: make module interface more consistent | ||
- af68c81: Add getTransactionHistory to avalanche module | ||
- d9fa0f5: added getNetworkFee to avalanche module | ||
- Updated dependencies [af68c81] | ||
- Updated dependencies [d9fa0f5] | ||
- @avalabs/vm-module-types@0.0.0-test-changeset1-20240714230430 | ||
## 0.0.12 | ||
### Patch Changes | ||
- d0c2cc9: make module interface more consistent | ||
- 02560da: Created Avalanche module | ||
- Updated dependencies [cd97708] | ||
- Updated dependencies [e0c3f2b] | ||
- @avalabs/vm-module-types@0.0.0-refactor-params-20240711152250 | ||
- Updated dependencies [d0c2cc9] | ||
- Updated dependencies [7bc6c6e] | ||
- @avalabs/vm-module-types@0.0.12 |
import { parseManifest } from '@avalabs/vm-module-types'; | ||
import { rpcErrors } from '@metamask/rpc-errors'; | ||
var r={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 s=class{getAddress(){return Promise.resolve("Avalanche address")}getBalances(){return Promise.resolve("Avalanche balances")}getManifest(){let e=parseManifest(r);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,i){switch(e.method){default:return {error:rpcErrors.methodNotSupported(`Method ${e.method} not supported`)}}}}; | ||
var r={name:"Avalanche",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"],namespaces:["avax"]},cointype:"60",permissions:{rpc:{dapps:!0,methods:["avalanche_sendTransaction","avalanche_*"]}},manifestVersion:"0.0"};async function t(){return {baseFee:BigInt(1e6),low:{maxFeePerGas:BigInt(1e6)},medium:{maxFeePerGas:BigInt(1e6)},high:{maxFeePerGas:BigInt(1e6)},isFixedFee:!0}}var s=class{getAddress(){return Promise.resolve("Avalanche address")}getBalances(){return Promise.resolve("Avalanche balances")}getManifest(){let e=parseManifest(r);return e.success?e.data:void 0}getNetworkFee(e){return t()}getTransactionHistory(e){return Promise.resolve({transactions:[]})}getTokens(e){return Promise.resolve([])}async onRpcRequest(e,m){switch(e.method){default:return {error:rpcErrors.methodNotSupported(`Method ${e.method} not supported`)}}}}; | ||
@@ -6,0 +6,0 @@ export { s as AvalancheModule }; |
{ | ||
"name": "@avalabs/avalanche-module", | ||
"version": "0.0.0-refactor-params-20240711152250", | ||
"version": "0.0.0-test-changeset1-20240714230430", | ||
"main": "dist/index.cjs", | ||
@@ -9,4 +9,10 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@avalabs/vm-module-types": "0.0.0-refactor-params-20240711152250", | ||
"@metamask/rpc-errors": "6.3.0" | ||
"@avalabs/vm-module-types": "0.0.0-test-changeset1-20240714230430", | ||
"@metamask/rpc-errors": "6.3.0", | ||
"@avalabs/utils-sdk": "v2.8.0-alpha.187", | ||
"@avalabs/chains-sdk": "v2.8.0-alpha.187", | ||
"@avalabs/etherscan-sdk": "v2.8.0-alpha.187", | ||
"@avalabs/glacier-sdk": "v2.8.0-alpha.187", | ||
"@avalabs/wallets-sdk": "v2.8.0-alpha.187", | ||
"big.js": "6.2.1" | ||
}, | ||
@@ -18,4 +24,5 @@ "devDependencies": { | ||
"tsup": "7.2.0", | ||
"@types/big.js": "6.2.2", | ||
"@internal/tsup-config": "0.0.1", | ||
"eslint-config-custom": "0.0.0-refactor-params-20240711152250" | ||
"eslint-config-custom": "0.0.2" | ||
}, | ||
@@ -22,0 +29,0 @@ "scripts": { |
@@ -11,3 +11,4 @@ import type { | ||
import { rpcErrors } from '@metamask/rpc-errors'; | ||
import ManifestJson from './manifest.json'; | ||
import ManifestJson from '../manifest.json'; | ||
import { getNetworkFee } from './handlers/get-network-fee'; | ||
@@ -29,8 +30,3 @@ export class AvalancheModule implements Module { | ||
getNetworkFee(_: Network): Promise<NetworkFees> { | ||
return Promise.resolve({ | ||
low: { maxPriorityFeePerGas: 0n, maxFeePerGas: 0n }, | ||
medium: { maxPriorityFeePerGas: 0n, maxFeePerGas: 0n }, | ||
high: { maxPriorityFeePerGas: 0n, maxFeePerGas: 0n }, | ||
baseFee: 0n, | ||
}); | ||
return getNetworkFee(); | ||
} | ||
@@ -37,0 +33,0 @@ |
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
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
31262
25
467
8
7
1
+ Addedbig.js@6.2.1
+ Added@adraffy/ens-normalize@1.10.0(transitive)
+ Added@avalabs/vm-module-types@0.0.0-test-changeset1-20240714230430(transitive)
+ Added@noble/curves@1.2.0(transitive)
+ Added@noble/hashes@1.3.2(transitive)
+ Added@types/node@18.15.13(transitive)
+ Addedaes-js@4.0.0-beta.5(transitive)
+ Addedbig.js@6.2.1(transitive)
+ Addedethers@6.8.1(transitive)
+ Addedtslib@2.4.0(transitive)
+ Addedws@8.5.0(transitive)
- Removed@avalabs/vm-module-types@0.0.0-refactor-params-20240711152250(transitive)
Updated@avalabs/vm-module-types@0.0.0-test-changeset1-20240714230430