-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat/hide-functions
- Loading branch information
Showing
12 changed files
with
226 additions
and
51 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@axelar-network/axelar-cgp-sui': minor | ||
--- | ||
|
||
Add a query for version on version_control, change CreatorCap to OwnerCap and allow owner to set allowed functions in gateway |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module axelar_gateway::owner_cap; | ||
|
||
// ----- | ||
// Types | ||
// ----- | ||
public struct OwnerCap has key, store { | ||
id: UID, | ||
} | ||
|
||
public(package) fun create(ctx: &mut TxContext): OwnerCap { | ||
OwnerCap { | ||
id: object::new(ctx), | ||
} | ||
} | ||
|
||
/// --------- | ||
/// Test Only | ||
/// --------- | ||
#[test_only] | ||
public(package) fun destroy_for_testing(self: OwnerCap) { | ||
let OwnerCap { id } = self; | ||
id.delete(); | ||
} |
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.