update
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
contract MultiSend {
|
||||
function multiTransfer(address[] calldata to, uint256[] calldata amounts) external payable {
|
||||
uint256 length = to.length;
|
||||
require(length == amounts.length, "Arrays must have the same length");
|
||||
|
||||
for (uint256 i = 0; i < length; i++) {
|
||||
payable(to[i]).transfer(amounts[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
interface IERC20 {
|
||||
function transfer(address recipient, uint256 amount) external returns (bool);
|
||||
}
|
||||
|
||||
contract MultiSendUSDT {
|
||||
address public tokenAddress;
|
||||
|
||||
constructor(address _tokenAddress) {
|
||||
tokenAddress = _tokenAddress;
|
||||
}
|
||||
|
||||
function multiTransfer(address[] calldata to, uint256[] calldata amounts) external {
|
||||
IERC20 token = IERC20(tokenAddress);
|
||||
uint256 length = to.length;
|
||||
require(length == amounts.length, "Arrays must have the same length");
|
||||
|
||||
for (uint256 i = 0; i < length; i++) {
|
||||
token.transfer(to[i], amounts[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
1295
internal/blockchain/eth/eth_prv.go
Normal file
1295
internal/blockchain/eth/eth_prv.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user