-
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.
add allow and disallow function to relayer_discovery
- Loading branch information
Showing
4 changed files
with
104 additions
and
1 deletion.
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 allow_function and disallow_function to relayer_discovery. |
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 relayer_discovery::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