Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 384b11f

Browse files
authored
feat(bindings): update to latest contracts (#39)
1 parent 94f0eae commit 384b11f

File tree

9 files changed

+508
-686
lines changed

9 files changed

+508
-686
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [ "crates/*" ]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.3.0"
6+
version = "0.4.0"
77
edition = "2021"
88
rust-version = "1.76"
99
authors = ["Zenith Contributors"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Rust utilites for working with [Zenith](https://github.com/init4tech/zenith).
1111

1212
## Development
1313

14-
This crate contains an exmaple block builder in the Signet ecosystem.
14+
This crate contains an example block builder in the Signet ecosystem.
1515

1616
### Requirements
1717

crates/types/abi/HostOrders.json

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
[
2+
{
3+
"type": "constructor",
4+
"inputs": [
5+
{ "name": "_permit2", "type": "address", "internalType": "address" }
6+
],
7+
"stateMutability": "nonpayable"
8+
},
9+
{
10+
"type": "function",
11+
"name": "fill",
12+
"inputs": [
13+
{
14+
"name": "outputs",
15+
"type": "tuple[]",
16+
"internalType": "struct IOrders.Output[]",
17+
"components": [
18+
{ "name": "token", "type": "address", "internalType": "address" },
19+
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
20+
{ "name": "recipient", "type": "address", "internalType": "address" },
21+
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
22+
]
23+
}
24+
],
25+
"outputs": [],
26+
"stateMutability": "payable"
27+
},
28+
{
29+
"type": "function",
30+
"name": "fillPermit2",
31+
"inputs": [
32+
{
33+
"name": "outputs",
34+
"type": "tuple[]",
35+
"internalType": "struct IOrders.Output[]",
36+
"components": [
37+
{ "name": "token", "type": "address", "internalType": "address" },
38+
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
39+
{ "name": "recipient", "type": "address", "internalType": "address" },
40+
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
41+
]
42+
},
43+
{
44+
"name": "permit2",
45+
"type": "tuple",
46+
"internalType": "struct UsesPermit2.Permit2Batch",
47+
"components": [
48+
{
49+
"name": "permit",
50+
"type": "tuple",
51+
"internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
52+
"components": [
53+
{
54+
"name": "permitted",
55+
"type": "tuple[]",
56+
"internalType": "struct ISignatureTransfer.TokenPermissions[]",
57+
"components": [
58+
{
59+
"name": "token",
60+
"type": "address",
61+
"internalType": "address"
62+
},
63+
{
64+
"name": "amount",
65+
"type": "uint256",
66+
"internalType": "uint256"
67+
}
68+
]
69+
},
70+
{ "name": "nonce", "type": "uint256", "internalType": "uint256" },
71+
{
72+
"name": "deadline",
73+
"type": "uint256",
74+
"internalType": "uint256"
75+
}
76+
]
77+
},
78+
{ "name": "owner", "type": "address", "internalType": "address" },
79+
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
80+
]
81+
}
82+
],
83+
"outputs": [],
84+
"stateMutability": "nonpayable"
85+
},
86+
{
87+
"type": "function",
88+
"name": "outputWitness",
89+
"inputs": [
90+
{
91+
"name": "outputs",
92+
"type": "tuple[]",
93+
"internalType": "struct IOrders.Output[]",
94+
"components": [
95+
{ "name": "token", "type": "address", "internalType": "address" },
96+
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
97+
{ "name": "recipient", "type": "address", "internalType": "address" },
98+
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
99+
]
100+
}
101+
],
102+
"outputs": [
103+
{
104+
"name": "_witness",
105+
"type": "tuple",
106+
"internalType": "struct UsesPermit2.Witness",
107+
"components": [
108+
{
109+
"name": "witnessHash",
110+
"type": "bytes32",
111+
"internalType": "bytes32"
112+
},
113+
{
114+
"name": "witnessTypeString",
115+
"type": "string",
116+
"internalType": "string"
117+
}
118+
]
119+
}
120+
],
121+
"stateMutability": "pure"
122+
},
123+
{
124+
"type": "event",
125+
"name": "Filled",
126+
"inputs": [
127+
{
128+
"name": "outputs",
129+
"type": "tuple[]",
130+
"indexed": false,
131+
"internalType": "struct IOrders.Output[]",
132+
"components": [
133+
{ "name": "token", "type": "address", "internalType": "address" },
134+
{ "name": "amount", "type": "uint256", "internalType": "uint256" },
135+
{ "name": "recipient", "type": "address", "internalType": "address" },
136+
{ "name": "chainId", "type": "uint32", "internalType": "uint32" }
137+
]
138+
}
139+
],
140+
"anonymous": false
141+
},
142+
{
143+
"type": "error",
144+
"name": "AddressEmptyCode",
145+
"inputs": [
146+
{ "name": "target", "type": "address", "internalType": "address" }
147+
]
148+
},
149+
{ "type": "error", "name": "FailedCall", "inputs": [] },
150+
{
151+
"type": "error",
152+
"name": "InsufficientBalance",
153+
"inputs": [
154+
{ "name": "balance", "type": "uint256", "internalType": "uint256" },
155+
{ "name": "needed", "type": "uint256", "internalType": "uint256" }
156+
]
157+
},
158+
{ "type": "error", "name": "LengthMismatch", "inputs": [] },
159+
{ "type": "error", "name": "OutputMismatch", "inputs": [] },
160+
{ "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] },
161+
{
162+
"type": "error",
163+
"name": "SafeERC20FailedOperation",
164+
"inputs": [
165+
{ "name": "token", "type": "address", "internalType": "address" }
166+
]
167+
}
168+
]

0 commit comments

Comments
 (0)