Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [ "crates/*" ]
resolver = "2"

[workspace.package]
version = "0.3.0"
version = "0.4.0"
edition = "2021"
rust-version = "1.76"
authors = ["Zenith Contributors"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Rust utilites for working with [Zenith](https://github.com/init4tech/zenith).

## Development

This crate contains an exmaple block builder in the Signet ecosystem.
This crate contains an example block builder in the Signet ecosystem.

### Requirements

Expand Down
168 changes: 168 additions & 0 deletions crates/types/abi/HostOrders.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
[
{
"type": "constructor",
"inputs": [
{ "name": "_permit2", "type": "address", "internalType": "address" }
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "fill",
"inputs": [
{
"name": "outputs",
"type": "tuple[]",
"internalType": "struct IOrders.Output[]",
"components": [
{ "name": "token", "type": "address", "internalType": "address" },
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
{ "name": "recipient", "type": "address", "internalType": "address" },
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
]
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "fillPermit2",
"inputs": [
{
"name": "outputs",
"type": "tuple[]",
"internalType": "struct IOrders.Output[]",
"components": [
{ "name": "token", "type": "address", "internalType": "address" },
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
{ "name": "recipient", "type": "address", "internalType": "address" },
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
]
},
{
"name": "permit2",
"type": "tuple",
"internalType": "struct UsesPermit2.Permit2Batch",
"components": [
{
"name": "permit",
"type": "tuple",
"internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
"components": [
{
"name": "permitted",
"type": "tuple[]",
"internalType": "struct ISignatureTransfer.TokenPermissions[]",
"components": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
]
},
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
}
]
},
{ "name": "owner", "type": "address", "internalType": "address" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "outputWitness",
"inputs": [
{
"name": "outputs",
"type": "tuple[]",
"internalType": "struct IOrders.Output[]",
"components": [
{ "name": "token", "type": "address", "internalType": "address" },
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
{ "name": "recipient", "type": "address", "internalType": "address" },
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
]
}
],
"outputs": [
{
"name": "_witness",
"type": "tuple",
"internalType": "struct UsesPermit2.Witness",
"components": [
{
"name": "witnessHash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "witnessTypeString",
"type": "string",
"internalType": "string"
}
]
}
],
"stateMutability": "pure"
},
{
"type": "event",
"name": "Filled",
"inputs": [
{
"name": "outputs",
"type": "tuple[]",
"indexed": false,
"internalType": "struct IOrders.Output[]",
"components": [
{ "name": "token", "type": "address", "internalType": "address" },
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
{ "name": "recipient", "type": "address", "internalType": "address" },
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
]
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressEmptyCode",
"inputs": [
{ "name": "target", "type": "address", "internalType": "address" }
]
},
{ "type": "error", "name": "FailedCall", "inputs": [] },
{
"type": "error",
"name": "InsufficientBalance",
"inputs": [
{ "name": "balance", "type": "uint256", "internalType": "uint256" },
{ "name": "needed", "type": "uint256", "internalType": "uint256" }
]
},
{ "type": "error", "name": "LengthMismatch", "inputs": [] },
{ "type": "error", "name": "OutputMismatch", "inputs": [] },
{ "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] },
{
"type": "error",
"name": "SafeERC20FailedOperation",
"inputs": [
{ "name": "token", "type": "address", "internalType": "address" }
]
}
]
Loading