@wowok/wowok 2.6.8 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/esm/{arb-D9PnARNU.mjs → arb-DdsVJAQS.mjs} +1 -1
- package/dist/esm/{base-CmGBEIzb.mjs → base-Bem5gVfE.mjs} +1 -1
- package/dist/esm/bcs/index.d.mts +1 -1
- package/dist/esm/{call-BNVA5-PG.mjs → call-B2_VblCK.mjs} +1 -1
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/{client-tu51vSnB.mjs → client-DbLjWV0v.mjs} +1 -1
- package/dist/esm/{common-uweycQjC.mjs → common-BDlb-AoC.mjs} +1 -1
- package/dist/esm/{config-CPqpYYLT.d.mts → config-DyKCZw0u.d.mts} +12 -1
- package/dist/esm/cryptography/index.d.mts +1 -1
- package/dist/esm/graphql/index.d.mts +1 -1
- package/dist/esm/graphql/index.mjs +1 -1
- package/dist/esm/graphql/schema/index.d.mts +1 -73
- package/dist/esm/graphql-DBzTX0je.mjs +1 -0
- package/dist/esm/grpc/index.d.mts +1 -1
- package/dist/esm/grpc/index.mjs +1 -1
- package/dist/esm/{grpc-BkdsSAp4.mjs → grpc-CJ97juzx.mjs} +1 -1
- package/dist/esm/{index-o_aMVwsK.d.mts → index-B-cxGU73.d.mts} +6 -6
- package/dist/esm/{index-DDdEf8FJ.d.mts → index-BeiKuYsk.d.mts} +170 -18
- package/dist/esm/index.d.mts +4 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/jsonRpc/index.d.mts +1 -1
- package/dist/esm/jsonRpc/index.mjs +1 -1
- package/dist/esm/keypairs/ed25519/index.d.mts +1 -1
- package/dist/esm/keypairs/falcon512/index.d.mts +1 -1
- package/dist/esm/keypairs/passkey/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256k1/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256r1/index.d.mts +1 -1
- package/dist/esm/messenger-CnEo2ENd.mjs +1 -0
- package/dist/esm/messenger-api-OFn2tErd.mjs +1 -0
- package/dist/esm/multisig/index.d.mts +1 -1
- package/dist/esm/network-Bgq9iuE4.mjs +1 -0
- package/dist/esm/object-BaLfg7ui.mjs +1 -0
- package/dist/esm/{passport-aLeINryx.mjs → passport-DRaRa4Fd.mjs} +1 -1
- package/dist/esm/{proof-ByE09RhA.mjs → proof-DT_n7Pdr.mjs} +1 -1
- package/dist/esm/query-CaWOlNHH.mjs +1 -0
- package/dist/esm/received-Cfbf_dGN.mjs +1 -0
- package/dist/esm/service-70b2Ro-x.mjs +1 -0
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/types-D7yrbH5u.d.mts +85 -0
- package/dist/esm/{util-DxDXSeQI.mjs → util-B-uD1Zk7.mjs} +1 -1
- package/dist/esm/verify/index.d.mts +1 -1
- package/dist/esm/w/call/allocation.d.mts +1 -1
- package/dist/esm/w/call/allocation.mjs +1 -1
- package/dist/esm/w/call/arbitration.d.mts +1 -1
- package/dist/esm/w/call/arbitration.mjs +1 -1
- package/dist/esm/w/call/base.d.mts +1 -1
- package/dist/esm/w/call/base.mjs +1 -1
- package/dist/esm/w/call/demand.d.mts +1 -1
- package/dist/esm/w/call/demand.mjs +1 -1
- package/dist/esm/w/call/guard.d.mts +1 -1
- package/dist/esm/w/call/guard.mjs +1 -1
- package/dist/esm/w/call/index.d.mts +1 -1
- package/dist/esm/w/call/index.mjs +1 -1
- package/dist/esm/w/call/machine.d.mts +1 -1
- package/dist/esm/w/call/machine.mjs +1 -1
- package/dist/esm/w/call/passport.d.mts +1 -1
- package/dist/esm/w/call/passport.mjs +1 -1
- package/dist/esm/w/call/payment.d.mts +1 -1
- package/dist/esm/w/call/payment.mjs +1 -1
- package/dist/esm/w/call/permission.d.mts +1 -1
- package/dist/esm/w/call/permission.mjs +1 -1
- package/dist/esm/w/call/progress.d.mts +1 -1
- package/dist/esm/w/call/progress.mjs +1 -1
- package/dist/esm/w/call/repository.d.mts +1 -1
- package/dist/esm/w/call/repository.mjs +1 -1
- package/dist/esm/w/call/reward.d.mts +1 -1
- package/dist/esm/w/call/reward.mjs +1 -1
- package/dist/esm/w/call/service.d.mts +1 -1
- package/dist/esm/w/call/service.mjs +1 -1
- package/dist/esm/w/call/treasury.d.mts +1 -1
- package/dist/esm/w/call/treasury.mjs +1 -1
- package/dist/esm/w/common.d.mts +2 -2
- package/dist/esm/w/common.mjs +1 -1
- package/dist/esm/w/index.d.mts +3 -3
- package/dist/esm/w/index.mjs +1 -1
- package/dist/esm/w/local/account.d.mts +1 -1
- package/dist/esm/w/local/account.mjs +1 -1
- package/dist/esm/w/local/config.d.mts +1 -1
- package/dist/esm/w/local/config.mjs +1 -1
- package/dist/esm/w/local/index.d.mts +2 -2
- package/dist/esm/w/local/index.mjs +1 -1
- package/dist/esm/w/local/token.d.mts +1 -1
- package/dist/esm/w/local/token.mjs +1 -1
- package/dist/esm/w/messenger/index.d.mts +1 -1
- package/dist/esm/w/messenger/index.mjs +1 -1
- package/dist/esm/w/messenger/messenger-api.d.mts +1 -1
- package/dist/esm/w/messenger/messenger-api.mjs +1 -1
- package/dist/esm/w/messenger/messenger.d.mts +1 -1
- package/dist/esm/w/messenger/messenger.mjs +1 -1
- package/dist/esm/w/messenger/reply.d.mts +27 -0
- package/dist/esm/w/messenger/reply.mjs +1 -0
- package/dist/esm/w/messenger/storage.d.mts +1 -1
- package/dist/esm/w/messenger/storage.mjs +1 -1
- package/dist/esm/w/messenger/types.d.mts +2 -2
- package/dist/esm/w/messenger/types.mjs +1 -1
- package/dist/esm/w/query/index.d.mts +2 -2
- package/dist/esm/w/query/index.mjs +1 -1
- package/dist/esm/w/query/object.d.mts +1 -1
- package/dist/esm/w/query/object.mjs +1 -1
- package/dist/esm/{w-B1_lZaGr.mjs → w-s_ejdDrP.mjs} +1 -1
- package/package.json +4 -1
- package/dist/esm/graphql-Dfa5Zfn9.mjs +0 -1
- package/dist/esm/messenger-Bq_x9zCa.mjs +0 -1
- package/dist/esm/messenger-api-7S2KPVXu.mjs +0 -1
- package/dist/esm/network-CeDd07Hg.mjs +0 -1
- package/dist/esm/object-YcOt7Qyl.mjs +0 -1
- package/dist/esm/query-BQd-slSZ.mjs +0 -1
- package/dist/esm/received-CI0eLHuI.mjs +0 -1
- package/dist/esm/service-uuInIVYC.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as a71a}from'../../wow-types-DcqbnAaK.mjs';import{B as a71b,J as a71c,Y as a71d,c as a71e,dt as a71f,f as a71g,ft as a71h,g as a71i,l as a71j,st as a71k,u as a71l}from'../../common-uweycQjC.mjs';import{o as a71m}from'../../exception-C6IYkBi6.mjs';import{LocalMark}from'../local/local.mjs';import{GetAccountOrMark_Address}from'../local/index.mjs';import{nt as a71n,st as a71o,tt as a71p}from'../../object-YcOt7Qyl.mjs';import{t as a71q}from'../../received-CI0eLHuI.mjs';import{r as a71r,t as a71s}from'../../base-CmGBEIzb.mjs';import{create as a71t,newPermission}from'./permission.mjs';function convertAmountType(a){if(typeof a==='number')return a;const b=a['toUpperCase']();if(b==='GUARDU64IDENTIFIER'||b==='GUARD_U64_IDENTIFIER')return 0x0;if(b==='FIXED')return 0x1;return 0x1;}function transformRewardInput(a){if(!a)return a;const b={...a};if(b['guard_add']&&Array['isArray'](b['guard_add']))b['guard_add']=b['guard_add']['map'](c=>{if(c['amount']&&typeof c['amount']['type']==='string')return{...c,'amount':{...c['amount'],'type':convertAmountType(c['amount']['type'])}};return c;});return b;}var CallReward=class extends a71s{constructor(a){super(),this['object_address']=void 0x0,this['permission_address']=void 0x0,this['new_permission_description']=void 0x0,this['reward_type']=void 0x0,this['data']=a;}async['prepare'](a){await super['prepare'](a);if(!this['object_address'])this['object_address']=await a71l(this['data']?.['object']);if(this['object_address']){this['content']=void 0x0,await this['update_content'](a,'Reward',this['object_address']);if(!this['content'])a71m('invalid\x20parameter','CallReward_Data.data.object:'+this['object_address']);this['permission_address']=this['content']['permission'],this['reward_type']=a71n(this['content']['type_raw'],'reward::Reward');if(!this['permission_address'])a71m('invalid\x20parameter','CallReward_Data.data.object.permission\x20is\x20empty');if(!a71g(this['reward_type']))a71m('invalid\x20argument\x20type','CallReward_Data.data.object.type_parameter\x20is\x20empty');}else{const b=a71e(this['data']['object']);this['permission_address']=await a71l(b?.['permission']),this['new_permission_description']=a71j(b?.['permission']),this['reward_type']=b?.['type_parameter'];if(!a71g(this['reward_type']))a71m('invalid\x20argument\x20type','CallReward_Data.data.object.type\x20invalid');}if(this['data']['claim']!=null&&!a71a(this['data']['claim'])){const c=await LocalMark['Instance']()['get_address'](this['data']['claim']);if(!c||!a71a(c))a71m('invalid\x20address','claim:\x20'+this['data']['claim']);this['data']['claim']=c;}}async['call'](a){await this['prepare'](a);const b=[],c=[],d=this['content'],e=h=>{if(this['permission_address']&&!c['includes'](h))c['push'](h);};if(this['permission_address']&&!this['object_address'])e(0x96);if(this['data']?.['claim']!=null){const h=this['data']['claim'];if(d){const i=d['guards']['find'](j=>j['guard']===h);if(!i)a71m('invalid\x20parameter','Guard\x20'+h+'\x20is\x20not\x20fount\x20in\x20reward\x20guards\x20'+d['guards']['map'](j=>j['guard']));if(i?.['amount']?.['type']===0x1&&BigInt(i?.['amount']?.['value'])>BigInt(d['balance']))a71m('invalid\x20parameter','Guard\x20'+h+'\x20amount\x20'+i?.['amount']?.['value']+'\x20is\x20greater\x20than\x20reward\x20balance\x20'+d['balance']);}b['push'](h);}if(this['permission_address']&&this['data']?.['description']!=null&&this['object_address'])e(0x97);if(this['permission_address']&&this['data']?.['coin_add']!=null)e(0x99);if(this['permission_address']&&this['data']?.['receive']!=null)e(0x9a);if(this['permission_address']&&this['data']?.['guard_expiration_time']!==void 0x0)e(0x9b);if(this['permission_address']&&this['data']?.['guard_add']!=null)e(0x98);if(this['permission_address']&&this['data']?.['guard_remove_expired'])e(0x194);if(this['permission_address']&&this['data']?.['owner_receive']!=null)e(0x9c);if(this['permission_address']&&this['data']?.['um']!==void 0x0)e(0x9d);if(this['permission_address']||b['length']>0x0)return await this['check_permission_and_call'](a,this['permission_address'],c,b);return await this['exec'](a);}async['operate'](a,b,c,d){let e=this['permission_address'],f=this['object_address'];const g=this['content'];if(!this['object_address']){if(!e)e=newPermission(b,this['new_permission_description']??'');if(e&&this['reward_type'])f=newReward(b,this['reward_type'],a71f(b,e),this['data']?.['description']??'',c);}if(!f||!e||!this['reward_type'])a71m('invalid\x20parameter','CallReward_Data.data.object:'+this['object_address']);if(this['data']?.['claim']!=null)claim(b,f,this['reward_type'],this['data']['claim'],c);if(this['data']?.['description']!=null&&this['object_address'])description_set(b,f,this['reward_type'],e,this['data']['description'],c);if(this['data']?.['coin_add']!=null)await coin_add(a,b,f,this['reward_type'],e,this['data']['coin_add'],c);if(this['data']?.['receive']!=null&&this['object_address']){if(this['data']['receive']==='recently'){const h=await a71q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});if(Array['isArray'](h))a71m('invalid\x20parameter','CallAllocation_Data.data.received_coins:\x20received\x20is\x20ReceivedNormal[]');else this['data']['receive']=h;}if(typeof this['data']['receive']==='object'&&'received'in this['data']['receive']&&this['data']['receive']['received']?.['length']>0x0){if(this['data']['receive']?.['token_type']!==this['reward_type'])a71m('invalid\x20parameter','CallReward_Data.data.receive.token_type:'+this['data']['receive']?.['token_type']);for(const i of this['data']['receive']['received']){const [j,k]=await Promise['all']([LocalMark['Instance']()['get_address'](i['id']),LocalMark['Instance']()['get_address'](i['payment'])]);if(k&&j)receive(b,f,this['reward_type'],e,a71f(b,j),a71f(b,k),c);else a71m('invalid\x20parameter','Payment\x20object\x20'+i['payment']+'\x20or\x20received\x20object\x20'+i['id']+'\x20is\x20not\x20valid');}}}if(this['data']?.['guard_add']!=null){if(g&&g['guard_not_added_expiration_time']!=null&&BigInt(g['guard_not_added_expiration_time'])>=BigInt(Date['now']()))a71m('invalid\x20parameter','The\x20time\x20lock\x20does\x20not\x20allow\x20the\x20addition\x20of\x20new\x20guards.\x20'+this['data']['guard_expiration_time']+'\x20\x20is\x20before\x20current\x20time\x20'+Date['now']());if(this['data']['guard_add']['length']>0xc8)a71m('invalid\x20parameter','guard_add\x20count\x20exceeds\x20maximum\x20limit\x20200');await Promise['all'](this['data']['guard_add']['map'](l=>guard_add(b,f,this['reward_type'],e,l,c)));}if(this['data']['guard_remove_expired'])guard_remove_expired(b,f,this['reward_type'],e,c);if(this['data']?.['guard_expiration_time']!==void 0x0)guard_expiration_time_add(b,f,this['reward_type'],e,this['data']['guard_expiration_time'],c);if(this['data']?.['owner_receive']!=null&&this['object_address']){if(this['data']['owner_receive']==='recently')this['data']['owner_receive']=await a71q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});await a71p(b,f,e,this['data']['owner_receive'],this['reward_type'],l=>'0x2::reward::'+l,c);}if(this['data']['um']!==void 0x0){let l=null;if(this['data']['um']){l=await LocalMark['Instance']()['get_address'](this['data']['um'])||null;if(!l)a71m('invalid\x20parameter','CallReward_Data.data.um:'+this['data']['um']);}um_set(b,f,this['reward_type'],e,l,c);}if(!this['permission_address']){const m=a71e(this['data']?.['object']);await this['new_with_mark'](a,b,'Permission',a71t(b,e),a71e(m['permission']));}if(!this['object_address'])await this['new_with_mark'](a,b,'Reward',create(b,f,this['reward_type']),a71e(this['data']?.['object']));}};const MAX_GUARD_COUNT=0xc8,MAX_RECORD_COUNT=0x1450;function create(a,b,c){a71o([b]);if(!a71g(c))a71m('invalid\x20parameter','Create\x20reward\x20type\x20'+c+'\x20is\x20not\x20valid');return a['moveCall']({'target':a71k('create'),'arguments':[a71f(a,b)],'typeArguments':[c]});}async function reward_guard(a,b){const c=await LocalMark['Instance']()['get_address'](b['guard']);if(c)b['guard']=c;else a71m('invalid\x20parameter','Guard\x20'+b['guard']+'\x20is\x20not\x20valid');a71o([b['guard']]);if('GuardIdentifier'in b['recipient']){const d=b['recipient']['GuardIdentifier'];if(typeof d!=='number')a71m('invalid\x20parameter','Recipient\x20GuardIdentifier\x20'+d+'\x20must\x20be\x20a\x20number');if(!a71d(d))a71m('invalid\x20parameter','Recipient\x20GuardIdentifier\x20'+d+'\x20must\x20be\x20a\x20valid\x20u8');if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_u8_u8'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](d),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_u8_u64'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](d),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}else{if('Entity'in b['recipient']){const e=b['recipient']['Entity'],f=await GetAccountOrMark_Address(e);if(!f)a71m('invalid\x20parameter','Recipient\x20Entity\x20'+e+'\x20must\x20be\x20a\x20valid\x20address');if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_entity_u8'),'arguments':[a71f(a,b['guard']),a['pure']['address'](f),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_entity_u64'),'arguments':[a71f(a,b['guard']),a['pure']['address'](f),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}else{if('Signer'in b['recipient']){if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_signer_u8'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_signer_u64'),'arguments':[a71f(a,b['guard']),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}}}a71m('invalid\x20parameter','Invalid\x20recipient\x20or\x20amount\x20type\x20combination');}function claim(a,b,c,d,e){if(!e)a71m('invalid\x20parameter','CallReward_Data.data.claim:\x20passport\x20is\x20required');a71o([b,e,d]);if(!a71g(c))a71m('invalid\x20argument\x20type','Invalid\x20reward\x20type\x20'+c);return a['moveCall']({'target':a71k('claim'),'arguments':[a71f(a,b),a71f(a,e),a71f(a,d),a['object']['clock']()],'typeArguments':[c]});}function newReward(a,b,c,d,e){a71o([c,e]);if(!a71g(b))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+b);if(typeof d==='string'&&!a71b(d))a71m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a71i);if(e)return a['moveCall']({'target':a71k('new_with_passport'),'arguments':[a71f(a,c),a71f(a,e),a71h(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});else return a['moveCall']({'target':a71k('new'),'arguments':[a71f(a,c),a71h(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});}function description_set(a,b,c,d,e,f){a71o([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(typeof e==='string'&&!a71b(e))a71m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a71i);if(f)a['moveCall']({'target':a71k('description_set_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),a71h(a,e)],'typeArguments':[c]});else a['moveCall']({'target':a71k('description_set'),'arguments':[a71f(a,b),a71f(a,d),a71h(a,e)],'typeArguments':[c]});}async function guard_add(a,b,c,d,e,f){a71o([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);const g=await reward_guard(a,e);if(!g)a71m('invalid\x20parameter','CallReward_Data.data.guard_add\x20'+e+'\x20failed');if(f)a['moveCall']({'target':a71k('guard_add_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),g,a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_add'),'arguments':[a71f(a,b),a71f(a,d),g,a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}function guard_remove_expired(a,b,c,d,e){a71o([b,d,e]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(e)a['moveCall']({'target':a71k('guard_remove_expired_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_remove_expired'),'arguments':[a71f(a,b),a71f(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}async function coin_add(a,b,d,e,f,g,h){a71o([d,f,h]);if(!a71g(e))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+e);const i=await a71r(a,b,g,e);if(h)b['moveCall']({'target':a71k('coin_add_with_passport'),'arguments':[a71f(b,d),a71f(b,f),a71f(b,h),i],'typeArguments':[e]});else b['moveCall']({'target':a71k('coin_add'),'arguments':[a71f(b,d),a71f(b,f),i],'typeArguments':[e]});}function receive(a,b,c,d,e,f,g){a71o([b,d,g,e,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(g)return a['moveCall']({'target':a71k('receive_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,g),a71f(a,e),a71f(a,f)],'typeArguments':[c]});else return a['moveCall']({'target':a71k('receive'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a71f(a,f)],'typeArguments':[c]});}function guard_expiration_time_add(a,b,c,d,e,f){a71o([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(f)a['moveCall']({'target':a71k('guard_expiration_time_add_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),a['pure']['option']('u64',e??null),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_expiration_time_add'),'arguments':[a71f(a,b),a71f(a,d),a['pure']['option']('u64',e??null),a['object']['clock']()],'typeArguments':[c]});}function um_set(a,b,c,d,e,f){a71o([b,d]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(e){if(f)a['moveCall']({'target':a71k('um_set_with_passport'),'arguments':[a71f(a,b),a71f(a,d),f,a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('um_set'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}else{if(f)a['moveCall']({'target':a71k('um_none_with_passport'),'arguments':[a71f(a,b),a71f(a,d),f,a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('um_none'),'arguments':[a71f(a,b),a71f(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}}export{CallReward,MAX_GUARD_COUNT,MAX_RECORD_COUNT,claim,coin_add,create,description_set,guard_add,guard_expiration_time_add,guard_remove_expired,newReward,receive,transformRewardInput,um_set};
|
|
1
|
+
import{a as a71a}from'../../wow-types-DcqbnAaK.mjs';import{B as a71b,J as a71c,Y as a71d,c as a71e,dt as a71f,f as a71g,g as a71h,l as a71i,pt as a71j,st as a71k,u as a71l}from'../../common-BDlb-AoC.mjs';import{o as a71m}from'../../exception-C6IYkBi6.mjs';import{LocalMark}from'../local/local.mjs';import{GetAccountOrMark_Address}from'../local/index.mjs';import{ct as a71n,nt as a71o,rt as a71p}from'../../object-BaLfg7ui.mjs';import{t as a71q}from'../../received-Cfbf_dGN.mjs';import{r as a71r,t as a71s}from'../../base-Bem5gVfE.mjs';import{create as a71t,newPermission}from'./permission.mjs';function convertAmountType(a){if(typeof a==='number')return a;const b=a['toUpperCase']();if(b==='GUARDU64IDENTIFIER'||b==='GUARD_U64_IDENTIFIER')return 0x0;if(b==='FIXED')return 0x1;return 0x1;}function transformRewardInput(a){if(!a)return a;const b={...a};if(b['guard_add']&&Array['isArray'](b['guard_add']))b['guard_add']=b['guard_add']['map'](c=>{if(c['amount']&&typeof c['amount']['type']==='string')return{...c,'amount':{...c['amount'],'type':convertAmountType(c['amount']['type'])}};return c;});return b;}var CallReward=class extends a71s{constructor(a){super(),this['object_address']=void 0x0,this['permission_address']=void 0x0,this['new_permission_description']=void 0x0,this['reward_type']=void 0x0,this['data']=a;}async['prepare'](a){await super['prepare'](a);if(!this['object_address'])this['object_address']=await a71l(this['data']?.['object']);if(this['object_address']){this['content']=void 0x0,await this['update_content'](a,'Reward',this['object_address']);if(!this['content'])a71m('invalid\x20parameter','CallReward_Data.data.object:'+this['object_address']);this['permission_address']=this['content']['permission'],this['reward_type']=a71p(this['content']['type_raw'],'reward::Reward');if(!this['permission_address'])a71m('invalid\x20parameter','CallReward_Data.data.object.permission\x20is\x20empty');if(!a71g(this['reward_type']))a71m('invalid\x20argument\x20type','CallReward_Data.data.object.type_parameter\x20is\x20empty');}else{const b=a71e(this['data']['object']);this['permission_address']=await a71l(b?.['permission']),this['new_permission_description']=a71i(b?.['permission']),this['reward_type']=b?.['type_parameter'];if(!a71g(this['reward_type']))a71m('invalid\x20argument\x20type','CallReward_Data.data.object.type\x20invalid');}if(this['data']['claim']!=null&&!a71a(this['data']['claim'])){const c=await LocalMark['Instance']()['get_address'](this['data']['claim']);if(!c||!a71a(c))a71m('invalid\x20address','claim:\x20'+this['data']['claim']);this['data']['claim']=c;}}async['call'](a){await this['prepare'](a);const b=[],c=[],d=this['content'],e=h=>{if(this['permission_address']&&!c['includes'](h))c['push'](h);};if(this['permission_address']&&!this['object_address'])e(0x96);if(this['data']?.['claim']!=null){const h=this['data']['claim'];if(d){const i=d['guards']['find'](j=>j['guard']===h);if(!i)a71m('invalid\x20parameter','Guard\x20'+h+'\x20is\x20not\x20fount\x20in\x20reward\x20guards\x20'+d['guards']['map'](j=>j['guard']));if(i?.['amount']?.['type']===0x1&&BigInt(i?.['amount']?.['value'])>BigInt(d['balance']))a71m('invalid\x20parameter','Guard\x20'+h+'\x20amount\x20'+i?.['amount']?.['value']+'\x20is\x20greater\x20than\x20reward\x20balance\x20'+d['balance']);}b['push'](h);}if(this['permission_address']&&this['data']?.['description']!=null&&this['object_address'])e(0x97);if(this['permission_address']&&this['data']?.['coin_add']!=null)e(0x99);if(this['permission_address']&&this['data']?.['receive']!=null)e(0x9a);if(this['permission_address']&&this['data']?.['guard_expiration_time']!==void 0x0)e(0x9b);if(this['permission_address']&&this['data']?.['guard_add']!=null)e(0x98);if(this['permission_address']&&this['data']?.['guard_remove_expired'])e(0x194);if(this['permission_address']&&this['data']?.['owner_receive']!=null)e(0x9c);if(this['permission_address']&&this['data']?.['um']!==void 0x0)e(0x9d);if(this['permission_address']||b['length']>0x0)return await this['check_permission_and_call'](a,this['permission_address'],c,b);return await this['exec'](a);}async['operate'](a,b,c,d){let e=this['permission_address'],f=this['object_address'];const g=this['content'];if(!this['object_address']){if(!e)e=newPermission(b,this['new_permission_description']??'');if(e&&this['reward_type'])f=newReward(b,this['reward_type'],a71f(b,e),this['data']?.['description']??'',c);}if(!f||!e||!this['reward_type'])a71m('invalid\x20parameter','CallReward_Data.data.object:'+this['object_address']);if(this['data']?.['claim']!=null)claim(b,f,this['reward_type'],this['data']['claim'],c);if(this['data']?.['description']!=null&&this['object_address'])description_set(b,f,this['reward_type'],e,this['data']['description'],c);if(this['data']?.['coin_add']!=null)await coin_add(a,b,f,this['reward_type'],e,this['data']['coin_add'],c);if(this['data']?.['receive']!=null&&this['object_address']){if(this['data']['receive']==='recently'){const h=await a71q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});if(Array['isArray'](h))a71m('invalid\x20parameter','CallAllocation_Data.data.received_coins:\x20received\x20is\x20ReceivedNormal[]');else this['data']['receive']=h;}if(typeof this['data']['receive']==='object'&&'received'in this['data']['receive']&&this['data']['receive']['received']?.['length']>0x0){if(this['data']['receive']?.['token_type']!==this['reward_type'])a71m('invalid\x20parameter','CallReward_Data.data.receive.token_type:'+this['data']['receive']?.['token_type']);for(const i of this['data']['receive']['received']){const [j,k]=await Promise['all']([LocalMark['Instance']()['get_address'](i['id']),LocalMark['Instance']()['get_address'](i['payment'])]);if(k&&j)receive(b,f,this['reward_type'],e,a71f(b,j),a71f(b,k),c);else a71m('invalid\x20parameter','Payment\x20object\x20'+i['payment']+'\x20or\x20received\x20object\x20'+i['id']+'\x20is\x20not\x20valid');}}}if(this['data']?.['guard_add']!=null){if(g&&g['guard_not_added_expiration_time']!=null&&BigInt(g['guard_not_added_expiration_time'])>=BigInt(Date['now']()))a71m('invalid\x20parameter','The\x20time\x20lock\x20does\x20not\x20allow\x20the\x20addition\x20of\x20new\x20guards.\x20'+this['data']['guard_expiration_time']+'\x20\x20is\x20before\x20current\x20time\x20'+Date['now']());if(this['data']['guard_add']['length']>0xc8)a71m('invalid\x20parameter','guard_add\x20count\x20exceeds\x20maximum\x20limit\x20200');await Promise['all'](this['data']['guard_add']['map'](l=>guard_add(b,f,this['reward_type'],e,l,c)));}if(this['data']['guard_remove_expired'])guard_remove_expired(b,f,this['reward_type'],e,c);if(this['data']?.['guard_expiration_time']!==void 0x0)guard_expiration_time_add(b,f,this['reward_type'],e,this['data']['guard_expiration_time'],c);if(this['data']?.['owner_receive']!=null&&this['object_address']){if(this['data']['owner_receive']==='recently')this['data']['owner_receive']=await a71q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});await a71o(b,f,e,this['data']['owner_receive'],this['reward_type'],l=>'0x2::reward::'+l,c);}if(this['data']['um']!==void 0x0){let l=null;if(this['data']['um']){l=await LocalMark['Instance']()['get_address'](this['data']['um'])||null;if(!l)a71m('invalid\x20parameter','CallReward_Data.data.um:'+this['data']['um']);}um_set(b,f,this['reward_type'],e,l,c);}if(!this['permission_address']){const m=a71e(this['data']?.['object']);await this['new_with_mark'](a,b,'Permission',a71t(b,e),a71e(m['permission']));}if(!this['object_address'])await this['new_with_mark'](a,b,'Reward',create(b,f,this['reward_type']),a71e(this['data']?.['object']));}};const MAX_GUARD_COUNT=0xc8,MAX_RECORD_COUNT=0x1450;function create(a,b,c){a71n([b]);if(!a71g(c))a71m('invalid\x20parameter','Create\x20reward\x20type\x20'+c+'\x20is\x20not\x20valid');return a['moveCall']({'target':a71k('create'),'arguments':[a71f(a,b)],'typeArguments':[c]});}async function reward_guard(a,b){const c=await LocalMark['Instance']()['get_address'](b['guard']);if(c)b['guard']=c;else a71m('invalid\x20parameter','Guard\x20'+b['guard']+'\x20is\x20not\x20valid');a71n([b['guard']]);if('GuardIdentifier'in b['recipient']){const d=b['recipient']['GuardIdentifier'];if(typeof d!=='number')a71m('invalid\x20parameter','Recipient\x20GuardIdentifier\x20'+d+'\x20must\x20be\x20a\x20number');if(!a71d(d))a71m('invalid\x20parameter','Recipient\x20GuardIdentifier\x20'+d+'\x20must\x20be\x20a\x20valid\x20u8');if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_u8_u8'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](d),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_u8_u64'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](d),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}else{if('Entity'in b['recipient']){const e=b['recipient']['Entity'],f=await GetAccountOrMark_Address(e);if(!f)a71m('invalid\x20parameter','Recipient\x20Entity\x20'+e+'\x20must\x20be\x20a\x20valid\x20address');if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_entity_u8'),'arguments':[a71f(a,b['guard']),a['pure']['address'](f),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_entity_u64'),'arguments':[a71f(a,b['guard']),a['pure']['address'](f),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}else{if('Signer'in b['recipient']){if(b['amount']['type']===0x0){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20value\x20must\x20be\x20a\x20number');if(!a71d(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20GuardU64Identifier\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u8');return a['moveCall']({'target':a71k('guard_signer_u8'),'arguments':[a71f(a,b['guard']),a['pure']['u8'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}else{if(b['amount']['type']===0x1){if(typeof b['amount']['value']!=='number')a71m('invalid\x20parameter','Amount\x20Fixed\x20value\x20must\x20be\x20a\x20number');if(!a71c(b['amount']['value']))a71m('invalid\x20parameter','Amount\x20Fixed\x20'+b['amount']['value']+'\x20must\x20be\x20a\x20valid\x20u64');return a['moveCall']({'target':a71k('guard_signer_u64'),'arguments':[a71f(a,b['guard']),a['pure']['u64'](b['amount']['value']),a['pure']['option']('u64',b['expiration_time']??null),a['pure']['option']('u8',b['store_from_id']??null)]});}}}}}a71m('invalid\x20parameter','Invalid\x20recipient\x20or\x20amount\x20type\x20combination');}function claim(a,b,c,d,e){if(!e)a71m('invalid\x20parameter','CallReward_Data.data.claim:\x20passport\x20is\x20required');a71n([b,e,d]);if(!a71g(c))a71m('invalid\x20argument\x20type','Invalid\x20reward\x20type\x20'+c);return a['moveCall']({'target':a71k('claim'),'arguments':[a71f(a,b),a71f(a,e),a71f(a,d),a['object']['clock']()],'typeArguments':[c]});}function newReward(a,b,c,d,e){a71n([c,e]);if(!a71g(b))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+b);if(typeof d==='string'&&!a71b(d))a71m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a71h);if(e)return a['moveCall']({'target':a71k('new_with_passport'),'arguments':[a71f(a,c),a71f(a,e),a71j(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});else return a['moveCall']({'target':a71k('new'),'arguments':[a71f(a,c),a71j(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});}function description_set(a,b,c,d,e,f){a71n([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(typeof e==='string'&&!a71b(e))a71m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a71h);if(f)a['moveCall']({'target':a71k('description_set_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),a71j(a,e)],'typeArguments':[c]});else a['moveCall']({'target':a71k('description_set'),'arguments':[a71f(a,b),a71f(a,d),a71j(a,e)],'typeArguments':[c]});}async function guard_add(a,b,c,d,e,f){a71n([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);const g=await reward_guard(a,e);if(!g)a71m('invalid\x20parameter','CallReward_Data.data.guard_add\x20'+e+'\x20failed');if(f)a['moveCall']({'target':a71k('guard_add_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),g,a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_add'),'arguments':[a71f(a,b),a71f(a,d),g,a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}function guard_remove_expired(a,b,c,d,e){a71n([b,d,e]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(e)a['moveCall']({'target':a71k('guard_remove_expired_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_remove_expired'),'arguments':[a71f(a,b),a71f(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}async function coin_add(a,b,d,e,f,g,h){a71n([d,f,h]);if(!a71g(e))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+e);const i=await a71r(a,b,g,e);if(h)b['moveCall']({'target':a71k('coin_add_with_passport'),'arguments':[a71f(b,d),a71f(b,f),a71f(b,h),i],'typeArguments':[e]});else b['moveCall']({'target':a71k('coin_add'),'arguments':[a71f(b,d),a71f(b,f),i],'typeArguments':[e]});}function receive(a,b,c,d,e,f,g){a71n([b,d,g,e,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(g)return a['moveCall']({'target':a71k('receive_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,g),a71f(a,e),a71f(a,f)],'typeArguments':[c]});else return a['moveCall']({'target':a71k('receive'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a71f(a,f)],'typeArguments':[c]});}function guard_expiration_time_add(a,b,c,d,e,f){a71n([b,d,f]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(f)a['moveCall']({'target':a71k('guard_expiration_time_add_with_passport'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,f),a['pure']['option']('u64',e??null),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('guard_expiration_time_add'),'arguments':[a71f(a,b),a71f(a,d),a['pure']['option']('u64',e??null),a['object']['clock']()],'typeArguments':[c]});}function um_set(a,b,c,d,e,f){a71n([b,d]);if(!a71g(c))a71m('invalid\x20parameter','Invalid\x20reward\x20type\x20'+c);if(e){if(f)a['moveCall']({'target':a71k('um_set_with_passport'),'arguments':[a71f(a,b),a71f(a,d),f,a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('um_set'),'arguments':[a71f(a,b),a71f(a,d),a71f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}else{if(f)a['moveCall']({'target':a71k('um_none_with_passport'),'arguments':[a71f(a,b),a71f(a,d),f,a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a71k('um_none'),'arguments':[a71f(a,b),a71f(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}}export{CallReward,MAX_GUARD_COUNT,MAX_RECORD_COUNT,claim,coin_add,create,description_set,guard_add,guard_expiration_time_add,guard_remove_expired,newReward,receive,transformRewardInput,um_set};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $s as
|
|
1
|
+
import { $s as MAX_SALE_COUNT, Ac as repository_remove, Bc as stock_add, Bs as DEFAULT_LOCK_DURATION, Cc as order_allocators_set, Dc as publish, Ec as price_reduce, Fc as sales_add, Gs as MAX_ARBITRATION_COUNT, Hc as um_set, Hs as DISCOUNT_TYPE_MINUS, Ic as sales_clear, Is as Buy, Js as MAX_DISCOUNT_RECEIVER_ONCE, Ks as MAX_CUSTOMER_REQUIRED_INFO_COUNT, Lc as sales_remove, Ls as CallService, Mc as reward_clear, Nc as reward_remove, Oc as repository_add, Pc as sale_suspension, Qs as MAX_REWARD_COUNT, Rc as sales_set, Rs as CallService_Data, Sc as newService, Tc as price_add, Us as DISCOUNT_TYPE_RATES, Vc as stock_reduce, Vs as DEFAULT_SETTING_LOCK_DURATION, Ws as Discount, Xs as MAX_REPOSITORY_COUNT, Ys as MAX_DISCOUNT_TOTAL_COUNT, Zs as MAX_REQUIRED_INFO_SIZE, _c as discount, ac as ServiceSaleObject, bc as location_set, cc as arbitrations_remove, dc as compensation_fund_add, ec as NAMED_OPERATOR_ORDER_PAYER, fc as compensation_fund_receive, gc as description_set, hc as customer_required_set, ic as ServiceSale, jc as reward_add, kc as repository_clear, lc as buy, mc as create, nc as ServiceQuoteObject, oc as arbitration_clear, pc as compensation_fund_withdraw, qs as MAX_DISCOUNT_COUNT_ONCE, rc as ServiceRequiredObject, sc as arbitrations_add, tc as ServiceBuyItem, uc as buy_guard_set, vc as discount_destroy, wc as pause, xc as machine_set, yc as discount_send, zc as setting_lock_duration_add, zs as CompensationClaim } from "../../index-BeiKuYsk.mjs";
|
|
2
2
|
export { Buy, CallService, CallService_Data, CompensationClaim, DEFAULT_LOCK_DURATION, DEFAULT_SETTING_LOCK_DURATION, DISCOUNT_TYPE_MINUS, DISCOUNT_TYPE_RATES, Discount, MAX_ARBITRATION_COUNT, MAX_CUSTOMER_REQUIRED_INFO_COUNT, MAX_DISCOUNT_COUNT_ONCE, MAX_DISCOUNT_RECEIVER_ONCE, MAX_DISCOUNT_TOTAL_COUNT, MAX_REPOSITORY_COUNT, MAX_REQUIRED_INFO_SIZE, MAX_REWARD_COUNT, MAX_SALE_COUNT, NAMED_OPERATOR_ORDER_PAYER, ServiceBuyItem, ServiceQuoteObject, ServiceRequiredObject, ServiceSale, ServiceSaleObject, arbitration_clear, arbitrations_add, arbitrations_remove, buy, buy_guard_set, compensation_fund_add, compensation_fund_receive, compensation_fund_withdraw, create, customer_required_set, description_set, discount, discount_destroy, discount_send, location_set, machine_set, newService, order_allocators_set, pause, price_add, price_reduce, publish, repository_add, repository_clear, repository_remove, reward_add, reward_clear, reward_remove, sale_suspension, sales_add, sales_clear, sales_remove, sales_set, setting_lock_duration_add, stock_add, stock_reduce, um_set };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as a72a,B as a72b,C as a72c,D as a72d,E as a72e,F as a72f,G as a72g,H as a72h,I as a72i,J as a72j,K as a72k,L as a72l,M as a72m,N as a72n,O as a72o,P as a72p,Q as a72q,R as a72r,S as a72s,T as a72t,U as a72u,V as a72v,W as a72w,X as a72x,Y as a72y,Z as a72z,_ as a72A,a as a72B,b as a72C,c as a72D,d as a72E,f as a72F,g as a72G,h as a72H,i as a72I,j as a72J,k as a72K,l as a72L,m as a72M,n as a72N,o as a72O,p as a72P,q as a72Q,r as a72R,s as a72S,t as a72T,u as a72U,v as a72V,w as a72W,x as a72X,y as a72Y,z as a72Z}from'../../service-
|
|
1
|
+
import{A as a72a,B as a72b,C as a72c,D as a72d,E as a72e,F as a72f,G as a72g,H as a72h,I as a72i,J as a72j,K as a72k,L as a72l,M as a72m,N as a72n,O as a72o,P as a72p,Q as a72q,R as a72r,S as a72s,T as a72t,U as a72u,V as a72v,W as a72w,X as a72x,Y as a72y,Z as a72z,_ as a72A,a as a72B,b as a72C,c as a72D,d as a72E,f as a72F,g as a72G,h as a72H,i as a72I,j as a72J,k as a72K,l as a72L,m as a72M,n as a72N,o as a72O,p as a72P,q as a72Q,r as a72R,s as a72S,t as a72T,u as a72U,v as a72V,w as a72W,x as a72X,y as a72Y,z as a72Z}from'../../service-70b2Ro-x.mjs';export{a72T as CallService,a72N as DEFAULT_LOCK_DURATION,a72R as DEFAULT_SETTING_LOCK_DURATION,a72I as DISCOUNT_TYPE_MINUS,a72B as DISCOUNT_TYPE_RATES,a72O as MAX_ARBITRATION_COUNT,a72S as MAX_CUSTOMER_REQUIRED_INFO_COUNT,a72D as MAX_DISCOUNT_COUNT_ONCE,a72L as MAX_DISCOUNT_RECEIVER_ONCE,a72U as MAX_DISCOUNT_TOTAL_COUNT,a72E as MAX_REPOSITORY_COUNT,a72F as MAX_REQUIRED_INFO_SIZE,a72P as MAX_REWARD_COUNT,a72M as MAX_SALE_COUNT,a72H as NAMED_OPERATOR_ORDER_PAYER,a72G as arbitration_clear,a72A as arbitrations_add,a72V as arbitrations_remove,a72Y as buy,a72C as buy_guard_set,a72X as compensation_fund_add,a72s as compensation_fund_receive,a72c as compensation_fund_withdraw,a72W as create,a72t as customer_required_set,a72e as description_set,a72d as discount,a72o as discount_destroy,a72K as discount_send,a72a as location_set,a72J as machine_set,a72m as newService,a72n as order_allocators_set,a72p as pause,a72f as price_add,a72i as price_reduce,a72l as publish,a72r as repository_add,a72Z as repository_clear,a72b as repository_remove,a72v as reward_add,a72h as reward_clear,a72u as reward_remove,a72w as sale_suspension,a72g as sales_add,a72k as sales_clear,a72Q as sales_remove,a72j as sales_set,a72y as setting_lock_duration_add,a72x as stock_add,a72z as stock_reduce,a72q as um_set};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ao as
|
|
1
|
+
import { Ao as description_set, Bo as receive, Do as MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, Eo as MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, Fo as external_withdraw, Ho as withdraw, Io as external_withdraw_guard_add, Lo as external_withdraw_guard_clear, Mo as external_deposit_guard_add, No as external_deposit_guard_clear, Oo as create, Po as external_deposit_guard_remove, Ro as external_withdraw_guard_remove, To as CallTreasury_Data, Vo as um_set, jo as external_deposit, ko as deposit, wo as CallTreasury, zo as newTreasury } from "../../index-BeiKuYsk.mjs";
|
|
2
2
|
export { CallTreasury, CallTreasury_Data, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, create, deposit, description_set, external_deposit, external_deposit_guard_add, external_deposit_guard_clear, external_deposit_guard_remove, external_withdraw, external_withdraw_guard_add, external_withdraw_guard_clear, external_withdraw_guard_remove, newTreasury, receive, um_set, withdraw };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as a73a}from'../../wow-types-DcqbnAaK.mjs';import{B as a73b,J as a73c,Y as a73d,bt as a73e,c as a73f,dt as a73g,f as a73h,ft as a73i,g as a73j,l as a73k,u as a73l}from'../../common-uweycQjC.mjs';import{o as a73m}from'../../exception-C6IYkBi6.mjs';import{LocalMark}from'../local/local.mjs';import{GetAccountOrMark_Address}from'../local/index.mjs';import{nt as a73n,st as a73o,tt as a73p}from'../../object-YcOt7Qyl.mjs';import{t as a73q}from'../../received-CI0eLHuI.mjs';import{F as a73r,P as a73s}from'../../passport-aLeINryx.mjs';import{r as a73t,t as a73u}from'../../base-CmGBEIzb.mjs';import{paymentInfo}from'./payment.mjs';import{create as a73v,newPermission}from'./permission.mjs';var CallTreasury=class extends a73u{constructor(a){super(),this['object_address']=void 0x0,this['permission_address']=void 0x0,this['new_permission_description']=void 0x0,this['parameter_type']=void 0x0,this['data']=a;}async['prepare'](a){await super['prepare'](a);if(!this['object_address'])this['object_address']=await a73l(this['data']?.['object']);if(this['object_address']){this['content']=void 0x0,await this['update_content'](a,'Treasury',this['object_address']);if(!this['content'])a73m('invalid\x20parameter','CallTreasury_Data.data.object:'+this['object_address']);this['permission_address']=this['content']['permission'],this['parameter_type']=a73n(this['content']['type_raw'],'treasury::Treasury');if(!this['permission_address'])a73m('invalid\x20parameter','CallTreasury_Data.data.object.permission\x20is\x20empty');if(!a73h(this['parameter_type']))a73m('invalid\x20argument\x20type','CallTreasury_Data.data.object.type_parameter\x20is\x20empty');}else{const b=a73f(this['data']['object']);this['permission_address']=await a73l(b?.['permission']),this['new_permission_description']=a73k(b?.['permission']),this['parameter_type']=b?.['type_parameter'];if(!a73h(this['parameter_type']))a73m('invalid\x20argument\x20type','CallTreasury_Data.data.object.type_parameter\x20invalid');}if(this['data']['deposit']?.['by_external_deposit_guard']!=null&&!a73a(this['data']['deposit']['by_external_deposit_guard'])){const c=await LocalMark['Instance']()['get_address'](this['data']['deposit']['by_external_deposit_guard']);if(!c||!a73a(c))a73m('invalid\x20address','deposit.by_external_deposit_guard:\x20'+this['data']['deposit']['by_external_deposit_guard']);this['data']['deposit']['by_external_deposit_guard']=c;}if(this['data']['withdraw']?.['amount']&&'by_external_withdraw_guard'in this['data']['withdraw']['amount']&&this['data']['withdraw']['amount']['by_external_withdraw_guard']!=null&&!a73a(this['data']['withdraw']['amount']['by_external_withdraw_guard'])){const d=await LocalMark['Instance']()['get_address'](this['data']['withdraw']['amount']['by_external_withdraw_guard']);if(!d||!a73a(d))a73m('invalid\x20address','withdraw.amount.by_external_withdraw_guard:\x20'+this['data']['withdraw']['amount']['by_external_withdraw_guard']);this['data']['withdraw']['amount']['by_external_withdraw_guard']=d;}}async['call'](a){await this['prepare'](a);const b=[],c=[],d=f=>{if(!b['includes'](f))b['push'](f);},e=f=>{if(this['permission_address']&&!c['includes'](f))c['push'](f);};if(this['permission_address']&&!this['object_address'])e(0xfa);if(this['permission_address']&&this['data']?.['description']!=null&&this['object_address'])e(0xfb);if(this['permission_address']&&this['data']?.['receive']!=null)e(0xfd);if(this['data']?.['deposit']!=null){if(this['data']['deposit']['by_external_deposit_guard'])d(this['data']['deposit']['by_external_deposit_guard']);else{if(this['permission_address'])e(0xfc);}}if(this['data']?.['withdraw']!=null){const f=this['data']['withdraw'];if(f&&f['amount']){if('fixed'in f['amount']){if(this['permission_address'])e(0xfe);}else{if('by_external_withdraw_guard'in f['amount'])d(f['amount']['by_external_withdraw_guard']);}}}if(this['permission_address']&&this['data']?.['external_deposit_guard']!=null)e(0xff);if(this['permission_address']&&this['data']?.['external_withdraw_guard']!=null)e(0x100);if(this['permission_address']&&this['data']?.['owner_receive']!=null)e(0x101);if(this['permission_address']&&this['data']?.['um']!==void 0x0)e(0x102);if(this['permission_address']||b['length']>0x0)return await this['check_permission_and_call'](a,this['permission_address'],c,b);return await this['exec'](a);}async['operate'](a,b,c,d){let e=this['permission_address'],f=this['object_address'];const g=this['content'];if(!this['object_address']){if(!e)e=newPermission(b,this['new_permission_description']??'');if(e&&this['parameter_type'])f=newTreasury(b,this['parameter_type'],e,this['data']?.['description']??'',c);}if(!f||!e)a73m('invalid\x20parameter','CallTreasury_Data.data.object:'+this['object_address']);if(this['data']['description']!=null&&this['object_address'])description_set(b,f,this['parameter_type'],e,this['data']['description'],c);if(this['data']['receive']!=null&&this['object_address']){if(this['data']['receive']==='recently'){const h=await a73q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'type':'CoinWrapper','network':a['network'],'no_cache':a['no_cache']});if(Array['isArray'](h))a73m('invalid\x20parameter','CallAllocation_Data.data.received_coins:\x20received\x20is\x20ReceivedNormal[]');else this['data']['receive']=h;}if(typeof this['data']['receive']==='object'&&'received'in this['data']['receive']&&this['data']['receive']['received']?.['length']>0x0){if(this['data']['receive']['token_type']!==this['parameter_type'])a73m('invalid\x20parameter','token_type\x20'+this['data']['receive']['token_type']+'\x20is\x20not\x20equal\x20to\x20parameter_type\x20'+this['parameter_type']);for(const i of this['data']['receive']['received']){const [j,k]=await Promise['all']([LocalMark['Instance']()['get_address'](i['id']),LocalMark['Instance']()['get_address'](i['payment'])]);if(j&&k)receive(b,f,this['parameter_type'],e,j,k,c);else a73m('invalid\x20argument\x20type','Receive\x20object\x20'+i['id']+'\x20or\x20payment\x20object\x20'+i['payment']+'\x20not\x20found');}}}if(this['data']['deposit']!=null){if(this['data']['deposit']['by_external_deposit_guard']){if(!c)a73m('invalid\x20parameter','Passport\x20is\x20required\x20for\x20external\x20deposit');if(Array['isArray'](this['data']['deposit']['coin']))a73m('invalid\x20parameter','external_deposit\x20does\x20not\x20support\x20multi-coin\x20(CoinParam[]).\x20Move\x20layer\x20has\x20no\x20external_deposit2\x20—\x20pass\x20a\x20single\x20CoinParam\x20instead.');const l=this['data']['deposit']['coin'];await this['new_with_mark'](a,b,'Payment',await external_deposit(a,b,f,this['parameter_type'],c,this['data']['deposit']['by_external_deposit_guard'],l,this['data']['deposit']['payment_info']),this['data']['deposit']['namedNewPayment']);}else await this['new_with_mark'](a,b,'Payment',await deposit(a,b,f,this['parameter_type'],e,this['data']['deposit']['coin'],this['data']['deposit']['payment_info'],c),this['data']['deposit']['namedNewPayment']);}if(this['data']['withdraw']!=null&&this['data']['withdraw']['amount']){if('fixed'in this['data']['withdraw']['amount'])await this['new_with_mark'](a,b,'Payment',await withdraw(a,b,f,this['parameter_type'],e,this['data']['withdraw']['amount']['fixed'],this['data']['withdraw']['recipient'],this['data']['withdraw']['payment_info'],c),this['data']['withdraw']['namedNewPayment']);else{if('by_external_withdraw_guard'in this['data']['withdraw']['amount']){if(!c)a73m('invalid\x20parameter','Passport\x20is\x20required\x20for\x20external\x20withdraw');await this['new_with_mark'](a,b,'Payment',await external_withdraw(a,b,f,this['parameter_type'],c,this['data']['withdraw']['amount']['by_external_withdraw_guard'],this['data']['withdraw']['recipient'],this['data']['withdraw']['payment_info']),this['data']['withdraw']['namedNewPayment']);}}}if(this['data']['external_deposit_guard']!=null)switch(this['data']['external_deposit_guard']['op']){case'add':case'set':if(this['data']['external_deposit_guard']['op']==='set')external_deposit_guard_clear(b,f,this['parameter_type'],e,c);await external_deposit_guard_add(b,f,this['parameter_type'],e,this['data']['external_deposit_guard']['guards'],MAX_EXTERNAL_DEPOSIT_GUARD_COUNT-(g?.['external_deposit_guard']?.['length']??0x0),c);break;case'remove':await external_deposit_guard_remove(b,f,this['parameter_type'],e,this['data']['external_deposit_guard']['guards'],MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,c);break;case'clear':external_deposit_guard_clear(b,f,this['parameter_type'],e,c);break;}if(this['data']['external_withdraw_guard']!=null)switch(this['data']['external_withdraw_guard']['op']){case'add':case'set':if(this['data']['external_withdraw_guard']['op']==='set')external_withdraw_guard_clear(b,f,this['parameter_type'],e,c);await external_withdraw_guard_add(b,f,this['parameter_type'],e,this['data']['external_withdraw_guard']['guards'],MAX_EXTERNAL_WITHDRAW_GUARD_COUNT-(g?.['external_withdraw_guard']?.['length']??0x0),c);break;case'remove':await external_withdraw_guard_remove(b,f,this['parameter_type'],e,this['data']['external_withdraw_guard']['guards'],MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,c);break;case'clear':external_withdraw_guard_clear(b,f,this['parameter_type'],e,c);break;}if(this['data']['owner_receive']!=null&&this['object_address']){if(this['data']['owner_receive']==='recently')this['data']['owner_receive']=await a73q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});await a73p(b,f,e,this['data']['owner_receive'],this['parameter_type'],m=>'0x2::treasury::'+m,c);}if(this['data']['um']!==void 0x0){let m=null;if(this['data']['um']){m=await LocalMark['Instance']()['get_address'](this['data']['um'])||null;if(!m)a73m('invalid\x20parameter','CallTreasury_Data.data.um:'+this['data']['um']);}um_set(b,f,this['parameter_type'],e,m,c);}if(!this['permission_address']){const n=a73f(this['data']?.['object']);await this['new_with_mark'](a,b,'Permission',a73v(b,e),a73f(n['permission']));}if(!this['object_address'])await this['new_with_mark'](a,b,'Treasury',create(b,f,this['parameter_type']),a73f(this['data']?.['object']));}};const MAX_EXTERNAL_DEPOSIT_GUARD_COUNT=a73s,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT=a73r;function newTreasury(a,b,c,d,e){a73o([c,e]);if(typeof d==='string'&&!a73b(d))a73m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a73j);if(!a73h(b))a73m('invalid\x20parameter','New\x20treasury\x20type\x20'+b+'\x20is\x20not\x20valid');if(e)return a['moveCall']({'target':a73e('new_with_passport'),'arguments':[a73g(a,c),a73g(a,e),a73i(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});else return a['moveCall']({'target':a73e('new'),'arguments':[a73g(a,c),a73i(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});}function description_set(a,b,c,d,e,f){a73o([b,d,f]);if(typeof e==='string'&&!a73b(e))a73m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a73j);if(!a73h(c))a73m('invalid\x20parameter','Description\x20set\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(f)a['moveCall']({'target':a73e('description_set_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,f),a73i(a,e)],'typeArguments':[c]});else a['moveCall']({'target':a73e('description_set'),'arguments':[a73g(a,b),a73g(a,d),a73i(a,e)],'typeArguments':[c]});}async function deposit(a,b,d,e,f,g,h,i){a73o([d,f,i]);if(!a73h(e))a73m('invalid\x20parameter','Deposit\x20treasury\x20type\x20'+e+'\x20is\x20not\x20valid');const j=Array['isArray'](g),k=await paymentInfo(a,b,h);if(j){const l=g;if(l['length']===0x0)a73m('invalid\x20parameter','Deposit\x20coins\x20array\x20is\x20empty');const m=await Promise['all'](l['map'](o=>a73t(a,b,o,e))),n=b['makeMoveVec']({'elements':m});if(i)return b['moveCall']({'target':a73e('deposit2_with_passport'),'arguments':[a73g(b,d),a73g(b,f),a73g(b,i),n,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});else return b['moveCall']({'target':a73e('deposit2'),'arguments':[a73g(b,d),a73g(b,f),n,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}else{const o=await a73t(a,b,g,e);if(i)return b['moveCall']({'target':a73e('deposit_with_passport'),'arguments':[a73g(b,d),a73g(b,f),a73g(b,i),o,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});else return b['moveCall']({'target':a73e('deposit'),'arguments':[a73g(b,d),a73g(b,f),o,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}}async function withdraw(a,b,c,d,e,f,g,h,i){a73o([c,e,i]);if(!a73h(d))a73m('invalid\x20parameter','Withdraw\x20treasury\x20type\x20'+d+'\x20is\x20not\x20valid');if(!a73c(f))a73m('invalid\x20u64','Amount\x20'+f+'\x20is\x20not\x20valid');const j=await GetAccountOrMark_Address(g);if(!j)a73m('invalid\x20parameter','Recipient\x20'+g+'\x20is\x20not\x20valid');const k=await paymentInfo(a,b,h);if(i)return b['moveCall']({'target':a73e('withdraw_with_passport'),'arguments':[a73g(b,c),a73g(b,e),a73g(b,i),b['pure']['u64'](f),b['pure']['address'](j),k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});else return b['moveCall']({'target':a73e('withdraw'),'arguments':[a73g(b,c),a73g(b,e),b['pure']['u64'](f),b['pure']['address'](j),k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});}async function external_deposit_guard_add(a,b,c,d,e,f=MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,h){if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73o([b,d,h]);if(!a73h(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');const i=await Promise['all'](e['map'](async k=>{const l=await LocalMark['Instance']()['get_address'](k['guard']);if(!l)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20guard\x20'+k['guard']+'\x20is\x20not\x20valid');if(k['identifier']&&!a73d(k['identifier']))a73m('invalid\x20u8','External\x20deposit\x20guard\x20add\x20identifier\x20'+k['identifier']+'\x20is\x20not\x20optional\x20u8');if(k['store_from_id']&&!a73d(k['store_from_id']))a73m('invalid\x20u8','External\x20deposit\x20guard\x20add\x20store_from_id\x20'+k['store_from_id']+'\x20is\x20not\x20optional\x20u8');return{'guard':k['guard'],'identifier':k['identifier'],'store_from_id':k['store_from_id'],'guard_addr':l};})),j=i['filter'](k=>!k['guard_addr']);if(j['length']>0x0)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20has\x20invalid\x20guards\x20with\x20empty\x20guard_addr:\x20'+JSON['stringify'](j));i['filter'](k=>k['guard_addr']!==void 0x0)['map'](k=>({'guard':k['guard_addr'],'identifier':k['identifier']!==void 0x0?k['identifier']:null,'store_from_id':k['store_from_id']!==void 0x0?k['store_from_id']:null}))['forEach'](k=>{if(h)a['moveCall']({'target':a73e('external_deposit_guard_add_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,h),a73g(a,k['guard']),a['pure']['option']('u8',k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_deposit_guard_add'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,k['guard']),a['pure']['option']('u8',k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});});}async function external_deposit_guard_remove(a,b,c,d,e,f=MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,g){e=await LocalMark['Instance']()['get_many_address_availables'](e);if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20remove\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73o([b,d,g,...e]);if(!a73h(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20remove\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73e('external_deposit_guard_remove_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,g),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_deposit_guard_remove'),'arguments':[a73g(a,b),a73g(a,d),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});}function external_deposit_guard_clear(a,b,c,d,e){a73o([b,d,e]);if(!a73h(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20clear\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e)a['moveCall']({'target':a73e('external_deposit_guard_clear_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_deposit_guard_clear'),'arguments':[a73g(a,b),a73g(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}async function external_withdraw_guard_add(a,b,c,d,e,f=MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,h){if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73o([b,d,h]);if(!a73h(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');const i=await Promise['all'](e['map'](async k=>{const l=await LocalMark['Instance']()['get_address'](k['guard']);if(!l)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20guard\x20'+k['guard']+'\x20is\x20not\x20valid');if(!a73d(k['identifier']))a73m('invalid\x20u8','External\x20withdraw\x20guard\x20add\x20identifier\x20'+k['identifier']+'\x20is\x20not\x20optional\x20u8');if(k['store_from_id']&&!a73d(k['store_from_id']))a73m('invalid\x20u8','External\x20withdraw\x20guard\x20add\x20store_from_id\x20'+k['store_from_id']+'\x20is\x20not\x20optional\x20u8');return{'guard':k['guard'],'identifier':k['identifier'],'store_from_id':k['store_from_id'],'guard_addr':l};})),j=i['filter'](k=>!k['guard_addr']);if(j['length']>0x0)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20has\x20invalid\x20guards\x20with\x20empty\x20guard_addr:\x20'+JSON['stringify'](j));i['filter'](k=>k['guard_addr']!==void 0x0)['map'](k=>({'guard':k['guard_addr'],'identifier':k['identifier'],'store_from_id':k['store_from_id']!==void 0x0?k['store_from_id']:null}))['forEach'](k=>{if(h)a['moveCall']({'target':a73e('external_withdraw_guard_add_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,h),a73g(a,k['guard']),a['pure']['u8'](k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_withdraw_guard_add'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,k['guard']),a['pure']['u8'](k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});});}async function external_withdraw_guard_remove(a,b,c,d,e,f=MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,g){e=await LocalMark['Instance']()['get_many_address_availables'](e);if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20remove\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73o([b,d,g]);if(!a73h(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20remove\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73e('external_withdraw_guard_remove_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,g),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_withdraw_guard_remove'),'arguments':[a73g(a,b),a73g(a,d),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});}function external_withdraw_guard_clear(a,b,c,d,e){a73o([b,d,e]);if(!a73h(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20clear\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e)a['moveCall']({'target':a73e('external_withdraw_guard_clear_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('external_withdraw_guard_clear'),'arguments':[a73g(a,b),a73g(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}function create(a,b,c){a73o([b]);if(!a73h(c))a73m('invalid\x20parameter','Create\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');return a['moveCall']({'target':a73e('create'),'arguments':[a73g(a,b)],'typeArguments':[c]});}async function external_deposit(a,b,d,e,f,g,h,i){a73o([d,f]);if(!a73h(e))a73m('invalid\x20parameter','External\x20deposit\x20treasury\x20type\x20'+e+'\x20is\x20not\x20valid');const [j,k,l]=await Promise['all']([a73t(a,b,h,e),paymentInfo(a,b,i),LocalMark['Instance']()['get_address'](g)]);if(!l)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20'+g+'\x20is\x20not\x20valid');return b['moveCall']({'target':a73e('external_deposit'),'arguments':[a73g(b,d),a73g(b,f),a73g(b,l),j,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}async function external_withdraw(a,b,c,d,e,f,g,h){a73o([c,e]);if(!a73h(d))a73m('invalid\x20parameter','External\x20withdraw\x20treasury\x20type\x20'+d+'\x20is\x20not\x20valid');const [i,j,k]=await Promise['all']([paymentInfo(a,b,h),LocalMark['Instance']()['get_address'](f),GetAccountOrMark_Address(g)]);if(!j)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20'+f+'\x20is\x20not\x20valid');if(!k)a73m('invalid\x20parameter','External\x20withdraw\x20recipient\x20'+g+'\x20is\x20not\x20valid');return b['moveCall']({'target':a73e('external_withdraw'),'arguments':[a73g(b,c),a73g(b,e),a73g(b,j),b['pure']['address'](k),i,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});}function receive(a,b,c,d,e,f,g){if(!f)a73m('invalid\x20parameter','Treasury\x20receive\x20payment\x20is\x20required');a73o([b,d,e,f,g]);if(!a73h(c))a73m('invalid\x20parameter','Treasury\x20receive\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73e('receive_with_passport'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,g),a73g(a,e),a73g(a,f),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('receive'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,e),a73g(a,f),a['object']['clock']()],'typeArguments':[c]});}function um_set(a,b,c,d,e,f){a73o([b,d]);if(!a73h(c))a73m('invalid\x20parameter','Treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e){if(f)a['moveCall']({'target':a73e('um_set_with_passport'),'arguments':[a73g(a,b),a73g(a,d),f,a73g(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('um_set'),'arguments':[a73g(a,b),a73g(a,d),a73g(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}else{if(f)a['moveCall']({'target':a73e('um_none_with_passport'),'arguments':[a73g(a,b),a73g(a,d),f,a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73e('um_none'),'arguments':[a73g(a,b),a73g(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}}export{CallTreasury,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,create,deposit,description_set,external_deposit,external_deposit_guard_add,external_deposit_guard_clear,external_deposit_guard_remove,external_withdraw,external_withdraw_guard_add,external_withdraw_guard_clear,external_withdraw_guard_remove,newTreasury,receive,um_set,withdraw};
|
|
1
|
+
import{a as a73a}from'../../wow-types-DcqbnAaK.mjs';import{B as a73b,J as a73c,Y as a73d,c as a73e,dt as a73f,f as a73g,g as a73h,l as a73i,pt as a73j,u as a73k,xt as a73l}from'../../common-BDlb-AoC.mjs';import{o as a73m}from'../../exception-C6IYkBi6.mjs';import{LocalMark}from'../local/local.mjs';import{GetAccountOrMark_Address}from'../local/index.mjs';import{ct as a73n,nt as a73o,rt as a73p}from'../../object-BaLfg7ui.mjs';import{t as a73q}from'../../received-Cfbf_dGN.mjs';import{F as a73r,P as a73s}from'../../passport-DRaRa4Fd.mjs';import{r as a73t,t as a73u}from'../../base-Bem5gVfE.mjs';import{paymentInfo}from'./payment.mjs';import{create as a73v,newPermission}from'./permission.mjs';var CallTreasury=class extends a73u{constructor(a){super(),this['object_address']=void 0x0,this['permission_address']=void 0x0,this['new_permission_description']=void 0x0,this['parameter_type']=void 0x0,this['data']=a;}async['prepare'](a){await super['prepare'](a);if(!this['object_address'])this['object_address']=await a73k(this['data']?.['object']);if(this['object_address']){this['content']=void 0x0,await this['update_content'](a,'Treasury',this['object_address']);if(!this['content'])a73m('invalid\x20parameter','CallTreasury_Data.data.object:'+this['object_address']);this['permission_address']=this['content']['permission'],this['parameter_type']=a73p(this['content']['type_raw'],'treasury::Treasury');if(!this['permission_address'])a73m('invalid\x20parameter','CallTreasury_Data.data.object.permission\x20is\x20empty');if(!a73g(this['parameter_type']))a73m('invalid\x20argument\x20type','CallTreasury_Data.data.object.type_parameter\x20is\x20empty');}else{const b=a73e(this['data']['object']);this['permission_address']=await a73k(b?.['permission']),this['new_permission_description']=a73i(b?.['permission']),this['parameter_type']=b?.['type_parameter'];if(!a73g(this['parameter_type']))a73m('invalid\x20argument\x20type','CallTreasury_Data.data.object.type_parameter\x20invalid');}if(this['data']['deposit']?.['by_external_deposit_guard']!=null&&!a73a(this['data']['deposit']['by_external_deposit_guard'])){const c=await LocalMark['Instance']()['get_address'](this['data']['deposit']['by_external_deposit_guard']);if(!c||!a73a(c))a73m('invalid\x20address','deposit.by_external_deposit_guard:\x20'+this['data']['deposit']['by_external_deposit_guard']);this['data']['deposit']['by_external_deposit_guard']=c;}if(this['data']['withdraw']?.['amount']&&'by_external_withdraw_guard'in this['data']['withdraw']['amount']&&this['data']['withdraw']['amount']['by_external_withdraw_guard']!=null&&!a73a(this['data']['withdraw']['amount']['by_external_withdraw_guard'])){const d=await LocalMark['Instance']()['get_address'](this['data']['withdraw']['amount']['by_external_withdraw_guard']);if(!d||!a73a(d))a73m('invalid\x20address','withdraw.amount.by_external_withdraw_guard:\x20'+this['data']['withdraw']['amount']['by_external_withdraw_guard']);this['data']['withdraw']['amount']['by_external_withdraw_guard']=d;}}async['call'](a){await this['prepare'](a);const b=[],c=[],d=f=>{if(!b['includes'](f))b['push'](f);},e=f=>{if(this['permission_address']&&!c['includes'](f))c['push'](f);};if(this['permission_address']&&!this['object_address'])e(0xfa);if(this['permission_address']&&this['data']?.['description']!=null&&this['object_address'])e(0xfb);if(this['permission_address']&&this['data']?.['receive']!=null)e(0xfd);if(this['data']?.['deposit']!=null){if(this['data']['deposit']['by_external_deposit_guard'])d(this['data']['deposit']['by_external_deposit_guard']);else{if(this['permission_address'])e(0xfc);}}if(this['data']?.['withdraw']!=null){const f=this['data']['withdraw'];if(f&&f['amount']){if('fixed'in f['amount']){if(this['permission_address'])e(0xfe);}else{if('by_external_withdraw_guard'in f['amount'])d(f['amount']['by_external_withdraw_guard']);}}}if(this['permission_address']&&this['data']?.['external_deposit_guard']!=null)e(0xff);if(this['permission_address']&&this['data']?.['external_withdraw_guard']!=null)e(0x100);if(this['permission_address']&&this['data']?.['owner_receive']!=null)e(0x101);if(this['permission_address']&&this['data']?.['um']!==void 0x0)e(0x102);if(this['permission_address']||b['length']>0x0)return await this['check_permission_and_call'](a,this['permission_address'],c,b);return await this['exec'](a);}async['operate'](a,b,c,d){let e=this['permission_address'],f=this['object_address'];const g=this['content'];if(!this['object_address']){if(!e)e=newPermission(b,this['new_permission_description']??'');if(e&&this['parameter_type'])f=newTreasury(b,this['parameter_type'],e,this['data']?.['description']??'',c);}if(!f||!e)a73m('invalid\x20parameter','CallTreasury_Data.data.object:'+this['object_address']);if(this['data']['description']!=null&&this['object_address'])description_set(b,f,this['parameter_type'],e,this['data']['description'],c);if(this['data']['receive']!=null&&this['object_address']){if(this['data']['receive']==='recently'){const h=await a73q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'type':'CoinWrapper','network':a['network'],'no_cache':a['no_cache']});if(Array['isArray'](h))a73m('invalid\x20parameter','CallAllocation_Data.data.received_coins:\x20received\x20is\x20ReceivedNormal[]');else this['data']['receive']=h;}if(typeof this['data']['receive']==='object'&&'received'in this['data']['receive']&&this['data']['receive']['received']?.['length']>0x0){if(this['data']['receive']['token_type']!==this['parameter_type'])a73m('invalid\x20parameter','token_type\x20'+this['data']['receive']['token_type']+'\x20is\x20not\x20equal\x20to\x20parameter_type\x20'+this['parameter_type']);for(const i of this['data']['receive']['received']){const [j,k]=await Promise['all']([LocalMark['Instance']()['get_address'](i['id']),LocalMark['Instance']()['get_address'](i['payment'])]);if(j&&k)receive(b,f,this['parameter_type'],e,j,k,c);else a73m('invalid\x20argument\x20type','Receive\x20object\x20'+i['id']+'\x20or\x20payment\x20object\x20'+i['payment']+'\x20not\x20found');}}}if(this['data']['deposit']!=null){if(this['data']['deposit']['by_external_deposit_guard']){if(!c)a73m('invalid\x20parameter','Passport\x20is\x20required\x20for\x20external\x20deposit');if(Array['isArray'](this['data']['deposit']['coin']))a73m('invalid\x20parameter','external_deposit\x20does\x20not\x20support\x20multi-coin\x20(CoinParam[]).\x20Move\x20layer\x20has\x20no\x20external_deposit2\x20—\x20pass\x20a\x20single\x20CoinParam\x20instead.');const l=this['data']['deposit']['coin'];await this['new_with_mark'](a,b,'Payment',await external_deposit(a,b,f,this['parameter_type'],c,this['data']['deposit']['by_external_deposit_guard'],l,this['data']['deposit']['payment_info']),this['data']['deposit']['namedNewPayment']);}else await this['new_with_mark'](a,b,'Payment',await deposit(a,b,f,this['parameter_type'],e,this['data']['deposit']['coin'],this['data']['deposit']['payment_info'],c),this['data']['deposit']['namedNewPayment']);}if(this['data']['withdraw']!=null&&this['data']['withdraw']['amount']){if('fixed'in this['data']['withdraw']['amount'])await this['new_with_mark'](a,b,'Payment',await withdraw(a,b,f,this['parameter_type'],e,this['data']['withdraw']['amount']['fixed'],this['data']['withdraw']['recipient'],this['data']['withdraw']['payment_info'],c),this['data']['withdraw']['namedNewPayment']);else{if('by_external_withdraw_guard'in this['data']['withdraw']['amount']){if(!c)a73m('invalid\x20parameter','Passport\x20is\x20required\x20for\x20external\x20withdraw');await this['new_with_mark'](a,b,'Payment',await external_withdraw(a,b,f,this['parameter_type'],c,this['data']['withdraw']['amount']['by_external_withdraw_guard'],this['data']['withdraw']['recipient'],this['data']['withdraw']['payment_info']),this['data']['withdraw']['namedNewPayment']);}}}if(this['data']['external_deposit_guard']!=null)switch(this['data']['external_deposit_guard']['op']){case'add':case'set':if(this['data']['external_deposit_guard']['op']==='set')external_deposit_guard_clear(b,f,this['parameter_type'],e,c);await external_deposit_guard_add(b,f,this['parameter_type'],e,this['data']['external_deposit_guard']['guards'],MAX_EXTERNAL_DEPOSIT_GUARD_COUNT-(g?.['external_deposit_guard']?.['length']??0x0),c);break;case'remove':await external_deposit_guard_remove(b,f,this['parameter_type'],e,this['data']['external_deposit_guard']['guards'],MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,c);break;case'clear':external_deposit_guard_clear(b,f,this['parameter_type'],e,c);break;}if(this['data']['external_withdraw_guard']!=null)switch(this['data']['external_withdraw_guard']['op']){case'add':case'set':if(this['data']['external_withdraw_guard']['op']==='set')external_withdraw_guard_clear(b,f,this['parameter_type'],e,c);await external_withdraw_guard_add(b,f,this['parameter_type'],e,this['data']['external_withdraw_guard']['guards'],MAX_EXTERNAL_WITHDRAW_GUARD_COUNT-(g?.['external_withdraw_guard']?.['length']??0x0),c);break;case'remove':await external_withdraw_guard_remove(b,f,this['parameter_type'],e,this['data']['external_withdraw_guard']['guards'],MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,c);break;case'clear':external_withdraw_guard_clear(b,f,this['parameter_type'],e,c);break;}if(this['data']['owner_receive']!=null&&this['object_address']){if(this['data']['owner_receive']==='recently')this['data']['owner_receive']=await a73q({'name_or_address':{'name_or_address':this['object_address'],'local_mark_first':!![]},'network':a['network'],'no_cache':a['no_cache']});await a73o(b,f,e,this['data']['owner_receive'],this['parameter_type'],m=>'0x2::treasury::'+m,c);}if(this['data']['um']!==void 0x0){let m=null;if(this['data']['um']){m=await LocalMark['Instance']()['get_address'](this['data']['um'])||null;if(!m)a73m('invalid\x20parameter','CallTreasury_Data.data.um:'+this['data']['um']);}um_set(b,f,this['parameter_type'],e,m,c);}if(!this['permission_address']){const n=a73e(this['data']?.['object']);await this['new_with_mark'](a,b,'Permission',a73v(b,e),a73e(n['permission']));}if(!this['object_address'])await this['new_with_mark'](a,b,'Treasury',create(b,f,this['parameter_type']),a73e(this['data']?.['object']));}};const MAX_EXTERNAL_DEPOSIT_GUARD_COUNT=a73s,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT=a73r;function newTreasury(a,b,c,d,e){a73n([c,e]);if(typeof d==='string'&&!a73b(d))a73m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a73h);if(!a73g(b))a73m('invalid\x20parameter','New\x20treasury\x20type\x20'+b+'\x20is\x20not\x20valid');if(e)return a['moveCall']({'target':a73l('new_with_passport'),'arguments':[a73f(a,c),a73f(a,e),a73j(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});else return a['moveCall']({'target':a73l('new'),'arguments':[a73f(a,c),a73j(a,d),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[b]});}function description_set(a,b,c,d,e,f){a73n([b,d,f]);if(typeof e==='string'&&!a73b(e))a73m('invalid\x20description','Description\x20exceeds\x20maximum\x20length\x20'+a73h);if(!a73g(c))a73m('invalid\x20parameter','Description\x20set\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(f)a['moveCall']({'target':a73l('description_set_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,f),a73j(a,e)],'typeArguments':[c]});else a['moveCall']({'target':a73l('description_set'),'arguments':[a73f(a,b),a73f(a,d),a73j(a,e)],'typeArguments':[c]});}async function deposit(a,b,d,e,f,g,h,i){a73n([d,f,i]);if(!a73g(e))a73m('invalid\x20parameter','Deposit\x20treasury\x20type\x20'+e+'\x20is\x20not\x20valid');const j=Array['isArray'](g),k=await paymentInfo(a,b,h);if(j){const l=g;if(l['length']===0x0)a73m('invalid\x20parameter','Deposit\x20coins\x20array\x20is\x20empty');const m=await Promise['all'](l['map'](o=>a73t(a,b,o,e))),n=b['makeMoveVec']({'elements':m});if(i)return b['moveCall']({'target':a73l('deposit2_with_passport'),'arguments':[a73f(b,d),a73f(b,f),a73f(b,i),n,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});else return b['moveCall']({'target':a73l('deposit2'),'arguments':[a73f(b,d),a73f(b,f),n,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}else{const o=await a73t(a,b,g,e);if(i)return b['moveCall']({'target':a73l('deposit_with_passport'),'arguments':[a73f(b,d),a73f(b,f),a73f(b,i),o,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});else return b['moveCall']({'target':a73l('deposit'),'arguments':[a73f(b,d),a73f(b,f),o,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}}async function withdraw(a,b,c,d,e,f,g,h,i){a73n([c,e,i]);if(!a73g(d))a73m('invalid\x20parameter','Withdraw\x20treasury\x20type\x20'+d+'\x20is\x20not\x20valid');if(!a73c(f))a73m('invalid\x20u64','Amount\x20'+f+'\x20is\x20not\x20valid');const j=await GetAccountOrMark_Address(g);if(!j)a73m('invalid\x20parameter','Recipient\x20'+g+'\x20is\x20not\x20valid');const k=await paymentInfo(a,b,h);if(i)return b['moveCall']({'target':a73l('withdraw_with_passport'),'arguments':[a73f(b,c),a73f(b,e),a73f(b,i),b['pure']['u64'](f),b['pure']['address'](j),k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});else return b['moveCall']({'target':a73l('withdraw'),'arguments':[a73f(b,c),a73f(b,e),b['pure']['u64'](f),b['pure']['address'](j),k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});}async function external_deposit_guard_add(a,b,c,d,e,f=MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,h){if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73n([b,d,h]);if(!a73g(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');const i=await Promise['all'](e['map'](async k=>{const l=await LocalMark['Instance']()['get_address'](k['guard']);if(!l)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20guard\x20'+k['guard']+'\x20is\x20not\x20valid');if(k['identifier']&&!a73d(k['identifier']))a73m('invalid\x20u8','External\x20deposit\x20guard\x20add\x20identifier\x20'+k['identifier']+'\x20is\x20not\x20optional\x20u8');if(k['store_from_id']&&!a73d(k['store_from_id']))a73m('invalid\x20u8','External\x20deposit\x20guard\x20add\x20store_from_id\x20'+k['store_from_id']+'\x20is\x20not\x20optional\x20u8');return{'guard':k['guard'],'identifier':k['identifier'],'store_from_id':k['store_from_id'],'guard_addr':l};})),j=i['filter'](k=>!k['guard_addr']);if(j['length']>0x0)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20add\x20has\x20invalid\x20guards\x20with\x20empty\x20guard_addr:\x20'+JSON['stringify'](j));i['filter'](k=>k['guard_addr']!==void 0x0)['map'](k=>({'guard':k['guard_addr'],'identifier':k['identifier']!==void 0x0?k['identifier']:null,'store_from_id':k['store_from_id']!==void 0x0?k['store_from_id']:null}))['forEach'](k=>{if(h)a['moveCall']({'target':a73l('external_deposit_guard_add_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,h),a73f(a,k['guard']),a['pure']['option']('u8',k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_deposit_guard_add'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,k['guard']),a['pure']['option']('u8',k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});});}async function external_deposit_guard_remove(a,b,c,d,e,f=MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,g){e=await LocalMark['Instance']()['get_many_address_availables'](e);if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20remove\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73n([b,d,g,...e]);if(!a73g(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20remove\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73l('external_deposit_guard_remove_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,g),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_deposit_guard_remove'),'arguments':[a73f(a,b),a73f(a,d),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});}function external_deposit_guard_clear(a,b,c,d,e){a73n([b,d,e]);if(!a73g(c))a73m('invalid\x20parameter','External\x20deposit\x20guard\x20clear\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e)a['moveCall']({'target':a73l('external_deposit_guard_clear_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_deposit_guard_clear'),'arguments':[a73f(a,b),a73f(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}async function external_withdraw_guard_add(a,b,c,d,e,f=MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,h){if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73n([b,d,h]);if(!a73g(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');const i=await Promise['all'](e['map'](async k=>{const l=await LocalMark['Instance']()['get_address'](k['guard']);if(!l)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20guard\x20'+k['guard']+'\x20is\x20not\x20valid');if(!a73d(k['identifier']))a73m('invalid\x20u8','External\x20withdraw\x20guard\x20add\x20identifier\x20'+k['identifier']+'\x20is\x20not\x20optional\x20u8');if(k['store_from_id']&&!a73d(k['store_from_id']))a73m('invalid\x20u8','External\x20withdraw\x20guard\x20add\x20store_from_id\x20'+k['store_from_id']+'\x20is\x20not\x20optional\x20u8');return{'guard':k['guard'],'identifier':k['identifier'],'store_from_id':k['store_from_id'],'guard_addr':l};})),j=i['filter'](k=>!k['guard_addr']);if(j['length']>0x0)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20add\x20has\x20invalid\x20guards\x20with\x20empty\x20guard_addr:\x20'+JSON['stringify'](j));i['filter'](k=>k['guard_addr']!==void 0x0)['map'](k=>({'guard':k['guard_addr'],'identifier':k['identifier'],'store_from_id':k['store_from_id']!==void 0x0?k['store_from_id']:null}))['forEach'](k=>{if(h)a['moveCall']({'target':a73l('external_withdraw_guard_add_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,h),a73f(a,k['guard']),a['pure']['u8'](k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_withdraw_guard_add'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,k['guard']),a['pure']['u8'](k['identifier']),a['pure']['option']('u8',k['store_from_id']),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});});}async function external_withdraw_guard_remove(a,b,c,d,e,f=MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,g){e=await LocalMark['Instance']()['get_many_address_availables'](e);if(e['length']===0x0)return;if(e['length']>f)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20remove\x20guards\x20count\x20'+e['length']+'\x20exceeds\x20maximum\x20'+f);a73n([b,d,g]);if(!a73g(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20remove\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73l('external_withdraw_guard_remove_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,g),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_withdraw_guard_remove'),'arguments':[a73f(a,b),a73f(a,d),a['pure']['vector']('address',e),a['object']['mutRegistrar']()],'typeArguments':[c]});}function external_withdraw_guard_clear(a,b,c,d,e){a73n([b,d,e]);if(!a73g(c))a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20clear\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e)a['moveCall']({'target':a73l('external_withdraw_guard_clear_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,e),a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('external_withdraw_guard_clear'),'arguments':[a73f(a,b),a73f(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}function create(a,b,c){a73n([b]);if(!a73g(c))a73m('invalid\x20parameter','Create\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');return a['moveCall']({'target':a73l('create'),'arguments':[a73f(a,b)],'typeArguments':[c]});}async function external_deposit(a,b,d,e,f,g,h,i){a73n([d,f]);if(!a73g(e))a73m('invalid\x20parameter','External\x20deposit\x20treasury\x20type\x20'+e+'\x20is\x20not\x20valid');const [j,k,l]=await Promise['all']([a73t(a,b,h,e),paymentInfo(a,b,i),LocalMark['Instance']()['get_address'](g)]);if(!l)a73m('invalid\x20parameter','External\x20deposit\x20guard\x20'+g+'\x20is\x20not\x20valid');return b['moveCall']({'target':a73l('external_deposit'),'arguments':[a73f(b,d),a73f(b,f),a73f(b,l),j,k,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[e]});}async function external_withdraw(a,b,c,d,e,f,g,h){a73n([c,e]);if(!a73g(d))a73m('invalid\x20parameter','External\x20withdraw\x20treasury\x20type\x20'+d+'\x20is\x20not\x20valid');const [i,j,k]=await Promise['all']([paymentInfo(a,b,h),LocalMark['Instance']()['get_address'](f),GetAccountOrMark_Address(g)]);if(!j)a73m('invalid\x20parameter','External\x20withdraw\x20guard\x20'+f+'\x20is\x20not\x20valid');if(!k)a73m('invalid\x20parameter','External\x20withdraw\x20recipient\x20'+g+'\x20is\x20not\x20valid');return b['moveCall']({'target':a73l('external_withdraw'),'arguments':[a73f(b,c),a73f(b,e),a73f(b,j),b['pure']['address'](k),i,b['object']['mutRegistrar'](),b['object']['clock']()],'typeArguments':[d]});}function receive(a,b,c,d,e,f,g){if(!f)a73m('invalid\x20parameter','Treasury\x20receive\x20payment\x20is\x20required');a73n([b,d,e,f,g]);if(!a73g(c))a73m('invalid\x20parameter','Treasury\x20receive\x20treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(g)a['moveCall']({'target':a73l('receive_with_passport'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,g),a73f(a,e),a73f(a,f),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('receive'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,e),a73f(a,f),a['object']['clock']()],'typeArguments':[c]});}function um_set(a,b,c,d,e,f){a73n([b,d]);if(!a73g(c))a73m('invalid\x20parameter','Treasury\x20type\x20'+c+'\x20is\x20not\x20valid');if(e){if(f)a['moveCall']({'target':a73l('um_set_with_passport'),'arguments':[a73f(a,b),a73f(a,d),f,a73f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('um_set'),'arguments':[a73f(a,b),a73f(a,d),a73f(a,e),a['object']['mutRegistrar'](),a['object']['clock']()],'typeArguments':[c]});}else{if(f)a['moveCall']({'target':a73l('um_none_with_passport'),'arguments':[a73f(a,b),a73f(a,d),f,a['object']['mutRegistrar']()],'typeArguments':[c]});else a['moveCall']({'target':a73l('um_none'),'arguments':[a73f(a,b),a73f(a,d),a['object']['mutRegistrar']()],'typeArguments':[c]});}}export{CallTreasury,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,create,deposit,description_set,external_deposit,external_deposit_guard_add,external_deposit_guard_clear,external_deposit_guard_remove,external_withdraw,external_withdraw_guard_add,external_withdraw_guard_clear,external_withdraw_guard_remove,newTreasury,receive,um_set,withdraw};
|
package/dist/esm/w/common.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $_ as
|
|
2
|
-
export { AddressResult, AllocationAddress, AllocationObject, ArbAddress, ArbObject, ArbitrationAddress, ArbitrationObject, BalanceType, CallEnv, CoinObject, CoinParam, CoinWrapPrefix, CoinWrapperObject, ContactAddress, ContactObject, ContextType, DemandAddress, DemandObject, DescriptionObject, DiscountObject, ENTITY_LINKER_ADDRESS, ENTITY_REGISTRAR_ADDRESS, EntityAddress, GasCoinType, GasTokenType, GetObject, GetObjectDescription, GetObjectExisted, GuardAddress, GuardObject, IsBcsStringLength, IsValidArgType, IsValidBalance, IsValidEndpoint, MAX_DEPENDED_COUNT, MAX_DESCRIPTION_LENGTH, MAX_ENV_PERMISSION_GUARD_COUNT, MAX_GUARD_TABLE_ITEM_LENGTH, MAX_INPUT_SIZE, MAX_LONG_NAME_LENGTH, MAX_MULTI_OPERANDS, MAX_NAME_LENGTH, MAX_PERMISSION_GUARD_COUNT, MAX_TABLE_SIZE, MachineAddress, MachineObject, Modules, NamedObject, NamedObjectWithDescription, NamedObjectWithPermission, NormalObject, ObjectModuleAndName, ObjectResult, ObjectType, ObjectWithType, OperatorType, OrderAddress, OrderObject, PackageAddress, PassportObject, PaymentAddress, PaymentInfoObject, PaymentObject, PermissionAddress, PermissionObject, ProgressAddress, ProgressObject, ProofAddress, ReceivedObject, Recipient, RecipientType, RegistrarAddress, RepositoryAddress, RepositoryObject, ResourceAddress, ResourceObject, RewardAddress, RewardObject, ServiceAddress, ServiceObject, SupportedValue, TreasuryAddress, TreasuryObject, TxAddress, TxAddressVec, TxNumber, TxNumberVec, TxObject, TxString, TypeNamedObject, TypeNamedObjectWithPermission, TypedDescriptionObject, TypedPermissionObject, ValueContainer, ValueType, ValueTypeInput, ValueTypeToType, WObject, WithPermissionObject, WitnessType, WitnessTypeInput, arbitrationFn, contactFn, createValueContainer, demandFn, isGasTokenType, isThisPackage, isValidArray, isValidDescription, isValidHttpUrl, isValidLongName, isValidName, isValidU128, isValidU16, isValidU256, isValidU32, isValidU64, isValidU8, isValidValueType, isValidValueTypeInput, isValidWitnessTypeInput, isValueTypeNumber, isWitnessType, machineFn, object_module_and_name_from_type, object_name_from_type, parseValueType, parseWitnessType, repositoryFn, rewardFn, serviceFn, toTxAddress, toTxAddressVec, toTxObject, toTxString, toTxU128, toTxU16, toTxU16Vec, toTxU256, toTxU32, toTxU64, toTxU8, treasuryFn, valueTypeToString, witnessTypeToString };
|
|
1
|
+
import { $_ as RepositoryAddress, $g as DescriptionObject, $v as parseValueType, A_ as NamedObjectWithPermission, Av as createValueContainer, B_ as PassportObject, Bg as ArbitrationAddress, Bv as isValidU16, C_ as MAX_PERMISSION_GUARD_COUNT, Cv as ValueTypeToType, D_ as Modules, Dv as WitnessTypeInput, E_ as MachineObject, Ev as WitnessType, F_ as ObjectWithType, Fg as AddressResult, Fv as isValidDescription, G_ as PermissionObject, Gg as CoinParam, Gv as isValidValueType, H_ as PaymentInfoObject, Hg as BalanceType, Hv as isValidU32, I_ as OperatorType, Ig as AllocationAddress, Iv as isValidHttpUrl, J_ as ProofAddress, Jg as ContactAddress, Jv as isValueTypeNumber, K_ as ProgressAddress, Kg as CoinWrapPrefix, Kv as isValidValueTypeInput, L_ as OrderAddress, Lg as AllocationObject, Lv as isValidLongName, M_ as ObjectModuleAndName, Mv as isGasTokenType, N_ as ObjectResult, Nv as isThisPackage, O_ as NamedObject, Ov as arbitrationFn, P_ as ObjectType, Pv as isValidArray, Q_ as RegistrarAddress, Qg as DemandObject, Qv as object_name_from_type, R_ as OrderObject, Rg as ArbAddress, Rv as isValidName, S_ as MAX_NAME_LENGTH, Sv as ValueTypeInput, T_ as MachineAddress, Tv as WithPermissionObject, U_ as PaymentObject, Ug as CallEnv, Uv as isValidU64, V_ as PaymentAddress, Vg as ArbitrationObject, Vv as isValidU256, W_ as PermissionAddress, Wg as CoinObject, Wv as isValidU8, X_ as Recipient, Xg as ContextType, Xv as machineFn, Y_ as ReceivedObject, Yg as ContactObject, Yv as isWitnessType, Z_ as RecipientType, Zg as DemandAddress, Zv as object_module_and_name_from_type, __ as MAX_ENV_PERMISSION_GUARD_COUNT, _v as TypeNamedObjectWithPermission, _y as valueTypeToString, a_ as GasTokenType, av as ServiceAddress, ay as toTxAddressVec, b_ as MAX_LONG_NAME_LENGTH, bv as ValueContainer, c_ as GetObjectExisted, cv as TreasuryAddress, cy as toTxString, d_ as IsBcsStringLength, dv as TxAddressVec, dy as toTxU16Vec, e_ as DiscountObject, ev as RepositoryObject, ey as parseWitnessType, f_ as IsValidArgType, fv as TxNumber, fy as toTxU256, g_ as MAX_DESCRIPTION_LENGTH, gv as TypeNamedObject, gy as treasuryFn, h_ as MAX_DEPENDED_COUNT, hv as TxString, hy as toTxU8, i_ as GasCoinType, iv as RewardObject, iy as toTxAddress, j_ as NormalObject, jv as demandFn, k_ as NamedObjectWithDescription, kv as contactFn, l_ as GuardAddress, lv as TreasuryObject, ly as toTxU128, m_ as IsValidEndpoint, mv as TxObject, my as toTxU64, n_ as ENTITY_REGISTRAR_ADDRESS, nv as ResourceObject, ny as rewardFn, o_ as GetObject, ov as ServiceObject, oy as toTxObject, p_ as IsValidBalance, pv as TxNumberVec, py as toTxU32, q_ as ProgressObject, qg as CoinWrapperObject, qv as isValidWitnessTypeInput, r_ as EntityAddress, rv as RewardAddress, ry as serviceFn, s_ as GetObjectDescription, sv as SupportedValue, sy as toTxReceivingObject, t_ as ENTITY_LINKER_ADDRESS, tv as ResourceAddress, ty as repositoryFn, u_ as GuardObject, uv as TxAddress, uy as toTxU16, v_ as MAX_GUARD_TABLE_ITEM_LENGTH, vv as TypedDescriptionObject, vy as witnessTypeToString, w_ as MAX_TABLE_SIZE, wv as WObject, x_ as MAX_MULTI_OPERANDS, xv as ValueType, y_ as MAX_INPUT_SIZE, yv as TypedPermissionObject, z_ as PackageAddress, zg as ArbObject, zv as isValidU128 } from "../index-BeiKuYsk.mjs";
|
|
2
|
+
export { AddressResult, AllocationAddress, AllocationObject, ArbAddress, ArbObject, ArbitrationAddress, ArbitrationObject, BalanceType, CallEnv, CoinObject, CoinParam, CoinWrapPrefix, CoinWrapperObject, ContactAddress, ContactObject, ContextType, DemandAddress, DemandObject, DescriptionObject, DiscountObject, ENTITY_LINKER_ADDRESS, ENTITY_REGISTRAR_ADDRESS, EntityAddress, GasCoinType, GasTokenType, GetObject, GetObjectDescription, GetObjectExisted, GuardAddress, GuardObject, IsBcsStringLength, IsValidArgType, IsValidBalance, IsValidEndpoint, MAX_DEPENDED_COUNT, MAX_DESCRIPTION_LENGTH, MAX_ENV_PERMISSION_GUARD_COUNT, MAX_GUARD_TABLE_ITEM_LENGTH, MAX_INPUT_SIZE, MAX_LONG_NAME_LENGTH, MAX_MULTI_OPERANDS, MAX_NAME_LENGTH, MAX_PERMISSION_GUARD_COUNT, MAX_TABLE_SIZE, MachineAddress, MachineObject, Modules, NamedObject, NamedObjectWithDescription, NamedObjectWithPermission, NormalObject, ObjectModuleAndName, ObjectResult, ObjectType, ObjectWithType, OperatorType, OrderAddress, OrderObject, PackageAddress, PassportObject, PaymentAddress, PaymentInfoObject, PaymentObject, PermissionAddress, PermissionObject, ProgressAddress, ProgressObject, ProofAddress, ReceivedObject, Recipient, RecipientType, RegistrarAddress, RepositoryAddress, RepositoryObject, ResourceAddress, ResourceObject, RewardAddress, RewardObject, ServiceAddress, ServiceObject, SupportedValue, TreasuryAddress, TreasuryObject, TxAddress, TxAddressVec, TxNumber, TxNumberVec, TxObject, TxString, TypeNamedObject, TypeNamedObjectWithPermission, TypedDescriptionObject, TypedPermissionObject, ValueContainer, ValueType, ValueTypeInput, ValueTypeToType, WObject, WithPermissionObject, WitnessType, WitnessTypeInput, arbitrationFn, contactFn, createValueContainer, demandFn, isGasTokenType, isThisPackage, isValidArray, isValidDescription, isValidHttpUrl, isValidLongName, isValidName, isValidU128, isValidU16, isValidU256, isValidU32, isValidU64, isValidU8, isValidValueType, isValidValueTypeInput, isValidWitnessTypeInput, isValueTypeNumber, isWitnessType, machineFn, object_module_and_name_from_type, object_name_from_type, parseValueType, parseWitnessType, repositoryFn, rewardFn, serviceFn, toTxAddress, toTxAddressVec, toTxObject, toTxReceivingObject, toTxString, toTxU128, toTxU16, toTxU16Vec, toTxU256, toTxU32, toTxU64, toTxU8, treasuryFn, valueTypeToString, witnessTypeToString };
|
package/dist/esm/w/common.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as a74a,A as a74b,B as a74c,C as a74d,
|
|
1
|
+
import{$ as a74a,A as a74b,B as a74c,C as a74d,Ct as a74e,D as a74f,E as a74g,F as a74h,G as a74i,H as a74j,I as a74k,J as a74l,K as a74m,L as a74n,M as a74o,N as a74p,O as a74q,P as a74r,Q as a74s,R as a74t,S as a74u,St as a74v,T as a74w,U as a74x,V as a74y,W as a74z,X as a74A,Y as a74B,Z as a74C,_ as a74D,_t as a74E,a as a74F,at as a74G,b as a74H,bt as a74I,c as a74J,ct as a74K,d as a74L,dt as a74M,et as a74N,f as a74O,ft as a74P,g as a74Q,gt as a74R,h as a74S,ht as a74T,i as a74U,it as a74V,j as a74W,k as a74X,l as a74Y,lt as a74Z,m as a74a0,mt as a74a1,n as a74a2,nt as a74a3,o as a74a4,ot as a74a5,p as a74a6,pt as a74a7,q as a74a8,r as a74a9,rt as a74aa,s as a74ab,st as a74ac,t as a74ad,tt as a74ae,u as a74af,ut as a74ag,v as a74ah,vt as a74ai,w as a74aj,x as a74ak,xt as a74al,y as a74am,yt as a74an,z as a74ao}from'../common-BDlb-AoC.mjs';export{a74ad as CoinWrapPrefix,a74a2 as ContextType,a74a9 as ENTITY_LINKER_ADDRESS,a74U as ENTITY_REGISTRAR_ADDRESS,a74F as EntityAddress,a74a4 as GasCoinType,a74ab as GasTokenType,a74J as GetObject,a74Y as GetObjectDescription,a74af as GetObjectExisted,a74L as IsBcsStringLength,a74O as IsValidArgType,a74a6 as IsValidBalance,a74a0 as IsValidEndpoint,a74S as MAX_DEPENDED_COUNT,a74Q as MAX_DESCRIPTION_LENGTH,a74D as MAX_ENV_PERMISSION_GUARD_COUNT,a74ah as MAX_GUARD_TABLE_ITEM_LENGTH,a74am as MAX_INPUT_SIZE,a74H as MAX_LONG_NAME_LENGTH,a74ak as MAX_MULTI_OPERANDS,a74u as MAX_NAME_LENGTH,a74d as MAX_PERMISSION_GUARD_COUNT,a74aj as MAX_TABLE_SIZE,a74w as Modules,a74g as ObjectType,a74f as OperatorType,a74q as PackageAddress,a74X as RecipientType,a74b as RegistrarAddress,a74W as ValueType,a74o as WitnessType,a74p as arbitrationFn,a74r as contactFn,a74h as createValueContainer,a74k as demandFn,a74n as isGasTokenType,a74t as isThisPackage,a74ao as isValidArray,a74c as isValidDescription,a74y as isValidHttpUrl,a74j as isValidLongName,a74x as isValidName,a74z as isValidU128,a74i as isValidU16,a74m as isValidU256,a74a8 as isValidU32,a74l as isValidU64,a74B as isValidU8,a74A as isValidValueType,a74C as isValidValueTypeInput,a74s as isValidWitnessTypeInput,a74a as isValueTypeNumber,a74N as isWitnessType,a74ae as machineFn,a74a3 as object_module_and_name_from_type,a74aa as object_name_from_type,a74V as parseValueType,a74G as parseWitnessType,a74a5 as repositoryFn,a74ac as rewardFn,a74K as serviceFn,a74Z as toTxAddress,a74ag as toTxAddressVec,a74M as toTxObject,a74P as toTxReceivingObject,a74a7 as toTxString,a74a1 as toTxU128,a74T as toTxU16,a74R as toTxU16Vec,a74E as toTxU256,a74ai as toTxU32,a74an as toTxU64,a74I as toTxU8,a74al as treasuryFn,a74v as valueTypeToString,a74e as witnessTypeToString};
|
package/dist/esm/w/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $_ as ServiceObject, $a as getGuardQueryInfo, $d as QueryTableItem_Entity, $f as queryTableItem_TreasuryHistory, $g as GetObject, $h as QueryReceived, $i as query_object_history, $m as MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, $n as verify_wts, $t as EvmTxReceipt, $u as AmountFromDepositGuard, $v as toTxObject, A_ as OrderAddress, Aa as ArbEvent, Ad as ObjectMachine, Af as getMoveNameFromObjectType, Ag as AllocationObject, Ah as MAX_SUBMISSION_SIZE_PASSPORT, Ai as WtsGenerationParams, Am as BRIDGE_CURRENT_VERSION, An as BlacklistResponse, Ap as validateGuardNode, As as CallService, At as TOKENS_DEPOSITED_V2_TOPIC, Av as isValidLongName, Ay as local_mark_operation, B_ as ProgressObject, Ba as ProgressEvent, Bd as ObjectReward, Bf as isValidIdFromInput, Bg as CoinWrapperObject, Bh as WITHDRAW_DURATION_TIME, Bm as MAX_ADDRESS_COUNT, Bn as extract_zip_messages, Bp as CallPermission_Data, Br as MessageListResult, Bt as DepositEthOptions, Bv as isValidWitnessTypeInput, By as TokenInfo, C_ as NamedObjectWithPermission, Ca as BridgeTokenSymbol, Cd as ObjectContact, Cf as VoteWeight, Cg as W_SUCCESS, Ch as MAX_REPOSITORY_COUNT, Cn as MAINNET_COMMITTEE_WEIGHTS, Cp as parseGuardFile, Ct as claimOnEth, Cv as createValueContainer, Cy as LocalNameByAddress, D_ as ObjectType, Da as TransferStatus, Dd as ObjectEntityLinker, Df as WitnessTargetType, Dg as isWException, Dh as MAX_SERVER_PUBKEY_SIZE, Dn as findTokenBySymbol, Ds as CallOrder, Dt as ERC20_TRANSFER_TOPIC, Dv as isValidArray, Dy as account_operation, E_ as ObjectResult, Ea as TransferRecord, Ed as ObjectEntity, Ef as WitnessSourceType, Eg as getMoveErrorDescription, Eh as MAX_SALE_COUNT, Ei as WTS_MAX_MESSAGE_COUNT, En as findToken, Et as AbiMessage, Ev as isThisPackage, Ey as QueryAccountResult, F_ as PaymentInfoObject, Fa as EventCursor, Fd as ObjectPersonal, Ff as getObjectTypeDefinitionFromNumber, Fg as BalanceType, Fh as MAX_WIP_LENGTH, Fm as BRIDGE_TRANSFER_STATUS_NOT_FOUND, Fn as GuardlistResponse, Fp as ResponseData, Fr as Message, Ft as encodeBridgeETHV2, Fv as isValidU32, Fy as query_local_info_list, G_ as RegistrarAddress, Ga as GUARDINSTRUCT, Gd as ObjectsQuery, Gf as queryTableItem_DemandPresenter, Gg as DemandObject, Gh as owner_receive, Gi as TransactionDetail, Gm as MAX_CONSENSUS_REPOSITORIES_COUNT, Gn as mark_conversation_as_viewed, Gr as MessengerError, Gt as BridgeNodeClient, Gv as object_name_from_type, Gy as DEFAULT_ACCOUNT_NAME, H_ as ReceivedObject, Ha as query_events_json, Hc as MachineNodeForwardResult, Hd as ObjectTreasury, Hf as objectTypeToNumber, Hg as ContactObject, Hh as bcsBytesToValue, Hm as MAX_AGENT_COUNT, Hn as generate_wts, Ht as depositErc20, Hv as isWitnessType, Hy as Account, I_ as PaymentObject, Ia as EventQuery, Ic as CallProgress, Id as ObjectProgress, If as getObjectTypeFromMoveName, Ig as CallEnv, Ih as MaxNodeCountSdkLiteral, Im as BRIDGE_TRANSFER_STATUS_PENDING, In as SettingsRequest, Io as CallRepository, Ip as getCoinParam, Ir as MessageContentType, It as encodeIsTransferProcessed, Iv as isValidU64, Iy as query_local_mark, J_ as ResourceAddress, Ja as GuardInstructFilterOptions, Jd as PolicyRule, Jf as queryTableItem_MachineNode, Jg as ENTITY_LINKER_ADDRESS, Jh as parseTypeParameter, Ji as TransactionQuery, Jl as CallDemand_Data, Jm as MAX_DISCOUNT_COUNT_ONCE, Jn as pull_messages, Jt as BRIDGE_STEP_DESCRIPTIONS, Ju as AllocationMode, Jv as repositoryFn, K_ as RepositoryAddress, Ka as GUARDQUERY, Kd as PaymentInfo, Kf as queryTableItem_EntityLinker, Kg as DescriptionObject, Kh as parseObjectType, Ki as TransactionHistoryAnswer, Km as MAX_CONTEXT_REPOSITORY_COUNT, Kn as mark_messages_as_viewed, Kr as MessengerErrorCode, Kt as BridgeNodeClientOptions, Kv as parseValueType, Ky as FaucetCoinInfo, L_ as PermissionAddress, La as EventType, Lc as CallProgress_Data, Ld as ObjectProof, Lf as getObjectTypeFromNumber, Lg as CoinObject, Lh as ONCHAIN_CONSTANTS, Lm as DEFAULT_LOCK_DURATION, Ln as SettingsResponse, Lo as CallRepository_Data, Lp as isCallResultSubmission, Lr as MessageDirection, Lt as encodeTokenTransferPayloadV2, Lv as isValidU8, Ly as query_local_mark_list, M_ as PackageAddress, Ma as DemandPresentEvent, Md as ObjectPassport, Mf as getNumberFromObjectType, Mg as ArbObject, Mh as MAX_VOTING_GUARD_COUNT, Mm as BRIDGE_MESSAGE_VERSION, Mn as FriendslistResponse, Mp as CallResponseError, Mr as MAX_QUERY_LIMIT, Mt as encodeBridgeERC20, Mv as isValidU128, My as query_account_list, N_ as PassportObject, Na as EventAnswer, Nd as ObjectPayment, Nf as getNumbersFromObjectTypes, Ng as ArbitrationAddress, Nh as MAX_VOTOR_COUNT, Nl as machineNode2file, Nm as BRIDGE_TRANSFER_STATUS_APPROVED, Nn as GuardParam, Np as CallResult, Nt as encodeBridgeERC20V2, Nv as isValidU16, Ny as query_local_info, O_ as ObjectWithType, Oa as isEvmChain, Od as ObjectEntityRegistrar, Of as data2object, Og as AddressResult, Oh as MAX_SERVER_SIGNATURE_SIZE, On as verifyCommitteeConsistency, Os as CallOrder_Data, Ot as TOKENS_CLAIMED_TOPIC, Ov as isValidDescription, Oy as fetch_token_info_operation, P_ as PaymentAddress, Pa as EventBase, Pd as ObjectPermission, Pf as getObjectTypeDefinition, Pg as ArbitrationObject, Ph as MAX_WIP_HASH_LENGTH, Pm as BRIDGE_TRANSFER_STATUS_CLAIMED, Pn as GuardlistRequest, Pp as ObjectsOp, Pt as encodeBridgeETH, Pv as isValidU256, Py as query_local_info_default, Q_ as ServiceAddress, Qa as filterGuardInstruct, Qd as PurchasedItem, Qf as queryTableItem_RewardRecord, Qg as GasTokenType, Qh as valueToBcsBytes, Qi as query_address_activity_json, Qm as MAX_ENTITY_COUNT, Qn as sign_wts, Qt as BridgeTransferStep, Qu as Amount, Qv as toTxAddressVec, R_ as PermissionObject, Ra as NewEntityEvent, Rd as ObjectRepository, Rf as getObjectTypesFromNumbers, Rg as CoinParam, Rh as OnchainConstantName, Rm as DISCOUNT_TYPE_MINUS, Rn as blacklist, Rp as BuiltinPermissionIndex, Rr as MessageFilter, Rt as encodeTransferBridgedTokensWithSignatures, Ru as CallAllocation, Rv as isValidValueType, Ry as query_local_token_list, S_ as NamedObjectWithDescription, Sa as BridgeTokenId, Sd as ObjectBase, Sf as TreasuryRecord, Sg as W_SAFE, Sh as MAX_RECORD_LENGTH, Sn as MAINNET_COMMITTEE_PUBKEYS, St as buildClaimMessage, Sv as contactFn, Sy as LocalMarkOperationResult, T_ as ObjectModuleAndName, Ta as SignedAction, Td as ObjectDiscount, Tf as WReceivedObject, Tg as enrichMoveError, Th as MAX_REWARD_COUNT, Ti as WTS_FILE_BYTES_LIMIT, Tn as findEvmChainConfigByBridgeChainId, Ts as transformRewardInput, Tt as isEvmNonceAlreadyProcessed, Tv as isGasTokenType, Ty as QueryAccount, U_ as Recipient, Ua as queryObjectWithType, Ud as ObjectTypeDefinition, Uf as parseIdFrom, Ug as ContextType, Uh as extractCoinType, Ui as AddressActivityQuery, Um as MAX_ALLOCATOR_COUNT, Un as getMessengerManager, Ur as MessageType, Ut as depositEth, Uv as machineFn, Uy as AccountData, V_ as ProofAddress, Va as query_events, Vd as ObjectService, Vf as numberToObjectType, Vg as ContactAddress, Vh as WOWOK_WTS_PROOF_TYPE, Vm as MAX_ADMIN_COUNT, Vn as friendslist, Vp as PermissionFilter, Vr as MessageStatus, Vt as DepositParams, Vv as isValueTypeNumber, Vy as TokenTypeInfo, W_ as RecipientType, Wa as queryObjectsWithType, Wd as ObjectsAnswer, Wf as queryTableItem_AddressMark, Wg as DemandAddress, Wh as isValidValueContainer, Wi as ObjectHistoryQuery, Wm as MAX_ARBITRATION_COUNT, Wn as guardlist, Wp as PermissionInfoType, Wr as MessengerConfig, Wt as depositFromEth, Wv as object_module_and_name_from_type, Wy as AccountFilter, X_ as RewardAddress, Xa as GuardQuery, Xd as ProgressSession, Xf as queryTableItem_ProgressHistory, Xg as EntityAddress, Xh as uint2address, Xi as TxObjectChange, Xm as MAX_DISCOUNT_TOTAL_COUNT, Xn as send_message, Xt as BridgeTransferState, Xu as Allocator, Xv as serviceFn, Y_ as ResourceObject, Ya as GuardItem, Yd as PolicyWriteGuard, Yf as queryTableItem_PermissionPerm, Yg as ENTITY_REGISTRAR_ADDRESS, Yh as permission_set, Yi as TxBalanceChange, Ym as MAX_DISCOUNT_RECEIVER_ONCE, Yn as send_file, Yt as BridgeTransferDirection, Yu as AllocationSharing, Yv as rewardFn, Z_ as RewardObject, Za as QueryInvariant, Zd as ProgressSessionHolder, Zf as queryTableItem_RepositoryData, Zg as GasCoinType, Zh as validObjects, Zi as query_address_activity, Zm as MAX_DISPUTE_COUNT, Zn as settings, Zt as BridgeTransferStatus, Zu as Allocators, Zv as toTxAddress, __ as MAX_TABLE_SIZE, _a as BridgeLimit, _d as NamedOperator, _f as TableItem_RepositoryData, _g as WResult, _h as MAX_PROOF_SIZE, _n as queryWowClaimStatus, _o as CallTreasury, _p as formatGuardParseErrors, _r as ConversationsFilter, _t as DepositWowResult, _v as WObject, _y as GetLocalNamesByAddresses, a_ as IsValidArgType, aa as CommonMistakeInfo, ad as ArbVoted, af as ServiceGuard, ag as ReceivedObjectsOrRecently, ah as MAX_GUARD_COUNT_REWARD, ai as SendMessageResult, am as isBizPermIndex, an as queryEthTxConfirmations, ao as CallContact, ap as query_table_json, av as TxNumber, ay as toTxU32, b_ as Modules, ba as BridgeSummary, bd as ObjectArb, bf as TableQuery, bg as W_ERROR, bh as MAX_RECORD_COUNT_REGISTRAR, bn as MAINNET_BRIDGE_CONFIG, bp as guard2file, br as DEFAULT_QUERY_LIMIT, bt as ClaimEthParams, bv as WitnessTypeInput, by as LocalInfoOperationResult, c_ as MAX_DEPENDED_COUNT, ca as ProtocolInfoResult, cd as GuardSubmission, cf as TableAnswerItem, cg as Logger, ch as MAX_NAMED_OPERATOR_ADDRESS_COUNT, cl as CallPayment, cn as queryWowToEvmTransferStatus, co as CallProof_Data, cp as CallGuard_Data, cs as CallReward_Data, cv as TxString, cy as treasuryFn, d_ as MAX_GUARD_TABLE_ITEM_LENGTH, da as query_common_mistakes, dd as Im, df as TableItem_DemandPresenter, dg as logger, dh as MAX_NODE_COUNT_ONCHAIN, dl as CallPayment_Data, dn as waitForWowTx, do as CallPersonal, dp as GuardParseResult, dv as TypedDescriptionObject, dy as AccountOperation, e_ as GetObjectDescription, ea as query_object_history_json, ed as AmountFromWithdrawGuard, ef as QueryTableItem_byAddress, eg as ReceivedBalance, eh as MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, en as makeBridgeTransferState, eo as RestoreNodeResult, ep as query_objects, er as watch_conversations, ev as SupportedValue, ey as toTxString, f_ as MAX_INPUT_SIZE, fa as BridgeCallResult, fd as MAX_OBJECTS_PER_QUERY, ff as TableItem_EntityLinker, fg as setLogLevel, fh as MAX_NODE_PAIR_COUNT, fn as ClaimWowParams, fo as CallPersonal_Data, fv as TypedPermissionObject, fy as AccountOperationResult, g_ as MAX_PERMISSION_GUARD_COUNT, ga as BridgeErrorCode, gd as MachineNodePair, gf as TableItem_ProgressHistory, gg as WException, gh as MAX_POLICY_GUARD_COUNT, gn as claimOnWow, go as transformPersonalInput, gr as ConversationInfo, gt as DepositWowParams, gv as ValueTypeToType, gy as GetAccountOrMark_Address, h_ as MAX_NAME_LENGTH, ha as BridgeError, hd as MachineNode, hf as TableItem_PermissionPerm, hg as WErrors, hh as MAX_POLICY_DESCRIPTION_LEN, hn as WowClaimStatus, ho as ManyAccountOrMark_AddressInput, hp as GuardValidationIssue, ht as BridgeTransferRecord, hv as ValueTypeInput, hy as FetchTokenInfoOperation, i_ as IsBcsStringLength, ia as CommonMistakeFilter, id as ArbStatus, if as RewardGuard, ig as ReceivedObjects, ih as MAX_GUARD_COUNT_PASSPORT, in as queryEthBalance, io as restoreNodeFromOutput, ip as query_tableItem, ir as Messenger, iv as TxAddressVec, iy as toTxU256, j_ as OrderObject, ja as DemandFeedbackEvent, jd as ObjectOrder, jf as getNumberFromMoveName, jg as ArbAddress, jh as MAX_TAGS_COUNT, jm as BRIDGE_EVM_ADDRESS_LENGTH, jn as FriendslistRequest, jp as CallBase, js as CallService_Data, jt as encodeApprove, jv as isValidName, jy as query_account, k_ as OperatorType, ka as isWowChain, kd as ObjectGuard, kf as getMoveNameFromNumber, kg as AllocationAddress, kh as MAX_SHARING_COUNT, ki as WtsFileResult, kn as BlacklistRequest, kp as validateGuardData, kt as TOKENS_DEPOSITED_TOPIC, kv as isValidHttpUrl, ky as local_info_operation, l_ as MAX_DESCRIPTION_LENGTH, la as queryPermissions, ld as IdFrom, lf as TableItemQuery, lg as createSensitiveLogger, lh as MAX_NAMED_OPERATOR_COUNT, ln as queryWowTx, lo as gen_proof, ls as CallReward_DataInput, lv as TypeNamedObject, ly as valueTypeToString, m_ as MAX_MULTI_OPERANDS, ma as BridgeCommitteeMember, md as MachineForwardGuard, mf as TableItem_MachineNode, mg as MoveModuleError, mh as MAX_POLICY_COUNT, mn as WowClaimState, mo as CallPersonal_DataMarkInput, mt as BridgeClientOptions, mu as CallArbitration_Data, mv as ValueType, my as FaucetNetwork, n_ as GuardAddress, na as query_transaction_json, nd as ArbIndemnity, nf as QueryTableItem_byString, ng as ReceivedBalanceOrRecently, nh as MAX_FORWARD_ORDER_COUNT, nn as parseEthDepositEvent, no as getCallEnvAccount, np as query_personal, nr as wts2html, nv as TreasuryObject, ny as toTxU16, o_ as IsValidBalance, oa as INFO_CONSTANT, od as DiscountType, of as ServiceSale, og as query_received, oh as MAX_ID_COUNT_ONCE, on as queryEthTxReceipt, oo as CallContact_Data, op as raw2type, ov as TxNumberVec, oy as toTxU64, p_ as MAX_LONG_NAME_LENGTH, pa as BridgeChainId, pd as MachineForward, pf as TableItem_EntityRegistrar, pg as MoveErrors, ph as MAX_PERM_FOR_ENTITY, pn as ClaimWowResult, po as CallPersonal_DataInput, ps as RewardGuardInput, pt as BridgeClient, pu as CallArbitration, pv as ValueContainer, py as AccountOrMark_Address, q_ as RepositoryObject, qa as GuardInstruct, qd as PersonalQuery, qf as queryTableItem_EntityRegistrar, qg as DiscountObject, qh as parseRecipient, qi as TransactionHistoryItem, ql as CallDemand, qm as MAX_DATA_SIZE, qn as proof_message, qr as NORMAL_MESSAGE_BYTES_LIMIT, qt as SignedBridgeActionResponse, qv as parseWitnessType, qy as MAX_MESSENGER_ACCOUNTS, r_ as GuardObject, ra as COMMON_MISTAKES, rd as ArbProposition, rf as QueryTableItem_byU64, rg as ReceivedNormal, rh as MAX_GUARD_COUNT_DEMAND, rn as queryErc20Balance, ro as resolveCallEnv, rp as query_table, rr as MessengerManager, rv as TxAddress, ry as toTxU16Vec, s_ as IsValidEndpoint, sa as ProtocolInfoQuery, sd as GuardInPassport, sf as TableAnswer, sg as LogLevel, sh as MAX_IM_COUNT, sn as queryEvmToWowTransferStatus, so as CallProof, sp as CallGuard, ss as CallReward, sv as TxObject, sy as toTxU8, t_ as GetObjectExisted, ta as query_transaction, td as AmountType, tf as QueryTableItem_byNameAddress, tg as ReceivedBalanceObject, th as MAX_FORWARD_COUNT, tn as parseEthClaimEvent, to as checkType, tp as query_objects_json, tr as watch_messages, tv as TreasuryAddress, ty as toTxU128, u_ as MAX_ENV_PERMISSION_GUARD_COUNT, ua as queryProtocolInfo, ud as IdFromInput, uf as TableItem_AddressMark, ug as getLogLevel, uh as MAX_NODE_COUNT, un as waitForEthTx, uo as AccountOrMark_AddressInput, up as GuardParseError, uv as TypeNamedObjectWithPermission, uy as witnessTypeToString, v_ as MachineAddress, va as BridgeMessage, vd as OBJECT_TYPE_DEFINITIONS, vf as TableItem_RewardRecord, vg as WValidate, vh as MAX_PROPOSITION_COUNT, vl as CallMachine, vn as BridgeConfig, vo as CallTreasury_Data, vp as gen_passport, vt as depositFromWow, vv as WithPermissionObject, vy as GetManyAccountOrMark_Address, w_ as NormalObject, wa as BridgeVersion, wd as ObjectDemand, wf as VotingGuard, wg as W_VALIDATE_PARAM, wh as MAX_REQUIRED_INFO_SIZE, wn as findEvmChainConfig, wp as parseGuardFromMarkdown, wt as claimOnEthBySeq, wv as demandFn, wy as ManyAccountOrMark_Address, x_ as NamedObject, xa as BridgeToken, xd as ObjectArbitration, xf as TreasuryOp, xg as W_FAILURE, xh as MAX_RECORD_COUNT_REWARD, xn as MAINNET_COMMITTEE_MEMBER_ADDRESSES, xr as DecryptedMessage, xt as EvmNoncePrecheckParams, xv as arbitrationFn, xy as LocalMarkOperation, y_ as MachineObject, ya as BridgeResult, yd as ObjectAllocation, yf as TableItem_TreasuryHistory, yg as W_ENSURE, yh as MAX_RECIPIENT_COUNT, yl as CallMachine_Data, yn as EvmChainConfig, yp as generateNodeComments, yr as DEFAULT_MESSENGER_CONFIG, yt as ClaimEthOptions, yv as WitnessType, yy as LocalInfoOperation, z_ as ProgressAddress, za as NewOrderEvent, zd as ObjectResource, zf as idFromToString, zg as CoinWrapPrefix, zh as USER_DEFINED_PERM_INDEX_START, zm as DISCOUNT_TYPE_RATES, zn as extractZipFromPlaintext, zp as CallPermission, zt as DepositErc20Options, zu as CallAllocation_Data, zv as isValidValueTypeInput, zy as TokenDataFilter } from "../index-DDdEf8FJ.mjs";
|
|
2
|
-
import { i as getFullnodeUrl, n as ConfigData, r as ENTRYPOINT, t as Config } from "../config-
|
|
1
|
+
import { $_ as RepositoryAddress, $a as GUARDQUERY, $d as PaymentInfo, $f as queryTableItem_EntityLinker, $g as DescriptionObject, $h as parseObjectType, $i as query_address_activity, $m as MAX_CONTEXT_REPOSITORY_COUNT, $n as verify_wts, $t as EvmTxReceipt, $v as parseValueType, $y as DEFAULT_ACCOUNT_NAME, A_ as NamedObjectWithPermission, Aa as TransferRecord, Ad as ObjectContact, Af as VoteWeight, Ag as W_SUCCESS, Ah as MAX_REPOSITORY_COUNT, Ai as WtsFileResult, An as BlacklistResponse, Ap as parseGuardFile, At as TOKENS_DEPOSITED_V2_TOPIC, Av as createValueContainer, Ay as LocalMarkOperationResult, B_ as PassportObject, Ba as EventQuery, Bd as ObjectPayment, Bf as getNumbersFromObjectTypes, Bg as ArbitrationAddress, Bh as MAX_VOTOR_COUNT, Bl as machineNode2file, Bm as BRIDGE_TRANSFER_STATUS_APPROVED, Bn as extract_zip_messages, Bp as CallResult, Br as MessageListResult, Bt as DepositEthOptions, Bv as isValidU16, By as query_account_list, C_ as MAX_PERMISSION_GUARD_COUNT, Ca as BridgeResult, Cd as MachineNodePair, Cf as TableItem_ProgressHistory, Cg as WException, Ch as MAX_POLICY_GUARD_COUNT, Cn as MAINNET_COMMITTEE_WEIGHTS, Co as transformPersonalInput, Ct as claimOnEth, Cv as ValueTypeToType, Cy as FetchTokenInfoOperation, D_ as Modules, Da as BridgeTokenSymbol, Dd as ObjectArb, Df as TableQuery, Dg as W_ERROR, Dh as MAX_RECORD_COUNT_REGISTRAR, Di as WTS_MAX_MESSAGE_COUNT, Dn as findTokenBySymbol, Dp as guard2file, Dt as ERC20_TRANSFER_TOPIC, Dv as WitnessTypeInput, Dy as LocalInfoOperation, E_ as MachineObject, Ea as BridgeTokenId, Ed as ObjectAllocation, Ef as TableItem_TreasuryHistory, Eg as W_ENSURE, Eh as MAX_RECIPIENT_COUNT, Ei as WTS_FILE_BYTES_LIMIT, El as CallMachine_Data, En as findToken, Ep as generateNodeComments, Et as AbiMessage, Ev as WitnessType, Ey as GetManyAccountOrMark_Address, F_ as ObjectWithType, Fa as DemandFeedbackEvent, Fd as ObjectEntityRegistrar, Ff as data2object, Fg as AddressResult, Fh as MAX_SERVER_SIGNATURE_SIZE, Fn as GuardlistResponse, Fr as Message, Fs as CallOrder_Data, Ft as encodeBridgeETHV2, Fv as isValidDescription, Fy as account_operation, G_ as PermissionObject, Ga as query_events, Gd as ObjectRepository, Gf as getObjectTypesFromNumbers, Gg as CoinParam, Gh as OnchainConstantName, Gi as ObjectHistoryQuery, Gm as DISCOUNT_TYPE_MINUS, Gn as mark_conversation_as_viewed, Gp as BuiltinPermissionIndex, Gr as MessengerError, Gt as BridgeNodeClient, Gu as CallAllocation, Gv as isValidValueType, Gy as query_local_mark_list, H_ as PaymentInfoObject, Ha as NewEntityEvent, Hd as ObjectPersonal, Hf as getObjectTypeDefinitionFromNumber, Hg as BalanceType, Hh as MAX_WIP_LENGTH, Hm as BRIDGE_TRANSFER_STATUS_NOT_FOUND, Hn as generate_wts, Hp as ResponseData, Ht as depositErc20, Hv as isValidU32, Hy as query_local_info_default, I_ as OperatorType, Ia as DemandPresentEvent, Id as ObjectGuard, If as getMoveNameFromNumber, Ig as AllocationAddress, Ih as MAX_SHARING_COUNT, In as SettingsRequest, Ip as validateGuardData, Ir as MessageContentType, It as encodeIsTransferProcessed, Iv as isValidHttpUrl, Iy as fetch_token_info_operation, J_ as ProofAddress, Ja as queryObjectsWithType, Jd as ObjectService, Jf as numberToObjectType, Jg as ContactAddress, Jh as WOWOK_WTS_PROOF_TYPE, Ji as TransactionHistoryItem, Jm as MAX_ADMIN_COUNT, Jn as pull_messages, Jp as PermissionFilter, Jt as BRIDGE_STEP_DESCRIPTIONS, Jv as isValueTypeNumber, Jy as TokenInfo, K_ as ProgressAddress, Ka as query_events_json, Kd as ObjectResource, Kf as idFromToString, Kg as CoinWrapPrefix, Kh as USER_DEFINED_PERM_INDEX_START, Ki as TransactionDetail, Km as DISCOUNT_TYPE_RATES, Kn as mark_messages_as_viewed, Kp as CallPermission, Kr as MessengerErrorCode, Kt as BridgeNodeClientOptions, Ku as CallAllocation_Data, Kv as isValidValueTypeInput, Ky as query_local_token_list, L_ as OrderAddress, La as EventAnswer, Ld as ObjectMachine, Lf as getMoveNameFromObjectType, Lg as AllocationObject, Lh as MAX_SUBMISSION_SIZE_PASSPORT, Lm as BRIDGE_CURRENT_VERSION, Ln as SettingsResponse, Lp as validateGuardNode, Lr as MessageDirection, Ls as CallService, Lt as encodeTokenTransferPayloadV2, Lv as isValidLongName, Ly as local_info_operation, M_ as ObjectModuleAndName, Ma as isEvmChain, Md as ObjectDiscount, Mf as WReceivedObject, Mg as enrichMoveError, Mh as MAX_REWARD_COUNT, Mn as FriendslistResponse, Mr as MAX_QUERY_LIMIT, Ms as transformRewardInput, Mt as encodeBridgeERC20, Mv as isGasTokenType, My as ManyAccountOrMark_Address, N_ as ObjectResult, Na as isWowChain, Nd as ObjectEntity, Nf as WitnessSourceType, Ng as getMoveErrorDescription, Nh as MAX_SALE_COUNT, Nn as GuardParam, Nt as encodeBridgeERC20V2, Nv as isThisPackage, Ny as QueryAccount, O_ as NamedObject, Oa as BridgeVersion, Od as ObjectArbitration, Of as TreasuryOp, Og as W_FAILURE, Oh as MAX_RECORD_COUNT_REWARD, On as verifyCommitteeConsistency, Ot as TOKENS_CLAIMED_TOPIC, Ov as arbitrationFn, Oy as LocalInfoOperationResult, P_ as ObjectType, Pa as ArbEvent, Pd as ObjectEntityLinker, Pf as WitnessTargetType, Pg as isWException, Ph as MAX_SERVER_PUBKEY_SIZE, Pn as GuardlistRequest, Ps as CallOrder, Pt as encodeBridgeETH, Pv as isValidArray, Py as QueryAccountResult, Q_ as RegistrarAddress, Qa as GUARDINSTRUCT, Qd as ObjectsQuery, Qf as queryTableItem_DemandPresenter, Qg as DemandObject, Qh as owner_receive, Qi as TxObjectChange, Qm as MAX_CONSENSUS_REPOSITORIES_COUNT, Qn as sign_wts, Qt as BridgeTransferStep, Qv as object_name_from_type, Qy as AccountFilter, R_ as OrderObject, Ra as EventBase, Rd as ObjectOrder, Rf as getNumberFromMoveName, Rg as ArbAddress, Rh as MAX_TAGS_COUNT, Rm as BRIDGE_EVM_ADDRESS_LENGTH, Rn as blacklist, Rp as CallBase, Rr as MessageFilter, Rs as CallService_Data, Rt as encodeTransferBridgedTokensWithSignatures, Rv as isValidName, Ry as local_mark_operation, S_ as MAX_NAME_LENGTH, Sa as BridgeMessage, Sd as MachineNode, Sf as TableItem_PermissionPerm, Sg as WErrors, Sh as MAX_POLICY_DESCRIPTION_LEN, Sn as MAINNET_COMMITTEE_PUBKEYS, So as ManyAccountOrMark_AddressInput, Sp as GuardValidationIssue, St as buildClaimMessage, Sv as ValueTypeInput, Sy as FaucetNetwork, T_ as MachineAddress, Ta as BridgeToken, Td as OBJECT_TYPE_DEFINITIONS, Tf as TableItem_RewardRecord, Tg as WValidate, Th as MAX_PROPOSITION_COUNT, Tl as CallMachine, Tn as findEvmChainConfigByBridgeChainId, To as CallTreasury_Data, Tp as gen_passport, Tt as isEvmNonceAlreadyProcessed, Tv as WithPermissionObject, Ty as GetLocalNamesByAddresses, U_ as PaymentObject, Ua as NewOrderEvent, Uc as CallProgress, Ud as ObjectProgress, Uf as getObjectTypeFromMoveName, Ug as CallEnv, Uh as MaxNodeCountSdkLiteral, Um as BRIDGE_TRANSFER_STATUS_PENDING, Un as getMessengerManager, Uo as CallRepository, Up as getCoinParam, Ur as MessageType, Ut as depositEth, Uv as isValidU64, Uy as query_local_info_list, V_ as PaymentAddress, Va as EventType, Vd as ObjectPermission, Vf as getObjectTypeDefinition, Vg as ArbitrationObject, Vh as MAX_WIP_HASH_LENGTH, Vm as BRIDGE_TRANSFER_STATUS_CLAIMED, Vn as friendslist, Vp as ObjectsOp, Vr as MessageStatus, Vt as DepositParams, Vv as isValidU256, Vy as query_local_info, W_ as PermissionAddress, Wa as ProgressEvent, Wc as CallProgress_Data, Wd as ObjectProof, Wf as getObjectTypeFromNumber, Wg as CoinObject, Wh as ONCHAIN_CONSTANTS, Wi as AddressActivityQuery, Wm as DEFAULT_LOCK_DURATION, Wn as guardlist, Wo as CallRepository_Data, Wp as isCallResultSubmission, Wr as MessengerConfig, Wt as depositFromEth, Wv as isValidU8, Wy as query_local_mark, X_ as Recipient, Xa as ServiceContextResult, Xd as ObjectTypeDefinition, Xf as parseIdFrom, Xg as ContextType, Xh as extractCoinType, Xi as TxBalanceChange, Xm as MAX_ALLOCATOR_COUNT, Xn as send_message, Xt as BridgeTransferState, Xv as machineFn, Xy as Account, Y_ as ReceivedObject, Ya as ServiceContextQuery, Yc as MachineNodeForwardResult, Yd as ObjectTreasury, Yf as objectTypeToNumber, Yg as ContactObject, Yh as bcsBytesToValue, Yi as TransactionQuery, Ym as MAX_AGENT_COUNT, Yn as send_file, Yt as BridgeTransferDirection, Yv as isWitnessType, Yy as TokenTypeInfo, Z_ as RecipientType, Za as query_serviceContext, Zd as ObjectsAnswer, Zf as queryTableItem_AddressMark, Zg as DemandAddress, Zh as isValidValueContainer, Zi as TxEvent, Zm as MAX_ARBITRATION_COUNT, Zn as settings, Zp as PermissionInfoType, Zt as BridgeTransferStatus, Zv as object_module_and_name_from_type, Zy as AccountData, __ as MAX_ENV_PERMISSION_GUARD_COUNT, _a as BridgeChainId, _d as IdFromInput, _f as TableItem_AddressMark, _g as getLogLevel, _h as MAX_NODE_COUNT, _n as queryWowClaimStatus, _o as AccountOrMark_AddressInput, _p as GuardParseError, _r as ConversationsFilter, _t as DepositWowResult, _v as TypeNamedObjectWithPermission, _y as valueTypeToString, a_ as GasTokenType, aa as COMMON_MISTAKES, ad as Amount, af as PurchasedItem, ag as valueToBcsBytes, ah as MAX_ENTITY_COUNT, an as queryEthTxConfirmations, ao as filterGuardInstruct, ap as queryTableItem_RewardRecord, av as ServiceAddress, ay as toTxAddressVec, b_ as MAX_LONG_NAME_LENGTH, ba as BridgeErrorCode, bd as MachineForward, bf as TableItem_EntityRegistrar, bg as MoveErrors, bh as MAX_PERM_FOR_ENTITY, bn as MAINNET_BRIDGE_CONFIG, bo as CallPersonal_DataInput, br as DEFAULT_QUERY_LIMIT, bs as RewardGuardInput, bt as ClaimEthParams, bu as CallArbitration, bv as ValueContainer, by as AccountOperationResult, c_ as GetObjectExisted, ca as FUNDING_GUIDANCE, cd as AmountType, cf as QueryTableItem_byNameAddress, cg as ReceivedBalanceObject, ch as MAX_FORWARD_COUNT, cn as queryWowToEvmTransferStatus, co as checkType, cp as query_objects_json, cv as TreasuryAddress, cy as toTxString, d_ as IsBcsStringLength, da as ProtocolInfoQuery, dd as ArbStatus, df as RewardGuard, dg as ReceivedObjects, dh as MAX_GUARD_COUNT_PASSPORT, dn as waitForWowTx, do as restoreNodeFromOutput, dp as query_tableItem, dv as TxAddressVec, dy as toTxU16Vec, e_ as DiscountObject, ea as query_address_activity_json, eb as FaucetCoinInfo, ef as PersonalQuery, eg as parseRecipient, eh as MAX_DATA_SIZE, en as makeBridgeTransferState, eo as GuardInstruct, ep as queryTableItem_EntityRegistrar, er as watch_conversations, eu as CallDemand, ev as RepositoryObject, ey as parseWitnessType, f_ as IsValidArgType, fa as ProtocolInfoResult, fd as ArbVoted, ff as ServiceGuard, fg as ReceivedObjectsOrRecently, fh as MAX_GUARD_COUNT_REWARD, fm as isBizPermIndex, fn as ClaimWowParams, fo as CallContact, fp as query_table_json, fv as TxNumber, fy as toTxU256, g_ as MAX_DESCRIPTION_LENGTH, ga as BridgeCallResult, gd as IdFrom, gf as TableItemQuery, gg as createSensitiveLogger, gh as MAX_NAMED_OPERATOR_COUNT, gn as claimOnWow, go as gen_proof, gr as ConversationInfo, gs as CallReward_DataInput, gt as DepositWowParams, gv as TypeNamedObject, gy as treasuryFn, h_ as MAX_DEPENDED_COUNT, ha as query_common_mistakes, hd as GuardSubmission, hf as TableAnswerItem, hg as Logger, hh as MAX_NAMED_OPERATOR_ADDRESS_COUNT, hl as CallPayment, hn as WowClaimStatus, ho as CallProof_Data, hp as CallGuard_Data, hs as CallReward_Data, ht as BridgeTransferRecord, hv as TxString, hy as toTxU8, i_ as GasCoinType, ia as query_transaction_json, id as Allocators, if as ProgressSessionHolder, ig as validObjects, ih as MAX_DISPUTE_COUNT, in as queryEthBalance, io as QueryInvariant, ip as queryTableItem_RepositoryData, ir as Messenger, iv as RewardObject, iy as toTxAddress, j_ as NormalObject, ja as TransferStatus, jd as ObjectDemand, jf as VotingGuard, jg as W_VALIDATE_PARAM, jh as MAX_REQUIRED_INFO_SIZE, ji as WtsGenerationParams, jn as FriendslistRequest, jp as parseGuardFromMarkdown, jt as encodeApprove, jv as demandFn, jy as LocalNameByAddress, k_ as NamedObjectWithDescription, ka as SignedAction, kd as ObjectBase, kf as TreasuryRecord, kg as W_SAFE, kh as MAX_RECORD_LENGTH, kn as BlacklistRequest, kt as TOKENS_DEPOSITED_TOPIC, kv as contactFn, ky as LocalMarkOperation, l_ as GuardAddress, la as FundingGuidance, ld as ArbIndemnity, lf as QueryTableItem_byString, lg as ReceivedBalanceOrRecently, lh as MAX_FORWARD_ORDER_COUNT, ln as queryWowTx, lo as getCallEnvAccount, lp as query_personal, lv as TreasuryObject, ly as toTxU128, m_ as IsValidEndpoint, ma as queryProtocolInfo, md as GuardInPassport, mf as TableAnswer, mg as LogLevel, mh as MAX_IM_COUNT, mn as WowClaimState, mo as CallProof, mp as CallGuard, ms as CallReward, mt as BridgeClientOptions, mv as TxObject, my as toTxU64, n_ as ENTITY_REGISTRAR_ADDRESS, na as query_object_history_json, nd as AllocationSharing, nf as PolicyWriteGuard, ng as permission_set, nh as MAX_DISCOUNT_RECEIVER_ONCE, nn as parseEthDepositEvent, no as GuardItem, np as queryTableItem_PermissionPerm, nr as wts2html, nv as ResourceObject, ny as rewardFn, o_ as GetObject, oa as CommonMistakeFilter, od as AmountFromDepositGuard, of as QueryTableItem_Entity, og as QueryReceived, oh as MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, oi as SendMessageResult, on as queryEthTxReceipt, oo as getGuardQueryInfo, op as queryTableItem_TreasuryHistory, ov as ServiceObject, oy as toTxObject, p_ as IsValidBalance, pa as queryPermissions, pd as DiscountType, pf as ServiceSale, pg as query_received, ph as MAX_ID_COUNT_ONCE, pn as ClaimWowResult, po as CallContact_Data, pp as raw2type, pt as BridgeClient, pv as TxNumberVec, py as toTxU32, q_ as ProgressObject, qa as queryObjectWithType, qd as ObjectReward, qf as isValidIdFromInput, qg as CoinWrapperObject, qh as WITHDRAW_DURATION_TIME, qi as TransactionHistoryAnswer, qm as MAX_ADDRESS_COUNT, qn as proof_message, qp as CallPermission_Data, qr as NORMAL_MESSAGE_BYTES_LIMIT, qt as SignedBridgeActionResponse, qv as isValidWitnessTypeInput, qy as TokenDataFilter, r_ as EntityAddress, ra as query_transaction, rd as Allocator, rf as ProgressSession, rg as uint2address, rh as MAX_DISCOUNT_TOTAL_COUNT, rn as queryErc20Balance, ro as GuardQuery, rp as queryTableItem_ProgressHistory, rr as MessengerManager, rv as RewardAddress, ry as serviceFn, s_ as GetObjectDescription, sa as CommonMistakeInfo, sd as AmountFromWithdrawGuard, sf as QueryTableItem_byAddress, sg as ReceivedBalance, sh as MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, sn as queryEvmToWowTransferStatus, so as RestoreNodeResult, sp as query_objects, sv as SupportedValue, sy as toTxReceivingObject, t_ as ENTITY_LINKER_ADDRESS, ta as query_object_history, tb as MAX_MESSENGER_ACCOUNTS, td as AllocationMode, tf as PolicyRule, tg as parseTypeParameter, th as MAX_DISCOUNT_COUNT_ONCE, tn as parseEthClaimEvent, to as GuardInstructFilterOptions, tp as queryTableItem_MachineNode, tr as watch_messages, tu as CallDemand_Data, tv as ResourceAddress, ty as repositoryFn, u_ as GuardObject, ua as INFO_CONSTANT, ud as ArbProposition, uf as QueryTableItem_byU64, ug as ReceivedNormal, uh as MAX_GUARD_COUNT_DEMAND, un as waitForEthTx, uo as resolveCallEnv, up as query_table, uv as TxAddress, uy as toTxU16, v_ as MAX_GUARD_TABLE_ITEM_LENGTH, va as BridgeCommitteeMember, vd as Im, vf as TableItem_DemandPresenter, vg as logger, vh as MAX_NODE_COUNT_ONCHAIN, vl as CallPayment_Data, vn as BridgeConfig, vo as CallPersonal, vp as GuardParseResult, vt as depositFromWow, vv as TypedDescriptionObject, vy as witnessTypeToString, w_ as MAX_TABLE_SIZE, wa as BridgeSummary, wd as NamedOperator, wf as TableItem_RepositoryData, wg as WResult, wh as MAX_PROOF_SIZE, wn as findEvmChainConfig, wo as CallTreasury, wp as formatGuardParseErrors, wt as claimOnEthBySeq, wv as WObject, wy as GetAccountOrMark_Address, x_ as MAX_MULTI_OPERANDS, xa as BridgeLimit, xd as MachineForwardGuard, xf as TableItem_MachineNode, xg as MoveModuleError, xh as MAX_POLICY_COUNT, xn as MAINNET_COMMITTEE_MEMBER_ADDRESSES, xo as CallPersonal_DataMarkInput, xr as DecryptedMessage, xt as EvmNoncePrecheckParams, xu as CallArbitration_Data, xv as ValueType, xy as AccountOrMark_Address, y_ as MAX_INPUT_SIZE, ya as BridgeError, yd as MAX_OBJECTS_PER_QUERY, yf as TableItem_EntityLinker, yg as setLogLevel, yh as MAX_NODE_PAIR_COUNT, yn as EvmChainConfig, yo as CallPersonal_Data, yr as DEFAULT_MESSENGER_CONFIG, yt as ClaimEthOptions, yv as TypedPermissionObject, yy as AccountOperation, z_ as PackageAddress, za as EventCursor, zd as ObjectPassport, zf as getNumberFromObjectType, zg as ArbObject, zh as MAX_VOTING_GUARD_COUNT, zm as BRIDGE_MESSAGE_VERSION, zn as extractZipFromPlaintext, zp as CallResponseError, zt as DepositErc20Options, zv as isValidU128, zy as query_account } from "../index-BeiKuYsk.mjs";
|
|
2
|
+
import { a as getGraphqlUrl, i as getFullnodeUrl, n as ConfigData, r as ENTRYPOINT, t as Config } from "../config-DyKCZw0u.mjs";
|
|
3
3
|
import { o as UserModeRecord, s as UserModeStorage, t as IAccountStorage } from "../storage-B8nW4YTJ.mjs";
|
|
4
4
|
import { a as SecureEnvelope, i as SecureAccountStorage, n as EncryptionMode, r as KeyMetadata, t as CryptoVault } from "../secure-storage-lI6ZR9sW.mjs";
|
|
5
5
|
import { _ as isValidAddress, a as LocalInfoContentMaxCount, c as LocalInfoNameDefault, d as LocalMarkFilter, f as LocalMarkNameMaxLength, g as MarkParam, h as MarkData, i as LocalInfo, l as LocalInfoNameMaxLength, m as LocalMarkTagMaxLength, n as InfoData, o as LocalInfoContentMaxLength, p as LocalMarkTagMaxCount, r as InfoDataInner, s as LocalInfoFilter, t as BUITIN_IDS, u as LocalMark } from "../local-gzBIsXyJ.mjs";
|
|
@@ -9,4 +9,4 @@ import { i as registerBridgeEvmNetworks, n as EvmNetworkConfig, r as EvmNetworkR
|
|
|
9
9
|
import { A as wipToHtml, C as createWip, D as verifyWip, E as sign_wip, O as verify_wip, S as WipVerificationResult, T as loadWip, _ as WipSignature, a as SignatureAlgorithm, b as WipToHtmlOptions, c as WipContent, d as WipFile, f as WipGenerationOptions, g as WipPayload, h as WipMeta, i as ImageSource, k as wip2html, l as WipCreateOptions, m as WipMedia, n as HashAlgorithm, o as TextFormat, p as WipLimits, r as ImageMimeType, s as WIP, t as DEFAULT_LIMITS, u as WipError, v as WipSignatureVerification, w as generate_wip, x as WipValidationError, y as WipSizeError } from "../wip-NbB1ChbI.mjs";
|
|
10
10
|
import { C as ProjectUpdate, S as ProjectStatus, T as RelationshipType, _ as ProjectDocument, a as EvaluationType, b as ProjectObjectAdd, c as GraphEdgeInput, d as ObjectCacheEntry, f as ObjectCacheHistoryEntry, g as ProjectCreate, h as Project, i as EvaluationInput, l as GraphNode, m as ObjectRole, n as EdgeSource, o as GraphData, p as ObjectDiff, r as Evaluation, s as GraphEdge, t as DiffField, u as LocalProject, v as ProjectFilter, w as ProjectVersion, x as ProjectPerspective, y as ProjectObject } from "../project-B3Z3z_Z_.mjs";
|
|
11
11
|
import { n as getWowMcpDir, t as getWowDir } from "../util-7R_TK4HK.mjs";
|
|
12
|
-
export { AbiMessage, Account, AccountData, AccountFilter, AccountOperation, AccountOperationResult, AccountOrMark_Address, type AccountOrMark_AddressInput, AddressActivityQuery, AddressResult, AllocationAddress, AllocationMode, AllocationObject, AllocationSharing, Allocator, Allocators, Amount, AmountFromDepositGuard, AmountFromWithdrawGuard, AmountType, ArbAddress, ArbEvent, ArbIndemnity, ArbObject, ArbProposition, ArbStatus, ArbVoted, ArbitrationAddress, ArbitrationObject, BRIDGE_CURRENT_VERSION, BRIDGE_EVM_ADDRESS_LENGTH, BRIDGE_MESSAGE_VERSION, BRIDGE_STEP_DESCRIPTIONS, BRIDGE_TRANSFER_STATUS_APPROVED, BRIDGE_TRANSFER_STATUS_CLAIMED, BRIDGE_TRANSFER_STATUS_NOT_FOUND, BRIDGE_TRANSFER_STATUS_PENDING, BUITIN_IDS, BalanceType, BlacklistRequest, BlacklistResponse, BridgeCallResult, BridgeChainId, BridgeClient, BridgeClientOptions, BridgeCommitteeMember, BridgeConfig, BridgeError, BridgeErrorCode, BridgeLimit, BridgeMessage, BridgeNodeClient, BridgeNodeClientOptions, BridgeResult, BridgeSummary, BridgeToken, BridgeTokenId, BridgeTokenSymbol, BridgeTransferDirection, BridgeTransferRecord, BridgeTransferState, BridgeTransferStatus, BridgeTransferStep, BridgeVersion, BuiltinPermissionIndex, COMMON_MISTAKES, CallAllocation, type CallAllocation_Data, CallArbitration, type CallArbitration_Data, CallBase, CallContact, type CallContact_Data, CallDemand, type CallDemand_Data, CallEnv, CallGuard, type CallGuard_Data, CallMachine, type CallMachine_Data, CallOrder, type CallOrder_Data, CallPayment, type CallPayment_Data, CallPermission, type CallPermission_Data, CallPersonal, type CallPersonal_Data, type CallPersonal_DataInput, type CallPersonal_DataMarkInput, CallProgress, type CallProgress_Data, CallProof, type CallProof_Data, CallRepository, type CallRepository_Data, CallResponseError, CallResult, CallReward, type CallReward_Data, type CallReward_DataInput, CallService, type CallService_Data, CallTreasury, type CallTreasury_Data, ClaimEthOptions, ClaimEthParams, ClaimWowParams, ClaimWowResult, CoinObject, CoinParam, CoinWrapPrefix, CoinWrapperObject, CommonMistakeFilter, CommonMistakeInfo, Config, ConfigData, ContactAddress, ContactObject, ContextType, type ConversationInfo, type ConversationsFilter, CryptoVault, DEFAULT_ACCOUNT_NAME, DEFAULT_LIMITS, DEFAULT_LOCK_DURATION, DEFAULT_MESSENGER_CONFIG, DEFAULT_QUERY_LIMIT, DISCOUNT_TYPE_MINUS, DISCOUNT_TYPE_RATES, type DecryptedMessage, DemandAddress, DemandFeedbackEvent, DemandObject, DemandPresentEvent, DepositErc20Options, DepositEthOptions, DepositParams, DepositWowParams, DepositWowResult, DescriptionObject, DiffField, DiscountObject, DiscountType, ENTITY_LINKER_ADDRESS, ENTITY_REGISTRAR_ADDRESS, ENTRYPOINT, ERC20_TRANSFER_TOPIC, ETH_MAINNET, EdgeSource, EncryptionMode, EntityAddress, Evaluation, EvaluationInput, EvaluationType, EventAnswer, EventBase, EventCursor, EventQuery, EventType, EvmAccount, EvmAccountData, EvmAccountFilter, EvmChainConfig, EvmLog, EvmNetworkConfig, EvmNetworkRegistry, EvmNoncePrecheckParams, EvmTransactionReceipt, EvmTransactionRequest, EvmTxReceipt, FaucetCoinInfo, FaucetNetwork, FetchTokenInfoOperation, FriendslistRequest, FriendslistResponse, GUARDINSTRUCT, GUARDQUERY, GasCoinType, GasTokenType, GetAccountOrMark_Address, GetLocalNamesByAddresses, GetManyAccountOrMark_Address, GetObject, GetObjectDescription, GetObjectExisted, GraphData, GraphEdge, GraphEdgeInput, GraphNode, GuardAddress, GuardInPassport, GuardInstruct, GuardInstructFilterOptions, GuardItem, GuardObject, GuardParam, type GuardParseError, type GuardParseResult, GuardQuery, GuardSubmission, type GuardValidationIssue, GuardlistRequest, GuardlistResponse, HashAlgorithm, type IAccountStorage, INFO_CONSTANT, IdFrom, IdFromInput, Im, ImageMimeType, ImageSource, InfoData, InfoDataInner, IsBcsStringLength, IsValidArgType, IsValidBalance, IsValidEndpoint, KeyMetadata, LocalInfo, LocalInfoContentMaxCount, LocalInfoContentMaxLength, LocalInfoFilter, LocalInfoNameDefault, LocalInfoNameMaxLength, LocalInfoOperation, LocalInfoOperationResult, LocalMark, LocalMarkFilter, LocalMarkNameMaxLength, LocalMarkOperation, LocalMarkOperationResult, LocalMarkTagMaxCount, LocalMarkTagMaxLength, LocalNameByAddress, LocalProject, LogLevel, Logger, MAINNET_BRIDGE_CONFIG, MAINNET_COMMITTEE_MEMBER_ADDRESSES, MAINNET_COMMITTEE_PUBKEYS, MAINNET_COMMITTEE_WEIGHTS, MAX_ADDRESS_COUNT, MAX_ADMIN_COUNT, MAX_AGENT_COUNT, MAX_ALLOCATOR_COUNT, MAX_ARBITRATION_COUNT, MAX_CONSENSUS_REPOSITORIES_COUNT, MAX_CONTEXT_REPOSITORY_COUNT, MAX_DATA_SIZE, MAX_DEPENDED_COUNT, MAX_DESCRIPTION_LENGTH, MAX_DISCOUNT_COUNT_ONCE, MAX_DISCOUNT_RECEIVER_ONCE, MAX_DISCOUNT_TOTAL_COUNT, MAX_DISPUTE_COUNT, MAX_ENTITY_COUNT, MAX_ENV_PERMISSION_GUARD_COUNT, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, MAX_FORWARD_COUNT, MAX_FORWARD_ORDER_COUNT, MAX_GUARD_COUNT_DEMAND, MAX_GUARD_COUNT_PASSPORT, MAX_GUARD_COUNT_REWARD, MAX_GUARD_TABLE_ITEM_LENGTH, MAX_ID_COUNT_ONCE, MAX_IM_COUNT, MAX_INPUT_SIZE, MAX_LONG_NAME_LENGTH, MAX_MESSENGER_ACCOUNTS, MAX_MULTI_OPERANDS, MAX_NAMED_OPERATOR_ADDRESS_COUNT, MAX_NAMED_OPERATOR_COUNT, MAX_NAME_LENGTH, MAX_NODE_COUNT, MAX_NODE_COUNT_ONCHAIN, MAX_NODE_PAIR_COUNT, MAX_OBJECTS_PER_QUERY, MAX_PERMISSION_GUARD_COUNT, MAX_PERM_FOR_ENTITY, MAX_POLICY_COUNT, MAX_POLICY_DESCRIPTION_LEN, MAX_POLICY_GUARD_COUNT, MAX_PROOF_SIZE, MAX_PROPOSITION_COUNT, MAX_QUERY_LIMIT, MAX_RECIPIENT_COUNT, MAX_RECORD_COUNT_REGISTRAR, MAX_RECORD_COUNT_REWARD, MAX_RECORD_LENGTH, MAX_REPOSITORY_COUNT, MAX_REQUIRED_INFO_SIZE, MAX_REWARD_COUNT, MAX_SALE_COUNT, MAX_SERVER_PUBKEY_SIZE, MAX_SERVER_SIGNATURE_SIZE, MAX_SHARING_COUNT, MAX_SUBMISSION_SIZE_PASSPORT, MAX_TABLE_SIZE, MAX_TAGS_COUNT, MAX_VOTING_GUARD_COUNT, MAX_VOTOR_COUNT, MAX_WIP_HASH_LENGTH, MAX_WIP_LENGTH, MachineAddress, MachineForward, MachineForwardGuard, MachineNode, type MachineNodeForwardResult, MachineNodePair, MachineObject, ManyAccountOrMark_Address, type ManyAccountOrMark_AddressInput, MarkData, MarkParam, type MaxNodeCountSdkLiteral, type Message, type MessageContentType, MessageDirection, type MessageFilter, type MessageListResult, MessageStatus, MessageType, Messenger, type MessengerConfig, MessengerError, MessengerErrorCode, MessengerManager, Modules, MoveErrors, MoveModuleError, NORMAL_MESSAGE_BYTES_LIMIT, NamedObject, NamedObjectWithDescription, NamedObjectWithPermission, NamedOperator, NewEntityEvent, NewOrderEvent, NormalObject, OBJECT_TYPE_DEFINITIONS, ONCHAIN_CONSTANTS, ObjectAllocation, ObjectArb, ObjectArbitration, ObjectBase, ObjectCacheEntry, ObjectCacheHistoryEntry, ObjectContact, ObjectDemand, ObjectDiff, ObjectDiscount, ObjectEntity, ObjectEntityLinker, ObjectEntityRegistrar, ObjectGuard, ObjectHistoryQuery, ObjectMachine, ObjectModuleAndName, ObjectOrder, ObjectPassport, ObjectPayment, ObjectPermission, ObjectPersonal, ObjectProgress, ObjectProof, ObjectRepository, ObjectResource, ObjectResult, ObjectReward, ObjectRole, ObjectService, ObjectTreasury, ObjectType, ObjectTypeDefinition, ObjectWithType, ObjectsAnswer, ObjectsOp, ObjectsQuery, type OnchainConstantName, OperatorType, OrderAddress, OrderObject, PackageAddress, PassportObject, PaymentAddress, PaymentInfo, PaymentInfoObject, PaymentObject, PermissionAddress, type PermissionFilter, type PermissionInfoType, PermissionObject, PersonalQuery, PolicyRule, PolicyWriteGuard, ProgressAddress, ProgressEvent, ProgressObject, ProgressSession, ProgressSessionHolder, Project, ProjectCreate, ProjectDocument, ProjectFilter, ProjectObject, ProjectObjectAdd, ProjectPerspective, ProjectStatus, ProjectUpdate, ProjectVersion, ProofAddress, ProtocolInfoQuery, ProtocolInfoResult, PurchasedItem, QueryAccount, QueryAccountResult, QueryInvariant, QueryReceived, QueryTableItem_Entity, QueryTableItem_byAddress, QueryTableItem_byNameAddress, QueryTableItem_byString, QueryTableItem_byU64, ReceivedBalance, ReceivedBalanceObject, ReceivedBalanceOrRecently, ReceivedNormal, ReceivedObject, ReceivedObjects, ReceivedObjectsOrRecently, Recipient, RecipientType, RegistrarAddress, RelationshipType, RepositoryAddress, RepositoryObject, ResourceAddress, ResourceObject, ResponseData, RestoreNodeResult, RewardAddress, RewardGuard, type RewardGuardInput, RewardObject, SecureAccountStorage, SecureEnvelope, type SendMessageResult, ServiceAddress, ServiceGuard, ServiceObject, ServiceSale, SettingsRequest, SettingsResponse, SignatureAlgorithm, SignedAction, SignedBridgeActionResponse, SupportedValue, TOKENS_CLAIMED_TOPIC, TOKENS_DEPOSITED_TOPIC, TOKENS_DEPOSITED_V2_TOPIC, TableAnswer, TableAnswerItem, TableItemQuery, TableItem_AddressMark, TableItem_DemandPresenter, TableItem_EntityLinker, TableItem_EntityRegistrar, TableItem_MachineNode, TableItem_PermissionPerm, TableItem_ProgressHistory, TableItem_RepositoryData, TableItem_RewardRecord, TableItem_TreasuryHistory, TableQuery, TextFormat, TokenDataFilter, TokenInfo, TokenTypeInfo, TransactionDetail, TransactionHistoryAnswer, TransactionHistoryItem, TransactionQuery, TransferRecord, TransferStatus, TreasuryAddress, TreasuryObject, TreasuryOp, TreasuryRecord, TxAddress, TxAddressVec, TxBalanceChange, TxNumber, TxNumberVec, TxObject, TxObjectChange, TxString, TypeNamedObject, TypeNamedObjectWithPermission, TypedDescriptionObject, TypedPermissionObject, USER_DEFINED_PERM_INDEX_START, type UserModeRecord, UserModeStorage, ValueContainer, ValueType, ValueTypeInput, ValueTypeToType, VoteWeight, VotingGuard, WErrors, WException, WIP, WITHDRAW_DURATION_TIME, WOWOK_WTS_PROOF_TYPE, WObject, WReceivedObject, WResult, WTS_FILE_BYTES_LIMIT, WTS_MAX_MESSAGE_COUNT, WValidate, W_ENSURE, W_ERROR, W_FAILURE, W_SAFE, W_SUCCESS, W_VALIDATE_PARAM, WipContent, WipCreateOptions, WipError, WipFile, WipGenerationOptions, WipLimits, WipMedia, WipMeta, WipPayload, WipSignature, WipSignatureVerification, WipSizeError, WipToHtmlOptions, WipValidationError, WipVerificationResult, WithPermissionObject, WitnessSourceType, WitnessTargetType, WitnessType, WitnessTypeInput, WowClaimState, WowClaimStatus, type WtsFileResult, type WtsGenerationParams, account_operation, arbitrationFn, bcsBytesToValue, blacklist, buildClaimMessage, bytesToBigInt, bytesToHex, checkType, claimOnEth, claimOnEthBySeq, claimOnWow, contactFn, createSensitiveLogger, createValueContainer, createWip, data2object, demandFn, depositErc20, depositEth, depositFromEth, depositFromWow, encodeApprove, encodeBridgeERC20, encodeBridgeERC20V2, encodeBridgeETH, encodeBridgeETHV2, encodeIsTransferProcessed, encodeTokenTransferPayloadV2, encodeTransferBridgedTokensWithSignatures, enrichMoveError, extractCoinType, extractZipFromPlaintext, extract_zip_messages, fetch_token_info_operation, filterGuardInstruct, findEvmChainConfig, findEvmChainConfigByBridgeChainId, findToken, findTokenBySymbol, formatGuardParseErrors, friendslist, gen_passport, gen_proof, generateNodeComments, generate_wip, generate_wts, getCallEnvAccount, getCoinParam, getFullnodeUrl, getGuardQueryInfo, getLogLevel, getMessengerManager, getMoveErrorDescription, getMoveNameFromNumber, getMoveNameFromObjectType, getNumberFromMoveName, getNumberFromObjectType, getNumbersFromObjectTypes, getObjectTypeDefinition, getObjectTypeDefinitionFromNumber, getObjectTypeFromMoveName, getObjectTypeFromNumber, getObjectTypesFromNumbers, getWowDir, getWowMcpDir, guard2file, guardlist, hexToBytes, idFromToString, isBizPermIndex, isCallResultSubmission, isEvmChain, isEvmNonceAlreadyProcessed, isGasTokenType, isThisPackage, isValidAddress, isValidArray, isValidDescription, isValidEvmAddress, isValidHttpUrl, isValidIdFromInput, isValidLongName, isValidName, isValidU128, isValidU16, isValidU256, isValidU32, isValidU64, isValidU8, isValidValueContainer, isValidValueType, isValidValueTypeInput, isValidWitnessTypeInput, isValueTypeNumber, isWException, isWitnessType, isWowChain, loadWip, local_info_operation, local_mark_operation, logger, machineFn, machineNode2file, makeBridgeTransferState, mark_conversation_as_viewed, mark_messages_as_viewed, numberToObjectType, objectTypeToNumber, object_module_and_name_from_type, object_name_from_type, owner_receive, parseEthClaimEvent, parseEthDepositEvent, parseGuardFile, parseGuardFromMarkdown, parseIdFrom, parseObjectType, parseRecipient, parseTypeParameter, parseValueType, parseWitnessType, permission_set, privateKeyToAddress, proof_message, pull_messages, queryErc20Balance, queryEthBalance, queryEthTxConfirmations, queryEthTxReceipt, queryEvmToWowTransferStatus, queryObjectWithType, queryObjectsWithType, queryPermissions, queryProtocolInfo, queryTableItem_AddressMark, queryTableItem_DemandPresenter, queryTableItem_EntityLinker, queryTableItem_EntityRegistrar, queryTableItem_MachineNode, queryTableItem_PermissionPerm, queryTableItem_ProgressHistory, queryTableItem_RepositoryData, queryTableItem_RewardRecord, queryTableItem_TreasuryHistory, queryWowClaimStatus, queryWowToEvmTransferStatus, queryWowTx, query_account, query_account_list, query_address_activity, query_address_activity_json, query_common_mistakes, query_events, query_events_json, query_local_info, query_local_info_default, query_local_info_list, query_local_mark, query_local_mark_list, query_local_token_list, query_object_history, query_object_history_json, query_objects, query_objects_json, query_personal, query_received, query_table, query_tableItem, query_table_json, query_transaction, query_transaction_json, raw2type, registerBridgeEvmNetworks, repositoryFn, resolveCallEnv, restoreNodeFromOutput, rewardFn, send_file, send_message, serviceFn, setLogLevel, settings, signEIP1559, signLegacy, sign_wip, sign_wts, toChecksumAddress, toTxAddress, toTxAddressVec, toTxObject, toTxString, toTxU128, toTxU16, toTxU16Vec, toTxU256, toTxU32, toTxU64, toTxU8, transformPersonalInput, transformRewardInput, treasuryFn, uint2address, validObjects, validateGuardData, validateGuardNode, valueToBcsBytes, valueTypeToString, verifyCommitteeConsistency, verifyWip, verify_wip, verify_wts, waitForEthTx, waitForWowTx, watch_conversations, watch_messages, wip2html, wipToHtml, witnessTypeToString, wts2html };
|
|
12
|
+
export { AbiMessage, Account, AccountData, AccountFilter, AccountOperation, AccountOperationResult, AccountOrMark_Address, type AccountOrMark_AddressInput, AddressActivityQuery, AddressResult, AllocationAddress, AllocationMode, AllocationObject, AllocationSharing, Allocator, Allocators, Amount, AmountFromDepositGuard, AmountFromWithdrawGuard, AmountType, ArbAddress, ArbEvent, ArbIndemnity, ArbObject, ArbProposition, ArbStatus, ArbVoted, ArbitrationAddress, ArbitrationObject, BRIDGE_CURRENT_VERSION, BRIDGE_EVM_ADDRESS_LENGTH, BRIDGE_MESSAGE_VERSION, BRIDGE_STEP_DESCRIPTIONS, BRIDGE_TRANSFER_STATUS_APPROVED, BRIDGE_TRANSFER_STATUS_CLAIMED, BRIDGE_TRANSFER_STATUS_NOT_FOUND, BRIDGE_TRANSFER_STATUS_PENDING, BUITIN_IDS, BalanceType, BlacklistRequest, BlacklistResponse, BridgeCallResult, BridgeChainId, BridgeClient, BridgeClientOptions, BridgeCommitteeMember, BridgeConfig, BridgeError, BridgeErrorCode, BridgeLimit, BridgeMessage, BridgeNodeClient, BridgeNodeClientOptions, BridgeResult, BridgeSummary, BridgeToken, BridgeTokenId, BridgeTokenSymbol, BridgeTransferDirection, BridgeTransferRecord, BridgeTransferState, BridgeTransferStatus, BridgeTransferStep, BridgeVersion, BuiltinPermissionIndex, COMMON_MISTAKES, CallAllocation, type CallAllocation_Data, CallArbitration, type CallArbitration_Data, CallBase, CallContact, type CallContact_Data, CallDemand, type CallDemand_Data, CallEnv, CallGuard, type CallGuard_Data, CallMachine, type CallMachine_Data, CallOrder, type CallOrder_Data, CallPayment, type CallPayment_Data, CallPermission, type CallPermission_Data, CallPersonal, type CallPersonal_Data, type CallPersonal_DataInput, type CallPersonal_DataMarkInput, CallProgress, type CallProgress_Data, CallProof, type CallProof_Data, CallRepository, type CallRepository_Data, CallResponseError, CallResult, CallReward, type CallReward_Data, type CallReward_DataInput, CallService, type CallService_Data, CallTreasury, type CallTreasury_Data, ClaimEthOptions, ClaimEthParams, ClaimWowParams, ClaimWowResult, CoinObject, CoinParam, CoinWrapPrefix, CoinWrapperObject, CommonMistakeFilter, CommonMistakeInfo, Config, ConfigData, ContactAddress, ContactObject, ContextType, type ConversationInfo, type ConversationsFilter, CryptoVault, DEFAULT_ACCOUNT_NAME, DEFAULT_LIMITS, DEFAULT_LOCK_DURATION, DEFAULT_MESSENGER_CONFIG, DEFAULT_QUERY_LIMIT, DISCOUNT_TYPE_MINUS, DISCOUNT_TYPE_RATES, type DecryptedMessage, DemandAddress, DemandFeedbackEvent, DemandObject, DemandPresentEvent, DepositErc20Options, DepositEthOptions, DepositParams, DepositWowParams, DepositWowResult, DescriptionObject, DiffField, DiscountObject, DiscountType, ENTITY_LINKER_ADDRESS, ENTITY_REGISTRAR_ADDRESS, ENTRYPOINT, ERC20_TRANSFER_TOPIC, ETH_MAINNET, EdgeSource, EncryptionMode, EntityAddress, Evaluation, EvaluationInput, EvaluationType, EventAnswer, EventBase, EventCursor, EventQuery, EventType, EvmAccount, EvmAccountData, EvmAccountFilter, EvmChainConfig, EvmLog, EvmNetworkConfig, EvmNetworkRegistry, EvmNoncePrecheckParams, EvmTransactionReceipt, EvmTransactionRequest, EvmTxReceipt, FUNDING_GUIDANCE, FaucetCoinInfo, FaucetNetwork, FetchTokenInfoOperation, FriendslistRequest, FriendslistResponse, FundingGuidance, GUARDINSTRUCT, GUARDQUERY, GasCoinType, GasTokenType, GetAccountOrMark_Address, GetLocalNamesByAddresses, GetManyAccountOrMark_Address, GetObject, GetObjectDescription, GetObjectExisted, GraphData, GraphEdge, GraphEdgeInput, GraphNode, GuardAddress, GuardInPassport, GuardInstruct, GuardInstructFilterOptions, GuardItem, GuardObject, GuardParam, type GuardParseError, type GuardParseResult, GuardQuery, GuardSubmission, type GuardValidationIssue, GuardlistRequest, GuardlistResponse, HashAlgorithm, type IAccountStorage, INFO_CONSTANT, IdFrom, IdFromInput, Im, ImageMimeType, ImageSource, InfoData, InfoDataInner, IsBcsStringLength, IsValidArgType, IsValidBalance, IsValidEndpoint, KeyMetadata, LocalInfo, LocalInfoContentMaxCount, LocalInfoContentMaxLength, LocalInfoFilter, LocalInfoNameDefault, LocalInfoNameMaxLength, LocalInfoOperation, LocalInfoOperationResult, LocalMark, LocalMarkFilter, LocalMarkNameMaxLength, LocalMarkOperation, LocalMarkOperationResult, LocalMarkTagMaxCount, LocalMarkTagMaxLength, LocalNameByAddress, LocalProject, LogLevel, Logger, MAINNET_BRIDGE_CONFIG, MAINNET_COMMITTEE_MEMBER_ADDRESSES, MAINNET_COMMITTEE_PUBKEYS, MAINNET_COMMITTEE_WEIGHTS, MAX_ADDRESS_COUNT, MAX_ADMIN_COUNT, MAX_AGENT_COUNT, MAX_ALLOCATOR_COUNT, MAX_ARBITRATION_COUNT, MAX_CONSENSUS_REPOSITORIES_COUNT, MAX_CONTEXT_REPOSITORY_COUNT, MAX_DATA_SIZE, MAX_DEPENDED_COUNT, MAX_DESCRIPTION_LENGTH, MAX_DISCOUNT_COUNT_ONCE, MAX_DISCOUNT_RECEIVER_ONCE, MAX_DISCOUNT_TOTAL_COUNT, MAX_DISPUTE_COUNT, MAX_ENTITY_COUNT, MAX_ENV_PERMISSION_GUARD_COUNT, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, MAX_FORWARD_COUNT, MAX_FORWARD_ORDER_COUNT, MAX_GUARD_COUNT_DEMAND, MAX_GUARD_COUNT_PASSPORT, MAX_GUARD_COUNT_REWARD, MAX_GUARD_TABLE_ITEM_LENGTH, MAX_ID_COUNT_ONCE, MAX_IM_COUNT, MAX_INPUT_SIZE, MAX_LONG_NAME_LENGTH, MAX_MESSENGER_ACCOUNTS, MAX_MULTI_OPERANDS, MAX_NAMED_OPERATOR_ADDRESS_COUNT, MAX_NAMED_OPERATOR_COUNT, MAX_NAME_LENGTH, MAX_NODE_COUNT, MAX_NODE_COUNT_ONCHAIN, MAX_NODE_PAIR_COUNT, MAX_OBJECTS_PER_QUERY, MAX_PERMISSION_GUARD_COUNT, MAX_PERM_FOR_ENTITY, MAX_POLICY_COUNT, MAX_POLICY_DESCRIPTION_LEN, MAX_POLICY_GUARD_COUNT, MAX_PROOF_SIZE, MAX_PROPOSITION_COUNT, MAX_QUERY_LIMIT, MAX_RECIPIENT_COUNT, MAX_RECORD_COUNT_REGISTRAR, MAX_RECORD_COUNT_REWARD, MAX_RECORD_LENGTH, MAX_REPOSITORY_COUNT, MAX_REQUIRED_INFO_SIZE, MAX_REWARD_COUNT, MAX_SALE_COUNT, MAX_SERVER_PUBKEY_SIZE, MAX_SERVER_SIGNATURE_SIZE, MAX_SHARING_COUNT, MAX_SUBMISSION_SIZE_PASSPORT, MAX_TABLE_SIZE, MAX_TAGS_COUNT, MAX_VOTING_GUARD_COUNT, MAX_VOTOR_COUNT, MAX_WIP_HASH_LENGTH, MAX_WIP_LENGTH, MachineAddress, MachineForward, MachineForwardGuard, MachineNode, type MachineNodeForwardResult, MachineNodePair, MachineObject, ManyAccountOrMark_Address, type ManyAccountOrMark_AddressInput, MarkData, MarkParam, type MaxNodeCountSdkLiteral, type Message, type MessageContentType, MessageDirection, type MessageFilter, type MessageListResult, MessageStatus, MessageType, Messenger, type MessengerConfig, MessengerError, MessengerErrorCode, MessengerManager, Modules, MoveErrors, MoveModuleError, NORMAL_MESSAGE_BYTES_LIMIT, NamedObject, NamedObjectWithDescription, NamedObjectWithPermission, NamedOperator, NewEntityEvent, NewOrderEvent, NormalObject, OBJECT_TYPE_DEFINITIONS, ONCHAIN_CONSTANTS, ObjectAllocation, ObjectArb, ObjectArbitration, ObjectBase, ObjectCacheEntry, ObjectCacheHistoryEntry, ObjectContact, ObjectDemand, ObjectDiff, ObjectDiscount, ObjectEntity, ObjectEntityLinker, ObjectEntityRegistrar, ObjectGuard, ObjectHistoryQuery, ObjectMachine, ObjectModuleAndName, ObjectOrder, ObjectPassport, ObjectPayment, ObjectPermission, ObjectPersonal, ObjectProgress, ObjectProof, ObjectRepository, ObjectResource, ObjectResult, ObjectReward, ObjectRole, ObjectService, ObjectTreasury, ObjectType, ObjectTypeDefinition, ObjectWithType, ObjectsAnswer, ObjectsOp, ObjectsQuery, type OnchainConstantName, OperatorType, OrderAddress, OrderObject, PackageAddress, PassportObject, PaymentAddress, PaymentInfo, PaymentInfoObject, PaymentObject, PermissionAddress, type PermissionFilter, type PermissionInfoType, PermissionObject, PersonalQuery, PolicyRule, PolicyWriteGuard, ProgressAddress, ProgressEvent, ProgressObject, ProgressSession, ProgressSessionHolder, Project, ProjectCreate, ProjectDocument, ProjectFilter, ProjectObject, ProjectObjectAdd, ProjectPerspective, ProjectStatus, ProjectUpdate, ProjectVersion, ProofAddress, ProtocolInfoQuery, ProtocolInfoResult, PurchasedItem, QueryAccount, QueryAccountResult, QueryInvariant, QueryReceived, QueryTableItem_Entity, QueryTableItem_byAddress, QueryTableItem_byNameAddress, QueryTableItem_byString, QueryTableItem_byU64, ReceivedBalance, ReceivedBalanceObject, ReceivedBalanceOrRecently, ReceivedNormal, ReceivedObject, ReceivedObjects, ReceivedObjectsOrRecently, Recipient, RecipientType, RegistrarAddress, RelationshipType, RepositoryAddress, RepositoryObject, ResourceAddress, ResourceObject, ResponseData, RestoreNodeResult, RewardAddress, RewardGuard, type RewardGuardInput, RewardObject, SecureAccountStorage, SecureEnvelope, type SendMessageResult, ServiceAddress, ServiceContextQuery, ServiceContextResult, ServiceGuard, ServiceObject, ServiceSale, SettingsRequest, SettingsResponse, SignatureAlgorithm, SignedAction, SignedBridgeActionResponse, SupportedValue, TOKENS_CLAIMED_TOPIC, TOKENS_DEPOSITED_TOPIC, TOKENS_DEPOSITED_V2_TOPIC, TableAnswer, TableAnswerItem, TableItemQuery, TableItem_AddressMark, TableItem_DemandPresenter, TableItem_EntityLinker, TableItem_EntityRegistrar, TableItem_MachineNode, TableItem_PermissionPerm, TableItem_ProgressHistory, TableItem_RepositoryData, TableItem_RewardRecord, TableItem_TreasuryHistory, TableQuery, TextFormat, TokenDataFilter, TokenInfo, TokenTypeInfo, TransactionDetail, TransactionHistoryAnswer, TransactionHistoryItem, TransactionQuery, TransferRecord, TransferStatus, TreasuryAddress, TreasuryObject, TreasuryOp, TreasuryRecord, TxAddress, TxAddressVec, TxBalanceChange, TxEvent, TxNumber, TxNumberVec, TxObject, TxObjectChange, TxString, TypeNamedObject, TypeNamedObjectWithPermission, TypedDescriptionObject, TypedPermissionObject, USER_DEFINED_PERM_INDEX_START, type UserModeRecord, UserModeStorage, ValueContainer, ValueType, ValueTypeInput, ValueTypeToType, VoteWeight, VotingGuard, WErrors, WException, WIP, WITHDRAW_DURATION_TIME, WOWOK_WTS_PROOF_TYPE, WObject, WReceivedObject, WResult, WTS_FILE_BYTES_LIMIT, WTS_MAX_MESSAGE_COUNT, WValidate, W_ENSURE, W_ERROR, W_FAILURE, W_SAFE, W_SUCCESS, W_VALIDATE_PARAM, WipContent, WipCreateOptions, WipError, WipFile, WipGenerationOptions, WipLimits, WipMedia, WipMeta, WipPayload, WipSignature, WipSignatureVerification, WipSizeError, WipToHtmlOptions, WipValidationError, WipVerificationResult, WithPermissionObject, WitnessSourceType, WitnessTargetType, WitnessType, WitnessTypeInput, WowClaimState, WowClaimStatus, type WtsFileResult, type WtsGenerationParams, account_operation, arbitrationFn, bcsBytesToValue, blacklist, buildClaimMessage, bytesToBigInt, bytesToHex, checkType, claimOnEth, claimOnEthBySeq, claimOnWow, contactFn, createSensitiveLogger, createValueContainer, createWip, data2object, demandFn, depositErc20, depositEth, depositFromEth, depositFromWow, encodeApprove, encodeBridgeERC20, encodeBridgeERC20V2, encodeBridgeETH, encodeBridgeETHV2, encodeIsTransferProcessed, encodeTokenTransferPayloadV2, encodeTransferBridgedTokensWithSignatures, enrichMoveError, extractCoinType, extractZipFromPlaintext, extract_zip_messages, fetch_token_info_operation, filterGuardInstruct, findEvmChainConfig, findEvmChainConfigByBridgeChainId, findToken, findTokenBySymbol, formatGuardParseErrors, friendslist, gen_passport, gen_proof, generateNodeComments, generate_wip, generate_wts, getCallEnvAccount, getCoinParam, getFullnodeUrl, getGraphqlUrl, getGuardQueryInfo, getLogLevel, getMessengerManager, getMoveErrorDescription, getMoveNameFromNumber, getMoveNameFromObjectType, getNumberFromMoveName, getNumberFromObjectType, getNumbersFromObjectTypes, getObjectTypeDefinition, getObjectTypeDefinitionFromNumber, getObjectTypeFromMoveName, getObjectTypeFromNumber, getObjectTypesFromNumbers, getWowDir, getWowMcpDir, guard2file, guardlist, hexToBytes, idFromToString, isBizPermIndex, isCallResultSubmission, isEvmChain, isEvmNonceAlreadyProcessed, isGasTokenType, isThisPackage, isValidAddress, isValidArray, isValidDescription, isValidEvmAddress, isValidHttpUrl, isValidIdFromInput, isValidLongName, isValidName, isValidU128, isValidU16, isValidU256, isValidU32, isValidU64, isValidU8, isValidValueContainer, isValidValueType, isValidValueTypeInput, isValidWitnessTypeInput, isValueTypeNumber, isWException, isWitnessType, isWowChain, loadWip, local_info_operation, local_mark_operation, logger, machineFn, machineNode2file, makeBridgeTransferState, mark_conversation_as_viewed, mark_messages_as_viewed, numberToObjectType, objectTypeToNumber, object_module_and_name_from_type, object_name_from_type, owner_receive, parseEthClaimEvent, parseEthDepositEvent, parseGuardFile, parseGuardFromMarkdown, parseIdFrom, parseObjectType, parseRecipient, parseTypeParameter, parseValueType, parseWitnessType, permission_set, privateKeyToAddress, proof_message, pull_messages, queryErc20Balance, queryEthBalance, queryEthTxConfirmations, queryEthTxReceipt, queryEvmToWowTransferStatus, queryObjectWithType, queryObjectsWithType, queryPermissions, queryProtocolInfo, queryTableItem_AddressMark, queryTableItem_DemandPresenter, queryTableItem_EntityLinker, queryTableItem_EntityRegistrar, queryTableItem_MachineNode, queryTableItem_PermissionPerm, queryTableItem_ProgressHistory, queryTableItem_RepositoryData, queryTableItem_RewardRecord, queryTableItem_TreasuryHistory, queryWowClaimStatus, queryWowToEvmTransferStatus, queryWowTx, query_account, query_account_list, query_address_activity, query_address_activity_json, query_common_mistakes, query_events, query_events_json, query_local_info, query_local_info_default, query_local_info_list, query_local_mark, query_local_mark_list, query_local_token_list, query_object_history, query_object_history_json, query_objects, query_objects_json, query_personal, query_received, query_serviceContext, query_table, query_tableItem, query_table_json, query_transaction, query_transaction_json, raw2type, registerBridgeEvmNetworks, repositoryFn, resolveCallEnv, restoreNodeFromOutput, rewardFn, send_file, send_message, serviceFn, setLogLevel, settings, signEIP1559, signLegacy, sign_wip, sign_wts, toChecksumAddress, toTxAddress, toTxAddressVec, toTxObject, toTxReceivingObject, toTxString, toTxU128, toTxU16, toTxU16Vec, toTxU256, toTxU32, toTxU64, toTxU8, transformPersonalInput, transformRewardInput, treasuryFn, uint2address, validObjects, validateGuardData, validateGuardNode, valueToBcsBytes, valueTypeToString, verifyCommitteeConsistency, verifyWip, verify_wip, verify_wts, waitForEthTx, waitForWowTx, watch_conversations, watch_messages, wip2html, wipToHtml, witnessTypeToString, wts2html };
|