Skip to content

Commit

Permalink
packages/cli: add all signers to app
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltg committed Nov 10, 2023
1 parent 3d32eb5 commit add8a72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import { createAPI } from "@canvas-js/core/api"
import { MIN_CONNECTIONS, MAX_CONNECTIONS } from "@canvas-js/core/constants"
import { defaultBootstrapList, testnetBootstrapList } from "@canvas-js/core/bootstrap"

import { SIWESigner } from "@canvas-js/chain-ethereum"
import { ATPSigner } from "@canvas-js/chain-atp"
import { CosmosSigner } from "@canvas-js/chain-cosmos"
import { SubstrateSigner } from "@canvas-js/chain-substrate"
import { SolanaSigner } from "@canvas-js/chain-solana"

import { getContractLocation } from "../utils.js"

export const command = "run <path>"
Expand Down Expand Up @@ -135,6 +141,7 @@ export async function handler(args: Args) {
const app = await Canvas.initialize({
path: location,
contract,
signers: [new SIWESigner(), new ATPSigner(), new CosmosSigner(), new SubstrateSigner(), new SolanaSigner()],
listen,
announce,
minConnections: args["min-connections"],
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"outDir": "dist"
},
"references": [
{ "path": "../chain-atp" },
{ "path": "../chain-ethereum" },
{ "path": "../chain-cosmos" },
{ "path": "../chain-solana" },
{ "path": "../chain-substrate" },
{ "path": "../core" },
{ "path": "../interfaces" }
]
Expand Down

0 comments on commit add8a72

Please sign in to comment.