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

Timelock example #1068

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Timelock example #1068

wants to merge 1 commit into from

Conversation

iFrostizz
Copy link
Contributor

@iFrostizz iFrostizz commented Jun 20, 2024

This branch is currently based on both https://github.com/ava-labs/hypersdk/tree/multisig_example for arbitrary return function call types and https://github.com/ava-labs/hypersdk/tree/add_timestamp to have access to the timestamp in the context

@iFrostizz iFrostizz changed the base branch from main to multisig_example June 20, 2024 12:53
@iFrostizz iFrostizz self-assigned this Jun 20, 2024
@iFrostizz
Copy link
Contributor Author

Waiting for context injections #1076 to land before writing actual tests

@iFrostizz iFrostizz force-pushed the multisig_example branch 3 times, most recently from 1eaa311 to aa51f3e Compare July 8, 2024 12:26
@iFrostizz iFrostizz marked this pull request as ready for review July 8, 2024 15:26
@@ -0,0 +1,313 @@
use borsh::{BorshDeserialize, BorshSerialize};
#[cfg(not(feature = "bindings"))]
use wasmlanche_sdk::Context;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 What if we just made this an enum?

Not for this PR, but just a thought

Copy link
Contributor Author

@iFrostizz iFrostizz Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain what could be an enum (probably selected the wrong piece of code?)

.run_step(&Step {
endpoint: Endpoint::Execute,
method: "schedule".to_string(),
max_units: u64::MAX,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳

@iFrostizz iFrostizz requested a review from richardpringle July 9, 2024 11:55
@iFrostizz iFrostizz changed the base branch from multisig_example to main July 9, 2024 19:43
@iFrostizz iFrostizz changed the base branch from main to multisig_example July 9, 2024 19:44
@iFrostizz
Copy link
Contributor Author

This PR should be merged after the Multisig #1047

@iFrostizz iFrostizz requested a review from samliok as a code owner July 11, 2024 14:21
@iFrostizz iFrostizz requested a review from aaronbuchwald as a code owner July 19, 2024 10:58
@iFrostizz iFrostizz force-pushed the timelock_example branch 3 times, most recently from 206be8a to c967dfd Compare September 30, 2024 20:24
@iFrostizz iFrostizz changed the base branch from multisig_example to main September 30, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Paused 🧊
Development

Successfully merging this pull request may close these issues.

2 participants