@@ -19,7 +19,7 @@ use crate::instance::{Instance, InstanceOptions};
19
19
use crate :: modules:: { CachedModule , FileSystemCache , InMemoryCache , PinnedMemoryCache } ;
20
20
use crate :: parsed_wasm:: ParsedWasm ;
21
21
use crate :: size:: Size ;
22
- use crate :: static_analysis:: { Entrypoint , ExportInfo , REQUIRED_IBC2_EXPORT , REQUIRED_IBC_EXPORTS } ;
22
+ use crate :: static_analysis:: { Entrypoint , ExportInfo , REQUIRED_IBC_EXPORTS } ;
23
23
use crate :: wasm_backend:: { compile, make_compiling_engine} ;
24
24
25
25
const STATE_DIR : & str = "state" ;
@@ -100,9 +100,6 @@ pub struct AnalysisReport {
100
100
/// `true` if and only if all [`REQUIRED_IBC_EXPORTS`] exist as exported functions.
101
101
/// This does not guarantee they are functional or even have the correct signatures.
102
102
pub has_ibc_entry_points : bool ,
103
- /// `true` if and only if all [`REQUIRED_IBC2_EXPORT`] exist as exported functions.
104
- /// This does not guarantee they are functional or even have the correct signatures.
105
- pub has_ibc2_entry_points : bool ,
106
103
/// A set of all entrypoints that are exported by the contract.
107
104
pub entrypoints : BTreeSet < Entrypoint > ,
108
105
/// The set of capabilities the contract requires.
@@ -340,9 +337,6 @@ where
340
337
has_ibc_entry_points : REQUIRED_IBC_EXPORTS
341
338
. iter ( )
342
339
. all ( |required| exports. contains ( required. as_ref ( ) ) ) ,
343
- has_ibc2_entry_points : REQUIRED_IBC2_EXPORT
344
- . iter ( )
345
- . all ( |required| exports. contains ( required. as_ref ( ) ) ) ,
346
340
entrypoints,
347
341
required_capabilities : required_capabilities_from_module ( & module)
348
342
. into_iter ( )
@@ -1473,7 +1467,6 @@ mod tests {
1473
1467
report1,
1474
1468
AnalysisReport {
1475
1469
has_ibc_entry_points: false ,
1476
- has_ibc2_entry_points: false ,
1477
1470
entrypoints: BTreeSet :: from( [
1478
1471
E :: Instantiate ,
1479
1472
E :: Migrate ,
@@ -1504,7 +1497,6 @@ mod tests {
1504
1497
report2,
1505
1498
AnalysisReport {
1506
1499
has_ibc_entry_points: true ,
1507
- has_ibc2_entry_points: false ,
1508
1500
entrypoints: ibc_contract_entrypoints,
1509
1501
required_capabilities: BTreeSet :: from_iter( [
1510
1502
"cosmwasm_1_1" . to_string( ) ,
@@ -1528,7 +1520,6 @@ mod tests {
1528
1520
report3,
1529
1521
AnalysisReport {
1530
1522
has_ibc_entry_points: false ,
1531
- has_ibc2_entry_points: false ,
1532
1523
entrypoints: BTreeSet :: new( ) ,
1533
1524
required_capabilities: BTreeSet :: from( [ "iterator" . to_string( ) ] ) ,
1534
1525
contract_migrate_version: None ,
@@ -1548,7 +1539,6 @@ mod tests {
1548
1539
report4,
1549
1540
AnalysisReport {
1550
1541
has_ibc_entry_points: false ,
1551
- has_ibc2_entry_points: false ,
1552
1542
entrypoints: BTreeSet :: new( ) ,
1553
1543
required_capabilities: BTreeSet :: from( [ "iterator" . to_string( ) ] ) ,
1554
1544
contract_migrate_version: Some ( 21 ) ,
@@ -1559,13 +1549,11 @@ mod tests {
1559
1549
unsafe { Cache :: new ( make_ibc2_testing_options ( ) ) . unwrap ( ) } ;
1560
1550
let checksum5 = cache. store_code ( IBC2 , true , true ) . unwrap ( ) ;
1561
1551
let report5 = cache. analyze ( & checksum5) . unwrap ( ) ;
1562
- let mut ibc2_contract_entrypoints = BTreeSet :: from ( [ E :: Instantiate , E :: Query ] ) ;
1563
- ibc2_contract_entrypoints. extend ( REQUIRED_IBC2_EXPORT ) ;
1552
+ let ibc2_contract_entrypoints = BTreeSet :: from ( [ E :: Instantiate , E :: Query , E :: Ibc2PacketReceive , E :: Ibc2PacketTimeout ] ) ;
1564
1553
assert_eq ! (
1565
1554
report5,
1566
1555
AnalysisReport {
1567
1556
has_ibc_entry_points: false ,
1568
- has_ibc2_entry_points: true ,
1569
1557
entrypoints: ibc2_contract_entrypoints,
1570
1558
required_capabilities: BTreeSet :: from_iter( [
1571
1559
"iterator" . to_string( ) ,
0 commit comments