wao 0.19.8 → 0.20.1

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.
@@ -12,7 +12,7 @@ npx wao proxy
12
12
 
13
13
  #### 3. Connect the Browser to the Proxy
14
14
 
15
- Go to [the web app](https://wao-localnet.vercel.app/) and open `Networks`, then click `Proxy`.
15
+ Go to [the web app](https://preview.wao.eco) and open `Networks`, then click `Proxy`.
16
16
 
17
17
  #### 4. Run Test
18
18
 
@@ -8,3 +8,7 @@ end)
8
8
  Handlers.add("Get", "Get", function (msg)
9
9
  msg.reply({ Data = tostring(count) })
10
10
  end)
11
+
12
+ Handlers.add("Hello", "Hello", function (msg)
13
+ msg.reply({ Data = "Hello, World!" })
14
+ end)
@@ -17,6 +17,7 @@ describe("WAO", function () {
17
17
  const ao = await new AO().init(acc[0])
18
18
  const { p, pid } = await ao.deploy({ src_data, scheduler: acc[0].addr })
19
19
 
20
+ assert.equal(await p.d("Hello", false), "Hello, World!")
20
21
  assert.equal(await p.m("Inc", false), "Incremented!")
21
22
  assert.equal(await p.d("Get", false), "1")
22
23
  })
@@ -35,6 +36,7 @@ describe("WAO", function () {
35
36
  module: "WASM32-D8q2OmZ4Mok00sD2Y_6SYEQ7Hjx-6VZ_jl3g", // use wasm32 module
36
37
  })
37
38
 
39
+ assert.equal(await p.d("Hello", false), "Hello, World!")
38
40
  assert.equal(await p.m("Inc", false), "Incremented!")
39
41
  assert.equal(await p.d("Get", false), "1")
40
42
  })
@@ -12,7 +12,7 @@ npx wao proxy
12
12
 
13
13
  #### 3. Connect the Browser to the Proxy
14
14
 
15
- Go to [the web app](https://wao-localnet.vercel.app/) and open `Networks`, then click `Proxy`.
15
+ Go to [the web app](https://preview.wao.eco) and open `Networks`, then click `Proxy`.
16
16
 
17
17
  #### 4. Run Test
18
18
 
@@ -8,3 +8,7 @@ end)
8
8
  Handlers.add("Get", "Get", function (msg)
9
9
  msg.reply({ Data = tostring(count) })
10
10
  end)
11
+
12
+ Handlers.add("Hello", "Hello", function (msg)
13
+ msg.reply({ Data = "Hello, World!" })
14
+ end)
@@ -17,6 +17,7 @@ describe("WAO", function () {
17
17
  const ao = await new AO().init(acc[0])
18
18
  const { p, pid } = await ao.deploy({ src_data, scheduler: acc[0].addr })
19
19
 
20
+ assert.equal(await p.d("Hello", false), "Hello, World!")
20
21
  assert.equal(await p.m("Inc", false), "Incremented!")
21
22
  assert.equal(await p.d("Get", false), "1")
22
23
  })
@@ -35,6 +36,7 @@ describe("WAO", function () {
35
36
  module: "WASM32-D8q2OmZ4Mok00sD2Y_6SYEQ7Hjx-6VZ_jl3g", // use wasm32 module
36
37
  })
37
38
 
39
+ assert.equal(await p.d("Hello", false), "Hello, World!")
38
40
  assert.equal(await p.m("Inc", false), "Incremented!")
39
41
  assert.equal(await p.d("Get", false), "1")
40
42
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.19.8",
3
+ "version": "0.20.1",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"