-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger: Boyscout compile errors for multi-backend adaptation
- Loading branch information
Norbert Dzikowski
committed
Aug 22, 2023
1 parent
1982b6c
commit 308e47a
Showing
15 changed files
with
212 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
"use strict"; | ||
|
||
import { ErdstallSession, ErdstallClient, Client, Session } from "#erdstall"; | ||
import { expect } from "chai"; | ||
|
||
describe("ErdstallClient", () => { | ||
const enclaveConn = new URL("http://localhost:8080"); | ||
const cl: ErdstallClient<["ethereum", "substrate"]> = new Client< | ||
["ethereum", "substrate"] | ||
>( | ||
enclaveConn, | ||
{ | ||
backend: "ethereum", | ||
encConn: enclaveConn, | ||
provider: {} as any, | ||
}, | ||
{ | ||
backend: "substrate", | ||
arg: 420, | ||
}, | ||
); | ||
|
||
cl.on("Withdrawn", (e) => {}); | ||
}); | ||
|
||
describe("ErdstallSession", () => { | ||
const singleSession: ErdstallSession<["ethereum"]> = new Session< | ||
["ethereum"] | ||
>({ | ||
backend: "ethereum", | ||
encConn: new URL("http://localhost:8545"), | ||
provider: {} as any, | ||
signer: {} as any, | ||
address: {} as any, | ||
}); | ||
|
||
const _addr = singleSession.erdstall(); | ||
|
||
const multiSession = new Session<["ethereum", "substrate"]>( | ||
{ | ||
backend: "ethereum", | ||
encConn: new URL("http://localhost:8545"), | ||
provider: {} as any, | ||
signer: {} as any, | ||
address: {} as any, | ||
}, | ||
{ | ||
backend: "substrate", | ||
arg: 420, | ||
}, | ||
); | ||
|
||
const _multiAddr = multiSession.erdstall(); | ||
|
||
singleSession.on("Withdrawn", (e) => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
"use strict"; | ||
|
||
export * from "./readconn"; | ||
export * from "./writeconn"; | ||
export * from "./contracts"; | ||
export * from "./contracts_deposit"; | ||
export * from "./tokencache"; | ||
export * from "./tokenmanager"; | ||
export * from "./tokenprovider"; | ||
export * from "./backends"; | ||
export * from "./metadata"; | ||
export * from "./reader"; | ||
export * from "./writer"; | ||
export * from "./signer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.