Skip to content

Commit

Permalink
Update web3 version to v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h0ngcha0 committed Mar 3, 2023
1 parent 8acf876 commit 8b82952
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 38 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["packages/*"],
"version": "0.5.0-rc.19",
"version": "0.6.0-rc.1",
"npmClient": "yarn",
"useWorkspaces": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.5.0-rc.19",
"version": "0.6.0-rc.1",
"private": true,
"name": "alephium-browser-extension-wallet",
"repository": "github:alephium/extension-wallet",
Expand Down
8 changes: 4 additions & 4 deletions packages/dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alephium/dapp",
"version": "0.5.0-rc.19",
"version": "0.6.0-rc.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -10,15 +10,15 @@
"lint": "next lint"
},
"dependencies": {
"@alephium/web3": "v0.5.4",
"@alephium/get-extension-wallet": "^0.5.0-rc.19",
"@alephium/web3": "v0.6.0",
"@alephium/get-extension-wallet": "0.6.0-rc.1",
"ethers": "^5.5.1",
"next": "^13.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@alephium/cli": "v0.5.4",
"@alephium/cli": "v0.6.0",
"@types/node": "18.11.18",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/manifest/v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/chrome-manifest.json",
"name": "Alephium",
"description": "Alephium extension wallet",
"version": "0.5.0",
"version": "0.6.0",
"manifest_version": 2,
"browser_action": {
"default_icon": {
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/manifest/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json.schemastore.org/chrome-manifest.json",
"name": "Alephium",
"description": "Alephium extension wallet",
"version": "0.5.0",
"version": "0.6.0",
"manifest_version": 3,
"action": {
"default_icon": {
Expand Down
10 changes: 5 additions & 5 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@alephium/extension",
"version": "0.5.0-rc.19",
"version": "0.6.0-rc.1",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@alephium/web3": "v0.5.4",
"@alephium/web3-wallet": "v0.5.4",
"@alephium/web3-test": "v0.5.4",
"@alephium/get-extension-wallet": "^0.5.0-rc.19",
"@alephium/web3": "v0.6.0",
"@alephium/web3-wallet": "v0.6.0",
"@alephium/web3-test": "v0.6.0",
"@alephium/get-extension-wallet": "^0.6.0-rc.1",
"@alephium/token-list": "0.0.1",
"@playwright/test": "^1.23.0",
"@sentry/webpack-plugin": "^1.18.9",
Expand Down
3 changes: 2 additions & 1 deletion packages/extension/src/inpage/alephiumWindowObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const alephiumWindowObject: AlephiumWindowObject = new (class extends Ale
if (walletAccount === "USER_ABORTED") {
throw Error("User aborted")
}

const { alephiumProviders } = window
const alephium = alephiumProviders?.alephium
if (!alephium) {
Expand Down Expand Up @@ -168,7 +169,7 @@ export const alephiumWindowObject: AlephiumWindowObject = new (class extends Ale
this.#checkParams(params)

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
sendMessage({ type: "ALPH_SIGN_MESSAGE", data: {...params, networkId: this.connectedNetworkId, host: window.location.host } })
sendMessage({ type: "ALPH_SIGN_MESSAGE", data: { ...params, networkId: this.connectedNetworkId, host: window.location.host } })
const { actionHash } = await waitForMessage("ALPH_SIGN_MESSAGE_RES", 1000)

const resultP = Promise.race([
Expand Down
4 changes: 2 additions & 2 deletions packages/get-extension-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alephium/get-extension-wallet",
"version": "0.5.0-rc.19",
"version": "0.6.0-rc.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -52,6 +52,6 @@
},
"dependencies": {
"bowser": "^2.11.0",
"@alephium/web3": "v0.5.4"
"@alephium/web3": "v0.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.2.0",
"private": true,
"devDependencies": {
"@alephium/extension": "^0.5.0-rc.4",
"@alephium/extension": "0.6.0-rc.1",
"@argent/ui": "^5.2.0",
"@babel/core": "^7.18.5",
"@chakra-ui/storybook-addon": "^4.0.12",
Expand Down
42 changes: 21 additions & 21 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# yarn lockfile v1


"@alephium/cli@v0.5.4":
version "0.5.4"
resolved "https://registry.yarnpkg.com/@alephium/cli/-/cli-0.5.4.tgz#5c23705f22c4760b13f4b7e4a8dab47216676ab3"
integrity sha512-2mZcFAW/ANBTXuCHqLy3AgRUdy5eBbQghvtOxosaTKOU/mW1qZPks6slJsSPuDe9TKEyPz9wTsMKemS1wH8Q0w==
"@alephium/cli@v0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@alephium/cli/-/cli-0.6.0.tgz#5be9a0ef51e3c16e0b22c329a184dd6028ed3adf"
integrity sha512-AOw3aPM/kH2nefpt1MUd0uxBfCH8XdKjVMXoCUcC39osob7uXbT80JtuTJoSpV7wVAWQxB1tLyNk6/puRp09OQ==
dependencies:
"@alephium/web3" "^0.5.4"
"@alephium/web3-wallet" "^0.5.4"
"@alephium/web3" "^0.6.0"
"@alephium/web3-wallet" "^0.6.0"
commander "^9.4.0"
cross-fetch "^3.1.5"
crypto-js "^4.1.1"
Expand All @@ -27,31 +27,31 @@
ts-jest "^29.0.5"
typescript "^4.9.4"

"@alephium/web3-test@v0.5.4":
version "0.5.4"
resolved "https://registry.yarnpkg.com/@alephium/web3-test/-/web3-test-0.5.4.tgz#67aff2a0cd4af2c36696ecc33b0c71887eaa4fa0"
integrity sha512-2PNdRaSC8761ywlvBbdCWPnsQKSamviPw32xxkpGvuuJEG6RmFs2y9G60tJzH0UyAydAx+3Zm/PnI/M+xysEKg==
"@alephium/web3-test@v0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@alephium/web3-test/-/web3-test-0.6.0.tgz#37af408d889d0e3c377f7fcf02f7c0c1fdeb1463"
integrity sha512-HI+/+C7xoCB/BK99KQHdTqgKzIdMWFtIOchzGVhF/KKqkElYE4C9inr6YT8JKQeEL1EMOh8ED+dmB4L8yeZX+g==
dependencies:
"@alephium/web3" "^0.5.4"
"@alephium/web3-wallet" "^0.5.4"
"@alephium/web3" "^0.6.0"
"@alephium/web3-wallet" "^0.6.0"

"@alephium/web3-wallet@^0.5.4", "@alephium/web3-wallet@v0.5.4":
version "0.5.4"
resolved "https://registry.yarnpkg.com/@alephium/web3-wallet/-/web3-wallet-0.5.4.tgz#f377bfbb3aaeb76c0880338d980b28e1dd86fae7"
integrity sha512-xKJ70aTKhvu8RIIre7mD+CvSOVj8h6zp/eu94i3EGTDKTRxtblhMEB0OkRx2mkETbvYBnsTitHWE9L29nAsk+Q==
"@alephium/web3-wallet@^0.6.0", "@alephium/web3-wallet@v0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@alephium/web3-wallet/-/web3-wallet-0.6.0.tgz#65114cc35090cbd5ebce1bfd805b36689b270c5c"
integrity sha512-Sb/QAMZpIyrJW6/17c2HDPsJo7bKf1O/KoUloqwpwuoIXPxTHnp1hJH7ieILrWDBomrrhBQgUN/cbQIFAZ7ayw==
dependencies:
"@alephium/web3" "^0.5.4"
"@alephium/web3" "^0.6.0"
"@noble/secp256k1" "1.7.1"
"@types/node" "16.7.8"
bip32 "3.1.0"
bip39 "3.0.4"
buffer "^6.0.3"
fs-extra "10.0.1"

"@alephium/web3@^0.5.4", "@alephium/web3@v0.5.4":
version "0.5.4"
resolved "https://registry.yarnpkg.com/@alephium/web3/-/web3-0.5.4.tgz#1514a3fb70872ece4d57112396b3f1092befaa69"
integrity sha512-1i45qVIM76EVR0SHFr93Rh2R7WezDWu7L3Zwac8pFS4EfsUFl9iwHsVL4pouArAu9Hq7n3gWpmBd9Ldk1wMlZg==
"@alephium/web3@^0.6.0", "@alephium/web3@v0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@alephium/web3/-/web3-0.6.0.tgz#b9b6dc3e9d48cdf1577ef1ff6cf64261617d1425"
integrity sha512-aXMzs2QOpU9qgs7M9EBjTMzvbSftxBU1FfBxuF9f43HfUgHvpwdTNyPieTivmdaDCFAcoFhcCyiXomgnSqKfCQ==
dependencies:
"@noble/secp256k1" "1.7.1"
async-sema "^3.1.1"
Expand Down

0 comments on commit 8b82952

Please sign in to comment.