From fd1d7915edf2880d0b094be515c4be2d3ff576ad Mon Sep 17 00:00:00 2001 From: Shreevatsa N Date: Wed, 25 Sep 2024 11:27:55 +0530 Subject: [PATCH] demo: Update demo-statement to remove registrars,judgements Signed-off-by: Shreevatsa N --- demo/src/func-test.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/demo/src/func-test.ts b/demo/src/func-test.ts index 138016d6..705066ba 100644 --- a/demo/src/func-test.ts +++ b/demo/src/func-test.ts @@ -6,13 +6,6 @@ import { randomUUID } from 'crypto' import { addNetworkMember } from './utils/createAuthorities' import { createAccount } from './utils/createAccount' -import { - requestJudgement, - setIdentity, - setRegistrar, - provideJudgement, -} from './utils/createRegistrar' - function getChallenge(): string { return Cord.Utils.UUID.generate() } @@ -27,7 +20,6 @@ async function main() { // Step 1: Setup Membership // Setup transaction author account - CORD Account. - console.log(`\nā„ļø New Network Member`) const authorityAuthorIdentity = Cord.Utils.Crypto.makeKeypairFromUri( process.env.ANCHOR_URI ? process.env.ANCHOR_URI : '//Alice', @@ -39,20 +31,12 @@ async function main() { `šŸ¦ Member (${authorityIdentity.type}): ${authorityIdentity.address}` ) await addNetworkMember(authorityAuthorIdentity, authorityIdentity.address) - await setRegistrar(authorityAuthorIdentity, authorityIdentity.address) console.log('āœ… Network Authority created!') // Setup network member account. const { account: authorIdentity } = await createAccount() console.log(`šŸ¦ Member (${authorIdentity.type}): ${authorIdentity.address}`) await addNetworkMember(authorityAuthorIdentity, authorIdentity.address) - console.log(`šŸ” Member permissions updated`) - await setIdentity(authorIdentity) - console.log(`šŸ” Member identity info updated`) - await requestJudgement(authorIdentity, authorityIdentity.address) - console.log(`šŸ” Member identity judgement requested`) - await provideJudgement(authorityIdentity, authorIdentity.address) - console.log(`šŸ” Member identity judgement provided`) console.log('āœ… Network Member added!') // Step 2: Setup Identities