Skip to content

Commit cb23ec3

Browse files
Solana contracts/v1.6.1 candidate (#1565)
* Fee Quoter changes to support ton and aptos (#1518) * Fee Quoter changes to support ton and aptos * add tests for other families * Add tests for all remote chain selectors * Bump versios (#1550) * Bump versios * Bump all contracts * Add cpi event * Reenable tests * Fix ping-pong test setup * Fix devenv CI setup and enable verbose logs in some integration tests * devenv go mod tidy * Fix CI command * Fix CI command * Disable broken tests again, unrelated to these changes * Update changelog and remove `-candidate` version suffix --------- Co-authored-by: Tobías Lichtig <toblich@users.noreply.github.com>
1 parent 640a2a9 commit cb23ec3

File tree

485 files changed

+56431
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+56431
-221
lines changed

chains/solana/CHANGELOG.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
This document describes the changes introduced in the different versions of the **Chainlink CCIP Solana programs**, located in [`chains/solana/contracts/programs`](https://github.com/smartcontractkit/chainlink-ccip/tree/main/chains/solana/contracts/programs).
44

5-
<!-- --- -->
6-
<!-- ## [Unreleased] (1.6.1) -->
7-
<!-- ### Added
8-
- (Placeholder for upcoming features) -->
5+
---
6+
7+
## [1.6.1]
98

10-
<!-- ### Changed -->
11-
<!-- - (Placeholder for changes) -->
9+
### Added
1210

13-
<!-- ### Fixed
14-
- (Placeholder for bug fixes) -->
11+
- [FeeQuoter] Support for other non-EVM families
12+
- [RMNRemote] Support for backwards-compatible CPI Events without requiring additional accounts
1513

1614
---
1715

@@ -21,7 +19,6 @@ This document describes the changes introduced in the different versions of the
2119

2220
- [Token Pools] Allow setting rate limit with rate and capacity set to 0 [#1290](https://github.com/smartcontractkit/chainlink-ccip/pull/1290)
2321

24-
2522
---
2623

2724
## [0.1.2]

chains/solana/contracts/Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chains/solana/contracts/programs/base-token-pool/Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "base-token-pool"
3-
version = "1.6.0"
3+
version = "1.6.1"
44
description = "Created with Anchor"
55
edition = "2021"
66

@@ -19,9 +19,14 @@ default = []
1919
anchor-lang = { version = "0.29.0", features = ["init-if-needed"] }
2020
anchor-spl = "0.29.0"
2121
solana-program = "1.17.25" # pin solana to 1.17
22-
spl-math = { version = "0.2.0", features = [ "no-entrypoint" ] }
23-
rmn_remote = {path = "../rmn-remote", features = ["cpi"]}
22+
spl-math = { version = "0.2.0", features = ["no-entrypoint"] }
23+
rmn_remote = { version = "1.6.1", path = "../rmn-remote", features = [
24+
"cpi",
25+
] }
2426

2527
[lints.rust.unexpected_cfgs]
2628
level = "warn"
27-
check-cfg = ['cfg(target_os, values("solana"))', 'cfg(feature, values("anchor-debug", "custom-panic"))']
29+
check-cfg = [
30+
'cfg(target_os, values("solana"))',
31+
'cfg(feature, values("anchor-debug", "custom-panic"))',
32+
]

chains/solana/contracts/programs/burnmint-token-pool/Cargo.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "burnmint-token-pool"
3-
version = "1.6.0"
3+
version = "1.6.1"
44
description = "Created with Anchor"
55
edition = "2021"
66

@@ -19,14 +19,21 @@ default = []
1919
anchor-lang = { version = "0.29.0", features = ["init-if-needed"] }
2020
anchor-spl = "0.29.0"
2121
solana-program = "1.17.25" # pin solana to 1.17
22-
spl-math = { version = "0.2.0", features = [ "no-entrypoint" ] }
23-
base-token-pool = { version = "1.6.0", path = "../base-token-pool/", features = ["no-entrypoint"] }
24-
rmn_remote = {path = "../rmn-remote", features = ["cpi"]}
25-
ccip_common = {path = "../ccip-common"}
22+
spl-math = { version = "0.2.0", features = ["no-entrypoint"] }
23+
base-token-pool = { version = "1.6.1", path = "../base-token-pool/", features = [
24+
"no-entrypoint",
25+
] }
26+
rmn_remote = { version = "1.6.1", path = "../rmn-remote", features = [
27+
"cpi",
28+
] }
29+
ccip_common = { version = "1.6.1", path = "../ccip-common" }
2630

2731
[build-dependencies]
2832
build_commit = { path = "../../crates/build-commit" }
2933

3034
[lints.rust.unexpected_cfgs]
3135
level = "warn"
32-
check-cfg = ['cfg(target_os, values("solana"))', 'cfg(feature, values("anchor-debug", "custom-panic"))']
36+
check-cfg = [
37+
'cfg(target_os, values("solana"))',
38+
'cfg(feature, values("anchor-debug", "custom-panic"))',
39+
]

chains/solana/contracts/programs/ccip-common/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ccip_common"
3-
version = "0.1.1"
3+
version = "1.6.1"
44
edition = "2021"
55

66
[lib]
@@ -17,11 +17,14 @@ cpi = ["no-entrypoint"]
1717
default = ["no-entrypoint"]
1818

1919
[dependencies]
20-
solana-program = "1.17.25" # pin solana to 1.17
20+
solana-program = "1.17.25" # pin solana to 1.17
2121
anchor-lang = { version = "0.29.0", features = ["init-if-needed"] }
2222
anchor-spl = "0.29.0"
2323
ethnum = "1.5"
2424

2525
[lints.rust.unexpected_cfgs]
2626
level = "warn"
27-
check-cfg = ['cfg(target_os, values("solana"))', 'cfg(feature, values("anchor-debug", "custom-panic"))']
27+
check-cfg = [
28+
'cfg(target_os, values("solana"))',
29+
'cfg(feature, values("anchor-debug", "custom-panic"))',
30+
]

chains/solana/contracts/programs/ccip-common/src/lib.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,27 @@ pub enum CommonCcipError {
3333
InvalidEVMAddress,
3434
#[msg("Invalid SVM address")]
3535
InvalidSVMAddress,
36+
#[msg("Invalid TVM address")]
37+
InvalidTVMAddress,
38+
#[msg("Invalid Aptos address")]
39+
InvalidAptosAddress,
40+
#[msg("Invalid Sui address")]
41+
InvalidSuiAddress,
3642
}
3743

38-
// https://github.com/smartcontractkit/chainlink/blob/ff8a597fd9df653f8967427498eaa5a04b19febb/contracts/src/v0.8/ccip/libraries/Internal.sol#L276
44+
// bytes4(keccak256("CCIP ChainFamilySelector APTOS"));
45+
pub const CHAIN_FAMILY_SELECTOR_APTOS: u32 = 0xac77ffec;
46+
47+
// bytes4(keccak256("CCIP ChainFamilySelector EVM"));
3948
pub const CHAIN_FAMILY_SELECTOR_EVM: u32 = 0x2812d52c;
49+
50+
// bytes4(keccak256("CCIP ChainFamilySelector SUI"));
51+
pub const CHAIN_FAMILY_SELECTOR_SUI: u32 = 0xc4e05953;
52+
53+
// bytes4(keccak256("CCIP ChainFamilySelector SVM"));
4054
pub const CHAIN_FAMILY_SELECTOR_SVM: u32 = 0x1e10bdc4;
55+
56+
// byte4(keccak256("CCIP ChainFamilySelector TVM"));
4157
pub const CHAIN_FAMILY_SELECTOR_TVM: u32 = 0x647e2ba9;
4258

4359
// Duplicates the router ID to declare router accounts that must be visible from the common crate,

0 commit comments

Comments
 (0)