Skip to content

Commit

Permalink
bump moc and extend TTL to 20min (#76)
Browse files Browse the repository at this point in the history
* bump moc and extend TTL to 20min

* readme
  • Loading branch information
chenyan-dfinity authored Aug 17, 2021
1 parent d6f13b5 commit 6756fcd
Show file tree
Hide file tree
Showing 5 changed files with 6,795 additions and 6,775 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The Motoko playground consists of
- A deploy module that integrates canister upgrade, actor class and Candid UI.
- A code import module that allows to import any Motoko code from Github.
- its backend, a canister on the IC that controlls all canisters deployed by the users.
- Each deployed canister has an initial cycle of 0.5T and is available for 10 minutes.
- Each deployed canister has an initial cycle of 0.5T and is available for 20 minutes.
- To avoid wasting cycles, the deployed canister is not allowed to transfer cycles. The cycle transfer instructions will be removed by the backend at the Wasm level.
- To ensure resource fairness, we require a proof of work when the user requests for a canister id.

Expand All @@ -39,17 +39,19 @@ We plan on adding many more features to make playground a full-featured web IDE

```
apt install binaryen
```

#OR
or

```
brew install binaryen
```

### To run the Motoko playground locally, proceed as follows after cloning the respository.

```
npm install
dfx start [--clean] [--background]
dfx start [--clean] [--background] [--no-artificial-delay]
dfx deploy --argument '(null)'
```

Expand Down
13,536 changes: 6,775 additions & 6,761 deletions public/moc-0.6.6.js → public/moc-0.6.7.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion service/pool/Types.mo
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module {
public let defaultParams : InitParams = {
cycles_per_canister = 550_000_000_000;
max_num_canisters = 100;
canister_time_to_live = 600_000_000_000;
canister_time_to_live = 1200_000_000_000;
nonce_time_to_live = 300_000_000_000;
};
public type InstallArgs = {
Expand Down
22 changes: 13 additions & 9 deletions src/config/package-set.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,23 @@
"version": "v0.1.1"
},
{
"authors": [
"flyq"
],
"dependencies": [
"base"
],
"authors": ["flyq"],
"dependencies": ["base"],
"description": "Base32 implemented in Motoko",
"homepage": "https://flyq.github.io/motoko-base32/",
"name": "base32",
"owners": [
"flyq"
],
"owners": ["flyq"],
"repo": "https://github.com/flyq/motoko-base32.git",
"version": "v0.1.1"
},
{
"authors": ["Matthew Hammer"],
"dependencies": ["base"],
"description": "Incremental computation, dependency graphs and change propagation.",
"homepage": "http://matthewhammer.org/motoko-adapton/",
"name": "adapton",
"owners": ["matthewhammer"],
"repo": "https://github.com/matthewhammer/motoko-adapton.git",
"version": "v0.1.1"
}
]
2 changes: 1 addition & 1 deletion src/workers/moc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
importScripts("./moc-0.6.6.js");
importScripts("./moc-0.6.7.js");

export * from "./pow";
export * from "./file";
Expand Down

0 comments on commit 6756fcd

Please sign in to comment.