@avalabs/avalanche-module
Advanced tools
Comparing version 0.0.0-cp-8362-20240712181236 to 0.0.0-cp-8362-20240715135328
# @avalabs/avalanche-module | ||
## 0.0.0-cp-8362-20240712181236 | ||
## 0.0.0-cp-8362-20240715135328 | ||
### Patch Changes | ||
- 4c2b995: add getBalances to evm-module | ||
- Updated dependencies [4c2b995] | ||
- @avalabs/vm-module-types@0.0.0-cp-8362-20240712181236 | ||
- @internal/utils@0.0.0-cp-8362-20240712181236 | ||
- ab4e94f: add getBalances to evm-module | ||
- Updated dependencies [ab4e94f] | ||
- @avalabs/vm-module-types@0.0.0-cp-8362-20240715135328 | ||
- @internal/utils@0.0.0-cp-8362-20240715135328 | ||
## 0.0.13 | ||
### Patch Changes | ||
- af68c81: Add getTransactionHistory to avalanche module | ||
- d9fa0f5: added getNetworkFee to avalanche module | ||
- Updated dependencies [af68c81] | ||
- Updated dependencies [d9fa0f5] | ||
- @avalabs/vm-module-types@0.0.13 | ||
## 0.0.12 | ||
@@ -13,0 +23,0 @@ |
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(e){return Promise.resolve({})}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 t={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 r(){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(e){return Promise.resolve({})}getManifest(){let e=parseManifest(t);return e.success?e.data:void 0}getNetworkFee(e){return r()}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-cp-8362-20240712181236", | ||
"version": "0.0.0-cp-8362-20240715135328", | ||
"main": "dist/index.cjs", | ||
@@ -9,5 +9,11 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@avalabs/vm-module-types": "0.0.0-cp-8362-20240712181236", | ||
"@avalabs/vm-module-types": "0.0.0-cp-8362-20240715135328", | ||
"@metamask/rpc-errors": "6.3.0", | ||
"@internal/utils": "0.0.0-cp-8362-20240712181236" | ||
"@avalabs/utils-sdk": "v2.8.0-alpha.193", | ||
"@avalabs/chains-sdk": "v2.8.0-alpha.193", | ||
"@avalabs/etherscan-sdk": "v2.8.0-alpha.193", | ||
"@avalabs/glacier-sdk": "v2.8.0-alpha.193", | ||
"@avalabs/wallets-sdk": "v2.8.0-alpha.193", | ||
"big.js": "6.2.1", | ||
"@internal/utils": "0.0.0-cp-8362-20240715135328" | ||
}, | ||
@@ -19,4 +25,5 @@ "devDependencies": { | ||
"tsup": "7.2.0", | ||
"@types/big.js": "6.2.2", | ||
"@internal/tsup-config": "0.0.1", | ||
"eslint-config-custom": "0.0.0-cp-8362-20240712181236" | ||
"eslint-config-custom": "0.0.0-cp-8362-20240715135328" | ||
}, | ||
@@ -23,0 +30,0 @@ "scripts": { |
@@ -13,3 +13,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'; | ||
@@ -31,8 +32,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(); | ||
} | ||
@@ -39,0 +35,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
31809
25
469
9
7
3
1
+ Addedbig.js@6.2.1
+ Added@avalabs/vm-module-types@0.0.0-cp-8362-20240715135328(transitive)
+ Addedbig.js@6.2.1(transitive)
- Removed@avalabs/vm-module-types@0.0.0-cp-8362-20240712181236(transitive)
Updated@avalabs/vm-module-types@0.0.0-cp-8362-20240715135328