-
Notifications
You must be signed in to change notification settings - Fork 90
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 Wasm bindings for the Account
#574
Merged
abdulmth
merged 111 commits into
epic/wasm-bindings-account
from
feat/wasm-bindings-account
Feb 9, 2022
Merged
Changes from all commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
f3b1fa6
compile account in WASM
e756160
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
6958f5f
PoC account and accountBuilder wasm bindings
bcb4379
WASM binding PoC create_account()
40ccb57
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
0c093d2
OneOrMany bindings PoC
41cb60b
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
6e9c903
bind create_method, delete_method, create_service
afd09f6
add bindings for attach_method_relationship
957f4c6
fix lint issues
f898303
remove empty lines
b221ff6
add detach_method_relationship
ee01e52
add bindings for delete_service
c170f97
fix MethodRelationship type
fa64fea
refactor AccountBuilder
4e86c46
add create_did Account example
6d943f8
add manipulate_did account example
04bbb27
add lazy account example
871c70b
add binding for `sign()`
34e36e2
add node types
230d0dd
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
90edfbd
fix account version
6d7bb31
add typescript config example
5c44f08
remove redundant empty `accountBuilderOptions`
9492c9f
remove duplicate of `WasmSignatureOptions`
b09be84
bindings for `IdentitySetup`
c8966e6
add uncheked example
03ee5c1
small fix `unchecked.ts`
8890a7d
add explorer URL for the examples
8ab216d
add `method_secret` to `create_method(..)` binding
cfe3fc9
pass `auto_save` to account builder
c3d07dc
cargo fix
47b0bde
fix `update_documenet_unchecked` return type in the bindings
ef064dc
fix merge conflicts, fix clippy warnings
e1a0e77
fix cargo.toml format
1be4e2d
wasm bindings for `fetch_state()`
0664bb2
port `publish_with_optoins(..)`
84bd2fd
fix clippy issue
2f0fb41
cargo fmt fix
39660b5
fix format issue
b93d9d7
remove `comm` feature
998b550
add build command to README
49408a4
add placeholder multiple_identities example
80850f0
remove `setEncoding` from config.ts
a3bdcda
improve comment formating in config.ts
f4afa07
refactor `AccountBuilder` to take `Config` instead of `Client`
3e0bd1a
check for error type in config.ts
181f191
refactor delete_method to take duck-typed interface
78311fd
add node-fetch dependency
84f65db
move `WasmAutoSave` to seperate file
7f0cb2f
move `PromiseAccount` to seperate extern "C"
148bb3e
rename autosave
4430a86
move `identity_setup` to seperate file
5deeb19
typo in method_secret.rs
39e05e8
refactor deserialization in `attach_method_relationship`
e143c1d
refactor attach_method_relationship
0e5d27b
refactor attach_method_relationship
85ae4d4
refactor create_method.rs and create_service.rs
9a8ed2e
remove unused imports
8240688
rename `serviceType` to `type`
3e1c08a
some improvements
3486e20
derive clone for `Client` only if WASM
6a612bf
fix dependency issues
035fbc3
add is_empty check for detach_method_relationship
1896cf2
refactor (rename files)
be00e5f
merge `publish_with_options(..)` in `publish()`
d9617a0
extend unchecked.ts to include adding a custom property to document.
a9e2259
fix clippy issues
2bf3d18
remove logger
60dc7c6
refactor errors in updates
62fe8f9
add `properties` to `create_service`
1dcb801
cargo fmt
975f184
fix import format
1f1bcdf
fix typo, cargo fmt
a73f6fe
format cargo files
eacaf02
remove `structural`
dc00538
fix exposed `process_update(..)`
117dcfe
implement multiple_identities.ts
9930107
create implementation for options
8769906
refactor `.storage()` to return an `Arc`
7a31e80
refactor duplicated defaults in `create_method.rs`
3979ec0
refactor `create_signed_*`
9ce9b90
improve documentation
778fd26
cargo fmt
28f15e2
fix formatting issue
e09d4a2
small example fix
a67291f
improve `.storage()` return type.
b56f954
Remove unused `Account` milestone option (#645)
cycraig ffd2773
improve README
19662f5
improve config.ts
f8dbcc3
improve TS examples
52dac18
change `WasmRefCell` to `RefCell`
6475728
rename `account_builder.rs` to `wasm_account_builder.rs`
5e6cd84
rename `at/detach_relationship(..)`
4996f61
rename `at/detach_method_relationship.rs`
75d21d0
improve `create_service.rs`
ec0356a
small improvements
0c3bbc5
remove `as_ref()` and change `WasmRefCell`
e21f7ea
remove `from` implementation for a borrow
9b3e009
remove `wasm` dependency from `identity/cargo.toml`
b842417
update api-reference
7d4643e
remove `autopublish` from `manipulate_did.ts
90c6584
Merge remote-tracking branch 'origin/dev' into feat/wasm-bindings-acc…
6526dc4
remove `milestone`
b503fe5
remove useless conversion
c85826b
typo in config.ts
abdulmth 644c9ad
Apply suggestions from code review
abdulmth b579228
update links for the examples
7cbc644
use builder instead of `AccountConfig`
aec32e9
implement `From` for `SignatureOptions`
6850fb8
reverse to original `impl From<WasmSignatureOptions>`
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I guess we have to use absolute links since I assume the README.md is included in the wiki directly.
No changes requested, just annoying since the link won't work until 0.5 is released to main.