Skip to content

Commit

Permalink
docs(contracts): regenerate (#12)
Browse files Browse the repository at this point in the history
* docs(contracts): improve markdown output for contracts

* fix(docs): correct admonitions

* chore(lint): fmt

* chore(update): sitemap
  • Loading branch information
sambacha authored Jul 1, 2024
1 parent be165b4 commit 1f23998
Show file tree
Hide file tree
Showing 9 changed files with 544 additions and 944 deletions.
835 changes: 254 additions & 581 deletions docs/Reference/Contracts/Auctioneer.md

Large diffs are not rendered by default.

27 changes: 8 additions & 19 deletions docs/Reference/Contracts/Bidder.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,31 @@
---
description: Bidder
title: Bidder
---

# Bidder.sol
> [Read code on GitHub](https://github.com/manifoldfinance/xga-auctioneer-v1/blob/maaster/src/Bidder.sol)



> [Read code on GitHub](https://github.com/manifoldfinance/xga-auctioneer-v1/blob/master/src/Bidder.sol)
## Methods

### getBid



```solidity title="Solidity"
function getBid(uint256 slot) external view returns (uint256[] packedBids)
```

!!! info

!!! info

Get the bid from a bidder for a specific slot and round.

Get the bid from a bidder for a specific slot and round.

#### Parameters

| Name | Type | Description |
|---|---|---|
| Name | Type | Description |
| ---- | ------- | ----------------- |
| slot | uint256 | The auction slot. |

#### Returns

| Name | Type | Description |
|---|---|---|
| Name | Type | Description |
| ---------- | --------- | -------------------------------------------------------------------------------------------------- |
| packedBids | uint256[] | Array of bids (in a packed format). uint256(uint128(bidPrice),uint120(itemsToBuy),uint8(bidderId)) |




41 changes: 8 additions & 33 deletions docs/Reference/Contracts/IAccountant.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,39 @@
---
description: IAccountant
title: Interface Accountant
---

# IAccountant.sol
> [Read code on GitHub](https://github.com/manifoldfinance/xga-auctioneer-v1/blob/maaster/src/IAccountant.sol)



> [Read code on GitHub](https://github.com/manifoldfinance/xga-auctioneer-v1/blob/master/src/IAccountant.sol)
## Methods

### getPayoutBalance



```solidity title="Solidity"
function getPayoutBalance() external view returns (uint256 payoutBalance)
```





#### Returns

| Name | Type | Description |
|---|---|---|
| payoutBalance | uint256 | undefined |
| Name | Type | Description |
| ------------- | ------- | ----------- |
| payoutBalance | uint256 | undefined |

### minPayout



```solidity title="Solidity"
function minPayout() external view returns (uint256 amount)
```





#### Returns

| Name | Type | Description |
|---|---|---|
| amount | uint256 | undefined |
| Name | Type | Description |
| ------ | ------- | ----------- |
| amount | uint256 | undefined |

### payout



```solidity title="Solidity"
function payout() external nonpayable
```








Loading

0 comments on commit 1f23998

Please sign in to comment.