-
Notifications
You must be signed in to change notification settings - Fork 0
/
src__pages__PPP__Mining.async.js
1 lines (1 loc) · 22 KB
/
src__pages__PPP__Mining.async.js
1
(self.webpackChunk=self.webpackChunk||[]).push([[5221],{91604:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(1413),a=r(87462),s=r(62435),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(84089),c=function(e,t){return s.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:o}))};var u=s.forwardRef(c),l=r(28459),d=r(2058),f=r(9105),p=r(90789),m=r(86074),g=s.forwardRef((function(e,t){var r=e.fieldProps,a=e.title,o=void 0===a?"单击或拖动文件到此区域进行上传":a,i=e.icon,c=void 0===i?(0,m.jsx)(u,{}):i,p=e.description,g=void 0===p?"支持单次或批量上传":p,x=e.action,b=e.accept,h=e.onChange,_=e.value,v=e.children,w=e.max,j=e.proFieldProps,k=(0,s.useContext)(l.ZP.ConfigContext),F=(0,s.useContext)(f.A),y=(null==j?void 0:j.mode)||F.mode||"edit",S=k.getPrefixCls("upload"),P=(void 0===w||!_||(null==_?void 0:_.length)<w)&&"read"!==y&&!0!==(null==j?void 0:j.readonly);return(0,m.jsxs)(d.Z.Dragger,(0,n.Z)((0,n.Z)({ref:t,name:"files",action:x,accept:b,fileList:_},r),{},{onChange:function(e){null==h||h(e),null!=r&&r.onChange&&(null==r||r.onChange(e))},style:(0,n.Z)((0,n.Z)({},null==r?void 0:r.style),{},{display:P?void 0:"none"}),children:[(0,m.jsx)("p",{className:"".concat(S,"-drag-icon"),children:c}),(0,m.jsx)("p",{className:"".concat(S,"-text"),children:o}),(0,m.jsx)("p",{className:"".concat(S,"-hint"),children:g}),v?(0,m.jsx)("div",{className:"".concat(S,"-extra"),style:{padding:16},children:v}):null]}))})),x=(0,p.G)(g,{getValueFromEvent:function(e){return e.fileList}})},218:function(e,t,r){"use strict";r.d(t,{s:function(){return f}});var n=r(5574),a=r.n(n),s=r(37476),o=r(90672),i=r(59530),c=r(45360),u=r(62435),l=r(86074),d=u.forwardRef((function(e,t){var r=c.ZP.useMessage(),n=a()(r,2),d=n[0],f=n[1],p=(0,u.useRef)(),m=(0,u.useState)(!1),g=a()(m,2),x=g[0],b=g[1],h=(0,u.useState)(""),_=a()(h,2),v=_[0],w=_[1],j=(0,u.useState)(""),k=a()(j,2),F=k[0],y=k[1],S=(0,i.useIntl)(),P=S.formatMessage({id:"msig.intlPreviewFail"}),Z=S.formatMessage({id:"msig.intlClose"}),z=(0,u.useCallback)((function(e){var t=new FileReader;t.readAsText(e.originFileObj),t.onload=function(){try{var r,n=JSON.parse(t.result);if(n)null===(r=p.current)||void 0===r||r.setFieldValue("content",JSON.stringify(n,null,2)),w(JSON.stringify(n,null,2)),y(e.name),b(!0);else d.error("".concat(P))}catch(e){d.error("".concat(P))}}}),[]);return(0,u.useImperativeHandle)(t,(function(){return{handleOpen:z}})),(0,l.jsxs)(s.Y,{formRef:p,title:(0,l.jsx)("div",{className:"mt-3",children:F}),open:x,onOpenChange:function(e){b(e)},layout:"vertical",width:"700px",modalProps:{style:{top:25}},submitter:{searchConfig:{resetText:Z},render:function(e,t){return[t[0]]}},children:[(0,l.jsx)(o.Z,{name:"content",fieldProps:{autoSize:{minRows:5},allowClear:!1,autoFocus:!1,onChange:void 0,value:v,size:"large"}}),f]})})),f=(0,u.memo)(d)},65992:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return q}});var n=r(64599),a=r.n(n),s=r(97857),o=r.n(s),i=r(15009),c=r.n(i),u=r(99289),l=r.n(u),d=r(5574),f=r.n(d),p=r(11774),m=r(38345),g=r(97269),x=r(5966),b=r(31199),h=r(91604),_=r(62435),v=r(59530),w=r(45360),j=r(15867),k=r(80507),F=r(64119),y=r(27484),S=r.n(y),P=r(70178),Z=r.n(P),z=r(37476),C=r(90672),V=r(86074);S().extend(Z());var N=_.forwardRef((function(e,t){var r=w.ZP.useMessage(),n=f()(r,2),a=n[0],s=n[1],o=(0,_.useRef)(),i=(0,_.useState)(!1),u=f()(i,2),d=u[0],p=u[1],m=(0,_.useState)(""),g=f()(m,2),x=g[0],b=g[1],h=(0,_.useState)(""),k=f()(h,2),F=k[0],y=k[1],S=(0,_.useState)([]),P=f()(S,2),Z=P[0],N=P[1],T=(0,_.useState)(0),M=f()(T,2),q=M[0],R=M[1],O=(0,_.useState)(0),$=f()(O,2),D=$[0],E=$[1],I=(0,v.useIntl)(),A=I.formatMessage({id:"common.intlCopySuccess"}),J=I.formatMessage({id:"common.intlCopy"}),L=I.formatMessage({id:"common.intlExport"}),U=I.formatMessage({id:"contract.intlSignedTransaction"}),H=I.formatMessage({id:"contract.intlExported"}),Y=(0,_.useCallback)((function(e,t,r,n,a){var s;null===(s=o.current)||void 0===s||s.setFieldValue("content",JSON.stringify(e,null,2)),b(JSON.stringify(e,null,2)),y(t),N(r),R(n),E(a),p(!0)}),[]);(0,_.useImperativeHandle)(t,(function(){return{handleOpen:Y}}));var G=(0,_.useCallback)(l()(c()().mark((function e(){return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.navigator.clipboard.writeText(x);case 2:a.success("".concat(A));case 3:case"end":return e.stop()}}),e)}))),[x]),W=(0,_.useCallback)((function(){var e="";Z.forEach((function(t){e+="".concat(t.actor,"@").concat(t.permission,"_")})),e="[".concat(e.slice(0,-1),"]");var t="data:,".concat(x),r=document.createElement("a");r.href=t,r.download="".concat(e,"_pid").concat(q,"_mid").concat(D,"_expiration@").concat(F,"_msig.json"),r.click(),a.info("".concat(H)),p(!1)}),[x,F,Z,q,D]);return(0,V.jsxs)(z.Y,{formRef:o,title:U,open:d,onOpenChange:function(e){p(e)},submitter:{render:function(e,t){return[t[0],(0,V.jsx)(j.ZP,{onClick:G,children:J},"copy"),(0,V.jsx)(j.ZP,{type:"primary",onClick:W,children:L},"export")]}},layout:"vertical",width:"700px",modalProps:{style:{top:25}},children:[(0,V.jsx)(C.Z,{name:"content",fieldProps:{autoSize:{minRows:5},allowClear:!1,autoFocus:!1,onChange:void 0,value:x,size:"large"}}),s]})})),T=(0,_.memo)(N),M=r(218);S().extend(Z());var q=function(){var e=w.ZP.useMessage(),t=f()(e,2),r=t[0],n=t[1],s=(0,v.useSelector)((function(e){return e.global.account})),i=((0,v.useSelector)((function(e){return e.ppp.accessAccounts})),(0,v.useSelector)((function(e){return e.ppp.vipAccounts}))),u=(0,v.useSelector)((function(e){return e.global.session})),d=(0,v.useSelector)((function(e){return e.global.privateKey})),y=(0,_.useState)(!1),P=f()(y,2),Z=P[0],z=P[1],C=(0,_.useState)(!1),N=f()(C,2),q=N[0],R=N[1],O=(0,_.useState)([]),$=f()(O,2),D=$[0],E=$[1],I=(0,_.useRef)(),A=(0,_.useRef)(),J=(0,_.useRef)(),L=(0,_.useRef)(),U=(0,v.useIntl)(),H=U.formatMessage({id:"coffee.inputException"}),Y=U.formatMessage({id:"msig.intlTransactionInfo"}),G=U.formatMessage({id:"msig.intlUploadFail"}),W=U.formatMessage({id:"msig.intlUploadSuccess"}),Q=U.formatMessage({id:"msig.intlTransactionEmpty"}),B=U.formatMessage({id:"common.intlPleaseConnectWallet"}),K=U.formatMessage({id:"common.intlPleaseConnectNetwork"}),X=U.formatMessage({id:"msig.intlTransactionDifferent"}),ee=U.formatMessage({id:"common.intlTxSuccess"}),te=U.formatMessage({id:"common.intlTxFail"}),re=(0,_.useCallback)(function(){var e=l()(c()().mark((function e(t,n){var a,s,o,i,l;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.client.v1.chain.get_table_rows({code:"dfs3protocol",table:"globals",scope:"dfs3protocol",lower_bound:k.VG.from("project"),upper_bound:k.VG.from("project")});case 3:if(a=e.sent,s=a.rows[0].val,!((o=s+1)<193)){e.next=9;break}return r.error("获取pid异常"),e.abrupt("return",!1);case 9:return e.next=11,u.client.v1.chain.get_table_rows({code:"swapswapswap",table:"markets",scope:"swapswapswap",reverse:!0,limit:10});case 11:if(a=e.sent,i=a.rows[0].mid,!((l=i+1)<217)){e.next=17;break}return r.error("获取mid异常"),e.abrupt("return",!1);case 17:if(l!==n||o!==t){e.next=21;break}return e.abrupt("return",!0);case 21:return e.abrupt("return",!1);case 22:e.next=28;break;case 24:return e.prev=24,e.t0=e.catch(0),(0,F.Tv)(e.t0,r,"handleGetId"),e.abrupt("return",!1);case 28:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(t,r){return e.apply(this,arguments)}}(),[u,F.Tv]),ne=(0,_.useCallback)(function(){var e=l()(c()().mark((function e(t){var n,a,s,l,f,p,m,g,x,b,h,_,v,w,j,y,P,Z,z,C,V,N,T,M,q,R,O,$,D,E,I,A,L,U,H,Y,G,W,Q,B,K,X,ee,te,re,ne,ae;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,n=t.desc,a=t.increase_per_round,s=t.init_nft_number,l=t.init_nft_price,f=t.max_nft_number,p=t.max_token_supply,m=t.nft_bgm,g=t.nft_img,x=t.nft_name,b=t.owner,h=t.project_name,_=t.sec_per_round,v=t.sec_to_burn_nft,w=t.telegram,j=t.token_per_nft,y=t.token_url,P=t.trade_fee_ratio,Z=t.twitter,z=t.website,C=t.mid,V=t.pid,N=t.fee,T=t.buy,M=t.perm,q={account:"dfsfreecpu11",name:"freecpu",authorization:[{actor:"dfs.service",permission:"cpu"},{actor:b,permission:M}],data:F._9.from({user:b})},R=k.aU.from(q),O={account:"eosio.token",name:"transfer",authorization:[{actor:b,permission:M}],data:F.FE.from({from:b,to:"dfs3protocol",quantity:"1.00000000 DFS",memo:"deposit"})},$=k.aU.from(O),D={account:"dfs3protocol",name:"newproject",authorization:[{actor:b,permission:M}],data:F.V5.from({desc:n,increase_per_round:a,init_nft_number:s,init_nft_price:l,max_nft_number:f,max_token_supply:p,nft_bgm:m||"",nft_img:g,nft_name:x,owner:b,project_name:h,sec_per_round:_,sec_to_burn_nft:v,telegram:w||"",token_per_nft:j,token_url:y,trade_fee_ratio:P,twitter:Z||"",website:z||""})},E=k.aU.from(D),I={account:"eosio.token",name:"transfer",authorization:[{actor:b,permission:M}],data:F.FE.from({from:b,to:"dfs3protocol",quantity:l,memo:"mint:".concat(V)})},A=k.aU.from(I),L=[],U=0;U<s;++U)L.push(A);return H={account:"eosio.token",name:"transfer",authorization:[{actor:b,permission:M}],data:F.FE.from({from:b,to:"swapswapswap",quantity:T,memo:"swap:".concat(C,":0")})},Y=k.aU.from(H),N&&!i.includes(b)?(Q={account:"eosio.token",name:"transfer",authorization:[{actor:b,permission:M}],data:F.FE.from({from:b,to:"davidaccount",quantity:N,memo:"fee"})},G=k.aU.from(Q),W=[R,$,E].concat(L,[Y,G])):W=[R,$,E].concat(L,[Y]),e.next=17,u.client.v1.chain.get_info();case 17:return B=e.sent,K=B.getTransactionHeader(),X=S()(),ee=S()(X).add(3600,"seconds").utc().format("YYYY-MM-DDTHH:mm:ss"),te=k.YW.from(o()(o()({},K),{},{expiration:ee,actions:W})),ne=d.signDigest(te.signingDigest(u.chain.id.toString())),re=k.uQ.from(o()(o()({},te),{},{signatures:[ne]})),ae=[{actor:b,permission:M}],J.current.handleOpen(re,ee,ae,V,C),e.abrupt("return",!0);case 29:e.prev=29,e.t0=e.catch(0),(0,F.Tv)(e.t0,r,"handleFinishCreate");case 32:case"end":return e.stop()}}),e,null,[[0,29]])})));return function(t){return e.apply(this,arguments)}}(),[F.Tv,u,i]),ae=(0,_.useCallback)(l()(c()().mark((function e(){var t,n,i,l,d,p,m,g,x,b,h,_,v,w,j,y,S,P,Z,z,C,V,N,T,M,q;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==D.length){e.next=3;break}return r.error(Q),e.abrupt("return",!1);case 3:if(u&&u.broadcast){e.next=8;break}return r.error("".concat(B)),e.abrupt("return");case 8:if(s){e.next=11;break}return r.error("".concat(K)),e.abrupt("return");case 11:t=0,n=0,e.prev=13,i=new Set,l="",d=a()(D),e.prev=17,m=c()().mark((function e(){var a,s,o,u;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=p.value,s=a.name,t=Number(s.match(/mid(\d+)/)[1]),n=Number(s.match(/pid(\d+)/)[1]),e.next=6,new Promise((function(e){var t=new FileReader;t.readAsText(a.originFileObj),t.onload=function(){return e(t.result)}}));case 6:if(o=e.sent,(u=JSON.parse(o)).signatures.forEach((function(e){i.add(e)})),l){e.next=14;break}u.signatures=[],l=JSON.stringify(u),e.next=18;break;case 14:if(u.signatures=[],l===JSON.stringify(u)){e.next=18;break}return r.error(X),e.abrupt("return",{v:!1});case 18:case"end":return e.stop()}}),e)})),d.s();case 20:if((p=d.n()).done){e.next=27;break}return e.delegateYield(m(),"t0",22);case 22:if(!(g=e.t0)){e.next=25;break}return e.abrupt("return",g.v);case 25:e.next=20;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(17),d.e(e.t1);case 32:return e.prev=32,d.f(),e.finish(32);case 35:x=k.YW.from(JSON.parse(l)),b=[],h=new Set,x.actions.forEach((function(e){h.add(e.account.toString())})),x.context_free_actions.forEach((function(e){h.add(e.account.toString())})),_=a()(h),e.prev=41,_.s();case 43:if((v=_.n()).done){e.next=59;break}return w=v.value,e.next=47,(0,F.zI)(u.client.v1.chain.get_abi(w));case 47:if(j=e.sent,y=f()(j,2),S=y[0],P=y[1],!S){e.next=56;break}return r.error(S),e.abrupt("return",!1);case 56:b.push({abi:k.dL.from(P.abi),account:k.VG.from(w)});case 57:e.next=43;break;case 59:e.next=64;break;case 61:e.prev=61,e.t2=e.catch(41),_.e(e.t2);case 64:return e.prev=64,_.f(),e.finish(64);case 67:return e.next=69,(0,F.zI)(u.transact({transaction:x},{broadcast:!1,transactPlugins:[],abis:b}));case 69:if(Z=e.sent,z=f()(Z,2),C=z[0],V=z[1],!C){e.next=78;break}return r.error(C),e.abrupt("return",!1);case 78:return N=V.resolved.transaction,T=V.signatures[0],i.add(T),M=k.uQ.from(o()(o()({},N),{},{signatures:Array.from(i)})),e.next=84,re(n,t);case 84:if(e.sent){e.next=88;break}return r.error("pid或者mid的信息已变更,请重新生成交易文件"),e.abrupt("return",!1);case 88:return e.next=90,u.client.v1.chain.push_transaction(M);case 90:(q=e.sent)&&q.processed&&"executed"===q.processed.receipt.status?r.success(ee):r.error(te);case 92:e.next=97;break;case 94:e.prev=94,e.t3=e.catch(13),(0,F.Tv)(e.t3,r,"handleFinishSend");case 97:case"end":return e.stop()}}),e,null,[[13,94],[17,29,32,35],[41,61,64,67]])}))),[D,r,u,s]),se=(0,_.useCallback)(function(){var e=l()(c()().mark((function e(t){var n;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("removed"!==t.file.status){e.next=3;break}return E(t.fileList),e.abrupt("return");case 3:(n=new FileReader).readAsText(t.fileList[t.fileList.length-1].originFileObj),n.onload=function(){try{JSON.parse(n.result)?(E(t.fileList),r.success("".concat(W))):r.error("".concat(G))}catch(e){(0,F.Tv)(e,r,"handleUpload")}};case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]),oe=(0,_.useCallback)(l()(c()().mark((function e(){var t,n,a,s,o,i,l,d,f;return c()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,R(!0),null===(t=I.current)||void 0===t||t.setFieldValue("mid",void 0),null===(n=I.current)||void 0===n||n.setFieldValue("pid",void 0),e.next=6,u.client.v1.chain.get_table_rows({code:"dfs3protocol",table:"globals",scope:"dfs3protocol",lower_bound:k.VG.from("project"),upper_bound:k.VG.from("project")});case 6:if(o=e.sent,i=o.rows[0].val,!((l=i+1)<193)){e.next=13;break}return r.error("获取pid异常"),R(!1),e.abrupt("return",!1);case 13:return e.next=15,u.client.v1.chain.get_table_rows({code:"swapswapswap",table:"markets",scope:"swapswapswap",reverse:!0,limit:10});case 15:if(o=e.sent,d=o.rows[0].mid,!((f=d+1)<217)){e.next=22;break}return r.error("获取mid异常"),R(!1),e.abrupt("return",!1);case 22:null===(a=I.current)||void 0===a||a.setFieldValue("mid",f),null===(s=I.current)||void 0===s||s.setFieldValue("pid",l),R(!1),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(0),R(!1),(0,F.Tv)(e.t0,r,"handleGetId");case 31:case"end":return e.stop()}}),e,null,[[0,27]])}))),[u,F.Tv]),ie=(0,_.useCallback)((function(){if(Z){if(s){var e=s.accountName.toString();return!!i.includes(e)||(z(!1),!1)}return!0}if(s){var t=s.accountName.toString();return!!i.includes(t)&&(z(!0),!0)}return!1}),[s,Z,i]);return(0,V.jsxs)(p._z,{className:"",ghost:!0,children:[(0,V.jsxs)("div",{className:"flex flex-wrap justify-center gap-5",children:[(0,V.jsxs)(m.Z,{title:(0,V.jsx)("div",{className:" font-semibold text-lg hardline",children:"使用说明"}),style:{maxWidth:"400px"},children:[(0,V.jsx)("div",{children:"1. 如何实现单币挖矿?"}),(0,V.jsx)("div",{className:"ml-3",children:"先创建一个PPP项目,等mint完所有图片后,第一时间买入流动性池子里的大部分代币,然后通过代币和DFS做市来挖矿,赚取DFS收益。"}),(0,V.jsx)("div",{className:"mt-3",children:"2. 如何防止机器人第一时间买入代币?"}),(0,V.jsx)("div",{className:"ml-3",children:"很简单,天下武功为快不破,只要比机器人快就行,并且快到他连抢的机会都没有,完全从机制上限制了机器人第一时间买入。用户无需导入私钥便可以完成操作。"}),(0,V.jsx)("div",{className:"mt-3",children:"3. 费用说明:"}),(0,V.jsx)("div",{className:"ml-3",children:"此项为收费服务,费用为一个项目100DFS,如有需要可联系开发者。"})]}),!!ie()&&(0,V.jsx)(m.Z,{title:(0,V.jsx)("div",{className:" font-semibold text-lg hardline",children:"创建交易"}),style:{maxWidth:"400px"},children:(0,V.jsxs)(g.A,{formRef:I,onFinish:ne,layout:"vertical",initialValues:{increase_per_round:105,init_nft_number:10,init_nft_price:"1.00000000 DFS",max_nft_number:11,sec_per_round:259200,sec_to_burn_nft:518400,trade_fee_ratio:300,fee:"100.00000000 DFS",buy:"1000.00000000 DFS",perm:"owner"},submitter:{searchConfig:{submitText:"生成"},render:function(e,t){return[t[1],(0,V.jsx)(j.ZP,{loading:q,onClick:oe,children:"获取ID"},"id"),t[0]]}},children:[(0,V.jsx)(x.Z,{name:"desc",label:"desc",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(b.Z,{name:"increase_per_round",label:"increase_per_round",placeholder:"",min:100,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:105}}),(0,V.jsx)(b.Z,{name:"init_nft_number",label:"init_nft_number",placeholder:"",min:10,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:10}}),(0,V.jsx)(x.Z,{name:"init_nft_price",label:"init_nft_price",fieldProps:{size:"large",autoFocus:!1,defaultValue:"1.00000000 DFS"},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(b.Z,{name:"max_nft_number",label:"max_nft_number",placeholder:"",min:10,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:11}}),(0,V.jsx)(x.Z,{name:"max_token_supply",label:"max_token_supply",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(x.Z,{name:"nft_bgm",label:"nft_bgm",fieldProps:{size:"large",autoFocus:!1,defaultValue:""}}),(0,V.jsx)(x.Z,{name:"nft_img",label:"nft_img",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(x.Z,{name:"token_url",label:"token_url",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(x.Z,{name:"nft_name",label:"nft_name",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(x.Z,{name:"owner",label:"owner",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^[a-z1-5.]{1,12}$/}]}),(0,V.jsx)(x.Z,{name:"project_name",label:"project_name",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(b.Z,{name:"sec_per_round",label:"sec_per_round",placeholder:"",min:3600,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:259200}}),(0,V.jsx)(b.Z,{name:"sec_to_burn_nft",label:"sec_to_burn_nft",placeholder:"",min:3600,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:518400}}),(0,V.jsx)(x.Z,{name:"telegram",label:"telegram",fieldProps:{size:"large",autoFocus:!1,defaultValue:""}}),(0,V.jsx)(x.Z,{name:"token_per_nft",label:"token_per_nft",fieldProps:{size:"large",autoFocus:!1},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(b.Z,{name:"trade_fee_ratio",label:"trade_fee_ratio",placeholder:"",min:100,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large",defaultValue:300}}),(0,V.jsx)(x.Z,{name:"twitter",label:"twitter",fieldProps:{size:"large",autoFocus:!1,defaultValue:""}}),(0,V.jsx)(x.Z,{name:"website",label:"website",fieldProps:{size:"large",autoFocus:!1,defaultValue:""}}),(0,V.jsx)(x.Z,{name:"fee",label:"fee",fieldProps:{size:"large",autoFocus:!1,defaultValue:"100.00000000 DFS"}}),(0,V.jsx)(x.Z,{name:"perm",label:"权限",fieldProps:{size:"large",autoFocus:!1,defaultValue:"owner"},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^(owner|active)$/}]}),(0,V.jsx)(x.Z,{name:"buy",label:"购买数量",fieldProps:{size:"large",autoFocus:!1,defaultValue:"1000.00000000 DFS"},rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^.+$/}]}),(0,V.jsx)(b.Z,{name:"mid",label:"mid",placeholder:"",min:1,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large"}}),(0,V.jsx)(b.Z,{name:"pid",label:"pid",placeholder:"",min:1,rules:[{required:!0,message:"".concat(H),whitespace:!0,pattern:/^\d+$/}],fieldProps:{autoFocus:!1,size:"large"}})]})}),(0,V.jsx)(m.Z,{title:(0,V.jsx)("div",{className:" font-semibold text-lg hardline",children:"发送交易"}),style:{maxWidth:"400px"},children:(0,V.jsx)(g.A,{formRef:A,onFinish:ae,onReset:function(){var e;null===(e=A.current)||void 0===e||e.resetFields(),E([])},layout:"vertical",submitter:{searchConfig:{submitText:"发送"},render:function(e,t){return[t[1],t[0]]}},children:(0,V.jsx)(h.Z,{label:Y,name:"transactionInfo",action:"upload.do",fieldProps:{accept:".json",onChange:se,beforeUpload:function(){return!1},listType:"picture",onPreview:function(e){return L.current.handleOpen(e)},fileList:D}})})})]}),(0,V.jsx)(T,{ref:J}),(0,V.jsx)(M.s,{ref:L}),n]})}},64599:function(e,t,r){var n=r(96263);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,s=function(){};return{s:s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw o}}}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);