Skip to content

Commit

Permalink
move + rename test receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Jan 29, 2025
1 parent 771fb99 commit e3fc245
Show file tree
Hide file tree
Showing 28 changed files with 48 additions and 48 deletions.
32 changes: 16 additions & 16 deletions chains/solana/contracts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "ccip_invalid_receiver"
name = "test_ccip_invalid_receiver"
version = "0.0.0-dev"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "ccip_invalid_receiver"
name = "test_ccip_invalid_receiver"

[features]
no-entrypoint = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use anchor_lang::prelude::*;
declare_id!("9Vjda3WU2gsJgE4VdU6QuDw8rfHLyigfFyWs3XDPNUn8");

#[program]
pub mod ccip_invalid_receiver {
pub mod test_ccip_invalid_receiver {
use super::*;

pub fn ccip_receive(ctx: Context<Initialize>, _message: Any2SVMMessage) -> Result<()> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "ccip_receiver"
name = "test_ccip_receiver"
version = "0.1.0-dev"
description = "Created with Anchor"
edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "ccip_receiver"
name = "test_ccip_receiver"

[features]
no-entrypoint = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub const EXTERNAL_EXECUTION_CONFIG_SEED: &[u8] = b"external_execution_config";
/// This program an example of a CCIP Receiver Program.
/// Used to test CCIP Router execute.
#[program]
pub mod ccip_receiver {
pub mod test_ccip_receiver {
use solana_program::{instruction::Instruction, program::invoke_signed};

use super::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.0.0-dev",
"name": "ccip_invalid_receiver",
"name": "test_ccip_invalid_receiver",
"instructions": [
{
"name": "ccipReceive",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.1.0-dev",
"name": "ccip_receiver",
"name": "test_ccip_receiver",
"docs": [
"This program an example of a CCIP Receiver Program.",
"Used to test CCIP Router execute."
Expand Down
8 changes: 4 additions & 4 deletions chains/solana/contracts/tests/ccip/ccip_router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/smartcontractkit/chainlink-ccip/chains/solana/contracts/tests/config"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/contracts/tests/testutils"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings/ccip_receiver"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings/ccip_router"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings/test_ccip_receiver"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings/token_pool"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/utils/ccip"
"github.com/smartcontractkit/chainlink-ccip/chains/solana/utils/common"
Expand All @@ -35,7 +35,7 @@ func TestCCIPRouter(t *testing.T) {
t.Parallel()

ccip_router.SetProgramID(config.CcipRouterProgram)
ccip_receiver.SetProgramID(config.CcipLogicReceiver)
test_ccip_receiver.SetProgramID(config.CcipLogicReceiver)
token_pool.SetProgramID(config.CcipTokenPoolProgram)

ctx := tests.Context(t)
Expand Down Expand Up @@ -154,7 +154,7 @@ func TestCCIPRouter(t *testing.T) {
})

t.Run("receiver", func(t *testing.T) {
instruction, ixErr := ccip_receiver.NewInitializeInstruction(
instruction, ixErr := test_ccip_receiver.NewInitializeInstruction(
config.ReceiverTargetAccountPDA,
config.ReceiverExternalExecutionConfigPDA,
user.PublicKey(),
Expand Down Expand Up @@ -5379,7 +5379,7 @@ func TestCCIPRouter(t *testing.T) {
solana.SysVarInstructionsPubkey,
).ValidateAndBuild()
require.NoError(t, err)
tx := testutils.SendAndConfirm(ctx, t, solanaGoClient, []solana.Instruction{instruction}, transmitter, config.DefaultCommitment)
tx := testutils.SendAndConfirm(ctx, t, solanaGoClient, []solana.Instruction{instruction}, transmitter, config.DefaultCommitment, common.AddComputeUnitLimit(300_000))
event := ccip.EventCommitReportAccepted{}
require.NoError(t, common.ParseEvent(tx.Meta.LogMessages, "CommitReportAccepted", &event, config.PrintEvents))

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e3fc245

Please sign in to comment.