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

Authorizations #358

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
bbf6814
added storage for an authorizations contract
nicolaslara May 24, 2022
a6fc247
added initial implementation and updated initialization everywhere
nicolaslara May 24, 2022
e0e062e
added authorization checking
nicolaslara May 24, 2022
f87390c
initial authorization tests
nicolaslara May 24, 2022
2fe5d00
Added initial tests and simple authorization
nicolaslara May 24, 2022
6bb31e2
removed unnecessary stuff from the template
nicolaslara May 24, 2022
b907f8a
removed circleci
nicolaslara May 24, 2022
11cfc5c
removed unnecessary schema info
nicolaslara May 24, 2022
35d54c7
Update contracts/cw-auth-manager/src/contract.rs
nicolaslara May 25, 2022
85c8159
whitelist contract cleanup
nicolaslara May 28, 2022
20467b0
cleaner error
nicolaslara May 28, 2022
5ccda74
added validation to the whitelist contract
nicolaslara May 28, 2022
4bdaf72
adding authorizations to groups.
nicolaslara May 29, 2022
4af1bc2
actually using the group in the manager
nicolaslara May 31, 2022
1e118c9
new group auth experiment. Storing auths as a string. This is easier …
nicolaslara May 31, 2022
1e304bd
initial refactor to do auth as a middlware
nicolaslara Jun 2, 2022
24e45d5
working simplified authorizations
nicolaslara Jun 9, 2022
145403d
initial message matching work
nicolaslara Jun 9, 2022
2cc58c5
importing auth as a library
nicolaslara Jun 9, 2022
3bdddd8
cleanup and tests
nicolaslara Jun 9, 2022
5f47c3f
using serde_json_wasm and deserializing manually because serde_json i…
nicolaslara Jun 12, 2022
813bd50
testing initial message filtering
nicolaslara Jun 13, 2022
7978f63
fixed deep matching, fixed authorizations api
nicolaslara Jun 14, 2022
8656603
remove auths
nicolaslara Jun 14, 2022
d6528e8
using execute instead of query
nicolaslara Jun 14, 2022
9f74681
matching improvements and more tests
nicolaslara Jun 14, 2022
931c5bb
set cw-core back to how it was
nicolaslara Jun 15, 2022
4b371e2
Merge branch 'main' into authorizations_simple
nicolaslara Jun 15, 2022
ac3682e
added query
nicolaslara Jun 16, 2022
c5a9b10
cleanup
nicolaslara Jun 16, 2022
3289eb6
simple test clenaup
nicolaslara Jun 20, 2022
b58de94
reworking auths to be used via queries instead of submessages. This w…
nicolaslara Jun 21, 2022
b0804f5
allowing the auth module to behave as a proposal
nicolaslara Jun 23, 2022
2d2e862
uglier but more functional implementation
nicolaslara Jun 23, 2022
abb1793
initial work for turning the auth manager into a proposal
nicolaslara Jun 23, 2022
553a392
added tests of using the authorization as a proposal
nicolaslara Jul 25, 2022
c3baeb9
style change
nicolaslara Jul 25, 2022
a79bfe6
fixed copy/paste typo
nicolaslara Jul 25, 2022
6912f49
empty auths never authorize
nicolaslara Jul 25, 2022
1460ff0
added groups
nicolaslara Jul 26, 2022
1071263
fixed replies for update and added remaining group tests
nicolaslara Jul 27, 2022
00e5919
update proposal todo
nicolaslara Jul 27, 2022
d378b4d
fixed fmt with +nightly
nicolaslara Jul 27, 2022
b257a0e
added groups to the update message
nicolaslara Jul 28, 2022
3f3f424
Allowing for *and* and *or* auths. Fixed tests to reflect the change.…
nicolaslara Aug 1, 2022
cc5d231
Merge branch 'main' into authorizations_simple
nicolaslara Aug 1, 2022
93b6cb7
added diagrams from walkthrough
nicolaslara Aug 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
58 changes: 58 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = ["contracts/*", "packages/*", "debug/*"]
members = ["contracts/*", "packages/*", "authorizations/*", "debug/*"]


[profile.release.package.stake-cw20-external-rewards]
Expand Down
4 changes: 4 additions & 0 deletions authorizations/message-filter/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
unit-test = "test --lib"
schema = "run --example schema"