-
Notifications
You must be signed in to change notification settings - Fork 0
Guard Table
wguo_good edited this page Dec 3, 2024
·
4 revisions
QUERIES is a static query array containing multiple query objects, which are used to interact on the blockchain to get or set data.
The query objects are:
-
module: Specifies the name of the module to which the query belongs.
-
name: The name of the query item, usually the function or variable name in the smart contract.
-
Permission Index: The unique identifier of the query item, used to distinguish different query items.
-
Input: An array that lists the input parameter types required to execute the query.
-
Output: Specifies the data type of the query return value.
-
Query Description: Describes the output or function of the query item.
The following is an introduction to the query objects of each module
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Owner | 1 | - | address | Owner's address. |
Is Admin | 2 | address | bool | Is a certain address an administrator? |
Has Rights | 3 | address, u64 | bool | Does an address have a certain permission (Admin always have permissions)? |
Contains Address | 4 | address | bool | Whether an address is included in the personnel permission table? |
Contains Permission | 5 | address, u64 | bool | Whether a certain permission for a certain address is defined in the personnel permission table? |
Contains Permission Guard | 6 | address, u64 | bool | Whether a permission guard for a certain address is defined in the personnel permission table? |
Permission Guard | 7 | address, u64 | address | Permission guard for a certain address. |
Number of Entities | 8 | - | u64 | Number of entities in the personnel permission table. |
Number of Admin | 9 | - | u64 | Number of administrators. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 100 | - | address | Permission object address. |
Contains Policy | 101 | the field name(string) | bool | Is a consensus policy included? |
Is Permission set of Policy | 102 | the policy name(string) | bool | Does a certain consensus policy set data operation permissions? |
Permission of Policy | 103 | the policy name(string) | u64 | The permission index of a certain consensus policy in the Permission object. |
Value Type of Policy | 104 | the policy name(string) | u8 | Data types defined by consensus policy. |
Contains Data for An Address | 105 | address | bool | Whether data exists at a certain address? |
Contains Data | 106 | address, the field name(string) | bool | Does it contain data for a certain field of an address? |
Raw data without Type | 107 | address, the field name(string) | vector-U8 | Data for a field at an address and does not contain data type information. |
Raw data | 108 | address, the field name(string) | vector-U8 | Data for a field at an address, and the first byte contains data type information. |
Type | 109 | - | U8 | The repository Type. 0: Normal; 1: Wowok greenee. |
Policy Mode | 110 | - | U8 | Policy Mode. 0: Free mode; 1: Strict mode. |
Reference Count | 111 | - | U64 | The number of times it is referenced by other objects. |
Is Referenced by An Object | 112 | address | bool | Is it referenced by an object? |
Number Data | 113 | address, the field name(string) | U256 | Data for a field at an address and get unsigned integer type data. |
String Data | 114 | address, the field name(string) | string | Data for a field at an address and get string type data. |
Address Data | 115 | address, the field name(string) | address | Data for a field at an address and get address type data. |
Bool Data | 116 | address, the field name(string) | bool | Data for a field at an address and get bool type data. |
Number Vector Data | 117 | address, the field name(string) | U256 | Data for a field at an address and get unsigned integer vector type data. |
String Vector Data | 118 | address, the field name(string) | string | Data for a field at an address and get string vector type data. |
Address Vector Data | 119 | address, the field name(string) | address | Data for a field at an address and get address vector type data. |
Bool Vector Data | 120 | address, the field name(string) | vector-U256 | Data for a field at an address and get bool vector type data. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Has Entity | 200 | address | bool | Check if the entity is registered. |
Likes | 201 | address | U64 | Number of likes an address has received. |
Dislikes | 202 | address | U64 | Number of dislikes an address has received. |
Entity Info | 203 | address | U8 | Public information about an entity. |
Has Resource by Entity? | 204 | address | bool | Whether the entity has created a resource. |
Entity Resource | 205 | address | address | Address of the resource created by the entity. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 300 | - | address | Address of the permission object. |
Deadline | 302 | - | U64 | Expiration time of the presentation. |
Bounty Count | 303 | - | U64 | Number of bounties. |
Has Guard | 304 | - | bool | Whether the guard is currently set. |
Guard | 305 | - | address | The address of the current guard. |
Has Service Picked | 306 | - | bool | Whether a service has been picked and bounties given. |
Service Picked | 307 | - | address | Service address that has been picked. |
Presenter Count | 308 | - | U64 | Number of presenters. |
Has Presenter | 309 | address | bool | Is a certain address a presenter. |
Who Got Bounty | 310 | address | address | The address that received the bounty. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 400 | - | address | Address of the permission object. |
Payee | 401 | - | address | Payee address, where all order withdrawals will be collected. |
Has Buying Guard | 402 | - | bool | Is the guard condition of buying set? |
Buying Guard | 403 | - | address | Buying guard, that purchase only if you meet the conditions of the guard. |
Contains Repository | 404 | address | bool | Is a certain repository one of the service's consensus repositories? |
Has Withdrawing Guard | 405 | address | bool | Whether a certain guard is set when withdrawing money? |
Withdrawing Guard Percent | 406 | address | U64 | The percentage of withdrawals allowed by a certain withdrawal guard. |
Has Refunding Guard | 407 | address | bool | Whether a certain guard is set when refunding money? |
Refunding Guard Percent | 408 | address | U64 | The percentage of refund allowed by a certain refund guard. |
Has Sales Item | 409 | item name(string) | bool | Is there a sales item for the service? |
Sale Item Price | 410 | item name(string) | U64 | What is the price of a certain sale item? |
Sale Item Inventory | 411 | item name(string) | U64 | How much inventory is there for a certain sales item? |
Has Machine | 412 | - | bool | Has the machine (progress generator) that serves the order been set up? |
Machine | 413 | - | address | Machine address, that generate progresses serving the execution process of order. |
Paused | 414 | - | bool | Pause the creation of new order? |
Published | 415 | - | bool | Is it allowed to create orders? |
Has Required Info | 416 | - | bool | Whether the necessary information that needs to be provided by the customer is set? |
Required Info of Service-Pubkey | 417 | - | string | The public key used to encrypt customer information. |
Required Info | 418 | - | vector_string | Names of the required information item that needs to be provided by the customer. |
Number of Treasuries | 419 | - | U64 | The number of treasuries that can be externally withdrawn for purposes such as compensation or incentives. |
Contains Treasury | 420 | treasury address | bool | Does it contain externally withdrawable Treasury for purposes such as compensation or incentives? |
Number of Arbitrations | 421 | - | U64 | The number of arbitrations that allows a refund to be made from the order at any time based on the arbitration result. |
Contains Arbitration | 422 | arbitration address | bool | Does it contain an arbitration that allows a refund to be made from the order at any time based on the arbitration result? |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Amount | 500 | - | U64 | Order amount. |
Payer | 501 | - | address | Order payer. |
Service | 502 | - | address | Service for creating orders. |
Has Progress | 503 | - | bool | Is there a Progress for executing the order process? |
Progress | 504 | - | address | Progress address for executing the order process. |
Required Info Counts | 505 | - | U64 | How much customer information is required for this order? |
Discount Used | 506 | - | bool | Discount coupon used for this order? |
Discount | 507 | - | address | Discount address that already used. |
Balance | 508 | - | U64 | The amount currently in the order. |
Refunded | 509 | - | bool | Whether a refund has occurred? |
Withdrawed | 510 | - | bool | Whether a service provider withdrawal has occurred? |
Number of Agents | 511 | - | U64 | The number of agents for the order. |
Has Agent | 512 | agent address | bool | Whether an address is an order agent? |
Number of Disputes | 513 | - | U64 | Number of arbitrations for the order. |
Has Arb | 514 | arb address | bool | Does the order contain an Arb for arbitration? |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 700 | - | address | Address of the permission object. |
Paused | 701 | - | bool | Pause the creation of new Progress? |
Published | 702 | - | bool | Is it allowed to create Progress? |
Is Consensus Repository | 703 | address | bool | Whether an address is a consensus repository? |
Has Endpoint | 704 | - | bool | Is the endpoint set? |
Endpoint | 705 | - | string | Endpoint url/ipfs. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Machine | 800 | - | address | The Machine object that created this Progress. |
Current Node | 801 | - | string | The name of the currently running node. |
Has Parent | 802 | - | bool | Is the parent Progress defined? |
Parent | 803 | - | address | The parent Progress, that contains some child Progress. |
Has Task | 804 | - | bool | Does it contain clear task (e.g., an Order)? |
Task | 805 | - | address | Task object address. |
Has Unique Permission | 806 | operator name | bool | Does Progress define a unique operation permission? |
Is Unique Permission Operator | 807 | operator name, address | bool | Is an address an operator with unique permissions? |
Has Context Repository | 808 | - | bool | Whether the repository reference for Progress is set? |
Context Repository | 809 | - | address | Repository reference for Progress. |
Last Session Time | 810 | - | U64 | Time when the previous session was completed. |
Last Session Node | 811 | - | string | The name of the last completed node. |
Current Session-id | 812 | - | U64 | The session id of ongoing node. |
Parent Session-id | 813 | - | U64 | The child process was started in the Session-id phase of the parent process. |
Parent Next Node | 814 | - | string | The child process is started at the next node stage of the parent process. |
Parent Forward | 815 | - | string | The child process is started in the Forward phase of the next node of the parent process. |
Parent Node | 816 | - | string | The node name of the parent process where the child process is located. |
Forward Accomplished | 817 | session-id, next node name, forward name | bool | Has the forward been accomplished? |
Forward Operator | 818 | session-id, next node name, forward name | address | The forward operator. |
Forward Sub-progress | 819 | session-id, next node name, forward name | address | The forward child process address (if set). |
Forward Deliverables | 820 | session-id, next node name, forward name | address | The forward deliverable (if set). |
Forward time | 821 | session-id, next node name, forward name | U64 | The time when the forward was last triggered. |
Closest Session Time | 822 | node name | U64 | The time a node that closest time to the current node completes its session. |
Closest Forward Accomplished | 823 | node name, next node name, forward name | bool | Has the forward been accomplished? |
Closest Forward Operator | 824 | node name, next node name, forward name | address | The operator of the forward that closest time to the current node. |
Closest Forward Sub-progress | 825 | node name, next node name, forward name | address | The child process address (if set) of the forward that closest time to the current node. |
Closest Forward Deliverables | 826 | node name, next node name, forward name | address | The deliverable (if set) of the forward that closest time to the current node. |
Closest Forward time | 827 | node name, next node name, forward name | U64 | The time when the forward that closest time to the current node was last triggered. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Builder | 900 | - | address | Builder address of Wowok. |
Everyone Guard | 901 | - | address | A guard that all addresses can pass through. |
Object of Entities | 902 | - | address | The address of the entity information object. |
Grantor Count | 903 | - | U64 | Number of registered grantors. |
Has Grantor | 904 | address | bool | Whether an address has been registered as a grantor? |
Grantor Name | 905 | address | string | Name of a grantor. |
Grantor Registration Time | 906 | address | U64 | Registration time of a grantor. |
Grantor Expired Time | 907 | address | U64 | The expiration time of a grantor. |
Grantee Object for Grantor | 908 | address | address | Grantee repository address of a grantor. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Sender | 1200 | - | address | Payment originator address. |
Total Amount | 1201 | - | U128 | Payment amount. |
Remark | 1202 | - | string | Payment remark. |
Has Guard for Perpose | 1203 | - | bool | Whether the payment references a Guard? |
Has Object for Perpose | 1204 | - | bool | Whether the payment references an Object? |
Guard for Perpose | 1205 | - | address | The Guard referenced by this payment. |
Object for Perpose | 1206 | - | address | The Object referenced by this payment. |
Number of Recipients | 1207 | - | U64 | Number of recipients to receive payment from. |
Is a Recipient | 1208 | address | bool | Is a recipient received the payment? |
Amount for a Recipient | 1209 | address | U64 | The amount of payment received by an address. |
Time | 1210 | - | U64 | Payment time. |
Is from Treasury | 1211 | - | bool | Whether the payment comes from a Treasury? |
Treasury Address | 1212 | - | address | The Treasury from which the payment comes. |
Biz-ID | 1213 | - | U64 | Business ID number of the payment. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 1400 | - | address | Permission object address. |
Balance | 1401 | - | U64 | Treasury balance. |
Number of Flow Records | 1402 | - | U64 | Number of treasury transactions. |
Inflow Amount | 1403 | - | U128 | Treasury inflow amount. |
Outflow Amount | 1404 | - | U128 | Treasury outflow amount. |
Has Deposit Guard | 1405 | - | bool | Whether the deposit Guard set? |
Deposit Guard | 1406 | - | address | Deposit Guard address. |
Number of Withdraw Guards | 1407 | - | U64 | Number of withdraw guards. |
Has Withdraw Guard | 1408 | guard address | bool | Has a Withdraw Guard added? |
Withdrawal Amount with Guard | 1409 | guard address | U64 | Withdrawal amount corresponding the Guard. |
Recent Time with Operation | 1410 | operation | U64 | Time of the most recent fund operation. |
Recent Signer with Operation | 1411 | operation | address | Signer address of the most recent fund operation. |
Recent Payment with Operation | 1412 | operation | address | Payment address of the most recent fund operation. |
Recent Amount with Operation | 1413 | operation | U64 | Amount of the most recent fund operation. |
Recent Time with Op/Pmt | 1414 | operation, payment address | U64 | Time of the most recent fund operation with payment specified. |
Recent Signer with Op&Pmt | 1415 | operation, payment address | address | Signer of the most recent fund operation with payment specified. |
Recent Amount with Op/Pmt | 1416 | operation, payment address | U64 | Amount of the most recent fund operation with payment specified. |
Recent Time with Op/Sgr | 1417 | operation, signer address | U64 | Time of the most recent fund operation with signer specified. |
Recent Payment with Op/Sgr | 1418 | operation, signer address | address | Payment of the most recent fund operation with signer specified. |
Recent Amount with Op/Sgr | 1419 | operation, signer address | U64 | Amount of the most recent fund operation with signer specified. |
Recent Time with Op/Pmt/Sgr | 1420 | operation, payment address, signer address | U64 | Time of the most recent fund operation. |
Recent Amount with Op/Pmt/Sgr | 1421 | operation, payment address, signer address | U64 | Amount of the most recent fund operation. |
Has Operation | 1422 | operation | bool | Whether there was a fund operation? |
Has Operation with Pmt | 1423 | operation, payment address | bool | Whether there was a fund operation with payment specified? |
Has Operation with Sgr | 1424 | operation, signer address | bool | Whether there was a fund operation with singer specified? |
Has Operation with Pmt/Sgr | 1425 | operation, payment address, signer address | bool | Whether there was a fund operation? |
Operation at Least Times | 1426 | operation, at least times | bool | Does it operate at least a certain number of times? |
Operation at Least Times by a Signer | 1427 | operation, signer address, at least times | bool | Does it operate at least a certain number of times by a signer? |
Operation at Least Times by a Signer | 1428 | operation, signer address, at least times | bool | Does it operate at least a certain number of times by a signer? |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Permission | 1500 | - | address | Address of the permission object. |
Paused | 1501 | - | bool | Is it allowed to create Arb? |
Fee | 1502 | - | U64 | Cost of arbitration. |
Has Endpoint | 1503 | - | bool | Is the endpoint set? |
Endpoint | 1504 | - | string | Endpoint url/ipfs. |
Has Customer Guard | 1505 | - | bool | Is there Guard set to apply for arbitration? |
Customer Guard | 1506 | - | address | Guard to apply for arbitration. |
Number of Voting Guard | 1507 | - | U64 | Number of voting guards. |
Has Voting Guard | 1508 | guard address | bool | Has the voting Guard added? |
Voting Weight | 1509 | guard address | U64 | Voting weight of the voting Guard. |
Treasury | 1510 | - | address | Address of the Treasury where fees were collected. |
name | Permission Index | Input | Output | Query Description |
---|---|---|---|---|
Order | 1600 | - | address | Order under arbitration. |
Arbitration | 1601 | - | address | Arbitration object address. |
Feedback | 1602 | - | string | Arbitration feedback. |
Has Compensation | 1603 | - | bool | Whether there is an arbitration result? |
Compensation | 1604 | - | U64 | Compensation should be given to the order payer. |
Unclaimed Arbitration Costs | 1605 | - | U64 | Unclaimed arbitration costs. |
Turnout | 1606 | - | U64 | The number of addresses have voted. |
Has voted | 1607 | voter address | bool | Has someone voted? |
Voting weight | 1608 | voter address | U64 | The weight of a complete vote for the address. |
Voting Time | 1609 | voter address | U64 | The time of a complete vote for the address. |
Voting Option | 1610 | voter address, option index | bool | Does an address complete voting for the option? |
Number of Options | 1611 | - | U64 | Number of voting options. |
Number of Votes | 1612 | option index | U64 | The number of votes received for an option. |