Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions contracts/L2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ npm run deploy:validate # Validate deployment setup
### Network Configuration

#### Default RPC URLs:
- **Sepolia**: `https://starknet-sepolia.public.blastapi.io/rpc/v0_7`
- **Mainnet**: `https://starknet-mainnet.public.blastapi.io/rpc/v0_7`
- **Sepolia**: `https://starknet-sepolia.public.blastapi.io/rpc/v0_8`
- **Mainnet**: `https://starknet-mainnet.public.blastapi.io/rpc/v0_8`
- **Devnet**: `http://127.0.0.1:5050`


## Deployed Contracts

### Sepolia

- Oracle Contract: [0x006aff010e672d581173fa959a17de9132b4e2e8ab2ce515b5d191c8f75fcc80](https://sepolia.starkscan.co/contract/0x006aff010e672d581173fa959a17de9132b4e2e8ab2ce515b5d191c8f75fcc80#read-write-contract)
- Oracle Contract: [0x1e4acab001e40d194f15927bb0e832887a219809d0be6cf308f3e41a4cfd246](https://sepolia.starkscan.co/contract/0x1e4acab001e40d194f15927bb0e832887a219809d0be6cf308f3e41a4cfd246#read-write-contract)

- Proof Registry: [0x0055c36521975f4c6a2ec2d20add8d7161022f97bc01c07cf1677005f16ea5f9](https://sepolia.starkscan.co/contract/0x0055c36521975f4c6a2ec2d20add8d7161022f97bc01c07cf1677005f16ea5f9#read-write-contract-sub-read)
- Proof Registry: [0x3a5d9d2fce8a9dac6a6b5c8cade5668b19e30248611159c7788236a49ce8b9a](https://sepolia.starkscan.co/contract/0x3a5d9d2fce8a9dac6a6b5c8cade5668b19e30248611159c7788236a49ce8b9a#read-write-contract-sub-read)

- xZBERC20: [0x00d989185d5246739f38fd5032b4ff44c2f203386b0a9b7f391c8e11967cb92b](https://sepolia.starkscan.co/contract/0x00d989185d5246739f38fd5032b4ff44c2f203386b0a9b7f391c8e11967cb92b#read-write-contract)
- xZBERC20: [0x26cfc43ee6e47541c1de22e91382c14c2c524de52d6abdd1275e7b37cb01276](https://sepolia.starkscan.co/contract/0x26cfc43ee6e47541c1de22e91382c14c2c524de52d6abdd1275e7b37cb01276#read-write-contract)

- L2Bridge: [0x0123a4ce7980e3c4f5832af0735fc3beabdc157379e09aaf7c5e62dfa8c19427](https://sepolia.starkscan.co/contract/0x0123a4ce7980e3c4f5832af0735fc3beabdc157379e09aaf7c5e62dfa8c19427#read-write-contract-sub-write)
- L2Bridge: [0x58bdc4e4f39b648c01761324247d98ea68bc9fd5e3541e732d146385e575a63](https://sepolia.starkscan.co/contract/0x58bdc4e4f39b648c01761324247d98ea68bc9fd5e3541e732d146385e575a63#read-write-contract-sub-write)
252 changes: 252 additions & 0 deletions contracts/L2/abi/L2Oracle.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
[
{
"type": "impl",
"name": "L2Oracle",
"interface_name": "l2::interfaces::IL2Oracle::IL2Oracle"
},
{
"type": "struct",
"name": "core::integer::u256",
"members": [
{
"name": "low",
"type": "core::integer::u128"
},
{
"name": "high",
"type": "core::integer::u128"
}
]
},
{
"type": "enum",
"name": "core::bool",
"variants": [
{
"name": "False",
"type": "()"
},
{
"name": "True",
"type": "()"
}
]
},
{
"type": "interface",
"name": "l2::interfaces::IL2Oracle::IL2Oracle",
"items": [
{
"type": "function",
"name": "get_total_tvl",
"inputs": [],
"outputs": [
{
"type": "core::integer::u256"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "set_total_tvl",
"inputs": [
{
"name": "tvl",
"type": "core::integer::u256"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "set_relayer",
"inputs": [
{
"name": "relayer",
"type": "core::starknet::contract_address::ContractAddress"
},
{
"name": "status",
"type": "core::bool"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "impl",
"name": "OwnableMixinImpl",
"interface_name": "openzeppelin_access::ownable::interface::OwnableABI"
},
{
"type": "interface",
"name": "openzeppelin_access::ownable::interface::OwnableABI",
"items": [
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"type": "core::starknet::contract_address::ContractAddress"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "transfer_ownership",
"inputs": [
{
"name": "new_owner",
"type": "core::starknet::contract_address::ContractAddress"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "renounce_ownership",
"inputs": [],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "core::starknet::contract_address::ContractAddress"
}
],
"outputs": [],
"state_mutability": "external"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "constructor",
"name": "constructor",
"inputs": [
{
"name": "owner",
"type": "core::starknet::contract_address::ContractAddress"
}
]
},
{
"type": "event",
"name": "l2::core::L2Oracle::L2Oracle::TotalTVLUpdated",
"kind": "struct",
"members": [
{
"name": "new_tvl",
"type": "core::integer::u256",
"kind": "data"
}
]
},
{
"type": "event",
"name": "l2::core::L2Oracle::L2Oracle::RelayerStatusUpdated",
"kind": "struct",
"members": [
{
"name": "relayer",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "data"
},
{
"name": "status",
"type": "core::bool",
"kind": "data"
}
]
},
{
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
"kind": "struct",
"members": [
{
"name": "previous_owner",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
},
{
"name": "new_owner",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
}
]
},
{
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
"kind": "struct",
"members": [
{
"name": "previous_owner",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
},
{
"name": "new_owner",
"type": "core::starknet::contract_address::ContractAddress",
"kind": "key"
}
]
},
{
"type": "event",
"name": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
"kind": "enum",
"variants": [
{
"name": "OwnershipTransferred",
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferred",
"kind": "nested"
},
{
"name": "OwnershipTransferStarted",
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::OwnershipTransferStarted",
"kind": "nested"
}
]
},
{
"type": "event",
"name": "l2::core::L2Oracle::L2Oracle::Event",
"kind": "enum",
"variants": [
{
"name": "TotalTVLUpdated",
"type": "l2::core::L2Oracle::L2Oracle::TotalTVLUpdated",
"kind": "nested"
},
{
"name": "RelayerStatusUpdated",
"type": "l2::core::L2Oracle::L2Oracle::RelayerStatusUpdated",
"kind": "nested"
},
{
"name": "OwnableEvent",
"type": "openzeppelin_access::ownable::ownable::OwnableComponent::Event",
"kind": "flat"
}
]
}
]
108 changes: 108 additions & 0 deletions contracts/L2/abi/ProofRegistry.abi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
[
{
"type": "impl",
"name": "ProofRegistryImpl",
"interface_name": "l2::interfaces::IProofRegistry::IProofRegistry"
},
{
"type": "enum",
"name": "core::bool",
"variants": [
{
"name": "False",
"type": "()"
},
{
"name": "True",
"type": "()"
}
]
},
{
"type": "interface",
"name": "l2::interfaces::IProofRegistry::IProofRegistry",
"items": [
{
"type": "function",
"name": "get_verified_merkle_root",
"inputs": [
{
"name": "commitment_hash",
"type": "core::felt252"
}
],
"outputs": [
{
"type": "core::felt252"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "check_proof",
"inputs": [
{
"name": "commitment_hash",
"type": "core::felt252"
},
{
"name": "merkle_root",
"type": "core::felt252"
}
],
"outputs": [
{
"type": "core::bool"
}
],
"state_mutability": "view"
},
{
"type": "function",
"name": "register_deposit_proof",
"inputs": [
{
"name": "commitment_hash",
"type": "core::felt252"
},
{
"name": "merkle_root",
"type": "core::felt252"
}
],
"outputs": [],
"state_mutability": "external"
}
]
},
{
"type": "event",
"name": "l2::core::ProofRegistry::ProofRegistry::DepositCommitmentHashProven",
"kind": "struct",
"members": [
{
"name": "commitment_hash",
"type": "core::felt252",
"kind": "data"
},
{
"name": "merkle_root",
"type": "core::felt252",
"kind": "data"
}
]
},
{
"type": "event",
"name": "l2::core::ProofRegistry::ProofRegistry::Event",
"kind": "enum",
"variants": [
{
"name": "DepositCommitmentHashProven",
"type": "l2::core::ProofRegistry::ProofRegistry::DepositCommitmentHashProven",
"kind": "nested"
}
]
}
]
Loading
Loading