UNPKG

wowok_agent

Version:

Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.

1 lines 51.8 kB
"use strict";(this.webpackChunkwowok_agent=this.webpackChunkwowok_agent||[]).push([[701],{701:(e,r,t)=>{t.d(r,{J2:()=>o,g$:()=>d,hJ:()=>u,te:()=>m,uR:()=>p,wM:()=>_});var a=t(9554),s=t(1609),i=t(5337),n=t(8278);const o=[{module:a.e$.permission,query_name:"Owner",query_id:1,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Owner's address."},{module:a.e$.permission,query_name:"Is Admin",query_id:2,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is a certain address an administrator?",parameters_description:["address"]},{module:a.e$.permission,query_name:"Has Rights",query_id:3,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_U64],return:a.eV.TYPE_BOOL,description:"Does an address have a certain permission(Admin always have permissions)?",parameters_description:["address","permission index"]},{module:a.e$.permission,query_name:"Contains Address",query_id:4,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether an address is included in the personnel permission table?",parameters_description:["address"]},{module:a.e$.permission,query_name:"Contains Permission",query_id:5,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_U64],return:a.eV.TYPE_BOOL,description:"Whether a certain permission for a certain address is defined in the personnel permission table?",parameters_description:["address","permission index"]},{module:a.e$.permission,query_name:"Contains Permission Guard",query_id:6,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_U64],return:a.eV.TYPE_BOOL,description:"Whether a permission guard for a certain address is defined in the personnel permission table?",parameters_description:["address","permission index"]},{module:a.e$.permission,query_name:"Permission Guard",query_id:7,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_U64],return:a.eV.TYPE_ADDRESS,description:"Permission guard for a certain address.",parameters_description:["address","permission index"]},{module:a.e$.permission,query_name:"Number of Entities",query_id:8,parameters:[],return:a.eV.TYPE_U64,description:"Number of entities in the personnel permission table."},{module:a.e$.permission,query_name:"Number of Admin",query_id:9,parameters:[],return:a.eV.TYPE_U64,description:"Number of administrators."},{module:a.e$.repository,query_name:"Permission",query_id:100,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.repository,query_name:"Contains Policy",query_id:101,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Is a consensus policy included?",parameters_description:["the filed name"]},{module:a.e$.repository,query_name:"Is Permission set of Policy",query_id:102,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Does a certain consensus policy set data operation permissions?",parameters_description:["the policy name"]},{module:a.e$.repository,query_name:"Permission of Policy",query_id:103,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The permission index of a certain consensus policy in the Permission object.",parameters_description:["the policy name"]},{module:a.e$.repository,query_name:"Value Type of Policy",query_id:104,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_U8,description:"Data types defined by consensus policy.",parameters_description:["the policy name"]},{module:a.e$.repository,query_name:"Contains Data",query_id:105,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Does it contain data for a certain field of an address?",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Raw data without Type",query_id:106,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_U8,description:"Data for a field at an address and does not contain data type information.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Raw data",query_id:107,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_U8,description:"Data for a field at an address, and the first byte contains data type information.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Type",query_id:108,parameters:[],return:a.eV.TYPE_U8,description:"The repository Type. 0: Normal; 1: Wowok greenee."},{module:a.e$.repository,query_name:"Policy Mode",query_id:109,parameters:[],return:a.eV.TYPE_U8,description:"Policy Mode. 0: Free mode; 1: Strict mode."},{module:a.e$.repository,query_name:"Reference Count",query_id:110,parameters:[],return:a.eV.TYPE_U64,description:"The number of times it is referenced by other objects."},{module:a.e$.repository,query_name:"Is Referenced by An Object",query_id:111,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is it referenced by an object?",parameters_description:["address"]},{module:a.e$.repository,query_name:"Number Data",query_id:112,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_U256,description:"Data for a field at an address and get unsigned integer type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"String Data",query_id:113,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_STRING,description:"Data for a field at an address and get string type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Address Data",query_id:114,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_ADDRESS,description:"Data for a field at an address and get address type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Bool Data",query_id:115,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Data for a field at an address and get bool type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Number Vector Data",query_id:116,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_U256,description:"Data for a field at an address and get unsigned integer vector type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"String Vector Data",query_id:117,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_STRING,description:"Data for a field at an address and get string vector type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Address Vector Data",query_id:118,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_ADDRESS,description:"Data for a field at an address and get address vector type data.",parameters_description:["address","the field name"]},{module:a.e$.repository,query_name:"Bool Vector Data",query_id:119,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_STRING],return:a.eV.TYPE_VEC_BOOL,description:"Data for a field at an address and get bool vector type data.",parameters_description:["address","the field name"]},{module:a.e$.entity,query_name:"Has Entity",query_id:200,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is an entity already registered?",parameters_description:["address"]},{module:a.e$.entity,query_name:"Likes",query_id:201,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The number of likes for an address by other addresses.",parameters_description:["address"]},{module:a.e$.entity,query_name:"Dislikes",query_id:202,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The number of dislikes for an address by other addresses.",parameters_description:["address"]},{module:a.e$.entity,query_name:"Entity Info",query_id:203,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_VEC_U8,description:"Public information about an entity.",parameters_description:["address"]},{module:a.e$.entity,query_name:"Has Resource by Entity?",query_id:204,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether an entity created a resource?",parameters_description:["address"]},{module:a.e$.entity,query_name:"Entity Resource",query_id:205,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_ADDRESS,description:"The address of a resource object created by an entity.",parameters_description:["address"]},{module:a.e$.demand,query_name:"Permission",query_id:300,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.demand,query_name:"Deadline",query_id:302,parameters:[],return:a.eV.TYPE_U64,description:"The expiration time of presenting."},{module:a.e$.demand,query_name:"Bounty Count",query_id:303,parameters:[],return:a.eV.TYPE_U64,description:"Number of Bounties."},{module:a.e$.demand,query_name:"Has Guard",query_id:304,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the present guard is set?"},{module:a.e$.demand,query_name:"Guard",query_id:305,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The present guard address."},{module:a.e$.demand,query_name:"Has Service Picked",query_id:306,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether a service has been picked and bounties given?"},{module:a.e$.demand,query_name:"Service Picked",query_id:307,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Service address that has been picked."},{module:a.e$.demand,query_name:"Presenter Count",query_id:308,parameters:[],return:a.eV.TYPE_U64,description:"Number of presenters."},{module:a.e$.demand,query_name:"Has Presenter",query_id:309,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is a certain address a presenter?",parameters_description:["address"]},{module:a.e$.demand,query_name:"Who Got Bounty",query_id:310,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_ADDRESS,description:"The address that bounties given.",parameters_description:["address"]},{module:a.e$.service,query_name:"Permission",query_id:400,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.service,query_name:"Payee",query_id:401,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Payee address, that all order withdrawals will be collected to this address."},{module:a.e$.service,query_name:"Has Buying Guard",query_id:402,parameters:[],return:a.eV.TYPE_BOOL,description:"Is the guard condition of buying set?"},{module:a.e$.service,query_name:"Buying Guard",query_id:403,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Buying guard, that Purchase only if you meet the conditions of the guard."},{module:a.e$.service,query_name:"Contains Repository",query_id:404,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is a certain repository one of the service's consensus repositories?",parameters_description:["address"]},{module:a.e$.service,query_name:"Has Withdrawing Guard",query_id:405,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether a certain guard is set when withdrawing money?",parameters_description:["address"]},{module:a.e$.service,query_name:"Withdrawing Guard Percent",query_id:406,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The percentage of withdrawals allowed by a certain withdrawal guard.",parameters_description:["address"]},{module:a.e$.service,query_name:"Has Refunding Guard",query_id:407,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether a certain guard is set when refunding money?",parameters_description:["address"]},{module:a.e$.service,query_name:"Refunding Guard Percent",query_id:408,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The percentage of refund allowed by a certain refund guard.",parameters_description:["address"]},{module:a.e$.service,query_name:"Has Sales Item",query_id:409,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Is there a sales item for the service?",parameters_description:["the item name"]},{module:a.e$.service,query_name:"Sale Item Price",query_id:410,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"What is the price of a certain sale item?",parameters_description:["the item name"]},{module:a.e$.service,query_name:"Sale Item Inventory",query_id:411,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"How much inventory is there for a certain sales item?",parameters_description:["the item name"]},{module:a.e$.service,query_name:"Has Machine",query_id:412,parameters:[],return:a.eV.TYPE_BOOL,description:"Has the machine(progress generator) that serves the order been set up?"},{module:a.e$.service,query_name:"Machine",query_id:413,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Machine address, that generate progresses serving the execution process of order."},{module:a.e$.service,query_name:"Paused",query_id:414,parameters:[],return:a.eV.TYPE_BOOL,description:"Pause the creation of new order?"},{module:a.e$.service,query_name:"Published",query_id:415,parameters:[],return:a.eV.TYPE_BOOL,description:"Is it allowed to create orders?"},{module:a.e$.service,query_name:"Has Required Info",query_id:416,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the necessary information that needs to be provided by the customer is set?"},{module:a.e$.service,query_name:"Required Info of Service-Pubkey",query_id:417,parameters:[],return:a.eV.TYPE_STRING,description:"The public key used to encrypt customer information, and only the service provider can decrypt and view customer information."},{module:a.e$.service,query_name:"Required Info",query_id:418,parameters:[],return:a.eV.TYPE_VEC_STRING,description:"Names of the required information item that needs to be provided by the customer."},{module:a.e$.service,query_name:"Number of Treasuries",query_id:419,parameters:[],return:a.eV.TYPE_U64,description:"The number of treasuries that can be externally withdrawn for purposes such as compensation or incentives."},{module:a.e$.service,query_name:"Contains Treasury",query_id:420,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Does it contain externally withdrawable Treasury for purposes such as compensation or incentives?",parameters_description:["treasury address"]},{module:a.e$.service,query_name:"Number of Arbitrations",query_id:421,parameters:[],return:a.eV.TYPE_U64,description:"The number of arbitrations that allows a refund to be made from the order at any time based on the arbitration result."},{module:a.e$.service,query_name:"Contains Arbitration",query_id:422,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Does it contain an arbitration that allows a refund to be made from the order at any time based on the arbitration result.?",parameters_description:["arbitration address"]},{module:a.e$.order,query_name:"Amount",query_id:500,parameters:[],return:a.eV.TYPE_U64,description:"Order amount."},{module:a.e$.order,query_name:"Payer",query_id:501,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Order payer."},{module:a.e$.order,query_name:"Service",query_id:502,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Service for creating orders."},{module:a.e$.order,query_name:"Has Progress",query_id:503,parameters:[],return:a.eV.TYPE_BOOL,description:"Is there a Progress for executing the order process?"},{module:a.e$.order,query_name:"Progress",query_id:504,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Progress address for executing the order process."},{module:a.e$.order,query_name:"Required Info",query_id:505,parameters:[],return:a.eV.TYPE_BOOL,description:"Is Required Info set?"},{module:a.e$.order,query_name:"Discount Used",query_id:506,parameters:[],return:a.eV.TYPE_BOOL,description:"Discount coupon used for this order?"},{module:a.e$.order,query_name:"Discount",query_id:507,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Discount address that already used."},{module:a.e$.order,query_name:"Balance",query_id:508,parameters:[],return:a.eV.TYPE_U64,description:"The amount currently in the order."},{module:a.e$.order,query_name:"Number of Agents",query_id:511,parameters:[],return:a.eV.TYPE_U64,description:"The number of agents for the order."},{module:a.e$.order,query_name:"Has Agent",query_id:512,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether an address is an order agent?",parameters_description:["agent address"]},{module:a.e$.order,query_name:"Number of Disputes",query_id:513,parameters:[],return:a.eV.TYPE_U64,description:"Number of arbitrations for the order."},{module:a.e$.order,query_name:"Has Arb",query_id:514,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Does the order contain an Arb for arbitration?",parameters_description:["arb address"]},{module:a.e$.machine,query_name:"Permission",query_id:700,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.machine,query_name:"Paused",query_id:701,parameters:[],return:a.eV.TYPE_BOOL,description:"Pause the creation of new Progress?"},{module:a.e$.machine,query_name:"Published",query_id:702,parameters:[],return:a.eV.TYPE_BOOL,description:"Is it allowed to create Progress?"},{module:a.e$.machine,query_name:"Is Consensus Repository",query_id:703,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether an address is a consensus repository?",parameters_description:["adddress"]},{module:a.e$.machine,query_name:"Has Endpoint",query_id:704,parameters:[],return:a.eV.TYPE_BOOL,description:"Is the endpoint set?"},{module:a.e$.machine,query_name:"Endpoint",query_id:705,parameters:[],return:a.eV.TYPE_STRING,description:"Endpoint url/ipfs."},{module:a.e$.progress,query_name:"Machine",query_id:800,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The Machine object that created this Progress."},{module:a.e$.progress,query_name:"Current Node",query_id:801,parameters:[],return:a.eV.TYPE_STRING,description:"The name of the currently running node."},{module:a.e$.progress,query_name:"Has Parent",query_id:802,parameters:[],return:a.eV.TYPE_BOOL,description:"Is the parent Progress defined?"},{module:a.e$.progress,query_name:"Parent",query_id:803,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The parent Progress, that contains some child Progress."},{module:a.e$.progress,query_name:"Has Task",query_id:804,parameters:[],return:a.eV.TYPE_BOOL,description:"Does it contain clear task(eg. an Order)?"},{module:a.e$.progress,query_name:"Task",query_id:805,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Task object address."},{module:a.e$.progress,query_name:"Has Unique Permission",query_id:806,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Does Progress define a unique operation permission?",parameters_description:["operator name"]},{module:a.e$.progress,query_name:"Is Unique Permission Operator",query_id:807,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is an address an operator with unique permissions?",parameters_description:["operator name","address"]},{module:a.e$.progress,query_name:"Has Context Repository",query_id:808,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the repository reference for Progress is set?"},{module:a.e$.progress,query_name:"Context Repository",query_id:809,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Repository reference for Progress."},{module:a.e$.progress,query_name:"Last Session Time",query_id:810,parameters:[],return:a.eV.TYPE_U64,description:"Time when the previous session was completed."},{module:a.e$.progress,query_name:"Last Session Node",query_id:811,parameters:[],return:a.eV.TYPE_STRING,description:"The name of the last completed node."},{module:a.e$.progress,query_name:"Current Session-id",query_id:812,parameters:[],return:a.eV.TYPE_U64,description:"The session id of ongoing node."},{module:a.e$.progress,query_name:"Parent Session-id",query_id:813,parameters:[],return:a.eV.TYPE_U64,description:"The child process was started in the Session-id phase of the parent process."},{module:a.e$.progress,query_name:"Parent Next Node",query_id:814,parameters:[],return:a.eV.TYPE_STRING,description:"The child process is started at the next node stage of the parent process."},{module:a.e$.progress,query_name:"Parent Forward",query_id:815,parameters:[],return:a.eV.TYPE_STRING,description:"The child process is started in the Forward phase of the next node of the parent process."},{module:a.e$.progress,query_name:"Parent Node",query_id:816,parameters:[],return:a.eV.TYPE_STRING,description:"The node name of the parent process where the child process is located."},{module:a.e$.progress,query_name:"Forward Accomplished",query_id:817,parameters:[a.eV.TYPE_U64,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Has the forward been accomplished?",parameters_description:["session-id","next node name","forward name"]},{module:a.e$.progress,query_name:"Forward Operator",query_id:818,parameters:[a.eV.TYPE_U64,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_ADDRESS,description:"The forward operator.",parameters_description:["session-id","next node name","forward name"]},{module:a.e$.progress,query_name:"Forward Message",query_id:819,parameters:[a.eV.TYPE_U64,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_STRING,description:"The forward message.",parameters_description:["session-id","next node name","forward name"]},{module:a.e$.progress,query_name:"Forward Order Count",query_id:820,parameters:[a.eV.TYPE_U64,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The forward Order count.",parameters_description:["session-id","next node name","forward name"]},{module:a.e$.progress,query_name:"Forward time",query_id:821,parameters:[a.eV.TYPE_U64,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The time when the forward was last triggered.",parameters_description:["session-id","next node name","forward name"]},{module:a.e$.progress,query_name:"Closest Session Time",query_id:822,parameters:[a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The time a node that closest time to the current node completes its session.",parameters_description:["node name"]},{module:a.e$.progress,query_name:"Closest Forward Accomplished",query_id:823,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_BOOL,description:"Has the forward been accomplished?",parameters_description:["node name","next node name","forward name"]},{module:a.e$.progress,query_name:"Closest Forward Operator",query_id:824,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_ADDRESS,description:"The operator of the forward that closest time to the current node.",parameters_description:["node name","next node name","forward name"]},{module:a.e$.progress,query_name:"Closest Forward Message",query_id:825,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_STRING,description:"The message of the forward that closest time to the current node.",parameters_description:["node name","next node name","forward name"]},{module:a.e$.progress,query_name:"Closest Forward Order Count",query_id:826,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The Order count of the forward that closest time to the current node.",parameters_description:["node name","next node name","forward name"]},{module:a.e$.progress,query_name:"Closest Forward time",query_id:827,parameters:[a.eV.TYPE_STRING,a.eV.TYPE_STRING,a.eV.TYPE_STRING],return:a.eV.TYPE_U64,description:"The time when the forward that closest time to the current node was last triggered.",parameters_description:["node name","next node name","forward name"]},{module:a.e$.wowok,query_name:"Builder",query_id:900,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Builder address of Wowok."},{module:a.e$.wowok,query_name:"Object of Entities",query_id:901,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The address of entity information object."},{module:a.e$.wowok,query_name:"Grantor Count",query_id:902,parameters:[],return:a.eV.TYPE_U64,description:"Number of registered grantors."},{module:a.e$.wowok,query_name:"Has Grantor",query_id:903,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether an address has been registered as a grantor?",parameters_description:["address"]},{module:a.e$.wowok,query_name:"Grantor Name",query_id:904,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_STRING,description:"Name of a grantor.",parameters_description:["address"]},{module:a.e$.wowok,query_name:"Grantor Registration Time",query_id:905,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Registration time of a grantor.",parameters_description:["address"]},{module:a.e$.wowok,query_name:"Grantor Expired Time",query_id:906,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The expiration time of a grantor.",parameters_description:["address"]},{module:a.e$.wowok,query_name:"Grantee Object for Grantor",query_id:907,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_ADDRESS,description:"Grantee repository address of a grantor.",parameters_description:["address"]},{module:a.e$.payment,query_name:"Sender",query_id:1200,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Payment originator address."},{module:a.e$.payment,query_name:"Total Amount",query_id:1201,parameters:[],return:a.eV.TYPE_U128,description:"Payment amount."},{module:a.e$.payment,query_name:"Remark",query_id:1202,parameters:[],return:a.eV.TYPE_STRING,description:"Payment remark.",parameters_description:["address"]},{module:a.e$.payment,query_name:"Has Guard for Perpose",query_id:1203,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the payment references a Guard?"},{module:a.e$.payment,query_name:"Has Object for Perpose",query_id:1204,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the payment references an Object?"},{module:a.e$.payment,query_name:"Guard for Perpose",query_id:1205,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The Guard referenced by this payment."},{module:a.e$.payment,query_name:"Object for Perpose",query_id:1206,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The Object referenced by this payment."},{module:a.e$.payment,query_name:"Number of Recipients",query_id:1207,parameters:[],return:a.eV.TYPE_U64,description:"Number of recipients to receive payment from."},{module:a.e$.payment,query_name:"Is a Recipient",query_id:1208,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Is a recipient received the payment?",parameters_description:["address"]},{module:a.e$.payment,query_name:"Amount for a Recipient",query_id:1209,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The amount of payment received by an address.",parameters_description:["address"]},{module:a.e$.payment,query_name:"Time",query_id:1210,parameters:[],return:a.eV.TYPE_U64,description:"Payment time"},{module:a.e$.payment,query_name:"Is from Treasury",query_id:1211,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the payment comes from a Treasury?"},{module:a.e$.payment,query_name:"Treasury Address",query_id:1212,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The Treasury from which the payment comes."},{module:a.e$.payment,query_name:"Biz-ID",query_id:1213,parameters:[],return:a.eV.TYPE_U64,description:"Bisiness ID number of the payment."},{module:a.e$.payment,query_name:"Check the purpose of payment",query_id:1214,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_ADDRESS,a.eV.TYPE_U64],return:a.eV.TYPE_BOOL,description:"Do Guard, Object Perpose, and Biz-ID match?",parameters_description:["guard address","object address","Biz-ID"]},{module:a.e$.payment,query_name:"Check & Amount for a Recipient",query_id:1215,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_ADDRESS,a.eV.TYPE_U64,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Check and get the amount of payment received by an address.",parameters_description:["guard address","object address","Biz-ID","recipient address"]},{module:a.e$.treasury,query_name:"Permission",query_id:1400,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.treasury,query_name:"Balance",query_id:1401,parameters:[],return:a.eV.TYPE_U64,description:"Treasury balance."},{module:a.e$.treasury,query_name:"Number of Flow Records",query_id:1402,parameters:[],return:a.eV.TYPE_U64,description:"Number of treasury transactions."},{module:a.e$.treasury,query_name:"Inflow Amount",query_id:1403,parameters:[],return:a.eV.TYPE_U128,description:"Treasury inflow amount."},{module:a.e$.treasury,query_name:"Outflow Amount",query_id:1404,parameters:[],return:a.eV.TYPE_U128,description:"Treasury outflow amount."},{module:a.e$.treasury,query_name:"Has Deposit Guard",query_id:1405,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether the deposit Guard set?"},{module:a.e$.treasury,query_name:"Deposit Guard",query_id:1406,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Deposit Guard address."},{module:a.e$.treasury,query_name:"Number of Withdraw Guards",query_id:1407,parameters:[],return:a.eV.TYPE_U64,description:"Number of withdraw guards."},{module:a.e$.treasury,query_name:"Has Withdraw Guard",query_id:1408,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Has a Withdraw Guard added?",parameters_description:["guard address"]},{module:a.e$.treasury,query_name:"Withdrawal Amount with Guard",query_id:1409,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"withdrawal amount corresponding the Guard.",parameters_description:["guard address"]},{module:a.e$.treasury,query_name:"Recent Time with Operation",query_id:1410,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_U64,description:"Time of the most recent fund operation.",parameters_description:["operation"]},{module:a.e$.treasury,query_name:"Recent Signer with Operation",query_id:1411,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_ADDRESS,description:"Signer address of the most recent fund operation.",parameters_description:["operation"]},{module:a.e$.treasury,query_name:"Recent Payment with Operation",query_id:1412,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_ADDRESS,description:"Payment address of the most recent fund operation.",parameters_description:["operation"]},{module:a.e$.treasury,query_name:"Recent Amount with Operation",query_id:1413,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_U64,description:"Amount of the most recent fund operation.",parameters_description:["operation"]},{module:a.e$.treasury,query_name:"Recent Time with Op/Pmt",query_id:1414,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Time of the most recent fund operation with payment specified.",parameters_description:["operation","payment address"]},{module:a.e$.treasury,query_name:"Recent Signer with Op&Pmt",query_id:1415,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_ADDRESS,description:"Signer of the most recent fund operationwith payment specified.",parameters_description:["operation","payment address"]},{module:a.e$.treasury,query_name:"Recent Amount with Op/Pmt",query_id:1416,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Amount of the most recent fund operation with payment specified.",parameters_description:["operation","payment address"]},{module:a.e$.treasury,query_name:"Recent Time with Op/Sgr",query_id:1417,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Time of the most recent fund operation with signer specified.",parameters_description:["operation","signer address"]},{module:a.e$.treasury,query_name:"Recent Payment with Op/Sgr",query_id:1418,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_ADDRESS,description:"Payment of the most recent fund operation with singner specified.",parameters_description:["operation","signer address"]},{module:a.e$.treasury,query_name:"Recent Amount with Op/Sgr",query_id:1419,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Amount of the most recent fund operation with singer specified.",parameters_description:["operation","signer address"]},{module:a.e$.treasury,query_name:"Recent Time with Op/Pmt/Sgr",query_id:1420,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Time of the most recent fund operation.",parameters_description:["operation","payment address","singer address"]},{module:a.e$.treasury,query_name:"Recent Amount with Op/Pmt/Sgr",query_id:1421,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Amount of the most recent fund operation.",parameters_description:["operation","payment address","singer address"]},{module:a.e$.treasury,query_name:"Has Operation",query_id:1422,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_BOOL,description:"Whether there was a fund operation?",parameters_description:["operation"]},{module:a.e$.treasury,query_name:"Has Operation with Pmt",query_id:1423,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether there was a fund operation with payment specified?",parameters_description:["operation","payment address"]},{module:a.e$.treasury,query_name:"Has Operation with Sgr",query_id:1424,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether there was a fund operation with singer specified?",parameters_description:["operation","singer address"]},{module:a.e$.treasury,query_name:"Has Operation with Pmt/Sgr",query_id:1425,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS,a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Whether there was a fund operation?",parameters_description:["operation","payment address","singer address"]},{module:a.e$.treasury,query_name:"Operation at Least Times",query_id:1426,parameters:[a.eV.TYPE_U8,a.eV.TYPE_U8],return:a.eV.TYPE_BOOL,description:"Does it operate at least a certain number of times?",parameters_description:["operation","at least times"]},{module:a.e$.treasury,query_name:"Operation at Least Times by a Signer",query_id:1427,parameters:[a.eV.TYPE_U8,a.eV.TYPE_ADDRESS,a.eV.TYPE_U8],return:a.eV.TYPE_BOOL,description:"Does it operate at least a certain number of times by a signer?",parameters_description:["operation","signer address","at least times"]},{module:a.e$.arbitration,query_name:"Permission",query_id:1500,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Permission object address."},{module:a.e$.arbitration,query_name:"Paused",query_id:1501,parameters:[],return:a.eV.TYPE_BOOL,description:"Is it allowed to create Arb?"},{module:a.e$.arbitration,query_name:"Fee",query_id:1502,parameters:[],return:a.eV.TYPE_U64,description:"Cost of arbitration."},{module:a.e$.arbitration,query_name:"Has Endpoint",query_id:1503,parameters:[],return:a.eV.TYPE_BOOL,description:"Is the endpoint set?"},{module:a.e$.arbitration,query_name:"Endpoint",query_id:1504,parameters:[],return:a.eV.TYPE_STRING,description:"Endpoint url/ipfs."},{module:a.e$.arbitration,query_name:"Has Customer Guard",query_id:1505,parameters:[],return:a.eV.TYPE_BOOL,description:"Is there Guard set to apply for arbitration?"},{module:a.e$.arbitration,query_name:"Customer Guard",query_id:1506,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Guard to apply for arbitration."},{module:a.e$.arbitration,query_name:"Number of Voting Guard",query_id:1507,parameters:[],return:a.eV.TYPE_U64,description:"Number of voting guards."},{module:a.e$.arbitration,query_name:"Has Voting Guard",query_id:1508,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Has the voting Guard added?",parameters_description:["guard address"]},{module:a.e$.arbitration,query_name:"Voting Weight",query_id:1509,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"Voting weight of the voting Guard.",parameters_description:["guard address"]},{module:a.e$.arbitration,query_name:"Treasury",query_id:1510,parameters:[],return:a.eV.TYPE_ADDRESS,description:"The address of the Treasury where fees was collected at the time of withdrawal."},{module:a.e$.arb,query_name:"Order",query_id:1600,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Order under arbitration."},{module:a.e$.arb,query_name:"Arbitration",query_id:1601,parameters:[],return:a.eV.TYPE_ADDRESS,description:"Arbitration object address."},{module:a.e$.arb,query_name:"Feedback",query_id:1602,parameters:[],return:a.eV.TYPE_STRING,description:"Arbitration feedback."},{module:a.e$.arb,query_name:"Has Compensation",query_id:1603,parameters:[],return:a.eV.TYPE_BOOL,description:"Whether there is an arbitration result?"},{module:a.e$.arb,query_name:"Compensation",query_id:1604,parameters:[],return:a.eV.TYPE_U64,description:"Compensation should be given to the order payer."},{module:a.e$.arb,query_name:"Unclaimed Arbitration Costs",query_id:1605,parameters:[],return:a.eV.TYPE_U64,description:"Unclaimed arbitration costs."},{module:a.e$.arb,query_name:"Turnout",query_id:1606,parameters:[],return:a.eV.TYPE_U64,description:"The number of addresses have voted."},{module:a.e$.arb,query_name:"Has voted",query_id:1607,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_BOOL,description:"Has someone voted?",parameters_description:["voter address"]},{module:a.e$.arb,query_name:"Voting weight",query_id:1608,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The weight of a complete vote for the address.",parameters_description:["voter address"]},{module:a.e$.arb,query_name:"Voting Time",query_id:1609,parameters:[a.eV.TYPE_ADDRESS],return:a.eV.TYPE_U64,description:"The time of a complete vote for the address.",parameters_description:["voter address"]},{module:a.e$.arb,query_name:"Voting Option",query_id:1610,parameters:[a.eV.TYPE_ADDRESS,a.eV.TYPE_U8],return:a.eV.TYPE_BOOL,description:"Does an address complete voting for the option?",parameters_description:["voter address","option index"]},{module:a.e$.arb,query_name:"Number of Options",query_id:1611,parameters:[],return:a.eV.TYPE_U64,description:"Number of voting options."},{module:a.e$.arb,query_name:"Number of Votes",query_id:1612,parameters:[a.eV.TYPE_U8],return:a.eV.TYPE_U64,description:"The number of votes received for an option.",parameters_description:["option index"]}];var d;!function(e){e.txn="Txn Functions",e.number="Number Crunching",e.logic="Compare or Logic"}(d||(d={}));const u=[{from:"type",name:"Txn Signer",value:a.EL.TYPE_SIGNER,group:d.txn,return:a.eV.TYPE_ADDRESS},{from:"type",name:"Txn Time",value:a.EL.TYPE_CLOCK,group:d.txn,return:a.eV.TYPE_U64},{from:"type",name:"Guard Address",value:a.EL.TYPE_GUARD,group:d.txn,return:a.eV.TYPE_ADDRESS},{from:"type",name:"PositiveNumber to Address",value:a.hu.TYPE_NUMBER_ADDRESS,group:d.number,return:a.eV.TYPE_ADDRESS},{from:"type",name:"PositiveNumber Add (+)",value:a.hu.TYPE_NUMBER_ADD,group:d.number,return:"number"},{from:"type",name:"PositiveNumber Subtract (-)",value:a.hu.TYPE_NUMBER_SUBTRACT,group:d.number,return:"number"},{from:"type",name:"PositiveNumber Multiply (*)",value:a.hu.TYPE_NUMBER_MULTIPLY,group:d.number,return:"number"},{from:"type",name:"PositiveNumber Devide (/)",value:a.hu.TYPE_NUMBER_DEVIDE,group:d.number,return:"number"},{from:"type",name:"PositiveNumber Mod (%)",value:a.hu.TYPE_NUMBER_MOD,group:d.number,return:"number"}];class _{static MAX_INPUT_LENGTH=10240;txb;object;get_object(){return this.object}static From(e,r){let t=new _(e);return t.object=a.Zs.TXB_OBJECT(e,r),t}constructor(e){this.txb=e,this.object=""}static New(e,r,t){t.IsReady()||(0,i.f)(i.I.InvalidParam,"launch maker"),(0,s.yW)(r)||(0,i.f)(i.I.IsValidDesription);let n=t.get_input()[0],o=t.get_constant();(0==n.length||n.length>_.MAX_INPUT_LENGTH)&&(0,i.f)(i.I.InvalidParam,"launch input");let d=!0;o?.forEach(((e,r)=>{p.IsValidIndentifier(r)||(d=!1),e.value&&e.bWitness&&(d=!1),void 0!==e.value||e.bWitness||(d=!1)})),d||(0,i.f)(i.I.InvalidParam,"launch constants");let u=new Uint8Array(n),m=new _(e);return m.object=e.moveCall({target:a.Zs.Instance().guardFn("new"),arguments:[e.pure.string(r),e.pure.vector("u8",[].slice.call(u.reverse()))]}),o?.forEach(((r,t)=>{if(r.bWitness){const s=new Uint8Array(1);s.set([r.type],0),e.moveCall({target:a.Zs.Instance().guardFn("constant_add"),arguments:[e.object(m.object),e.pure.u8(t),e.pure.bool(!0),e.pure.vector("u8",[].slice.call(s)),e.pure.bool(!0)]})}else{const i=(0,s.$Q)(r.value,r.type);e.moveCall({target:a.Zs.Instance().guardFn("constant_add"),arguments:[e.object(m.object),e.pure.u8(t),e.pure.bool(!1),e.pure.vector("u8",[].slice.call(i)),e.pure.bool(!0)]})}})),m}launch(){return this.txb.moveCall({target:a.Zs.Instance().guardFn("create"),arguments:[this.txb.object(this.object)]})}static everyone_guard(e){return e.moveCall({target:a.Zs.Instance().guardFn("everyone_guard"),arguments:[]})}static QueryAddressIdentifiers(e,r,t){const i=new n.Z;i.moveCall({target:a.Zs.Instance().guardFn("query_address_identifiers"),arguments:[i.object(e)]}),a.Zs.Client().devInspectTransactionBlock({sender:t,transactionBlock:i}).then((e=>{if(e.results&&e.results[0]?.returnValues&&1!==e.results[0]?.returnValues?.length)return void r({err:"not match",txb:i,identifiers:[]});const t=s.ji.getInstance().de("vector<u8>",Uint8Array.from(e.results[0].returnValues[0][0]));r({identifiers:t,txb:i})})).catch((e=>{console.log(e),r({err:e,txb:i,identifiers:[]})}))}static BoolCmd=o.filter((e=>e.return===a.eV.TYPE_BOOL));static IsBoolCmd=e=>_.BoolCmd.some((r=>r.query_id==e));static CmdFilter=e=>o.filter((r=>r.return===e));static GetCmd=e=>o.find((r=>r.query_id==e));static GetCmdOption=e=>{const r=_.GetCmd(e);return r?{from:"query",name:r.query_name,value:r.query_id,group:(0,s.Li)(r.module),return:r.return}:r};static GetInputParams=e=>{const r=_.GetCmd(e);return r?r.parameters:[]};static GetModuleName=e=>{let r=_.GetCmd(e);return r?(0,s.Li)(r.module):""};static NumberOptions=()=>[..._.CmdFilter(a.eV.TYPE_U8),..._.CmdFilter(a.eV.TYPE_U64),..._.CmdFilter(a.eV.TYPE_U128),..._.CmdFilter(a.eV.TYPE_U256)].map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return}))).concat(_.Crunchings);static Signer=u.find((e=>"Txn Signer"===e.name&&e.value===a.EL.TYPE_SIGNER));static Time=u.find((e=>"Txn Time"===e.name&&e.value===a.EL.TYPE_CLOCK));static Guard=u.find((e=>"Guard Address"===e.name&&e.value===a.EL.TYPE_GUARD));static Logics=()=>a.Kf.map((e=>({from:"type",name:e[1],value:e[0],group:d.logic,return:a.eV.TYPE_BOOL})));static Crunchings=u.filter((e=>e.value===a.hu.TYPE_NUMBER_ADD||e.value===a.hu.TYPE_NUMBER_SUBTRACT||e.value===a.hu.TYPE_NUMBER_MULTIPLY||e.value===a.hu.TYPE_NUMBER_DEVIDE||e.value===a.hu.TYPE_NUMBER_MOD||e.value===a.hu.TYPE_NUMBER_ADDRESS));static CommonOptions=e=>_.CmdFilter(e).map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return})));static AllOptions=()=>[...o.map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return}))),...u];static StringOptions=()=>[..._.CmdFilter(a.eV.TYPE_STRING)].map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return})));static BoolOptions=()=>[..._.BoolCmd.map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return}))),..._.Logics()];static AddressOptions=()=>[...o.filter((e=>e.return===a.eV.TYPE_ADDRESS)).map((e=>({from:"query",name:e.query_name,value:e.query_id,group:(0,s.Li)(e.module),return:e.return}))),...u.filter((e=>e.return===a.eV.TYPE_ADDRESS))];static Options=e=>{if("number"===e)return _.NumberOptions();if("any"===e)return _.AllOptions();switch(e){case a.eV.TYPE_BOOL:return _.BoolOptions();case a.eV.TYPE_STRING:return _.StringOptions()}return _.CommonOptions(e)}}const m=e=>(0,s.U5)(e)&&0!==e;class p{data=[];type_validator=[];constant=new Map;static _witness_index=1;static _const_index=255;static GetWitnessIndex(){return this._witness_index>=this._const_index&&(0,i.f)(i.I.Fail,"too many witness"),p._witness_index++}static getConstIndex(){return this._const_index<=this._witness_index&&(0,i.f)(i.I.Fail,"too many const"),p._const_index--}static IsValidIndentifier=e=>!(!(0,s.U5)(e)||e<1);constructor(){}add_constant(e,r,t,a=!0){return void 0===t&&(t=void 0===r?p.GetWitnessIndex():p.getConstIndex()),this.constant.get(t)||(a&&void 0!==r&&(r=s.ji.getInstance().ser(e,r)),this.constant.set(t,{type:e,value:void 0===r?void 0:r,bWitness:void 0===r})),t}add_param(e,r){switch(e){case a.eV.TYPE_ADDRESS:case a.eV.TYPE_BOOL:case a.eV.TYPE_U8:case a.eV.TYPE_U64:case a.eV.TYPE_U128:case a.eV.TYPE_U256:case a.eV.TYPE_VEC_ADDRESS:case a.eV.TYPE_VEC_BOOL:case a.eV.TYPE_VEC_U128:case a.eV.TYPE_VEC_U64:case a.eV.TYPE_VEC_VEC_U8:case a.eV.TYPE_OPTION_U64:case a.eV.TYPE_OPTION_ADDRESS:case a.eV.TYPE_OPTION_BOOL:case a.eV.TYPE_OPTION_U128:case a.eV.TYPE_OPTION_U256:case a.eV.TYPE_OPTION_U8:case a.eV.TYPE_VEC_U256:this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),this.data.push(s.ji.getInstance().ser(e,r)),this.type_validator.push(e);break;case a.eV.TYPE_STRING:case a.eV.TYPE_VEC_U8:r||(0,i.f)(i.I.InvalidParam,"param: "+e),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),"string"==typeof r?this.data.push(s.ji.getInstance().ser(a.eV.TYPE_STRING,r)):this.data.push(s.ji.getInstance().ser(a.eV.TYPE_VEC_U8,r)),this.type_validator.push(e);break;case a.EL.TYPE_SIGNER:case a.EL.TYPE_GUARD:this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),this.type_validator.push(a.eV.TYPE_ADDRESS);break;case a.EL.TYPE_CLOCK:this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),this.type_validator.push(a.eV.TYPE_U64);break;case a.EL.TYPE_CONSTANT:m(r)||(0,i.f)(i.I.IsValidGuardIdentifier,"add_param param:"+e);var t=this.constant.get(r);t||(0,i.f)(i.I.Fail,"identifier not in constant:"+r),this.type_validator.push(t.type),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,r));break;default:(0,i.f)(i.I.InvalidParam,"add_param type:"+e)}return this}add_query(e,r,t){const a=o.filter((t=>t.module==e&&t.query_name==r));return 1!==a.length&&(0,i.f)(i.I.InvalidParam,"add_query2:"+r),this.add_query2(a[0].query_id,t)}add_query2(e,r){const t=o.findIndex((r=>r.query_id==e));-1==t&&(0,i.f)(i.I.InvalidParam,"query_id:"+e),"number"==typeof r?p.IsValidIndentifier(r)||(0,i.f)(i.I.InvalidParam,"object_address_from:"+e):(0,s.jE)(r)||(0,i.f)(i.I.InvalidParam,"object_address_from:"+e);let n=this.type_validator.length-o[t].parameters.length;n<0&&(0,i.f)(i.I.InvalidParam,"offset:"+e);let d=this.type_validator.slice(n);if((0,s.p_)(d,o[t].parameters)||(0,i.f)(i.I.Fail,"array_equal:"+e),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,a.hu.TYPE_QUERY)),"string"==typeof r)this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,a.eV.TYPE_ADDRESS)),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_ADDRESS,r));else{let t=this.constant.get(r);t||(0,i.f)(i.I.Fail,"object_address_from not in constant:"+e),t?.type==a.eV.TYPE_ADDRESS?(this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,a.EL.TYPE_CONSTANT)),this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,r))):(0,i.f)(i.I.Fail,"type bWitness not match:"+e)}return this.data.push(s.ji.getInstance().ser("u16",o[t].query_id)),this.type_validator.splice(n,o[t].parameters.length),this.type_validator.push(o[t].return),this}add_logic(e,r=2){var t=a.Kf.find((r=>r[0]===e));t&&(t=t[1]);let n,o=2,d=a.eV.TYPE_BOOL;switch(e){case a.hu.TYPE_LOGIC_AS_U256_GREATER:case a.hu.TYPE_LOGIC_AS_U256_GREATER_EQUAL:case a.hu.TYPE_LOGIC_AS_U256_LESSER:case a.hu.TYPE_LOGIC_AS_U256_LESSER_EQUAL:case a.hu.TYPE_LOGIC_AS_U256_EQUAL:(!r||r<2)&&(0,i.f)(i.I.Fail,"logic param invalid:"+t),o=r,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t);for(let e=1;e<=o;++e)p.match_u256(this.type_validator[this.type_validator.length-e])||(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_LOGIC_EQUAL:(!r||r<2)&&(0,i.f)(i.I.Fail,"logic param invalid:"+t),o=r,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t),n=this.type_validator[this.type_validator.length-1];for(let e=2;e<=o;++e)this.type_validator[this.type_validator.length-e]!==n&&(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_LOGIC_HAS_SUBSTRING:(!r||r<2)&&(0,i.f)(i.I.Fail,"logic param invalid:"+t),o=r,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t);for(let e=1;e<=o;++e)this.type_validator[this.type_validator.length-e]!==a.eV.TYPE_STRING&&(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_LOGIC_NOT:o=1,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t),this.type_validator[this.type_validator.length-1]!=a.eV.TYPE_BOOL&&(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_NUMBER_ADDRESS:o=1,d=a.eV.TYPE_ADDRESS,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t),p.match_u256(this.type_validator[this.type_validator.length-1])||(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_LOGIC_AND:case a.hu.TYPE_LOGIC_OR:(!r||r<2)&&(0,i.f)(i.I.Fail,"logic param invalid:"+t),o=r,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t);for(let e=1;e<=o;++e)this.type_validator[this.type_validator.length-e]!=a.eV.TYPE_BOOL&&(0,i.f)(i.I.Fail,"type_validator check:"+t);break;case a.hu.TYPE_NUMBER_ADD:case a.hu.TYPE_NUMBER_DEVIDE:case a.hu.TYPE_NUMBER_MULTIPLY:case a.hu.TYPE_NUMBER_SUBTRACT:case a.hu.TYPE_NUMBER_MOD:(!r||r<2)&&(0,i.f)(i.I.Fail,"logic param invalid:"+t),o=r,this.type_validator.length<o&&(0,i.f)(i.I.Fail,"type_validator.length:"+t);for(let e=1;e<=o;++e)p.match_u256(this.type_validator[this.type_validator.length-1])||(0,i.f)(i.I.Fail,"type_validator check:"+t);d=a.eV.TYPE_U256;break;default:(0,i.f)(i.I.InvalidParam,"add_logic type invalid:"+t)}return this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,e)),p.is_multi_input_op(e)&&this.data.push(s.ji.getInstance().ser(a.eV.TYPE_U8,r)),this.type_validator.splice(this.type_validator.length-o),this.type_validator.push(d),this}hasIdentifier(e){return this.constant.has(e)}build(e=!1){return 1==this.type_validator.length&&this.type_validator[0]==a.eV.TYPE_BOOL||(0,i.f)(i.I.Fail,"type_validator check"),e&&this.add_logic(a.hu.TYPE_LOGIC_NOT),this.da