From 4758e5512c8d5721b12c83f48f40dc6644e9bea2 Mon Sep 17 00:00:00 2001 From: "tuddman@users.noreply.github.com" Date: Sun, 31 May 2026 22:31:29 +0200 Subject: [PATCH] chore: drop permit2_address (sdk side of the protos removal) Follows the protos source-of-truth removal of permit2_address (field 9 of ChainConfig). It was the per-chain Permit2 address for the old on-chain gasless-order flow, dead since the optimistic shadow-ledger burn. - aspens-admin: drop the `--permit2-address` set-chain CLI arg, its match binding, and the field in the Chain request it built. - aspens: drop permit2_address from the gasless module's Chain test fixtures. - Vendored arborter_config.proto + regenerated bindings (build.rs / tonic-prost) reflect the removed field, matching the proto-sync PR. Workspace builds; tests compile; cargo +1.95.0 fmt clean. --- aspens-admin/src/main.rs | 6 ------ aspens/proto/arborter_config.proto | 2 -- aspens/proto/generated/xyz.aspens.arborter_config.v1.rs | 3 --- aspens/src/commands/trading/gasless/mod.rs | 2 -- 4 files changed, 13 deletions(-) diff --git a/aspens-admin/src/main.rs b/aspens-admin/src/main.rs index d6e0ea0..1ae755f 100644 --- a/aspens-admin/src/main.rs +++ b/aspens-admin/src/main.rs @@ -113,10 +113,6 @@ enum Commands { #[arg(long)] factory_address: String, - /// Permit2 contract address - #[arg(long)] - permit2_address: String, - /// Optional block explorer URL #[arg(long)] explorer_url: Option, @@ -440,7 +436,6 @@ async fn run() -> Result<()> { chain_id, rpc_url, factory_address, - permit2_address, explorer_url, instance_signer_address, } => { @@ -456,7 +451,6 @@ async fn run() -> Result<()> { explorer_url, rpc_url, factory_address, - permit2_address, trade_contract: None, tokens: HashMap::new(), }; diff --git a/aspens/proto/arborter_config.proto b/aspens/proto/arborter_config.proto index 47d701d..6776377 100644 --- a/aspens/proto/arborter_config.proto +++ b/aspens/proto/arborter_config.proto @@ -209,8 +209,6 @@ message Chain { string rpc_url = 7; // The address of the factory contract on this chain. This is the address to call to deploy a new trading instance string factory_address = 8; - // The address of the permit2 contract on this chain - string permit2_address = 9; // The trading instance details TradeContract trade_contract = 10; // Mapping of token symbols to token details diff --git a/aspens/proto/generated/xyz.aspens.arborter_config.v1.rs b/aspens/proto/generated/xyz.aspens.arborter_config.v1.rs index 8dfdaaf..8b0497e 100644 --- a/aspens/proto/generated/xyz.aspens.arborter_config.v1.rs +++ b/aspens/proto/generated/xyz.aspens.arborter_config.v1.rs @@ -228,9 +228,6 @@ pub struct Chain { /// The address of the factory contract on this chain. This is the address to call to deploy a new trading instance #[prost(string, tag = "8")] pub factory_address: ::prost::alloc::string::String, - /// The address of the permit2 contract on this chain - #[prost(string, tag = "9")] - pub permit2_address: ::prost::alloc::string::String, /// The trading instance details #[prost(message, optional, tag = "10")] pub trade_contract: ::core::option::Option, diff --git a/aspens/src/commands/trading/gasless/mod.rs b/aspens/src/commands/trading/gasless/mod.rs index 30ae1dc..c91d6e6 100644 --- a/aspens/src/commands/trading/gasless/mod.rs +++ b/aspens/src/commands/trading/gasless/mod.rs @@ -372,7 +372,6 @@ mod tests { explorer_url: None, rpc_url: "http://localhost".into(), factory_address: "0xfactory".into(), - permit2_address: "0xpermit2".into(), trade_contract: Some(TradeContract { contract_id: None, address: "0xtradecontract".into(), @@ -388,7 +387,6 @@ mod tests { explorer_url: None, rpc_url: "http://localhost".into(), factory_address: "0xfactory".into(), - permit2_address: "0xpermit2".into(), trade_contract: Some(TradeContract { contract_id: None, address: "0xtradecontract".into(),