Skip to content

Commit

Permalink
yarn generate
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Aug 1, 2024
1 parent 48b33f2 commit 9a84f34
Show file tree
Hide file tree
Showing 28 changed files with 325 additions and 264 deletions.
2 changes: 1 addition & 1 deletion v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "forge clean && forge test -vvv",
"coverage": "forge clean && forge coverage --report lcov",
"typechain": "npx typechain --target ethers-v6 \"out/**/!(*.t|test).sol/!(*.abi).json\" --out-dir typechain-types",
"generate": "forge clean && forge build && ./scripts/generate_go.sh || true && yarn lint:fix && forge fmt && yarn typechain"
"generate": "forge clean && forge build && forge fmt && ./scripts/generate_go.sh || true && yarn lint:fix && yarn typechain"
},
"devDependencies": {
"@eslint/js": "^9.7.0",
Expand Down
28 changes: 14 additions & 14 deletions v2/pkg/erc20custody.sol/erc20custody.go

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayevm.sol/gatewayevm.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go

Large diffs are not rendered by default.

131 changes: 81 additions & 50 deletions v2/pkg/gatewayevm.t.sol/gatewayevmtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions v2/pkg/zetaconnectorbase.sol/zetaconnectorbase.go

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions v2/pkg/zetaconnectornative.sol/zetaconnectornative.go

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions v2/typechain-types/ERC20Custody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ERC20CustodyInterface extends Interface {
nameOrSignature:
| "DEFAULT_ADMIN_ROLE"
| "PAUSER_ROLE"
| "TSS_ROLE"
| "WITHDRAWER_ROLE"
| "gateway"
| "getRoleAdmin"
| "grantRole"
Expand Down Expand Up @@ -65,7 +65,10 @@ export interface ERC20CustodyInterface extends Interface {
functionFragment: "PAUSER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "TSS_ROLE", values?: undefined): string;
encodeFunctionData(
functionFragment: "WITHDRAWER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "gateway", values?: undefined): string;
encodeFunctionData(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -119,7 +122,10 @@ export interface ERC20CustodyInterface extends Interface {
functionFragment: "PAUSER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "TSS_ROLE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "WITHDRAWER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "gateway", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -348,7 +354,7 @@ export interface ERC20Custody extends BaseContract {

PAUSER_ROLE: TypedContractMethod<[], [string], "view">;

TSS_ROLE: TypedContractMethod<[], [string], "view">;
WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">;

gateway: TypedContractMethod<[], [string], "view">;

Expand Down Expand Up @@ -431,7 +437,7 @@ export interface ERC20Custody extends BaseContract {
nameOrSignature: "PAUSER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "TSS_ROLE"
nameOrSignature: "WITHDRAWER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "gateway"
Expand Down
16 changes: 11 additions & 5 deletions v2/typechain-types/ERC20CustodyEchidnaTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ERC20CustodyEchidnaTestInterface extends Interface {
nameOrSignature:
| "DEFAULT_ADMIN_ROLE"
| "PAUSER_ROLE"
| "TSS_ROLE"
| "WITHDRAWER_ROLE"
| "echidnaCaller"
| "gateway"
| "getRoleAdmin"
Expand Down Expand Up @@ -68,7 +68,10 @@ export interface ERC20CustodyEchidnaTestInterface extends Interface {
functionFragment: "PAUSER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "TSS_ROLE", values?: undefined): string;
encodeFunctionData(
functionFragment: "WITHDRAWER_ROLE",
values?: undefined
): string;
encodeFunctionData(
functionFragment: "echidnaCaller",
values?: undefined
Expand Down Expand Up @@ -131,7 +134,10 @@ export interface ERC20CustodyEchidnaTestInterface extends Interface {
functionFragment: "PAUSER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "TSS_ROLE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "WITHDRAWER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(
functionFragment: "echidnaCaller",
data: BytesLike
Expand Down Expand Up @@ -369,7 +375,7 @@ export interface ERC20CustodyEchidnaTest extends BaseContract {

PAUSER_ROLE: TypedContractMethod<[], [string], "view">;

TSS_ROLE: TypedContractMethod<[], [string], "view">;
WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">;

echidnaCaller: TypedContractMethod<[], [string], "view">;

Expand Down Expand Up @@ -462,7 +468,7 @@ export interface ERC20CustodyEchidnaTest extends BaseContract {
nameOrSignature: "PAUSER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "TSS_ROLE"
nameOrSignature: "WITHDRAWER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "echidnaCaller"
Expand Down
16 changes: 11 additions & 5 deletions v2/typechain-types/ZetaConnectorBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ZetaConnectorBaseInterface extends Interface {
nameOrSignature:
| "DEFAULT_ADMIN_ROLE"
| "PAUSER_ROLE"
| "TSS_ROLE"
| "WITHDRAWER_ROLE"
| "gateway"
| "getRoleAdmin"
| "grantRole"
Expand Down Expand Up @@ -67,7 +67,10 @@ export interface ZetaConnectorBaseInterface extends Interface {
functionFragment: "PAUSER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "TSS_ROLE", values?: undefined): string;
encodeFunctionData(
functionFragment: "WITHDRAWER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "gateway", values?: undefined): string;
encodeFunctionData(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -126,7 +129,10 @@ export interface ZetaConnectorBaseInterface extends Interface {
functionFragment: "PAUSER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "TSS_ROLE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "WITHDRAWER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "gateway", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -341,7 +347,7 @@ export interface ZetaConnectorBase extends BaseContract {

PAUSER_ROLE: TypedContractMethod<[], [string], "view">;

TSS_ROLE: TypedContractMethod<[], [string], "view">;
WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">;

gateway: TypedContractMethod<[], [string], "view">;

Expand Down Expand Up @@ -432,7 +438,7 @@ export interface ZetaConnectorBase extends BaseContract {
nameOrSignature: "PAUSER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "TSS_ROLE"
nameOrSignature: "WITHDRAWER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "gateway"
Expand Down
16 changes: 11 additions & 5 deletions v2/typechain-types/ZetaConnectorNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ZetaConnectorNativeInterface extends Interface {
nameOrSignature:
| "DEFAULT_ADMIN_ROLE"
| "PAUSER_ROLE"
| "TSS_ROLE"
| "WITHDRAWER_ROLE"
| "gateway"
| "getRoleAdmin"
| "grantRole"
Expand Down Expand Up @@ -67,7 +67,10 @@ export interface ZetaConnectorNativeInterface extends Interface {
functionFragment: "PAUSER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "TSS_ROLE", values?: undefined): string;
encodeFunctionData(
functionFragment: "WITHDRAWER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "gateway", values?: undefined): string;
encodeFunctionData(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -126,7 +129,10 @@ export interface ZetaConnectorNativeInterface extends Interface {
functionFragment: "PAUSER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "TSS_ROLE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "WITHDRAWER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "gateway", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -341,7 +347,7 @@ export interface ZetaConnectorNative extends BaseContract {

PAUSER_ROLE: TypedContractMethod<[], [string], "view">;

TSS_ROLE: TypedContractMethod<[], [string], "view">;
WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">;

gateway: TypedContractMethod<[], [string], "view">;

Expand Down Expand Up @@ -432,7 +438,7 @@ export interface ZetaConnectorNative extends BaseContract {
nameOrSignature: "PAUSER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "TSS_ROLE"
nameOrSignature: "WITHDRAWER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "gateway"
Expand Down
16 changes: 11 additions & 5 deletions v2/typechain-types/ZetaConnectorNonNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ZetaConnectorNonNativeInterface extends Interface {
nameOrSignature:
| "DEFAULT_ADMIN_ROLE"
| "PAUSER_ROLE"
| "TSS_ROLE"
| "WITHDRAWER_ROLE"
| "gateway"
| "getRoleAdmin"
| "grantRole"
Expand Down Expand Up @@ -70,7 +70,10 @@ export interface ZetaConnectorNonNativeInterface extends Interface {
functionFragment: "PAUSER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "TSS_ROLE", values?: undefined): string;
encodeFunctionData(
functionFragment: "WITHDRAWER_ROLE",
values?: undefined
): string;
encodeFunctionData(functionFragment: "gateway", values?: undefined): string;
encodeFunctionData(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -134,7 +137,10 @@ export interface ZetaConnectorNonNativeInterface extends Interface {
functionFragment: "PAUSER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "TSS_ROLE", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "WITHDRAWER_ROLE",
data: BytesLike
): Result;
decodeFunctionResult(functionFragment: "gateway", data: BytesLike): Result;
decodeFunctionResult(
functionFragment: "getRoleAdmin",
Expand Down Expand Up @@ -366,7 +372,7 @@ export interface ZetaConnectorNonNative extends BaseContract {

PAUSER_ROLE: TypedContractMethod<[], [string], "view">;

TSS_ROLE: TypedContractMethod<[], [string], "view">;
WITHDRAWER_ROLE: TypedContractMethod<[], [string], "view">;

gateway: TypedContractMethod<[], [string], "view">;

Expand Down Expand Up @@ -465,7 +471,7 @@ export interface ZetaConnectorNonNative extends BaseContract {
nameOrSignature: "PAUSER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "TSS_ROLE"
nameOrSignature: "WITHDRAWER_ROLE"
): TypedContractMethod<[], [string], "view">;
getFunction(
nameOrSignature: "gateway"
Expand Down

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions v2/typechain-types/factories/ERC20Custody__factory.ts

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/typechain-types/factories/GatewayEVM__factory.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/typechain-types/factories/ZetaConnectorBase__factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const _abi = [
},
{
type: "function",
name: "TSS_ROLE",
name: "WITHDRAWER_ROLE",
inputs: [],
outputs: [
{
Expand Down
Loading

0 comments on commit 9a84f34

Please sign in to comment.