-
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.
feat: migrate params to dedicated stores
Signed-off-by: Artur Troian <[email protected]>
- Loading branch information
Showing
84 changed files
with
8,021 additions
and
2,298 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,18 @@ | ||
package migrate | ||
|
||
import ( | ||
"github.com/akash-network/akash-api/go/node/audit/v1beta3" | ||
|
||
v1 "pkg.akt.dev/go/node/audit/v1" | ||
attrmigrate "pkg.akt.dev/go/node/types/attributes/v1/migrate" | ||
) | ||
|
||
func AttributesFromV1beta3(from v1beta3.AuditedAttributes) v1.AuditedAttributes { | ||
to := v1.AuditedAttributes{ | ||
Owner: from.Owner, | ||
Auditor: from.Auditor, | ||
Attributes: attrmigrate.AttributesFromV1Beta3(from.Attributes), | ||
} | ||
|
||
return to | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
package migrate | ||
|
||
import ( | ||
"github.com/akash-network/akash-api/go/node/cert/v1beta3" | ||
|
||
v1 "pkg.akt.dev/go/node/cert/v1" | ||
) | ||
|
||
func CertFromV1beta3(from v1beta3.Certificate) v1.Certificate { | ||
to := v1.Certificate{ | ||
State: v1.State(from.State), | ||
Cert: make([]byte, len(from.Cert)), | ||
Pubkey: make([]byte, len(from.Pubkey)), | ||
} | ||
|
||
copy(to.Cert, from.Cert) | ||
copy(to.Pubkey, from.Pubkey) | ||
|
||
return to | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.