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.
Contract Methods
Method Name | Request Type | Response Type | Description |
---|---|---|---|
IssueNativeToken | Economic.IssueNativeTokenInput | google.protobuf.Empty | Only ZeroContract is able to issue the native token. |
InitialEconomicSystem | Economic.InitialEconomicSystemInput | google.protobuf.Empty | It will initialize other contracts related to economic activities (For instance, create the native token). This transaction only can be sent once because after the first sending, its state will be set to initialized. |
AElf.Standards.ACS1
Method Name | Request Type | Response Type | Description |
---|---|---|---|
SetMethodFee | acs1.MethodFees | google.protobuf.Empty | Set the method fees for the specified method. Note that this will override all fees of the method. |
ChangeMethodFeeController | AuthorityInfo | google.protobuf.Empty | Change the method fee controller, the default is parliament and default organization. |
GetMethodFee | google.protobuf.StringValue | acs1.MethodFees | Query method fee information by method name. |
GetMethodFeeController | google.protobuf.Empty | AuthorityInfo | Query the method fee controller. |
Contract Types
AElf.Contracts.Economic
Economic.InitialEconomicSystemInput
Field | Type | Description | Label |
---|---|---|---|
native_token_symbol | string | The native token symbol. | |
native_token_name | string | The native token name. | |
native_token_total_supply | int64 | The native token total supply. | |
native_token_decimals | int32 | The accuracy of the native token. | |
is_native_token_burnable | bool | It indicates if the token is burnable. | |
mining_reward_total_amount | int64 | It determines how much native token is used to reward the miners. | |
transaction_size_fee_unit_price | int64 | todo: remove unused fields |
Economic.IssueNativeTokenInput
Field | Type | Description | Label |
---|---|---|---|
amount | int64 | The amount of token. | |
memo | string | The memo. | |
to | aelf.Address | The recipient of the token. |
Economic.IssueResourceTokenInput
Field | Type | Description | Label |
---|---|---|---|
symbol | string | The symbol of resource token. | |
amount | int64 | The amount of resource token. | |
memo | string | The memo. | |
to | aelf.Address | The recipient of the token. |
AElf.Standards.ACS1
acs1.MethodFee
Field | Type | Description | Label |
---|---|---|---|
symbol | string | The token symbol of the method fee. | |
basic_fee | int64 | The amount of fees to be charged. |
acs1.MethodFees
Field | Type | Description | Label |
---|---|---|---|
method_name | string | The name of the method to be charged. | |
fees | MethodFee | List of fees to be charged. | repeated |
is_size_fee_free | bool | Optional based on the implementation of SetMethodFee method. |