Skip to content

Commit

Permalink
deno.land/x/subshell@0.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
subshell committed Nov 18, 2022
1 parent 916aaa1 commit a868772
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Subshell at its core is a TypeScript repl with these preloaded lines:
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";

const provider = new WsProvider(`wss://polkadot.api.onfinality.io/public-ws`);

Expand Down Expand Up @@ -77,7 +77,7 @@ the [deno.land/x/polkadot](https://deno.land/x/polkadot) namespace.
You can import them like this in the Deno repl:

```
import { stringToU8a } from 'https://deno.land/x/polkadot@0.2.15/util/mod.ts';
import { stringToU8a } from 'https://deno.land/x/polkadot@0.2.16/util/mod.ts';
```

Subshell sessions run in patched
Expand Down Expand Up @@ -148,7 +148,7 @@ Here are Subshell's advantages over existing Node.js based shells.
In fact, you can load the Subshell init script in Deno.

```
$ deno repl --unstable --eval-file=https://deno.land/x/subshell@0.2.15/init.ts
$ deno repl --unstable --eval-file=https://deno.land/x/subshell@0.2.16/init.ts
...
Deno 1.23.2
exit using ctrl+d or close()
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ RUN chmod 644 /cache/deno_history.txt

USER subshell

ENV SUBSHELL_VERSION 0.2.15
ENV SUBSHELL_VERSION 0.2.16

CMD hub
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ in a Deno 🦕 repl, using polkadot-js extension as remote signer ✍️.
Start with browser extension integration

```
$ deno repl --unstable --eval-file=https://deno.land/x/subshell@0.2.15/init.ts
$ deno repl --unstable --eval-file=https://deno.land/x/subshell@0.2.16/init.ts
```

Start in lite mode

```
$ deno repl --eval-file=https://deno.land/x/subshell@0.2.15/tini.ts
$ deno repl --eval-file=https://deno.land/x/subshell@0.2.16/tini.ts
```
2 changes: 1 addition & 1 deletion cache.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";

import * as fs from "https://deno.land/std/node/fs.ts";

Expand Down
2 changes: 1 addition & 1 deletion ci-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// execute with
// deno run --allow-read --allow-run --allow-write --allow-env ci-release.ts

import { stringCamelCase } from "https://deno.land/x/polkadot@0.2.15/util/mod.ts";
import { stringCamelCase } from "https://deno.land/x/polkadot@0.2.16/util/mod.ts";

// tighter specification for git arguments
type GitArgs =
Expand Down
6 changes: 3 additions & 3 deletions client/mod.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";
import type {
Signer,
SignerResult,
} from "https://deno.land/x/polkadot@0.2.15/api/types/index.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/types/index.ts";
import type {
Registry,
SignerPayloadJSON,
SignerPayloadRaw,
} from "https://deno.land/x/polkadot@0.2.15/types/types/index.ts";
} from "https://deno.land/x/polkadot@0.2.16/types/types/index.ts";

export class Client implements Signer {
private encoder = new TextEncoder();
Expand Down
8 changes: 4 additions & 4 deletions init.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import "https://deno.land/x/polkadot@0.2.15/api-augment/mod.ts";
import "https://deno.land/x/polkadot@0.2.16/api-augment/mod.ts";
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
import { Client } from "https://deno.land/x/subshell@0.2.15/client/mod.ts";
// import { VerboseSigner } from "https://deno.land/x/subshell@0.2.15/signer/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";
import { Client } from "https://deno.land/x/subshell@0.2.16/client/mod.ts";
// import { VerboseSigner } from "https://deno.land/x/subshell@0.2.16/signer/mod.ts";

const SESSION_ID = Deno.env.get("SESSION_ID") ?? "";
const PROVIDER = Deno.env.get("PROVIDER") ?? "wss://rpc.polkadot.io";
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const status = await Deno.run({
"deno",
"repl",
"--unstable",
"--eval-file=https://deno.land/x/subshell@0.2.15/init.ts",
"--eval-file=https://deno.land/x/subshell@0.2.16/init.ts",
],
}).status();
10 changes: 5 additions & 5 deletions signer/mod.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";
import type {
Signer,
SignerResult,
} from "https://deno.land/x/polkadot@0.2.15/api/types/index.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/types/index.ts";
import type {
Registry,
SignerPayloadJSON,
SignerPayloadRaw,
} from "https://deno.land/x/polkadot@0.2.15/types/types/index.ts";
import { Keyring } from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
import { createTestPairs } from "https://deno.land/x/polkadot@0.2.15/keyring/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/types/types/index.ts";
import { Keyring } from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";
import { createTestPairs } from "https://deno.land/x/polkadot@0.2.16/keyring/mod.ts";

export function VerboseSigner(inner: Signer): Signer {
async function signRaw(payload: SignerPayloadRaw): Promise<SignerResult> {
Expand Down
4 changes: 2 additions & 2 deletions subsh-deno
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ if [[ "$1" == cache ]]; then
done
$DENO run --unstable -A cache.ts
else
# $DENO repl --v8-flags=--trace-side-effect-free-debug-evaluate --unstable --eval-file=https://deno.land/x/subshell@0.2.15/init.ts
$DENO repl --unstable --eval-file=https://deno.land/x/subshell@0.2.15/init.ts
# $DENO repl --v8-flags=--trace-side-effect-free-debug-evaluate --unstable --eval-file=https://deno.land/x/subshell@0.2.16/init.ts
$DENO repl --unstable --eval-file=https://deno.land/x/subshell@0.2.16/init.ts
fi
2 changes: 1 addition & 1 deletion tini.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
ApiPromise,
WsProvider,
} from "https://deno.land/x/polkadot@0.2.15/api/mod.ts";
} from "https://deno.land/x/polkadot@0.2.16/api/mod.ts";

async function initApi() {
const PROVIDER = Deno.env.get("PROVIDER") ?? "wss://rpc.polkadot.io";
Expand Down

0 comments on commit a868772

Please sign in to comment.