-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove duplicate Authority type representation * remove versioned authority list representation * grandpa module. refactor * add authorship module. grandpa additions and coverage * cleanup and more tests * address pr comments
- Loading branch information
Showing
134 changed files
with
5,785 additions
and
891 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
Binary file not shown.
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,28 @@ | ||
//go:build !nonwasmenv | ||
|
||
package env | ||
|
||
// TODO | ||
/* | ||
Offchain: | ||
*/ | ||
|
||
// ext_offchain_local_storage_clear_version_1 | ||
// ext_offchain_is_validator_version_1 | ||
// ext_offchain_local_storage_compare_and_set_version_1 | ||
// ext_offchain_local_storage_get_version_1 | ||
// ext_offchain_local_storage_set_version_1 | ||
// ext_offchain_network_state_version_1 | ||
// ext_offchain_random_seed_version_1 | ||
|
||
//go:wasmimport env ext_offchain_submit_transaction_version_1 | ||
func ExtOffchainSubmitTransactionVersion1(data int64) int64 | ||
|
||
// ext_offchain_timestamp_version_1 | ||
// ext_offchain_sleep_until_version_1 | ||
// ext_offchain_http_request_start_version_1 | ||
// ext_offchain_http_request_add_header_version_1 | ||
// ext_offchain_http_request_write_body_version_1 | ||
// ext_offchain_http_response_wait_version_1 | ||
// ext_offchain_http_response_headers_version_1 | ||
// ext_offchain_http_response_read_body_version_1 |
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,7 @@ | ||
//go:build nonwasmenv | ||
|
||
package env | ||
|
||
func ExtOffchainSubmitTransactionVersion1(data int64) int64 { | ||
panic("not implemented") | ||
} |
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,20 @@ | ||
package authorship | ||
|
||
import ( | ||
"github.com/LimeChain/gosemble/frame/system" | ||
primitives "github.com/LimeChain/gosemble/primitives/types" | ||
) | ||
|
||
type Config struct { | ||
FindAuthor primitives.FindAuthor[primitives.AccountId] | ||
EventHandler EventHandler | ||
SystemModule system.Module | ||
} | ||
|
||
func NewConfig(findAuthor primitives.FindAuthor[primitives.AccountId], eventHandler EventHandler, systemModule system.Module) *Config { | ||
return &Config{ | ||
FindAuthor: findAuthor, | ||
EventHandler: eventHandler, | ||
SystemModule: systemModule, | ||
} | ||
} |
Oops, something went wrong.