Skip to content

Commit cee1556

Browse files
authored
feat: add isReplicated to ExperimentalInternetComputer (#694)
1 parent 8fd23fa commit cee1556

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
# Remember to update me in package-set.yml as well
1010
env:
1111
vessel_version: "v0.7.0"
12-
moc_version: "0.14.2"
12+
moc_version: "0.14.3"
1313

1414
jobs:
1515
tests:

.github/workflows/package-set.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
vessel_version: "v0.7.0"
11-
moc_version: "0.14.2"
11+
moc_version: "0.14.3"
1212

1313
jobs:
1414
verify:

mops.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "base"
3-
version = "0.14.2"
3+
version = "0.14.3"
44
description = "The Motoko base library"
55
repository = "https://github.com/dfinity/motoko-base"
66
keywords = [ "base" ]
@@ -10,5 +10,5 @@ license = "Apache-2.0"
1010
matchers = "https://github.com/kritzcreek/motoko-matchers#v1.3.0@3dac8a071b69e4e651b25a7d9683fe831eb7cffd"
1111

1212
[toolchain]
13-
moc = "0.14.2"
13+
moc = "0.14.3"
1414
wasmtime = "17.0.0"

src/ExperimentalInternetComputer.mo

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module {
3131
/// [Learn more about Candid serialization](https://internetcomputer.org/docs/current/motoko/main/reference/language-manual#candid-serialization)
3232
public let call : (canister : Principal, name : Text, data : Blob) -> async (reply : Blob) = Prim.call_raw;
3333

34+
/// `isReplicated` is true for update messages and for queries that passed through consensus.
35+
public let isReplicated : () -> Bool = Prim.isReplicatedExecution;
36+
3437
/// Given computation, `comp`, counts the number of actual and (for IC system calls) notional WebAssembly
3538
/// instructions performed during the execution of `comp()`.
3639
///

0 commit comments

Comments
 (0)