ContractsABI reference
D17Locker
Participant custody, canonical-rule verification, refunds, settlement, and withdrawals.
Participant custody, canonical-rule verification, refunds, settlement, and withdrawals.
Important behavior
- Owner-only calls commit, refund, withdraw, and settle during grace.
- After
poolCreationOpensAt, anyone may callsettleAfterGrace; assets still credit the locker owner. - Native ETH sent directly to the locker is rejected;
commitToRoundis the payable entry point.
Surface summary
| Constructors | Functions | Events | Custom errors | Receive/fallback |
|---|---|---|---|---|
| 1 | 20 | 8 | 1 | 2 |
Construction
Constructor
constructor(address owner_, address factory_, address weth_)- Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
owner_ | address |
factory_ | address |
weth_ | address |
Receive and fallback
Fallback
fallback() external payable- Mutability:
payable
Receive
receive() external payable- Mutability:
payable
Functions
EXPECTED_LAUNCH_ID
function EXPECTED_LAUNCH_ID() external view returns (bytes32 value1)- Signature:
EXPECTED_LAUNCH_ID() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bytes32 |
ROUND_COUNT
function ROUND_COUNT() external view returns (uint8 value1)- Signature:
ROUND_COUNT() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint8 |
accountedWeth
function accountedWeth() external view returns (uint256 value1)- Signature:
accountedWeth() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
commitToRound
function commitToRound(address launch, uint8 round, bytes32 expectedRulesHash) external payable- Signature:
commitToRound(address,uint8,bytes32) - Mutability:
payable
Inputs
| Field | ABI type |
|---|---|
launch | address |
round | uint8 |
expectedRulesHash | bytes32 |
Outputs
None.
factory
function factory() external view returns (address value1)- Signature:
factory() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
lockedWeth
function lockedWeth(address launch) external view returns (uint256 value1)- Signature:
lockedWeth(address) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
launch | address |
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
owner
function owner() external view returns (address value1)- Signature:
owner() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
positions
function positions(address value1) external view returns (bool known, bool liquiditySettled, address token, address liquidityVault, bytes32 rulesHash, uint256 ethCommitted, uint256 wethCommitted, uint256 wethRefunded, uint256 penaltyPaid, uint256 claimedSaleTokens, uint256 wethSentToVault, uint256 wethForLp, uint256 treasuryWeth, uint256 withdrawableTokens, uint256 residualWeth, bool finalSaleTokensClaimed)- Signature:
positions(address) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
value1 | address |
Outputs
| Field | ABI type |
|---|---|
known | bool |
liquiditySettled | bool |
token | address |
liquidityVault | address |
rulesHash | bytes32 |
ethCommitted | uint256 |
wethCommitted | uint256 |
wethRefunded | uint256 |
penaltyPaid | uint256 |
claimedSaleTokens | uint256 |
wethSentToVault | uint256 |
wethForLp | uint256 |
treasuryWeth | uint256 |
withdrawableTokens | uint256 |
residualWeth | uint256 |
finalSaleTokensClaimed | bool |
recoverExcessWeth
function recoverExcessWeth(address recipient, uint256 amount) external nonpayable- Signature:
recoverExcessWeth(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
recipient | address |
amount | uint256 |
Outputs
None.
recoverNativeEth
function recoverNativeEth(address recipient, uint256 amount) external nonpayable- Signature:
recoverNativeEth(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
recipient | address |
amount | uint256 |
Outputs
None.
refundCurrentRound
function refundCurrentRound(address launch) external nonpayable- Signature:
refundCurrentRound(address) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
Outputs
None.
refundFailedLaunch
function refundFailedLaunch(address launch, bytes32 expectedRulesHash) external nonpayable- Signature:
refundFailedLaunch(address,bytes32) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
expectedRulesHash | bytes32 |
Outputs
None.
roundPosition
function roundPosition(address launch, uint8 round) external view returns (uint256 roundWeth, uint256 roundSaleTokens, bool refunded, bool tokensClaimed)- Signature:
roundPosition(address,uint8) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
launch | address |
round | uint8 |
Outputs
| Field | ABI type |
|---|---|
roundWeth | uint256 |
roundSaleTokens | uint256 |
refunded | bool |
tokensClaimed | bool |
settleAfterGrace
function settleAfterGrace(address launch) external nonpayable returns (uint256 claimedSaleTokens)- Signature:
settleAfterGrace(address) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
Outputs
| Field | ABI type |
|---|---|
claimedSaleTokens | uint256 |
settleAndClaim
function settleAndClaim(address launch, bytes32 expectedRulesHash) external nonpayable returns (uint256 claimedSaleTokens)- Signature:
settleAndClaim(address,bytes32) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
expectedRulesHash | bytes32 |
Outputs
| Field | ABI type |
|---|---|
claimedSaleTokens | uint256 |
verifyLaunch
function verifyLaunch(address launch, bytes32 expectedRulesHash) external view returns (bool value1)- Signature:
verifyLaunch(address,bytes32) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
launch | address |
expectedRulesHash | bytes32 |
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
weth
function weth() external view returns (address value1)- Signature:
weth() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
withdrawUnlockedTokens
function withdrawUnlockedTokens(address launch, uint256 amount) external nonpayable- Signature:
withdrawUnlockedTokens(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
amount | uint256 |
Outputs
None.
withdrawUnlockedWeth
function withdrawUnlockedWeth(address launch, uint256 amount) external nonpayable- Signature:
withdrawUnlockedWeth(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch | address |
amount | uint256 |
Outputs
None.
withdrawableWeth
function withdrawableWeth() external view returns (uint256 value1)- Signature:
withdrawableWeth() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
Events
ClaimedTokensWithdrawn
event ClaimedTokensWithdrawn(address indexed launch, uint256 amount)- Signature:
ClaimedTokensWithdrawn(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
amount | uint256 | no |
ExcessWethRecovered
event ExcessWethRecovered(address indexed recipient, uint256 amount)- Signature:
ExcessWethRecovered(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
recipient | address | yes |
amount | uint256 | no |
FailedLaunchRefunded
event FailedLaunchRefunded(address indexed launch, uint256 refundWeth)- Signature:
FailedLaunchRefunded(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
refundWeth | uint256 | no |
NativeEthRecovered
event NativeEthRecovered(address indexed recipient, uint256 amount)- Signature:
NativeEthRecovered(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
recipient | address | yes |
amount | uint256 | no |
RoundCommitted
event RoundCommitted(address indexed launch, uint8 indexed round, uint256 amount)- Signature:
RoundCommitted(address,uint8,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
round | uint8 | yes |
amount | uint256 | no |
RoundRefunded
event RoundRefunded(address indexed launch, uint8 indexed round, uint256 refundWeth, uint256 penaltyWeth)- Signature:
RoundRefunded(address,uint8,uint256,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
round | uint8 | yes |
refundWeth | uint256 | no |
penaltyWeth | uint256 | no |
VaultSettlementCompleted
event VaultSettlementCompleted(address indexed launch, address indexed liquidityVault, address indexed settler, address owner, uint256 saleTokens, uint256 wethSentToVault, uint256 treasuryWeth, uint256 grossCommittedWeth, uint256 residualWeth)- Signature:
VaultSettlementCompleted(address,address,address,address,uint256,uint256,uint256,uint256,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
liquidityVault | address | yes |
settler | address | yes |
owner | address | no |
saleTokens | uint256 | no |
wethSentToVault | uint256 | no |
treasuryWeth | uint256 | no |
grossCommittedWeth | uint256 | no |
residualWeth | uint256 | no |
WethWithdrawn
event WethWithdrawn(address indexed launch, uint256 amount)- Signature:
WethWithdrawn(address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
amount | uint256 | no |
Custom errors
TransferFailed
error TransferFailed()- Signature:
TransferFailed()
Arguments
None.
Generated from data/abi/D17Locker.abi.json. Every entry above is checked against that ABI by npm run check:contracts.