Skip to content

Commit

Permalink
fix: address warnings in build (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis authored Oct 17, 2024
1 parent db2f95f commit ff64066
Show file tree
Hide file tree
Showing 38 changed files with 185 additions and 192 deletions.
15 changes: 9 additions & 6 deletions v2/contracts/evm/ZetaConnectorNative.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ contract ZetaConnectorNative is ZetaConnectorBase {
/// @notice Withdraw tokens to a specified address.
/// @param to The address to withdraw tokens to.
/// @param amount The amount of tokens to withdraw.
/// @param internalSendHash A hash used for internal tracking of the transaction.
//// @param internalSendHash A hash used for internal tracking of the transaction (not used currently
// https://github.com/zeta-chain/protocol-contracts/issues/398)
/// @dev This function can only be called by the TSS address.
function withdraw(
address to,
uint256 amount,
bytes32 internalSendHash
bytes32 /*internalSendHash*/
)
external
override
Expand All @@ -48,13 +49,14 @@ contract ZetaConnectorNative is ZetaConnectorBase {
/// @param to The address to withdraw tokens to.
/// @param amount The amount of tokens to withdraw.
/// @param data The calldata to pass to the contract call.
/// @param internalSendHash A hash used for internal tracking of the transaction.
//// @param internalSendHash A hash used for internal tracking of the transaction (not used currently
// https://github.com/zeta-chain/protocol-contracts/issues/398)
/// @dev This function can only be called by the TSS address.
function withdrawAndCall(
address to,
uint256 amount,
bytes calldata data,
bytes32 internalSendHash
bytes32 /*internalSendHash*/
)
external
override
Expand All @@ -75,14 +77,15 @@ contract ZetaConnectorNative is ZetaConnectorBase {
/// @param to The address to withdraw tokens to.
/// @param amount The amount of tokens to withdraw.
/// @param data The calldata to pass to the contract call.
/// @param internalSendHash A hash used for internal tracking of the transaction.
//// @param internalSendHash A hash used for internal tracking of the transaction (not used currently
// https://github.com/zeta-chain/protocol-contracts/issues/398)
/// @dev This function can only be called by the TSS address.
/// @param revertContext Revert context to pass to onRevert.
function withdrawAndRevert(
address to,
uint256 amount,
bytes calldata data,
bytes32 internalSendHash,
bytes32, /*internalSendHash*/
RevertContext calldata revertContext
)
external
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ function withdrawAndRevert(

Deposits asset to custody and pay fee in zeta erc20.

**Note:**
This method is deprecated.


```solidity
function deposit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ uint256 public constant MAX_PAYLOAD_SIZE = 1024;
## Functions
### constructor

**Note:**
constructor


```solidity
constructor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Withdraw tokens to a specified address.
function withdraw(
address to,
uint256 amount,
bytes32 internalSendHash
bytes32
)
external
override
Expand All @@ -50,7 +50,7 @@ function withdraw(
|----|----|-----------|
|`to`|`address`|The address to withdraw tokens to.|
|`amount`|`uint256`|The amount of tokens to withdraw.|
|`internalSendHash`|`bytes32`|A hash used for internal tracking of the transaction.|
|`<none>`|`bytes32`||


### withdrawAndCall
Expand All @@ -65,7 +65,7 @@ function withdrawAndCall(
address to,
uint256 amount,
bytes calldata data,
bytes32 internalSendHash
bytes32
)
external
override
Expand All @@ -80,7 +80,7 @@ function withdrawAndCall(
|`to`|`address`|The address to withdraw tokens to.|
|`amount`|`uint256`|The amount of tokens to withdraw.|
|`data`|`bytes`|The calldata to pass to the contract call.|
|`internalSendHash`|`bytes32`|A hash used for internal tracking of the transaction.|
|`<none>`|`bytes32`||


### withdrawAndRevert
Expand All @@ -95,7 +95,7 @@ function withdrawAndRevert(
address to,
uint256 amount,
bytes calldata data,
bytes32 internalSendHash,
bytes32,
RevertContext calldata revertContext
)
external
Expand All @@ -111,7 +111,7 @@ function withdrawAndRevert(
|`to`|`address`|The address to withdraw tokens to.|
|`amount`|`uint256`|The amount of tokens to withdraw.|
|`data`|`bytes`|The calldata to pass to the contract call.|
|`internalSendHash`|`bytes32`|A hash used for internal tracking of the transaction.|
|`<none>`|`bytes32`||
|`revertContext`|`RevertContext`|Revert context to pass to onRevert.|


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ modifier onlyProtocol();

### constructor

**Note:**
constructor


```solidity
constructor();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# zContract
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/main/v2/contracts/zevm/interfaces/UniversalContract.sol)

**Note:**
should be removed once v2 SystemContract is not used anymore.
UniversalContract should be used


## Functions
### onCrossChainCall
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# zContext
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/main/v2/contracts/zevm/interfaces/UniversalContract.sol)

**Note:**
should be removed once v2 SystemContract is not used anymore.
MessageContext should be used


```solidity
struct zContext {
Expand Down
1 change: 1 addition & 0 deletions v2/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ remappings = [
"@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/"
]

solc-version = "0.8.26"
no-match-contract = '.*EchidnaTest$'
optimizer = true
optimizer_runs = 10_000
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/erc20custody.t.sol/erc20custodytest.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.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions v2/pkg/receiverevm.sol/receiverevm.go

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions v2/pkg/testuniversalcontract.sol/testuniversalcontract.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ff64066

Please sign in to comment.