1- import "https://deno.land/x/polkadot@0.2.45/api-augment/mod.ts" ;
2- import {
3- ApiPromise ,
4- WsProvider ,
5- } from "https://deno.land/x/polkadot@0.2.45/api/mod.ts" ;
6- import { GearApi } from "https://gear-js.deno.dev/api/src/index.ts" ;
7- import { Client } from "https://deno.land/x/subshell@0.2.45-3/client/mod.ts" ;
8- // import { VerboseSigner } from "https://deno.land/x/subshell@0.2.45-3/signer/mod.ts";
9- import { stringToU8a } from "https://deno.land/x/polkadot@0.2.45/util/mod.ts" ;
1+ import "npm:@polkadot/api-augment" ;
2+ import { ApiPromise , WsProvider } from "npm:@polkadot/api" ;
3+ import { GearApi } from "npm:@gear-js/api" ;
4+ import { Client } from "https://deno.land/x/subshell@0.2.45-4/client/mod.ts" ;
5+ // import { VerboseSigner } from "https://deno.land/x/subshell@0.2.45-4/signer/mod.ts";
6+ import { stringToU8a } from "npm:@polkadot/util" ;
107
118const GEAR = ! ! Deno . env . get ( "GEAR" ) ;
129const DEFAULT_PROVIDER = GEAR
13- ? "wss://rpc.vara-network.io "
10+ ? "wss://rpc.vara.network "
1411 : "wss://rpc.polkadot.io" ;
1512const SESSION_ID = Deno . env . get ( "SESSION_ID" ) ?? "" ;
1613const PROVIDER = Deno . env . get ( "PROVIDER" ) ?? DEFAULT_PROVIDER ;
@@ -24,8 +21,12 @@ function progInfo() {
2421 // "⚙️ v8 version ": Deno.version.v8,
2522 // "🇹 TypeScript version ": Deno.version.typescript,
2623 "🦕 Deno" : Deno . version . deno ,
27- "📗 Wiki" : GEAR ? "https://github.com/btwiuse/gear.sh/wiki" : "https://wiki.subshell.xyz" ,
28- "🙋 Issues" : GEAR ? "https://github.com/btwiuse/gear.sh/issues" : "https://github.com/btwiuse/subshell/issues" ,
24+ "📗 Wiki" : GEAR
25+ ? "https://github.com/btwiuse/gear.sh/wiki"
26+ : "https://wiki.subshell.xyz" ,
27+ "🙋 Issues" : GEAR
28+ ? "https://github.com/btwiuse/gear.sh/issues"
29+ : "https://github.com/btwiuse/subshell/issues" ,
2930 // "⛓️ RPC Pprvider": PROVIDER,
3031 // "🪄 Custom types": JSON.stringify(TYPES) != '{}' ? 'Yes' : 'None',
3132 // "📖 Runtime api reference": 'https://substrate.rs',
0 commit comments