Skip to content

Commit b5890ce

Browse files
committed
update bindings to include include sequencer client
1 parent 79c24cb commit b5890ce

11 files changed

+1925
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ CONTRACT_NAMES = channel \
2020
Moon \
2121
OptimisticLightClient \
2222
OptimisticProofVerifier \
23+
SequencerSoloClient \
24+
SequencerSignatureVerifier \
2325
UniversalChannelHandler
2426

2527
# Create the pattern for each contract

bindings/go/sequencersignatureverifier/SequencerSignatureVerifier.go

+350
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/go/sequencersoloclient/SequencerSoloClient.go

+404
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@open-ibc/vibc-core-smart-contracts",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"main": "dist/index.js",
55
"bin": {
66
"verify-vibc-core-smart-contracts": "./dist/scripts/verify-contract-script.js",

specs/update.spec.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@
5050
- 0
5151
- '{{OptimisticProofVerifier}}'
5252
- '{{L1BlockAddress}}'
53+
54+
- name: SequencerSigVerifier
55+
description: 'SequencerSignatureVerifier'
56+
factoryName: 'SequencerSignatureVerifier'
57+
deployer: 'KEY_DEPLOYER'
58+
deployArgs:
59+
- '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
60+
- '0x4440000000000000000000000000000000000000000000000000000000000000'
61+
62+
- name: SequencerSoloClient
63+
description: 'SequencerSoloClient'
64+
factoryName: 'SequencerSoloClient'
65+
deployer: 'KEY_DEPLOYER'
66+
deployArgs:
67+
- '{{SequencerSigVerifier}}'
5368

5469
- name: DummyLightClient
5570
description: 'DummyLightClient'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
/* Autogenerated file. Do not edit manually. */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
import type {
5+
BaseContract,
6+
BigNumberish,
7+
BytesLike,
8+
FunctionFragment,
9+
Result,
10+
Interface,
11+
ContractRunner,
12+
ContractMethod,
13+
Listener,
14+
} from "ethers";
15+
import type {
16+
TypedContractEvent,
17+
TypedDeferredTopicFilter,
18+
TypedEventLog,
19+
TypedListener,
20+
TypedContractMethod,
21+
} from "./common";
22+
23+
export type OpIcs23ProofPathStruct = { prefix: BytesLike; suffix: BytesLike };
24+
25+
export type OpIcs23ProofPathStructOutput = [prefix: string, suffix: string] & {
26+
prefix: string;
27+
suffix: string;
28+
};
29+
30+
export type OpIcs23ProofStruct = {
31+
path: OpIcs23ProofPathStruct[];
32+
key: BytesLike;
33+
value: BytesLike;
34+
prefix: BytesLike;
35+
};
36+
37+
export type OpIcs23ProofStructOutput = [
38+
path: OpIcs23ProofPathStructOutput[],
39+
key: string,
40+
value: string,
41+
prefix: string
42+
] & {
43+
path: OpIcs23ProofPathStructOutput[];
44+
key: string;
45+
value: string;
46+
prefix: string;
47+
};
48+
49+
export type Ics23ProofStruct = {
50+
proof: OpIcs23ProofStruct[];
51+
height: BigNumberish;
52+
};
53+
54+
export type Ics23ProofStructOutput = [
55+
proof: OpIcs23ProofStructOutput[],
56+
height: bigint
57+
] & { proof: OpIcs23ProofStructOutput[]; height: bigint };
58+
59+
export interface SequencerSignatureVerifierInterface extends Interface {
60+
getFunction(
61+
nameOrSignature:
62+
| "CHAIN_ID"
63+
| "SEQUENCER"
64+
| "verifyMembership"
65+
| "verifyNonMembership"
66+
| "verifyStateUpdate"
67+
): FunctionFragment;
68+
69+
encodeFunctionData(functionFragment: "CHAIN_ID", values?: undefined): string;
70+
encodeFunctionData(functionFragment: "SEQUENCER", values?: undefined): string;
71+
encodeFunctionData(
72+
functionFragment: "verifyMembership",
73+
values: [BytesLike, BytesLike, BytesLike, Ics23ProofStruct]
74+
): string;
75+
encodeFunctionData(
76+
functionFragment: "verifyNonMembership",
77+
values: [BytesLike, BytesLike, Ics23ProofStruct]
78+
): string;
79+
encodeFunctionData(
80+
functionFragment: "verifyStateUpdate",
81+
values: [BigNumberish, BytesLike, BytesLike, BytesLike]
82+
): string;
83+
84+
decodeFunctionResult(functionFragment: "CHAIN_ID", data: BytesLike): Result;
85+
decodeFunctionResult(functionFragment: "SEQUENCER", data: BytesLike): Result;
86+
decodeFunctionResult(
87+
functionFragment: "verifyMembership",
88+
data: BytesLike
89+
): Result;
90+
decodeFunctionResult(
91+
functionFragment: "verifyNonMembership",
92+
data: BytesLike
93+
): Result;
94+
decodeFunctionResult(
95+
functionFragment: "verifyStateUpdate",
96+
data: BytesLike
97+
): Result;
98+
}
99+
100+
export interface SequencerSignatureVerifier extends BaseContract {
101+
connect(runner?: ContractRunner | null): SequencerSignatureVerifier;
102+
waitForDeployment(): Promise<this>;
103+
104+
interface: SequencerSignatureVerifierInterface;
105+
106+
queryFilter<TCEvent extends TypedContractEvent>(
107+
event: TCEvent,
108+
fromBlockOrBlockhash?: string | number | undefined,
109+
toBlock?: string | number | undefined
110+
): Promise<Array<TypedEventLog<TCEvent>>>;
111+
queryFilter<TCEvent extends TypedContractEvent>(
112+
filter: TypedDeferredTopicFilter<TCEvent>,
113+
fromBlockOrBlockhash?: string | number | undefined,
114+
toBlock?: string | number | undefined
115+
): Promise<Array<TypedEventLog<TCEvent>>>;
116+
117+
on<TCEvent extends TypedContractEvent>(
118+
event: TCEvent,
119+
listener: TypedListener<TCEvent>
120+
): Promise<this>;
121+
on<TCEvent extends TypedContractEvent>(
122+
filter: TypedDeferredTopicFilter<TCEvent>,
123+
listener: TypedListener<TCEvent>
124+
): Promise<this>;
125+
126+
once<TCEvent extends TypedContractEvent>(
127+
event: TCEvent,
128+
listener: TypedListener<TCEvent>
129+
): Promise<this>;
130+
once<TCEvent extends TypedContractEvent>(
131+
filter: TypedDeferredTopicFilter<TCEvent>,
132+
listener: TypedListener<TCEvent>
133+
): Promise<this>;
134+
135+
listeners<TCEvent extends TypedContractEvent>(
136+
event: TCEvent
137+
): Promise<Array<TypedListener<TCEvent>>>;
138+
listeners(eventName?: string): Promise<Array<Listener>>;
139+
removeAllListeners<TCEvent extends TypedContractEvent>(
140+
event?: TCEvent
141+
): Promise<this>;
142+
143+
CHAIN_ID: TypedContractMethod<[], [string], "view">;
144+
145+
SEQUENCER: TypedContractMethod<[], [string], "view">;
146+
147+
verifyMembership: TypedContractMethod<
148+
[
149+
appHash: BytesLike,
150+
key: BytesLike,
151+
value: BytesLike,
152+
proofs: Ics23ProofStruct
153+
],
154+
[void],
155+
"view"
156+
>;
157+
158+
verifyNonMembership: TypedContractMethod<
159+
[arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct],
160+
[void],
161+
"view"
162+
>;
163+
164+
verifyStateUpdate: TypedContractMethod<
165+
[
166+
l2BlockNumber: BigNumberish,
167+
appHash: BytesLike,
168+
l1BlockHash: BytesLike,
169+
signature: BytesLike
170+
],
171+
[void],
172+
"view"
173+
>;
174+
175+
getFunction<T extends ContractMethod = ContractMethod>(
176+
key: string | FunctionFragment
177+
): T;
178+
179+
getFunction(
180+
nameOrSignature: "CHAIN_ID"
181+
): TypedContractMethod<[], [string], "view">;
182+
getFunction(
183+
nameOrSignature: "SEQUENCER"
184+
): TypedContractMethod<[], [string], "view">;
185+
getFunction(
186+
nameOrSignature: "verifyMembership"
187+
): TypedContractMethod<
188+
[
189+
appHash: BytesLike,
190+
key: BytesLike,
191+
value: BytesLike,
192+
proofs: Ics23ProofStruct
193+
],
194+
[void],
195+
"view"
196+
>;
197+
getFunction(
198+
nameOrSignature: "verifyNonMembership"
199+
): TypedContractMethod<
200+
[arg0: BytesLike, arg1: BytesLike, arg2: Ics23ProofStruct],
201+
[void],
202+
"view"
203+
>;
204+
getFunction(
205+
nameOrSignature: "verifyStateUpdate"
206+
): TypedContractMethod<
207+
[
208+
l2BlockNumber: BigNumberish,
209+
appHash: BytesLike,
210+
l1BlockHash: BytesLike,
211+
signature: BytesLike
212+
],
213+
[void],
214+
"view"
215+
>;
216+
217+
filters: {};
218+
}

0 commit comments

Comments
 (0)