Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formated APIs of smartcontract page #55

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/docs/smart-contract-api/association-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ sidebar_position: 1
title: Association Contract
---

# AElf.Contracts.Association

## Association contract
# Association contract

Organizations established to achieve specific goals can use this contract to cooperatively handle transactions within the organization.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 15
title: Configuration Contract
---

# Configuration contract.
# Configuration Contract

Used to manage the configuration on the blockchain. Implements aelf Standards ACS1.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/smart-contract-api/consensus-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 4
title: Consensus Contract
---

# AElf.Contracts.Consensus.AEDPoS
# Consensus Contract

## AEDPoS contract

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/smart-contract-api/cross-chain-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Cross Chain Contract
---


# Cross-Chain contract.
# Cross-Chain Contract

Implement aelf Standards ACS1 and ACS7.

Expand Down
4 changes: 1 addition & 3 deletions docs/docs/smart-contract-api/economic-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ title: Economic Contract

# Economic Contract

The Economic contract establishes the economic system of the aelf. When the blockchain starts to work, this contract will initialize other contracts related to economic activities.

Implements aelf Standards ACS1.
The Economic contract establishes the economic system of the aelf. When the blockchain starts to work, this contract will initialize other contracts related to economic activities. Implements aelf Standards ACS1.

## Contract Methods

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/smart-contract-api/election-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 5
title: Election Contract
---

# Election contract
# Election Contract

Used for voting for Block Producers.Implement aelf Standards ACS1.

Expand Down
5 changes: 2 additions & 3 deletions docs/docs/smart-contract-api/genesis-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ sidebar_position: 6
title: Genesis Contract
---

# AElf.Contracts.Genesis
# Genesis Contract

Genesis contract. Used to manage the deployment and update of contracts.
Implement aelf Standards ACS0 and ACS1.
Used to manage the deployment and update of contracts. Implement aelf Standards ACS0 and ACS1.

## Contract Methods

Expand Down
8 changes: 2 additions & 6 deletions docs/docs/smart-contract-api/multi-token-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ sidebar_position: 7
title: Multi Token Contract
---

# AElf.Contracts.MultiToken
# MultiToken Contract

MultiToken contract.

The MultiToken contract is mainly used to manage the user's account and transaction fees related settings.

Implements aelf Standards ACS1 and ACS2.
The MultiToken contract is mainly used to manage the user's account and transaction fees related settings. Implements aelf Standards ACS1 and ACS2.

## Contract Methods

Expand Down
4 changes: 1 addition & 3 deletions docs/docs/smart-contract-api/parliament-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ sidebar_position: 3
title: Parliament Contract
---

# AElf.Contracts.Parliament

Parliament contract.
# Parliament Contract

The production nodes use the Parliament contract to govern important matters. In the initial state, the production nodes are members of the parliament, and only when two-thirds of the production nodes vote in favor of a given decision, will it be executed.

Expand Down
8 changes: 2 additions & 6 deletions docs/docs/smart-contract-api/profit-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ sidebar_position: 8
title: Profit Contract
---

# AElf.Contracts.Profit
# Profit Contract

## Profit contract

The Profit contract is an abstract layer for creating a scheme to share bonuses. Developers can build a system to distribute bonuses by calling this contract.

Implement aelf Standards ACS1.
The Profit contract is an abstract layer for creating a scheme to share bonuses. Developers can build a system to distribute bonuses by calling this contract. Implement aelf Standards ACS1.

## Contract Methods

Expand Down
2 changes: 0 additions & 2 deletions docs/docs/smart-contract-api/referendum-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ title: Referendum Contract

# Referendum

Referendum contract.

Production nodes or associations cannot determine all decisions. Some extremely important decisions, especially those involving user rights and interests, should involve all users and give full control to the user's voting for governance. The Referendum contract is built for this.

Implement aelf Standards ACS1 and ACS3.
Expand Down
8 changes: 3 additions & 5 deletions docs/docs/smart-contract-api/token-convert-contract/index.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
sidebar_position: 14
title: Token Convert Contract
title: Token Converter Contract
---

# TokenConverter
# Token Converter Contract

Using this contract can build a connection between the base token and other tokens created on the chain. After building the connection, users can trade tokens with the Bancor model. You can find detailed information about Bancor in the AElf Economic System White Paper.

Implement aelf Standards ACS1.
Using this contract can build a connection between the base token and other tokens created on the chain. After building the connection, users can trade tokens with the Bancor model. You can find detailed information about Bancor in the AElf Economic System White Paper. Implement aelf Standards ACS1.

## Contract Methods

Expand Down
6 changes: 2 additions & 4 deletions docs/docs/smart-contract-api/token-holder-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ sidebar_position: 12
title: Token Holder Contract
---

# TokenHolder contract.
# TokenHolder Contract

Used to build a bonus model for distributing bonuses to those who hold the token.

Implement aelf Standards ACS1.
Used to build a bonus model for distributing bonuses to those who hold the token. Implement aelf Standards ACS1.

## Contract Methods

Expand Down
8 changes: 2 additions & 6 deletions docs/docs/smart-contract-api/treasury-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ sidebar_position: 10
title: Treasury Contract
---

# AElf.Contracts.Treasury
# Treasury Contract

Treasury contract.

Used for distributing bonuses to voters and candidates during the election process.

Implement aelf Standards ACS1 and ACS10.
Used for distributing bonuses to voters and candidates during the election process. Implement aelf Standards ACS1 and ACS10.

## Contract Methods

Expand Down
8 changes: 2 additions & 6 deletions docs/docs/smart-contract-api/vote-contract/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ sidebar_position: 11
title: Vote Contract
---

# Vote contract.

The Vote contract is an abstract layer for voting. Developers implement
concrete voting activities by calling this contract.

Implements aelf Standards ACS1.
# Vote Contract
The Vote contract is an abstract layer for voting. Developers implement concrete voting activities by calling this contract. Implements aelf Standards ACS1.

## Contract Methods

Expand Down