Skip to content

Commit

Permalink
Split contracts API doc into multiple files
Browse files Browse the repository at this point in the history
Having all the contracts documented in one common file turned out to be hard to
render by the GitBook. We're switching to documenting each contract file in a
separate Markdown file.

The docs got published in previous commits, in this commit we update the
GitBook;s navigation.
  • Loading branch information
michalinacienciala committed Jun 28, 2023
1 parent 5339806 commit 8a83281
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 8 deletions.
87 changes: 82 additions & 5 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,89 @@
* [Get Started (PRE Mainnet)](app-development/threshold-access-control-tac/advanced-usage/proxy-re-encryption.md)
* [Contribution Guide](app-development/contribution-guide.md)
* [Staking Contract and DAO](app-development/staking-contract-and-dao/README.md)
* [Random Beacon API](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/index.md)
* [Staking Contract and DAO API](app-development/staking-contract-and-dao/staking-contract-and-dao-api/README.md)
* [BaseTokenholderGovernor](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/BaseTokenholderGovernor.md)
* [Checkpoints](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/Checkpoints.md)
* [GovernorParameters](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/GovernorParameters.md)
* [IApplication](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/staking/IApplication.md)
* [ILegacyTokenStaking](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/staking/ILegacyTokenStaking.md)
* [IStaking](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/staking/IStaking.md)
* [IVotesHistory](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/IVotesHistory.md)
* [KeepStake](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/staking/KeepStake.md)
* [PercentUtils](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/utils/PercentUtils.md)
* [ProxyAdminWithDeputy](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/ProxyAdminWithDeputy.md)
* [SafeTUpgradeable](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/utils/SafeTUpgradeable.md)
* [StakerGovernor](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/StakerGovernor.md)
* [StakerGovernorVotes](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/StakerGovernorVotes.md)
* [T](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/token/T.md)
* [TokenholderGovernor](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/TokenholderGovernor.md)
* [TokenholderGovernorVotes](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/governance/TokenholderGovernorVotes.md)
* [TokenStaking](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/staking/TokenStaking.md)
* [VendingMachine](app-development/staking-contract-and-dao/staking-contract-and-dao-api/generated-docs/vendingVendingMachine.md)
* [Random Beacon](app-development/random-beacon/README.md)
* [Random Beacon API](app-development/random-beacon/random-beacon-api/generated-docs/index.md)
* [TBTCv2](app-development/tbtc-v2/README.md)
* [ECDSA API](app-development/tbtc-v2/ecdsa-api/generated-docs/index.md)
* [TBTCv2 API](app-development/tbtc-v2/tbtc-v2-api/generated-docs/index.md)
* [Random Beacon API](app-development/random-beacon/random-beacon-api/README.md)
* [AltBn128](app-development/random-beacon/random-beacon-api/generated-docs/libraries/AltBn128.md)
* [BeaconAuthorization](app-development/random-beacon/random-beacon-api/generated-docs/libraries/BeaconAuthorization.md)
* [BeaconDkg](app-development/random-beacon/random-beacon-api/generated-docs/libraries/BeaconDkg.md)
* [BeaconDkgValidator](app-development/random-beacon/random-beacon-api/generated-docs/BeaconDkgValidator.md)
* [BeaconInactivity](app-development/random-beacon/random-beacon-api/generated-docs/libraries/BeaconInactivity.md)
* [BLS](app-development/random-beacon/random-beacon-api/generated-docs/libraries/BLS.md)
* [BytesLib](app-development/random-beacon/random-beacon-api/generated-docs/libraries/BytesLib.md)
* [Callback](app-development/random-beacon/random-beacon-api/generated-docs/libraries/Callback.md)
* [Governable](app-development/random-beacon/random-beacon-api/generated-docs/Governable.md)
* [Groups](app-development/random-beacon/random-beacon-api/generated-docs/libraries/Groups.md)
* [IRandomBeacon](app-development/random-beacon/random-beacon-api/generated-docs/api/IRandomBeacon.md)
* [IRandomBeaconConsumer](app-development/random-beacon/random-beacon-api/generated-docs/api/IRandomBeaconConsumer.md)
* [ModUtils](app-development/random-beacon/random-beacon-api/generated-docs/libraries/ModUtils.md)
* [RandomBeacon](app-development/random-beacon/random-beacon-api/generated-docs/RandomBeacon.md)
* [RandomBeaconChaosnet](app-development/random-beacon/random-beacon-api/generated-docs/RandomBeaconChaosnet.md)
* [RandomBeaconGovernance](app-development/random-beacon/random-beacon-api/generated-docs/RandomBeaconGovernance.md)
* [Reimbursable](app-development/random-beacon/random-beacon-api/generated-docs/Reimbursable.md)
* [ReimbursementPool](app-development/random-beacon/random-beacon-api/generated-docs/ReimbursementPool.md)
* [Relay](app-development/random-beacon/random-beacon-api/generated-docs/libraries/Relay.md)
* [tBTC](app-development/tbtc-v2/README.md)
* [ECDSA API](app-development/tbtc-v2/ecdsa-api/README.md)
* [EcdsaAuthorization](app-development/tbtc-v2/ecdsa-api/generated-docs/libraries/EcdsaAuthorization.md)
* [EcdsaDkg](app-development/tbtc-v2/ecdsa-api/generated-docs/libraries/EcdsaDkg.md)
* [EcdsaDkgValidator](app-development/tbtc-v2/ecdsa-api/generated-docs/EcdsaDkgValidator.md)
* [EcdsaInactivity](app-development/tbtc-v2/ecdsa-api/generated-docs/libraries/EcdsaInactivity.md)
* [IWalletOwner](app-development/tbtc-v2/ecdsa-api/generated-docs/api/IWalletOwner.md)
* [IWalletRegistry](app-development/tbtc-v2/ecdsa-api/generated-docs/api/IWalletRegistry.md)
* [WalletRegistry](app-development/tbtc-v2/ecdsa-api/generated-docs/WalletRegistry.md)
* [WalletRegistryGovernance](app-development/tbtc-v2/ecdsa-api/generated-docs/WalletRegistryGovernance.md)
* [Wallets](app-development/tbtc-v2/ecdsa-api/generated-docs/libraries/Wallets.md)
* [Bridge API](app-development/tbtc-v2/tbtc-v2-api/README.md)
* [Bank](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bank/Bank.md)
* [BitcoinTx](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/BitcoinTx.md)
* [Bridge](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Bridge.md)
* [BridgeGovernance](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/BridgeGovernance.md)
* [BridgeGovernanceParameters](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/BridgeGovernanceParameters.md)
* [BridgeState](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/BridgeState.md)
* [Deposit](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Deposit.md)
* [DepositSweep](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/DepositSweep.md)
* [DonationVault](app-development/tbtc-v2/tbtc-v2-api/generated-docs/vault/DonationVault.md)
* [EcdsaLib](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/EcdsaLib.md)
* [Fraud](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Fraud.md)
* [GovernanceUtils](app-development/tbtc-v2/tbtc-v2-api/generated-docs/GovernanceUtils.md)
* [Heartbeat](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Heartbeat.md)
* [IReceiveBalanceApproval](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bank/IReceiveBalanceApproval.md)
* [IRelay](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/IRelay.md)
* [IVault](app-development/tbtc-v2/tbtc-v2-api/generated-docs/vault/IVault.md)
* [L2TBTC](app-development/tbtc-v2/tbtc-v2-api/generated-docs/l2/L2TBTC.md)
* [L2WormholeGateway](app-development/tbtc-v2/tbtc-v2-api/generated-docs/l2/L2WormholeGateway.md)
* [LightRelay](app-development/tbtc-v2/tbtc-v2-api/generated-docs/relay/LightRelay.md)
* [LightRelayMaintainerProxy](app-development/tbtc-v2/tbtc-v2-api/generated-docs/relay/LightRelayMaintainerProxy.md)
* [MaintainerProxy](app-development/tbtc-v2/tbtc-v2-api/generated-docs/maintainer/MaintainerProxy.md)
* [MovingFunds](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/MovingFunds.md)
* [Redemption](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Redemption.md)
* [TBTC](app-development/tbtc-v2/tbtc-v2-api/generated-docs/token/TBTC.md)
* [TBTCOptimisticMinting](app-development/tbtc-v2/tbtc-v2-api/generated-docs/vault/TBTCOptimisticMinting.md)
* [TBTCVault](app-development/tbtc-v2/tbtc-v2-api/generated-docs/vault/TBTCVault.md)
* [VendingMachine](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/VendingMachine.md)
* [VendingMachineV2](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/VendingMachineV2.md)
* [VendingMachineV3](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/VendingMachineV3.md)
* [WalletCoordinator](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/WalletCoordinator.md)
* [Wallets](app-development/tbtc-v2/tbtc-v2-api/generated-docs/bridge/Wallets.md)

## Resources

Expand Down
42 changes: 42 additions & 0 deletions docs/app-development/random-beacon/random-beacon-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Random Beacon API

You can learn about APIs of contracts related to the Random Beacon under the
following links:

[AltBn128](./generated-docs/libraries/AltBn128.md)

[BeaconAuthorization](./generated-docs/libraries/BeaconAuthorization.md)

[BeaconDkg](./generated-docs/libraries/BeaconDkg.md)

[BeaconDkgValidator](./generated-docs/BeaconDkgValidator.md)

[BeaconInactivity](./generated-docs/libraries/BeaconInactivity.md)

[BLS](./generated-docs/libraries/BLS.md)

[BytesLib](./generated-docs/libraries/BytesLib.md)

[Callback](./generated-docs/libraries/Callback.md)

[Governable](./generated-docs/Governable.md)

[Groups](./generated-docs/libraries/Groups.md)

[IRandomBeacon](./generated-docs/api/IRandomBeacon.md)

[IRandomBeaconConsumer](./generated-docs/api/IRandomBeaconConsumer.md)

[ModUtils](./generated-docs/libraries/ModUtils.md)

[RandomBeacon](./generated-docs/RandomBeacon.md)

[RandomBeaconChaosnet](./generated-docs/RandomBeaconChaosnet.md)

[RandomBeaconGovernance](./generated-docs/RandomBeaconGovernance.md)

[Reimbursable](./generated-docs/Reimbursable.md)

[ReimbursementPool](./generated-docs/ReimbursementPool.md)

[Relay](./generated-docs/libraries/Relay.md)
2 changes: 1 addition & 1 deletion docs/app-development/staking-contract-and-dao/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Staking Contract and DAO

To get familiarized with API of contracts related to staking and DAO, go [here](staking-contracts-and-dao-api/generated-docs/index.md).
To get familiarized with API of contracts related to staking and DAO, go [here](staking-contract-and-dao-api/generated-docs/index.md).
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Staking Contract and DAO API

You can learn about APIs of contracts related to staking and DAO under the
following links:

[BaseTokenholderGovernor](./generated-docs/governance/BaseTokenholderGovernor.md)

[Checkpoints](./generated-docs/governance/Checkpoints.md)

[GovernorParameters](./generated-docs/governance/GovernorParameters.md)

[IApplication](./generated-docs/staking/IApplication.md)

[ILegacyTokenStaking](./generated-docs/staking/ILegacyTokenStaking.md)

[IStaking](./generated-docs/staking/IStaking.md)

[IVotesHistory](./generated-docs/governance/IVotesHistory.md)

[KeepStake](./generated-docs/staking/KeepStake.md)

[PercentUtils](./generated-docs/utils/PercentUtils.md)

[ProxyAdminWithDeputy](./generated-docs/governance/ProxyAdminWithDeputy.md)

[SafeTUpgradeable](./generated-docs/utils/SafeTUpgradeable.md)

[StakerGovernor](./generated-docs/governance/StakerGovernor.md)

[StakerGovernorVotes](./generated-docs/governance/StakerGovernorVotes.md)

[T](./generated-docs/token/T.md)

[TokenholderGovernor](./generated-docs/governance/TokenholderGovernor.md)

[TokenholderGovernorVotes](./generated-docs/governance/TokenholderGovernorVotes.md)

[TokenStaking](./generated-docs/staking/TokenStaking.md)

[VendingMachine](./generated-docs/vendingVendingMachine.md)
4 changes: 2 additions & 2 deletions docs/app-development/tbtc-v2/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TBTCv2
# tBTC

To get familiarized with ECDSA contracts API, go [here](ecdsa-api/generated-docs/index.md).

To get familiarized with ECDSA contracts API, go [here](tbtc-v2-api/generated-docs/index.md).
To get familiarized with Bridge contracts API, go [here](tbtc-v2-api/generated-docs/index.md).
22 changes: 22 additions & 0 deletions docs/app-development/tbtc-v2/ecdsa-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ECDSA API

You can learn about APIs of contracts related to ECDSA under the following
links:

[EcdsaAuthorization](./generated-docs/libraries/EcdsaAuthorization.md)

[EcdsaDkg](./generated-docs/libraries/EcdsaDkg.md)

[EcdsaDkgValidator](./generated-docs/EcdsaDkgValidator.md)

[EcdsaInactivity](./generated-docs/libraries/EcdsaInactivity.md)

[IWalletOwner](./generated-docs/api/IWalletOwner.md)

[IWalletRegistry](./generated-docs/api/IWalletRegistry.md)

[WalletRegistry](./generated-docs/WalletRegistry.md)

[WalletRegistryGovernance](./generated-docs/WalletRegistryGovernance.md)

[Wallets](./generated-docs/libraries/Wallets.md)
66 changes: 66 additions & 0 deletions docs/app-development/tbtc-v2/tbtc-v2-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Bridge API

You can learn about APIs of contracts related to the Bridge under the following
links:

[Bank](./generated-docs/bank/Bank.md)

[BitcoinTx](./generated-docs/bridge/BitcoinTx.md)

[Bridge](./generated-docs/bridge/Bridge.md)

[BridgeGovernance](./generated-docs/bridge/BridgeGovernance.md)

[BridgeGovernanceParameters](./generated-docs/bridge/BridgeGovernanceParameters.md)

[BridgeState](./generated-docs/bridge/BridgeState.md)

[Deposit](./generated-docs/bridge/Deposit.md)

[DepositSweep](./generated-docs/bridge/DepositSweep.md)

[DonationVault](./generated-docs/vault/DonationVault.md)

[EcdsaLib](./generated-docs/bridge/EcdsaLib.md)

[Fraud](./generated-docs/bridge/Fraud.md)

[GovernanceUtils](./generated-docs/GovernanceUtils.md)

[Heartbeat](./generated-docs/bridge/Heartbeat.md)

[IReceiveBalanceApproval](./generated-docs/bank/IReceiveBalanceApproval.md)

[IRelay](./generated-docs/bridge/IRelay.md)

[IVault](./generated-docs/vault/IVault.md)

[L2TBTC](./generated-docs/l2/L2TBTC.md)

[L2WormholeGateway](./generated-docs/l2/L2WormholeGateway.md)

[LightRelay](./generated-docs/relay/LightRelay.md)

[LightRelayMaintainerProxy](./generated-docs/relay/LightRelayMaintainerProxy.md)

[MaintainerProxy](./generated-docs/maintainer/MaintainerProxy.md)

[MovingFunds](./generated-docs/bridge/MovingFunds.md)

[Redemption](./generated-docs/bridge/Redemption.md)

[TBTC](./generated-docs/token/TBTC.md)

[TBTCOptimisticMinting](./generated-docs/vault/TBTCOptimisticMinting.md)

[TBTCVault](./generated-docs/vault/TBTCVault.md)

[VendingMachine](./generated-docs/bridge/VendingMachine.md)

[VendingMachineV2](./generated-docs/bridge/VendingMachineV2.md)

[VendingMachineV3](./generated-docs/bridge/VendingMachineV3.md)

[WalletCoordinator](./generated-docs/bridge/WalletCoordinator.md)

[Wallets](./generated-docs/bridge/Wallets.md)

0 comments on commit 8a83281

Please sign in to comment.