Skip to content

Commit

Permalink
submission
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmasken committed Feb 11, 2024
1 parent fc4b232 commit 8f4ff10
Show file tree
Hide file tree
Showing 173 changed files with 3,259 additions and 15,087 deletions.
Binary file modified .dfx/local/canisters/assets/assets.wasm.gz
Binary file not shown.
24 changes: 21 additions & 3 deletions .dfx/local/canisters/assets/assetstorage.did
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,25 @@ type ListPermitted = record { permission: Permission };

type ValidationResult = variant { Ok : text; Err : text };

service: {
type AssetCanisterArgs = variant {
Init: InitArgs;
Upgrade: UpgradeArgs;
};

type InitArgs = record {};

type UpgradeArgs = record {
set_permissions: opt SetPermissions;
};

/// Sets the list of principals granted each permission.
type SetPermissions = record {
prepare: vec principal;
commit: vec principal;
manage_permissions: vec principal;
};

service: (asset_canister_args: opt AssetCanisterArgs) -> {
api_version: () -> (nat16) query;

get: (record {
Expand Down Expand Up @@ -220,10 +238,10 @@ service: {

authorize: (principal) -> ();
deauthorize: (principal) -> ();
list_authorized: () -> (vec principal) query;
list_authorized: () -> (vec principal);
grant_permission: (GrantPermission) -> ();
revoke_permission: (RevokePermission) -> ();
list_permitted: (ListPermitted) -> (vec principal) query;
list_permitted: (ListPermitted) -> (vec principal);
take_ownership: () -> ();

get_asset_properties : (key: Key) -> (record {
Expand Down
Binary file modified .dfx/local/canisters/assets/assetstorage.wasm.gz
Binary file not shown.
24 changes: 21 additions & 3 deletions .dfx/local/canisters/assets/constructor.did
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,25 @@ type ListPermitted = record { permission: Permission };

type ValidationResult = variant { Ok : text; Err : text };

service: {
type AssetCanisterArgs = variant {
Init: InitArgs;
Upgrade: UpgradeArgs;
};

type InitArgs = record {};

type UpgradeArgs = record {
set_permissions: opt SetPermissions;
};

/// Sets the list of principals granted each permission.
type SetPermissions = record {
prepare: vec principal;
commit: vec principal;
manage_permissions: vec principal;
};

service: (asset_canister_args: opt AssetCanisterArgs) -> {
api_version: () -> (nat16) query;

get: (record {
Expand Down Expand Up @@ -220,10 +238,10 @@ service: {

authorize: (principal) -> ();
deauthorize: (principal) -> ();
list_authorized: () -> (vec principal) query;
list_authorized: () -> (vec principal);
grant_permission: (GrantPermission) -> ();
revoke_permission: (RevokePermission) -> ();
list_permitted: (ListPermitted) -> (vec principal) query;
list_permitted: (ListPermitted) -> (vec principal);
take_ownership: () -> ();

get_asset_properties : (key: Key) -> (record {
Expand Down
2 changes: 1 addition & 1 deletion .dfx/local/canisters/assets/init_args.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
()
(opt AssetCanisterArgs)

0 comments on commit 8f4ff10

Please sign in to comment.