Enumeration EnumOpcode

Enumeration Members

ADD_EMERGENCY: 22

Notice

Add an array of address as emergency agents (can be used as product NFTs with a new unique token class)

Param

address[] The array of the address to add as emergency agents ID:22

ADD_STORAGE_STRING: 31

Notice

Add storage IPFS hash to the storage list permanently

Paran

STRING_ARRAY[0][0] text: the string text to add to the storage list ID:31

BATCH_ADD_AND_ENABLE_PLUGINS: 15

Notice

Batch Add and Enable Plugin Operation

Param

pluginList: the array of the plugins ID:15

BATCH_ADD_MEMBERSHIPS: 7

Notice

Batch Add Member Operation

Param

address[] memberAddressArray: the array of the address to add as member

Param

uint256[] memberRoleArray: the array of the role of the member to add

Param

string[] memberNameArray: the array of the name of the member to add

ID:7

BATCH_ADD_PLUGINS: 12

Notice

Batch Add Emergency Agent Operation

Param

pluginList: the array of the plugins ID:12

BATCH_ADD_VOTING_RULES: 19

Notice

Batch Add Voting Rules

Param

votingRuleList: the array of the voting rules ID:19

BATCH_ADD_WITHDRAWABLE_BALANCES: 17

Notice

Batch Add Withdrawable Balance Operation

Param

addressArray: the array of the address to add withdrawable balance

Param

amountArray: the array of the amount to add withdrawable balance ID:17

BATCH_BURN_TOKENS: 5

Notice

Batch Burn Token Operation

Param

uint256[] tokenClassArray: the array of the token class index to burn token from

Param

uint256[] amountArray: the array of the amount of the token to burn

ID:5

BATCH_BURN_TOKENS_AND_REFUND: 30

Notice

Batch Burn tokens and Refund

Param

uint256[] tokenClassArray: the array of the token class index to burn tokens from

Param

uint256[] amountArray: the array of the amount of the token to burn

Param

uint256[] priceArray: the price of each token class to burn ID:30

BATCH_BURN_TOKENS_FROM: 6

Notice

Batch Burn Token From Addr A Operation

Param

address[] fromAddressArray: the array of the address to burn token from

Param

uint256[] tokenClassArray: the array of the token class index to burn token from

Param

uint256[] amountArray: the array of the amount of the token to burn

ID:6

BATCH_CHANGE_MEMBER_NAMES: 11

Notice

Batch Change Member Name Operation

Param

address[] memberAddressArray: the array of the address to change name of as member

Param

string[] memberNameArray: the array of the name of the member to change

ID:11

BATCH_CHANGE_MEMBER_ROLES: 10

Notice

Batch Change Member Role Operation

Param

address[] memberAddressArray: the array of the address to change role of as member

Param

uint256[] memberRoleArray: the array of the role of the member to change

ID:10

BATCH_CREATE_TOKEN_CLASSES: 2

Notice

Batch Create Token Class Operation

Param

string[] nameArray: the array of the name of the token class to create

Param

uint256[] tokenIndexArray: the array of the token index of the token class to create

Param

uint256[] votingWeightArray: the array of the voting weight of the token class to create

Param

uint256[] dividendWeightArray: the array of the dividend weight of the token class to create

ID:2

BATCH_DISABLE_PLUGINS: 14

Notice

Batch Disable Plugin Operation

Param

uint256[] pluginIndexArray: the array of the plugins index to disable

Param

bool[] isBeforeOperationArray: the array of the flag to indicate if the plugin is before operation ID:14

BATCH_ENABLE_PLUGINS: 13

Notice

Batch Enable Plugin Operation

Param

uint256[] pluginIndexArray: the array of the plugins index to enable

Param

bool[] isBeforeOperationArray: the array of the flag to indicate if the plugin is before operation ID:13

BATCH_MINT_TOKENS: 1

Notice

Batch Mint Token Operation

Param

address[] toAddressArray: the array of the address to mint new token to

Param

uint256[] tokenClassArray: the array of the token class index to mint new token from

Param

uint256[] amountArray: the array of the amount of the token to mint

ID: 1

BATCH_PAY_TO_MINT_TOKENS: 20

Notice

Batch Pay to Mint Tokens Operation

Param

address[] addressArray: the array of the address to mint tokens

Param

uint256[] tokenClassArray: the array of the token class index to mint tokens

Param

uint256[] amountArray: the array of the amount to mint tokens

Param

uint256[] priceArray: the price of each token class to mint

Param

uint256[1] dividendableFlag: the flag to indicate if the payment is dividendable. 1 for yes (pay for purchase), 0 for no (pay for investment) ID:20

BATCH_PAY_TO_TRANSFER_TOKENS: 21

Notice

Pay some cash to transfer tokens (can be used as product coins)

Param

address[] toAddressArray: the array of the address to transfer token to

Param

uint256[] tokenClassArray: the array of the token class index to transfer token from

Param

uint256[] amountArray: the array of the amount of the token to transfer

Param

uint256[] priceArray: the price of each token class to transfer @ param UINT256_2DARRAY[3] uint256[1] dividendableFlag: the flag to indicate if the payment is dividendable. 1 for yes (pay for purchase), 0 for no (pay for investment) ID:21

BATCH_REDUCE_WITHDRAWABLE_BALANCES: 18

Notice

Batch Reduce Withdrawable Balance Operation

Param

addressArray: the array of the address to substract withdrawable balance

Param

amountArray: the array of the amount to substract withdrawable balance ID:18

BATCH_RESUME_MEMBERSHIPS: 9

Notice

Batch Resume Member Operation

Param

address[] memberAddressArray: the array of the address to reinstate as member

ID:9

BATCH_SET_PARAMETERS: 16

Notice

Batch Set Parameter Operation

Param

parameterNameArray: the array of the parameter name

Param

uint256[] parameterValueArray: the array of the parameter value ID:16

BATCH_SUSPEND_MEMBERSHIPS: 8

Notice

Batch Suspend Member Operation

Param

address[] memberAddressArray: the array of the address to suspend as member

ID:8

BATCH_TRANSFER_TOKENS: 3

Notice

Batch Transfer Token Operation

Param

address[] toAddressArray: the array of the address to transfer token to

Param

uint256[] tokenClassArray: the array of the token class index to transfer token from

Param

uint256[] amountArray: the array of the amount of the token to transfer

ID:3

BATCH_TRANSFER_TOKENS_FROM_TO: 4

Notice

Batch Transfer Token From Addr A to Addr B Operation

Param

address[] fromAddressArray (source): the array of the address to transfer token from

Param

address[] toAddressArray (target): the array of the address to transfer token to

Param

uint256[] tokenClassArray: the array of the token class index to transfer token from

Param

uint256[] amountArray: the array of the amount of the token to transfer

ID:4

CALL_CONTRACT_ABI: 25

Notice

Call a contract with the given abi

Param

address contractAddress: the address of the contract to call

Param

abi the encodedWithSignature abi of the function to call

Param

uint256 the value to send to the contract ID:25

CALL_EMERGENCY: 24

Notice

Call emergency agents to handle emergency situations

Param

address[] addressArray: the array of the emergency agents index to call ID:24

CONFIRM_UPGRAED_FROM_ADDRESS: 36

Notice

Accepting current DARCs to be upgraded from the old contract address

Param

The address of the old contract ID:36

END_EMERGENCY: 34

Notice

Emergency mode termination. Emergency agents cannot do anything after this operation ID:34

EXECUTE_PENDING_PROGRAM: 33

Notice

Execute a program that has been voted and approved ID:33

OFFER_DIVIDENDS: 27

Notice

Calculate the dividends and offer to token holders by adding the dividends to the withdrawable balance of each token holder

ID:27

PAY_CASH: 26

Notice

Pay some cash

Param

amount: the amount of cash to pay

Param

paymentType: the type of cash to pay, 0 for ethers/matic/original tokens 1 for USDT, 2 for USDC (right now only 0 is supported), 3 for DAI ...

Param

dividendable: the flag to indicate if the payment is dividendable, 0 for no (pay for investment), 1 for yes (pay for purchase) ID:26

RESERVED_ID_23: 23

Notice

Reserved ID 23 DO NOT USE ID:23

RESERVED_ID_28: 28

Notice

Reserved ID 28 DO NOT USE ID:28

SET_APPROVAL_FOR_ALL_OPERATIONS: 29

Notice

Set the approval for all transfer operations by address

Paran

address: the address to set approval for all transfer operations ADDRESS_2DARRAY[0][0] targetAddress ID:29

UNDEFINED: 0

Notice

Invalid Operation ID: 0

UPGRADE_TO_ADDRESS: 35

Notice

Upgrade the contract to a new contract address

Param

The address of the new contract ID:35

UPGRADE_TO_THE_LATEST: 37

Notice

Upgrade the contract to the latest version ID:37

VOTE: 32

Notice

Vote for a voting pending program

Param

voteArray: the array of the vote for each program ID:32

Generated using TypeDoc