-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(zetaclient)!: support for runtime chain (de)provisioning (#2497)
* Simplify orchestrator construction * Implement signers provision / deprovision based on AppContext state * Add db package * Fix observers so they can use *db.DB * Move observer map creation to orchestrator * Move observer.Start() to orchestrator. Shutdown zetaclient if not an observer * Implement BTC & EVM RPCs as httptest wrapper * Implement observer map sync based on chainParams * Implement observer & signer sync worker * Respect chainParam.IsSupported * Update readme * Fix conflicts * Fix SOL observer * Address PR comments [1] * Address PR comments [2] * Address PR comments [3] * Update orchestrator sync cadence * Address PR comments [4]
- Loading branch information
Showing
34 changed files
with
2,036 additions
and
934 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
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
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,17 @@ | ||
// Package ptr provides helper functions for working with pointers. | ||
package ptr | ||
|
||
// Ptr returns a pointer to the value passed in. | ||
func Ptr[T any](value T) *T { | ||
return &value | ||
} | ||
|
||
// Deref returns the value of the pointer passed in, or the zero value of the type if the pointer is nil. | ||
func Deref[T any](value *T) T { | ||
var out T | ||
if value != nil { | ||
out = *value | ||
} | ||
|
||
return out | ||
} |
Oops, something went wrong.