@avalabs/bitcoin-module
Advanced tools
Comparing version 0.0.0-CP-8870-20240717191454 to 0.0.0-eth-sign-20240718133935
# @avalabs/bitcoin-module | ||
## 0.0.0-CP-8870-20240717191454 | ||
## 0.0.0-eth-sign-20240718133935 | ||
@@ -8,3 +8,2 @@ ### Patch Changes | ||
- de9824c: feat: created bitcoin module | ||
- Updated dependencies [dce9893] | ||
- @avalabs/vm-module-types@0.0.0-CP-8870-20240717191454 | ||
- @avalabs/vm-module-types@0.0.0-eth-sign-20240718133935 |
import { parseManifest } from '@avalabs/vm-module-types'; | ||
import { rpcErrors } from '@metamask/rpc-errors'; | ||
var r={name:"Bitcoin",description:"",version:"0.0.1",sources:{module:{checksum:"",location:{npm:{filePath:"dist/bundle.js",packageName:"@avalabs/bitcoin-module",registry:"https://registry.npmjs.org"}}},provider:{checksum:"",location:{npm:{filePath:"dist/provider.js",packageName:"@avalabs/bitcoin-module",registry:"https://registry.npmjs.org"}}}},network:{chainIds:["bip122:000000000019d6689c085ae165831e93","bip122:000000000933ea01ad0ee984209779ba"],namespaces:["bip122"]},cointype:"60",permissions:{rpc:{dapps:!0,methods:["bitcoin_sendTransaction"]}},manifestVersion:"0.0"};var s=class{getAddress(){return Promise.resolve("Bitcoin address")}getBalances(){return Promise.resolve("Bitcoin balances")}getManifest(){let e=parseManifest(r);return e.success?e.data:void 0}getNetworkFee(e){return Promise.resolve({baseFee:1n,low:{maxFeePerGas:1n},medium:{maxFeePerGas:2n},high:{maxFeePerGas:4n},isFixedFee:!1})}getTransactionHistory(e){return Promise.resolve({transactions:[]})}getTokens(e){return Promise.resolve([])}async onRpcRequest(e,a){switch(e.method){default:return {error:rpcErrors.methodNotSupported(`Method ${e.method} not supported`)}}}}; | ||
var r={name:"Bitcoin",description:"",version:"0.0.1",sources:{module:{checksum:"",location:{npm:{filePath:"dist/bundle.js",packageName:"@avalabs/bitcoin-module",registry:"https://registry.npmjs.org"}}},provider:{checksum:"",location:{npm:{filePath:"dist/provider.js",packageName:"@avalabs/bitcoin-module",registry:"https://registry.npmjs.org"}}}},network:{chainIds:["bip122:000000000019d6689c085ae165831e93","bip122:000000000933ea01ad0ee984209779ba"],namespaces:["bip122"]},cointype:"0",permissions:{rpc:{dapps:!0,methods:["bitcoin_sendTransaction"]}},manifestVersion:"0.0"};var s=class{getAddress(){return Promise.resolve("Bitcoin address")}getBalances(){return Promise.resolve("Bitcoin balances")}getManifest(){let e=parseManifest(r);return e.success?e.data:void 0}getNetworkFee(e){return Promise.resolve({baseFee:1n,low:{maxFeePerGas:1n},medium:{maxFeePerGas:2n},high:{maxFeePerGas:4n},isFixedFee:!1})}getTransactionHistory(e){return Promise.resolve({transactions:[]})}getTokens(e){return Promise.resolve([])}async onRpcRequest(e,a){switch(e.method){default:return {error:rpcErrors.methodNotSupported(`Method ${e.method} not supported`)}}}}; | ||
@@ -6,0 +6,0 @@ export { s as BitcoinModule }; |
@@ -31,3 +31,3 @@ { | ||
}, | ||
"cointype": "60", | ||
"cointype": "0", | ||
"permissions": { | ||
@@ -34,0 +34,0 @@ "rpc": { |
{ | ||
"name": "@avalabs/bitcoin-module", | ||
"version": "0.0.0-CP-8870-20240717191454", | ||
"version": "0.0.0-eth-sign-20240718133935", | ||
"main": "dist/index.cjs", | ||
@@ -9,3 +9,3 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@avalabs/vm-module-types": "0.0.0-CP-8870-20240717191454", | ||
"@avalabs/vm-module-types": "0.0.0-eth-sign-20240718133935", | ||
"@avalabs/wallets-sdk": "2.8.0-alpha.188", | ||
@@ -12,0 +12,0 @@ "@metamask/rpc-errors": "6.3.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
16736
+ Added@avalabs/vm-module-types@0.0.0-eth-sign-20240718133935(transitive)
- Removed@avalabs/vm-module-types@0.0.0-CP-8870-20240717191454(transitive)
Updated@avalabs/vm-module-types@0.0.0-eth-sign-20240718133935