Skip to content

Commit

Permalink
annotate with tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
tt-cll committed Dec 18, 2024
1 parent bd79507 commit a2cdfe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deployment/ccip/changeset/solana_state.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package changeset

// TODO: create similar struct as CCIPChainState, but with Sol specific primitives
// https://smartcontract-it.atlassian.net/browse/INTAUTO-360
// SolChainState holds a Go binding for all the currently deployed CCIP programs
// on a chain. If a binding is nil, it means here is no such contract on the chain.
type SolCCIPChainState struct {
}

// TODO: create GenerateSolanaView function similar to GenerateView
// TODO: create GenerateSolanaView function similar to GenerateView
// https://smartcontract-it.atlassian.net/browse/INTAUTO-358
3 changes: 3 additions & 0 deletions deployment/ccip/changeset/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func (s CCIPOnChainState) View(chains []uint64) (map[string]view.ChainView, map[
}
chainState := s.Chains[chainSelector]
// TODO: call Solana view generation here (switch case on chainSelector)
// https://smartcontract-it.atlassian.net/browse/INTAUTO-359
chainView, err := chainState.GenerateView()
if err != nil {
return m, sm, err
Expand All @@ -327,6 +328,7 @@ func LoadOnchainState(e deployment.Environment) (CCIPOnChainState, error) {
}
}
// TODO: Load Solana state here based on chainSelector
// https://smartcontract-it.atlassian.net/browse/INTAUTO-361
chainState, err := LoadChainState(chain, addresses)
if err != nil {
return state, err
Expand All @@ -338,6 +340,7 @@ func LoadOnchainState(e deployment.Environment) (CCIPOnChainState, error) {

// LoadChainState Loads all state for a chain into state
// TODO: Add function LoadSolanaChainState
// https://smartcontract-it.atlassian.net/browse/INTAUTO-362
func LoadChainState(chain deployment.Chain, addresses map[string]deployment.TypeAndVersion) (CCIPChainState, error) {
var state CCIPChainState
mcmsWithTimelock, err := commoncs.MaybeLoadMCMSWithTimelockChainState(chain, addresses)
Expand Down

0 comments on commit a2cdfe6

Please sign in to comment.