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

Add integration chain history/diff chain API #347

Merged
merged 36 commits into from
Aug 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0adb323
Retrieve basic message history
l1h3r Aug 3, 2021
bfcc3b2
add Client::resolve_diffs
l1h3r Aug 3, 2021
b306e9f
Add WASM support/example
l1h3r Aug 3, 2021
0119b6b
Remove needless borrow
l1h3r Aug 4, 2021
0ef3fc9
Merge branch 'chore/libjose-clippy' into feat/debug-tools
l1h3r Aug 4, 2021
d12a8d0
cargo clean
l1h3r Aug 4, 2021
dbce308
cargo fmt
l1h3r Aug 4, 2021
894b125
add did-history node example
Aug 5, 2021
9813299
fix did-history node example
Aug 5, 2021
a02dc5a
add did-history browser example
Aug 5, 2021
9e0646c
start implementing create_diff example for browser
Aug 6, 2021
68bc0e9
Merge branch 'dev' into feat/debug-tools
Aug 6, 2021
a108c53
add create_diff examples
Aug 7, 2021
ada634a
fix revocation
Aug 7, 2021
2a1ef90
Address comments
cycraig Aug 9, 2021
d964b45
Merge branch 'dev' of https://github.com/iotaledger/identity.rs into …
cycraig Aug 9, 2021
b4aa5f1
Fix merge.
cycraig Aug 9, 2021
ba1a543
Remove leftover file from merge conflict.
cycraig Aug 9, 2021
875291a
Fix format
cycraig Aug 9, 2021
d0f061a
Fix wasm examples README.md
cycraig Aug 10, 2021
27a76c1
Add Wasm binding history types
cycraig Aug 11, 2021
b7ab61b
Export more functions to wasm bindings
cycraig Aug 12, 2021
907a847
Export more structs to Wasm and update examples.
cycraig Aug 16, 2021
86dd6f7
Fix README.md spelling.
cycraig Aug 16, 2021
43873ae
Merge branch 'dev' of https://github.com/iotaledger/identity.rs into …
cycraig Aug 16, 2021
e99000f
Fix broken Wasm examples
cycraig Aug 16, 2021
b36c624
Fix clippy, fmt warnings
cycraig Aug 16, 2021
2202f6d
Refactor MessageHistory to DocumentHistory
cycraig Aug 18, 2021
59c9c2c
Export DocumentHistory to Wasm bindings
cycraig Aug 18, 2021
8f6004b
Update bindings/wasm/src/did/wasm_document.rs
cycraig Aug 20, 2021
0d07ef7
Update bindings/wasm/examples/browser/mainpulate_did.js
cycraig Aug 20, 2021
f4ab552
Update identity-iota/src/chain/document_chain.rs
cycraig Aug 20, 2021
f54384e
Update document_chain.rs
cycraig Aug 20, 2021
c46930a
Update document_chain.rs
cycraig Aug 20, 2021
68d7544
Fix whitespace formatting to satisfy CI
cycraig Aug 20, 2021
5e02ff9
Rename address to index
cycraig Aug 20, 2021
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
20 changes: 18 additions & 2 deletions bindings/wasm/cypress/integration/browser_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import { createVC } from "../../examples/browser/create_vc.js";
import { manipulateIdentity } from "../../examples/browser/mainpulate_did.js";
import { resolveIdentity } from "../../examples/browser/resolve.js";
import { createVP } from "../../examples/browser/create_vp.js";
import { revoke } from "../../examples/browser/revocation.js";
import { createDiff } from "../../examples/browser/diff_chain.js";
import { revoke } from "../../examples/browser/revoke_vc.js";
import { merkleKey } from "../../examples/browser/merkle_key.js";
import { resolveHistory } from "../../examples/browser/resolve_history";

// Test that the browser examples do not throw uncaught exceptions twice, including syntax errors etc.
describe(
"Test browser examples",
{
defaultCommandTimeout: 120000, // 2 minutes to account for spurious network delays
defaultCommandTimeout: 180000, // 3 minutes to account for spurious network delays
},
() => {
beforeEach(async () => {
Expand Down Expand Up @@ -81,5 +83,19 @@ describe(
await merkleKey(defaultClientConfig(), false);
}
});
it("diff chain", async function () {
try {
await createDiff(defaultClientConfig(), false);
} catch (e) {
await createDiff(defaultClientConfig(), false);
}
});
it("resolve history", async function () {
try {
await resolveHistory(defaultClientConfig(), false);
} catch (e) {
await resolveHistory(defaultClientConfig(), false);
}
});
}
);
Loading