Skip to main content

AreciboPrimary

The primary contract for Arecibo

Methods

DOMAIN_SEPARATOR

function DOMAIN_SEPARATOR() external view returns (bytes32)

Returns

NameTypeDescription
_0bytes32undefined

addSigner

function addSigner(address newSigner) external nonpayable

Add a new signer as valid

Parameters

NameTypeDescription
newSigneraddressThe address to set as a valid signer

name

function name() external view returns (string)

Returns

NameTypeDescription
_0stringundefined

nonces

function nonces(address) external view returns (uint256)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0uint256undefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

paused

function paused() external view returns (bool)

Returns true if the contract is paused, and false otherwise.

Returns

NameTypeDescription
_0boolundefined

performSwapBundle

function performSwapBundle(AreciboPrimary.SwapBundle swaps) external payable

Parameters

NameTypeDescription
swapsAreciboPrimary.SwapBundleundefined

removeSigner

function removeSigner(address signer) external nonpayable

Removes a signer

Parameters

NameTypeDescription
signeraddressThe address to remove as a valid signer

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.

signers

function signers(address) external view returns (bool)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0boolundefined

tokenTransferProxy

function tokenTransferProxy() external view returns (contract TokenTransferProxy)

Returns

NameTypeDescription
_0contract TokenTransferProxyundefined

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

withdrawETH

function withdrawETH(uint256 _amount) external nonpayable

Withdraw ether contained in this contract and send it back to owner

onlyOwner modifier only allows the contract owner to run the code

Parameters

NameTypeDescription
_amountuint256The amount of ether that the caller wants to withdraw

withdrawToken

function withdrawToken(address _token, uint256 _amount) external nonpayable

Withdraw ether contained in this contract and send it back to owner

onlyOwner modifier only allows the contract owner to run the code

Parameters

NameTypeDescription
_tokenaddressThe address of the token that the user wants to withdraw
_amountuint256The amount of tokens that the caller wants to withdraw

Events

LogSwap

event LogSwap(bytes32 indexed id, address sourceAsset, address destinationAsset, uint256 sourceAmount, uint256 destinationAmount, address feeAsset, uint256 feeAmount)

Parameters

NameTypeDescription
id indexedbytes32undefined
sourceAssetaddressundefined
destinationAssetaddressundefined
sourceAmountuint256undefined
destinationAmountuint256undefined
feeAssetaddressundefined
feeAmountuint256undefined

LogSwapBundle

event LogSwapBundle(bytes32 indexed id, address indexed partnerContract, address indexed user)

Parameters

NameTypeDescription
id indexedbytes32undefined
partnerContract indexedaddressundefined
user indexedaddressundefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

Paused

event Paused(address account)

Parameters

NameTypeDescription
accountaddressundefined

Unpaused

event Unpaused(address account)

Parameters

NameTypeDescription
accountaddressundefined