Skip to content

Commit

Permalink
Contract improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretSaturn committed Aug 4, 2024
1 parent 9acff9f commit e2de9d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions TNLS-Gateways/solana-gateway/programs/solana-gateway/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ security_txt! {
// Constants

const TASK_DESTINATION_NETWORK: &str = "pulsar-3";
const CHAIN_ID: &str = "SolDV";
const CHAIN_ID: &str = "SolDN";
const SECRET_GATEWAY_PUBKEY: &str =
"0x04f0c3e600c7f7b3c483debe8f98a839c2d93230d8f857b3c298dc8763c208afcd62dcb34c9306302bf790d8c669674a57defa44c6a95b183d94f2e645526ffe5e";
const GATEWAY_SEED: &[u8] = b"gateway_state";
Expand Down Expand Up @@ -566,18 +566,18 @@ pub struct ExecutionInfo {
pub routing_code_hash: String,
pub task_destination_network: String,
pub handle: String,
pub nonce: Vec<u8>,
pub nonce: [u8; 12],
pub callback_gas_limit: u32,
pub payload: Vec<u8>,
pub payload_signature: Vec<u8>,
pub payload_signature: [u8; 64],
}

#[derive(Clone, AnchorSerialize, AnchorDeserialize)]
pub struct PostExecutionInfo {
pub packet_hash: [u8; 32],
pub callback_address: Vec<u8>,
pub callback_selector: Vec<u8>,
pub callback_gas_limit: Vec<u8>,
pub callback_gas_limit: [u8; 4],
pub packet_signature: [u8; 65],
pub result: Vec<u8>,
}
Expand Down Expand Up @@ -605,8 +605,8 @@ pub struct LogNewTask {
pub routing_code_hash: String,
pub task_destination_network: String,
pub handle: String,
pub nonce: Vec<u8>,
pub nonce: [u8; 12],
pub callback_gas_limit: u32,
pub payload: Vec<u8>,
pub payload_signature: Vec<u8>,
pub payload_signature: [u8; 64],
}
6 changes: 3 additions & 3 deletions TNLS-Relayers/sol_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ class LogNewTask:
"routing_code_hash" / String,
"task_destination_network" / String,
"handle" / String,
"nonce" / Bytes,
"nonce" / U8[12],
"callback_gas_limit" / U32,
"payload" / Bytes,
"payload_signature" / Bytes
"payload_signature" / U8[64]
)


Expand All @@ -46,7 +46,7 @@ class PostExecution:
"packet_hash" / U8[32],
"callback_address" / Bytes,
"callback_selector" / Bytes,
"callback_gas_limit" / Bytes,
"callback_gas_limit" / U8[4],
"packet_signature" / U8[65],
"result" / Bytes,
)
Expand Down
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@



"SolDV": #Solana DevNet
"SolDN": #Solana DevNet
active: true
type: "solana"
chain_id: "SolDV"
chain_id: "SolDN"
api_endpoint: https://api.devnet.solana.com
program_id: "DKDX8XbTnCgEk8o1RNnCUokiCmadG1Ch5HLxaz7CnhcD"
timeout: 2
Expand Down

0 comments on commit e2de9d2

Please sign in to comment.