@alephium/web3 0.2.0-rc.6 → 0.2.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  Contract Greeter(btcPrice: U256) implements GreeterInterface {
2
2
  @using(readonly = true)
3
3
  pub fn greet() -> U256 {
4
- checkPermission!(true, 0)
4
+ checkCaller!(true, 0)
5
5
  return btcPrice
6
6
  }
7
7
  }
@@ -1,7 +1,7 @@
1
1
  Contract Sub(mut result : U256) {
2
2
  event Sub(x: U256, y: U256)
3
3
 
4
- @using(permissionCheck = false)
4
+ @using(externalCallCheck = false)
5
5
  pub fn sub(array: [U256; 2]) -> U256 {
6
6
  emit Sub(array[0], array[1])
7
7
  result = result + array[0] - array[1]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alephium/web3",
3
- "version": "0.2.0-rc.6",
3
+ "version": "0.2.0-rc.7",
4
4
  "description": "A JS/TS library to interact with the Alephium platform",
5
5
  "license": "GPL",
6
6
  "main": "dist/src/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "author": "Alephium dev <dev@alephium.org>",
29
29
  "config": {
30
- "alephium_version": "1.5.0-rc5",
30
+ "alephium_version": "1.5.0-rc6",
31
31
  "explorer_backend_version": "1.7.1"
32
32
  },
33
33
  "scripts": {
@@ -3,7 +3,7 @@
3
3
  "version": "0.1.0",
4
4
  "license": "GPL",
5
5
  "config": {
6
- "alephium_version": "1.5.0-rc5"
6
+ "alephium_version": "1.5.0-rc6"
7
7
  },
8
8
  "scripts": {
9
9
  "build": "rm -rf dist && npx tsc --build .",
@@ -12,7 +12,7 @@
12
12
  "stop-devnet": "node scripts/stop-devnet.js"
13
13
  },
14
14
  "dependencies": {
15
- "@alephium/web3": "0.2.0-rc.6"
15
+ "@alephium/web3": "0.2.0-rc.7"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/elliptic": "^6.4.13",
@@ -2,7 +2,7 @@
2
2
  "name": "my-dapp",
3
3
  "version": "0.1.0",
4
4
  "config": {
5
- "alephium_version": "1.5.0-rc5"
5
+ "alephium_version": "1.5.0-rc6"
6
6
  },
7
7
  "dependencies": {
8
8
  "@testing-library/jest-dom": "^5.16.4",
@@ -12,7 +12,7 @@
12
12
  "@types/node": "^16.11.26",
13
13
  "@types/react": "^18.0.3",
14
14
  "@types/react-dom": "^18.0.0",
15
- "@alephium/web3": "0.2.0-rc.6",
15
+ "@alephium/web3": "0.2.0-rc.7",
16
16
  "react": "^18.0.0",
17
17
  "react-dom": "^18.0.0",
18
18
  "react-scripts": "5.0.1",