Skip to content

Commit

Permalink
fix antipatern
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolfo Miranda committed Sep 9, 2023
1 parent 536c3b9 commit d3aaa49
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 92 deletions.
19 changes: 4 additions & 15 deletions examples/integration-scripts/challenge.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting CHALLENGE test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot two clients
const bran1 = signify.randomPasscode()
const bran2 = signify.randomPasscode()
Expand Down
19 changes: 4 additions & 15 deletions examples/integration-scripts/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting CREDENTIALS test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot three clients
const bran1 = signify.randomPasscode()
const bran2 = signify.randomPasscode()
Expand Down
19 changes: 4 additions & 15 deletions examples/integration-scripts/delegation.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting DELEGATION test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot two clients
const bran1 = signify.randomPasscode()
const bran2 = signify.randomPasscode()
Expand Down
4 changes: 2 additions & 2 deletions examples/integration-scripts/multisig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { strict as assert } from "assert";
import signify from "signify-ts";
import { strict as assert } from "assert"
import signify from "signify-ts"

const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"
Expand Down
19 changes: 4 additions & 15 deletions examples/integration-scripts/randy.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting RANDY test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot client
const bran1 = signify.randomPasscode()
const client1 = new signify.SignifyClient(url, bran1, signify.Tier.low, boot_url);
Expand Down
19 changes: 4 additions & 15 deletions examples/integration-scripts/request-present.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting REQUEST-PRESENT test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot three clients
const bran1 = signify.randomPasscode()
const bran2 = signify.randomPasscode()
Expand Down
19 changes: 4 additions & 15 deletions examples/integration-scripts/salty.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { strict as assert } from "assert";
import { strict as assert } from "assert"
import signify from "signify-ts"

let signify: any;
const url = "http://127.0.0.1:3901"
const boot_url = "http://127.0.0.1:3903"

// @ts-ignore
import('signify-ts').then(
(module) => {
signify = module
signify.ready().then(() => {
console.log("*** Starting SALTY test ***");
run().then(() => {
console.log("*** Test complete ***")
});
});
}
)
await run()

async function run() {

await signify.ready()
// Boot client
const bran1 = signify.randomPasscode()
const client1 = new signify.SignifyClient(url, bran1, signify.Tier.low, boot_url);
Expand Down

0 comments on commit d3aaa49

Please sign in to comment.