-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More changeset/view typing * Signal json * Apply structure to keystone * Extract common for shared views * Fix lint * Simplify * One more ks test * CCIP home assertion * Remove some comments * Fix import * More tests * Lint * CCIP owns smoke * Remove codeowner change, separate pr * Fix smoke test * Remove dupe * More merge conflicts * More conflicts * Rm unused fn * Fix a lint * Tidy mod * Generate * Exclude deployment project from flaky detector * Remove chainlink-relay from flaky detector excludes --------- Co-authored-by: lukaszcl <120112546+lukaszcl@users.noreply.github.com>
- Loading branch information
1 parent
21290c2
commit 709566a
Showing
43 changed files
with
608 additions
and
382 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
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,31 @@ | ||
package changeset | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
"github.com/smartcontractkit/chainlink/deployment" | ||
ccipdeployment "github.com/smartcontractkit/chainlink/deployment/ccip" | ||
ccipview "github.com/smartcontractkit/chainlink/deployment/ccip/view" | ||
"github.com/smartcontractkit/chainlink/deployment/common/view" | ||
) | ||
|
||
var _ deployment.ViewState = ViewCCIP | ||
|
||
func ViewCCIP(e deployment.Environment, ab deployment.AddressBook) (json.Marshaler, error) { | ||
state, err := ccipdeployment.LoadOnchainState(e, ab) | ||
if err != nil { | ||
return nil, err | ||
} | ||
chainView, err := state.View(e.AllChainSelectors()) | ||
if err != nil { | ||
return nil, err | ||
} | ||
nopsView, err := view.GenerateNopsView(e.NodeIDs, e.Offchain) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return ccipview.CCIPView{ | ||
Chains: chainView, | ||
Nops: nopsView, | ||
}, nil | ||
} |
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
Oops, something went wrong.