47 lines
1.3 KiB
Solidity
47 lines
1.3 KiB
Solidity
// SPDX-License-Identifier: Apache 2
|
|
pragma solidity ^0.8.13;
|
|
|
|
import "./CrossChainUSDCState.sol";
|
|
|
|
contract CrossChainUSDCSetters is CrossChainUSDCState {
|
|
function setOwner(address owner_) internal {
|
|
_state.owner = owner_;
|
|
}
|
|
|
|
function setPendingOwner(address pendingOwner_) internal {
|
|
_state.pendingOwner = pendingOwner_;
|
|
}
|
|
|
|
function setInitialized(address implementatiom) internal {
|
|
_state.initializedImplementations[implementatiom] = true;
|
|
}
|
|
|
|
function setWormhole(address wormhole_) internal {
|
|
_state.wormhole = payable(wormhole_);
|
|
}
|
|
|
|
function setChainId(uint16 chainId_) internal {
|
|
_state.chainId = chainId_;
|
|
}
|
|
|
|
function setWormholeFinality(uint8 finality) internal {
|
|
_state.wormholeFinality = finality;
|
|
}
|
|
|
|
function setCircleBridge(address circleBridgeAddress_) internal {
|
|
_state.circleBridgeAddress = circleBridgeAddress_;
|
|
}
|
|
|
|
function setEmitter(uint16 chainId_, bytes32 emitter) internal {
|
|
_state.registeredEmitters[chainId_] = emitter;
|
|
}
|
|
|
|
function setChainDomain(uint16 chainId_, uint32 domain) internal {
|
|
_state.chainDomains[chainId_] = domain;
|
|
}
|
|
|
|
function consumeMessage(bytes32 hash) internal {
|
|
_state.consumedMessages[hash] = true;
|
|
}
|
|
}
|