Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: get credential registry state (tever vcstate) #282

Merged
merged 8 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: updates for long running op saids
iFergal committed Nov 4, 2024
commit 53b6c374393cf05b8d83924f5eedbd923fe43dc0
2 changes: 1 addition & 1 deletion examples/integration-scripts/singlesig-drt.test.ts
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ describe('singlesig-drt', () => {
kargs = {};
result = await delegate.identifiers().rotate('delegate1', kargs);
op = await result.op();
expect(op.name).toEqual(`delegation.${delegate1.prefix}`);
expect(op.name).toEqual(`delegation.${result.serder.ked.d}`);

// delegator approves delegate
delegate1 = await delegate.identifiers().get('delegate1');

Unchanged files with check annotations Beta

});
await step('verifier IPEX apply', async () => {
const [apply, sigs, _] = await verifierClient.ipex().apply({

Check warning on line 308 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'_' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'_' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'_' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'_' is assigned a value but never used
senderName: verifierAid.name,
schemaSaid: QVI_SCHEMA_SAID,
attributes: { LEI: '5493001KJTIIGC8Y1R17' },
const apply = await holderClient.exchanges().get(holderApplyNote.a.d);
applySaid = apply.exn.d;
let filter: { [x: string]: any } = { '-s': apply.exn.a.s };

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'filter' is never reassigned. Use 'const' instead

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

Unexpected any. Specify a different type

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'filter' is never reassigned. Use 'const' instead

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

Unexpected any. Specify a different type

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'filter' is never reassigned. Use 'const' instead

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

Unexpected any. Specify a different type

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'filter' is never reassigned. Use 'const' instead

Check warning on line 334 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

Unexpected any. Specify a different type
for (const key in apply.exn.a.a) {
filter[`-a-${key}`] = apply.exn.a.a[key];
}
await markAndRemoveNotification(verifierClient, verifierOfferNote);
const [agree, sigs, _] = await verifierClient.ipex().agree({

Check warning on line 379 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'_' is assigned a value but never used

Check warning on line 379 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'_' is assigned a value but never used

Check warning on line 379 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'_' is assigned a value but never used

Check warning on line 379 in examples/integration-scripts/credentials.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'_' is assigned a value but never used
senderName: verifierAid.name,
recipient: holderAid.prefix,
offerSaid: offerSaid,
.keyStates()
.query(adelegatorGroupName.prefix, '1');
const kstor1 = await waitOperation(delegator1Client, queryOp1);

Check warning on line 307 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'kstor1' is assigned a value but never used

Check warning on line 307 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'kstor1' is assigned a value but never used

Check warning on line 307 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'kstor1' is assigned a value but never used

Check warning on line 307 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'kstor1' is assigned a value but never used
const kstor2 = await waitOperation(delegator2Client, queryOp2);

Check warning on line 308 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'kstor2' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'kstor2' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'kstor2' is assigned a value but never used

Check warning on line 308 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'kstor2' is assigned a value but never used
// QARs query the GEDA's key state
const ksteetor1 = await delegatee1Client
const ksteetor2 = await delegatee2Client
.keyStates()
.query(adelegatorGroupName.prefix, '1');
const teeTor1 = await waitOperation(delegatee1Client, ksteetor1);

Check warning on line 317 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'teeTor1' is assigned a value but never used

Check warning on line 317 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'teeTor1' is assigned a value but never used

Check warning on line 317 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'teeTor1' is assigned a value but never used

Check warning on line 317 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'teeTor1' is assigned a value but never used
const teeTor2 = await waitOperation(delegatee2Client, ksteetor2);

Check warning on line 318 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'teeTor2' is assigned a value but never used

Check warning on line 318 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'teeTor2' is assigned a value but never used

Check warning on line 318 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'teeTor2' is assigned a value but never used

Check warning on line 318 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'teeTor2' is assigned a value but never used
const teeDone1 = await waitOperation(delegatee1Client, opDelegatee1);

Check warning on line 320 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'teeDone1' is assigned a value but never used

Check warning on line 320 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'teeDone1' is assigned a value but never used

Check warning on line 320 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'teeDone1' is assigned a value but never used

Check warning on line 320 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'teeDone1' is assigned a value but never used
const teeDone2 = await waitOperation(delegatee2Client, opDelegatee2);

Check warning on line 321 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and macOS-latest

'teeDone2' is assigned a value but never used

Check warning on line 321 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and macOS-latest

'teeDone2' is assigned a value but never used

Check warning on line 321 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 18 and ubuntu-latest

'teeDone2' is assigned a value but never used

Check warning on line 321 in examples/integration-scripts/delegation-multisig.test.ts

GitHub Actions / Build, lint, and test on Node 20 and ubuntu-latest

'teeDone2' is assigned a value but never used
console.log('Delegated multisig created!');
const agtee = await delegatee1Client.identifiers().get(delegateeGroupName);