@poolzfinance/api4 1.13.0 → 1.13.2

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.
@@ -1,2 +1,2 @@
1
- import e,{useContext as n,useCallback as i}from"react";import{useMutation as a,HttpLink as t,ApolloClient as d,from as l,InMemoryCache as o,ApolloProvider as m,useQuery as r,useLazyQuery as u}from"@apollo/client";export*from"@apollo/client";import{onError as k}from"@apollo/client/link/error";import{setContext as s}from"@apollo/client/link/context";import c from"crypto-js/sha256";function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},v.apply(null,arguments)}var N=e.createContext(null),p=function(){return e.useContext(N)},S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminCleanCache"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminCleanCache"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"result"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}}]}},{kind:"Field",name:{kind:"Name",value:"messages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"errors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"success"}}]}}]}}]},y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminCreatePoolzBackId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"poolzBackId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminCreatePoolzBackId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"poolzBackId"},value:{kind:"Variable",name:{kind:"Name",value:"poolzBackId"}}},{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminGetAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminGetAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"PhaseId"}},{kind:"Field",name:{kind:"Name",value:"WhiteList"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]}}]},A={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminListOfCollateral"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collateralAddress"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminListOfCollateral"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}},{kind:"Argument",name:{kind:"Name",value:"collateralAddress"},value:{kind:"Variable",name:{kind:"Name",value:"collateralAddress"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"TokenAmountInWei"}},{kind:"Field",name:{kind:"Name",value:"MainCoinAmountInWei"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}}]},f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminListOfPoolzBackId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminListOfPoolzBackId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},D={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminWriteAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AdminWriteAllocation"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminWriteAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}]}]}}]},F={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetApprovedContracts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"onlyApproved"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"approvedContracts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"onlyApproved"},value:{kind:"Variable",name:{kind:"Name",value:"onlyApproved"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ContractAddress"}},{kind:"Field",name:{kind:"Name",value:"Status"}}]}}]}}]},I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminAutoSignUp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"note"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminAutoSignUp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"note"},value:{kind:"Variable",name:{kind:"Name",value:"note"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"PoolzAmount"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},b={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminAutoSignUpAll"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminAutoSignUp"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"PoolzAmount"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"addAutoSignUp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"poolzAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"note"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addAutoSignUp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"Argument",name:{kind:"Name",value:"poolzAmount"},value:{kind:"Variable",name:{kind:"Name",value:"poolzAmount"}}},{kind:"Argument",name:{kind:"Name",value:"note"},value:{kind:"Variable",name:{kind:"Name",value:"note"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"PoolzAmount"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},T={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateAutoSignUp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"poolzAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"note"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateAutoSignUp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}},{kind:"Argument",name:{kind:"Name",value:"poolzAmount"},value:{kind:"Variable",name:{kind:"Name",value:"poolzAmount"}}},{kind:"Argument",name:{kind:"Name",value:"note"},value:{kind:"Variable",name:{kind:"Name",value:"note"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"PoolzAmount"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteAutoSignUp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteAutoSignUp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"PoolzAmount"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},$={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BoostProxyData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"boostProxy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"campaignCodes"},value:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Actions"}},{kind:"Field",name:{kind:"Name",value:"Participants"}},{kind:"Field",name:{kind:"Name",value:"TotalUsers"}},{kind:"Field",name:{kind:"Name",value:"DataKey"}},{kind:"Field",name:{kind:"Name",value:"CampaignName"}},{kind:"Field",name:{kind:"Name",value:"TotalEntries"}},{kind:"Field",name:{kind:"Name",value:"CampaignCode"}}]}}]}}]},C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BoostProxyUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"boostProxy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"campaignCodes"},value:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Actions"}},{kind:"Field",name:{kind:"Name",value:"Participants"}},{kind:"Field",name:{kind:"Name",value:"TotalUsers"}},{kind:"Field",name:{kind:"Name",value:"CampaignName"}},{kind:"Field",name:{kind:"Name",value:"TotalEntries"}},{kind:"Field",name:{kind:"Name",value:"CampaignCode"}},{kind:"Field",name:{kind:"Name",value:"DataKey"}},{kind:"Field",name:{kind:"Name",value:"Users"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"Entries"}}]}}]}}]}}]},P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DaoSenderHistory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"daoSenderHistory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"Token"}},{kind:"Field",name:{kind:"Name",value:"UserCount"}},{kind:"Field",name:{kind:"Name",value:"TotalAmount"}}]}},{kind:"Field",name:{kind:"Name",value:"currentPage"}},{kind:"Field",name:{kind:"Name",value:"totalPages"}}]}}]}}]},x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminCreateAsset"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateAssetRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminCreateAsset"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"Request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"StatusCode"}}]}}]}}]},U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyAssets"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myAssets"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TotalAssets"}},{kind:"Field",name:{kind:"Name",value:"Assets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"RefundFinishTime"}},{kind:"Field",name:{kind:"Name",value:"WithdrawalDetail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"RefundDetail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}}]}}]}}]}}]},E={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RetrieveSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RetrieveSignatureRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retrieveSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Receiver"}},{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Signature"}},{kind:"Field",name:{kind:"Name",value:"IsRefund"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}}]}}]},q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GenerateSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GenerateSignatureRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ValidFrom"}},{kind:"Field",name:{kind:"Name",value:"CurrentTime"}}]}}]}}]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]},O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GenerateTokenFromSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eip4361message"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signature"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateTokenFromSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"eip4361message"},value:{kind:"Variable",name:{kind:"Name",value:"eip4361message"}}},{kind:"Argument",name:{kind:"Name",value:"signature"},value:{kind:"Variable",name:{kind:"Name",value:"signature"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}},{kind:"Field",name:{kind:"Name",value:"validUntil"}}]}}]}}]},B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GenerateMyInvestSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"weiAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateMyInvestSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"weiAmount"},value:{kind:"Variable",name:{kind:"Name",value:"weiAmount"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Signature"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLeaderboardByAddress"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderBoard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Rank"}}]}}]}}]},W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLeaderboard"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderBoard"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Rank"}},{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"Logout"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logout"}}]}}]},R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"EndTime"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyUpcomingAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myUpcomingAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"setMyAgree"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setMyAgree"}}]}}]},G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}},{kind:"Field",name:{kind:"Name",value:"EvmWallets"}}]}}]}}]},H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}},{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}},{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},_={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}}]}}]}}]},Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}},{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}}]}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyInvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myInvestmentsErc20"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"BlockSignedAt"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Token"}},{kind:"Field",name:{kind:"Name",value:"Id"}}]}},{kind:"Field",name:{kind:"Name",value:"myInvestmentsETH"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"BlockSignedAt"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Id"}}]}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"KYC"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myProxyKYC"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Proxy"}},{kind:"Field",name:{kind:"Name",value:"RequestStatus"}},{kind:"Field",name:{kind:"Name",value:"Status"}}]}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyRoles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myRoles"}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PoolxPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"poolxPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Price"}},{kind:"Field",name:{kind:"Name",value:"Timestamp"}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPoolxTokenomics"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"poolxTokenomics"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"CirculatingSupply"}},{kind:"Field",name:{kind:"Name",value:"Locked"}},{kind:"Field",name:{kind:"Name",value:"Data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TotalSupply"}},{kind:"Field",name:{kind:"Name",value:"BuyBack"}},{kind:"Field",name:{kind:"Name",value:"LockedDealV2"}},{kind:"Field",name:{kind:"Name",value:"DelayVault"}},{kind:"Field",name:{kind:"Name",value:"DelayVaultV2"}},{kind:"Field",name:{kind:"Name",value:"Reserved"}}]}},{kind:"Field",name:{kind:"Name",value:"Trade"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Sum"}},{kind:"Field",name:{kind:"Name",value:"Huobi"}},{kind:"Field",name:{kind:"Name",value:"GateIO"}},{kind:"Field",name:{kind:"Name",value:"PancakeSwapV3_01"}},{kind:"Field",name:{kind:"Name",value:"PancakeSwapV3"}},{kind:"Field",name:{kind:"Name",value:"Mexc"}}]}}]}}]}}]},ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SeasonPass"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seasonPass"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateSeasonPass"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ValidUntil"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Note"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createSeasonPass"},arguments:[{kind:"Argument",name:{kind:"Name",value:"seasonPass"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"Owner"},value:{kind:"Variable",name:{kind:"Name",value:"Owner"}}},{kind:"ObjectField",name:{kind:"Name",value:"Amount"},value:{kind:"Variable",name:{kind:"Name",value:"Amount"}}},{kind:"ObjectField",name:{kind:"Name",value:"ValidUntil"},value:{kind:"Variable",name:{kind:"Name",value:"ValidUntil"}}},{kind:"ObjectField",name:{kind:"Name",value:"Note"},value:{kind:"Variable",name:{kind:"Name",value:"Note"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateSeasonPass"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Amount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ValidUntil"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Note"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSeasonPass"},arguments:[{kind:"Argument",name:{kind:"Name",value:"seasonPass"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"Owner"},value:{kind:"Variable",name:{kind:"Name",value:"Owner"}}},{kind:"ObjectField",name:{kind:"Name",value:"Amount"},value:{kind:"Variable",name:{kind:"Name",value:"Amount"}}},{kind:"ObjectField",name:{kind:"Name",value:"ValidUntil"},value:{kind:"Variable",name:{kind:"Name",value:"ValidUntil"}}},{kind:"ObjectField",name:{kind:"Name",value:"Note"},value:{kind:"Variable",name:{kind:"Name",value:"Note"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteSeasonPass"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"owner"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"note"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSeasonPass"},arguments:[{kind:"Argument",name:{kind:"Name",value:"owner"},value:{kind:"Variable",name:{kind:"Name",value:"owner"}}},{kind:"Argument",name:{kind:"Name",value:"note"},value:{kind:"Variable",name:{kind:"Name",value:"note"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Note"}}]}}]}}]},le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MySignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mySignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"SignedUp"}}]}}]}}]},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminSignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"minPoolxAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminSignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"minPoolxAmount"},value:{kind:"Variable",name:{kind:"Name",value:"minPoolxAmount"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},me={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ProjectSignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectSignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"JoinedTime"}}]}}]}}]},re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SimpleUrlShortener"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TxHashChainIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"simpleUrlShortener"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ShortUrl"}},{kind:"Field",name:{kind:"Name",value:"ContainerText"}},{kind:"Field",name:{kind:"Name",value:"UrlToScan"}},{kind:"Field",name:{kind:"Name",value:"XPostText"}}]}}]}}]},ue={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Status"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"RpcUrl"}},{kind:"Field",name:{kind:"Name",value:"CovalentLastBlock"}},{kind:"Field",name:{kind:"Name",value:"SecondsToWarning"}},{kind:"Field",name:{kind:"Name",value:"SecondsToError"}},{kind:"Field",name:{kind:"Name",value:"BlockPerSecond"}},{kind:"Field",name:{kind:"Name",value:"Events"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Active"}},{kind:"Field",name:{kind:"Name",value:"StartingBlock"}},{kind:"Field",name:{kind:"Name",value:"EndingBlock"}},{kind:"Field",name:{kind:"Name",value:"ResponseType"}}]}}]}}]}}]},ke={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TokenInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hashKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tokenInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hashKey"},value:{kind:"Variable",name:{kind:"Name",value:"hashKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"Decimals"}},{kind:"Field",name:{kind:"Name",value:"Name"}},{kind:"Field",name:{kind:"Name",value:"Symbol"}},{kind:"Field",name:{kind:"Name",value:"TotalSupply"}}]}}]}}]},se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TokenRefundsNFT"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"poolId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tokenRefundsNFT"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}},{kind:"Argument",name:{kind:"Name",value:"poolId"},value:{kind:"Variable",name:{kind:"Name",value:"poolId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"BlockSignedAt"}},{kind:"Field",name:{kind:"Name",value:"From"}},{kind:"Field",name:{kind:"Name",value:"TokensRefunded"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TokenId"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}},{kind:"Field",name:{kind:"Name",value:"TokenOut"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TokenId"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]}}]},ce={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Data"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fetchBalance"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vaults"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}},{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"fetchBalance"},value:{kind:"Variable",name:{kind:"Name",value:"fetchBalance"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"VaultId"}},{kind:"Field",name:{kind:"Name",value:"VaultAddress"}},{kind:"Field",name:{kind:"Name",value:"VaultCreationTx"}},{kind:"Field",name:{kind:"Name",value:"TokenAddress"}},{kind:"Field",name:{kind:"Name",value:"TokenName"}},{kind:"Field",name:{kind:"Name",value:"TokenSymbol"}},{kind:"Field",name:{kind:"Name",value:"TokenDecimals"}},{kind:"Field",name:{kind:"Name",value:"Balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"BalanceOfToken"}},{kind:"Field",name:{kind:"Name",value:"FetchTime"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"ChainId"}}]}}]}}]},ve={__proto__:null,AdminCleanCacheDocument:S,AdminCreatePoolzBackIdDocument:y,AdminGetAllocationDocument:g,AdminListOfCollateralDocument:A,AdminListOfPoolzBackIdDocument:f,AdminWriteAllocationDocument:D,GetApprovedContractsDocument:F,AdminAutoSignUpDocument:I,AdminAutoSignUpAllDocument:b,AddAutoSignUpDocument:h,UpdateAutoSignUpDocument:T,DeleteAutoSignUpDocument:V,BoostProxyDataDocument:$,BoostProxyUsersDocument:C,DaoSenderHistoryDocument:P,AdminCreateAssetDocument:x,MyAssetsDocument:U,RetrieveSignatureDocument:E,GenerateSignatureDocument:q,MyQueryDocument:j,GenerateTokenFromSignatureDocument:O,GenerateMyInvestSignatureDocument:B,GetLeaderboardByAddressDocument:z,GetLeaderboardDocument:W,LogoutDocument:w,MyAllocationDocument:R,MyUpcomingAllocationDocument:M,SetMyAgreeDocument:L,MyDataDocument:G,AddEvmWalletDocument:H,DeleteEvmWalletDocument:K,AddNonEvmWalletDocument:Q,DeleteNonEvmWalletDocument:_,UpdateNonEvmWalletDocument:Y,MyInvestedDocument:J,KycDocument:X,MyRolesDocument:Z,PoolxPriceDocument:ee,GetPoolxTokenomicsDocument:ne,SeasonPassDocument:ie,CreateSeasonPassDocument:ae,UpdateSeasonPassDocument:te,DeleteSeasonPassDocument:de,MySignUpV3Document:le,AdminSignUpV3Document:oe,ProjectSignUpV3Document:me,SimpleUrlShortenerDocument:re,StatusDocument:ue,TokenInfoDocument:ke,TokenRefundsNftDocument:se,DataDocument:ce},Ne={"\nmutation AdminCleanCache {\n adminCleanCache {\n result {\n id\n }\n messages {\n code\n message\n }\n errors {\n code\n message\n }\n success\n }\n}":S,"\n mutation AdminCreatePoolzBackId($projectId: String!, $poolzBackId: Int!, $chainId: Int!) {\n adminCreatePoolzBackId(projectId: $projectId, poolzBackId: $poolzBackId, chainId: $chainId) {\n ProjectId\n PoolzBackId\n }\n }\n":y,"\n query AdminGetAllocation($projectId: String!) {\n adminGetAllocation(projectId: $projectId) {\n PhaseId\n WhiteList {\n UserAddress\n Amount\n }\n }\n }\n":g,"\n query AdminListOfCollateral($chainId: Int!, $collateralAddress: String!, $limit: Int!, $page: Int!) {\n adminListOfCollateral(\n chainId: $chainId\n collateralAddress: $collateralAddress\n limit: $limit\n page: $page\n ) {\n PoolId\n TokenAmountInWei\n MainCoinAmountInWei\n FinishTime\n }\n}":A,"\n query AdminListOfPoolzBackId($projectIDs: [String!]!) {\n adminListOfPoolzBackId(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n }\n}":f,"\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n":D,"\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }":F,"\n query AdminAutoSignUp($note: String) {\n adminAutoSignUp(note: $note) {\n Address\n PoolzAmount\n Note\n }\n }":I,"\n query AdminAutoSignUpAll{\n adminAutoSignUp{\n Address\n PoolzAmount\n Note\n }\n }":b,"\n mutation addAutoSignUp($address: String!, $poolzAmount: Float!, $note: String!) {\n addAutoSignUp(address: $address, poolzAmount: $poolzAmount, note: $note) {\n Address\n PoolzAmount\n Note\n }\n }":h,"\n mutation updateAutoSignUp($address: String!, $poolzAmount: Float!, $note: String!) {\n updateAutoSignUp(address: $address, poolzAmount: $poolzAmount, note: $note) {\n Address\n PoolzAmount\n Note\n }\n }":T,"\n mutation deleteAutoSignUp($address: String!) {\n deleteAutoSignUp(address: $address) {\n Address\n PoolzAmount\n Note\n }\n }":V,"\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}":$,"\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}":C,"\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n":P,"\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}":x,"\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}":U,"\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}":E,"\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}":q,"\n query MyQuery {\n time\n}":j,"\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}":O,"\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n":B,"\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}":z,"\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}":W,"\n mutation Logout {\n logout\n }\n":w,"\n query MyAllocation($projectId: String!) {\n myAllocation(projectId: $projectId) {\n Amount\n StartTime\n EndTime\n PoolzBackId\n }\n }":R,"\n query MyUpcomingAllocation($projectIDs: [String!]!) {\n myUpcomingAllocation(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n Amount\n }\n }":M,"\n mutation setMyAgree {\n setMyAgree\n}":L,"\n query MyData {\n myData {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallets\n }\n}":G,"\n mutation AddEvmWallet($wallet: String!) {\n addEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}":H,"\n mutation DeleteEvmWallet($wallet: String!) {\n deleteEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}":K,"\n mutation AddNonEvmWallet($chainName: String!, $wallet: String!) {\n addNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallet\n }\n}":Q,"\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}":_,"\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}":Y,"\n query MyInvested {\n myInvestmentsErc20 {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Token\n Id\n }\n myInvestmentsETH {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Id\n }\n}":J,"\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}":X,"\n query MyRoles {\n myRoles\n }":Z,"\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }":ee,"\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n":ne,"\n query SeasonPass {\n seasonPass {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n":ie,"\n mutation CreateSeasonPass($Owner: String!, $Amount: Float!, $ValidUntil: Int!, $Note: String!) {\n createSeasonPass(\n seasonPass: { Owner: $Owner, Amount: $Amount, ValidUntil: $ValidUntil, Note: $Note }\n ) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n":ae,"\n mutation UpdateSeasonPass($Owner: String!, $Amount: Float!, $ValidUntil: Int!, $Note: String!) {\n updateSeasonPass(\n seasonPass: { Owner: $Owner, Amount: $Amount, ValidUntil: $ValidUntil, Note: $Note }\n ) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n":te,"\n mutation DeleteSeasonPass($owner: String!, $note: String!) {\n deleteSeasonPass(owner: $owner, note: $note) {\n Owner\n Amount\n ValidUntil\n Note\n }\n }\n":de,"\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n":le,"\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n":oe,"\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n":me,"\nquery SimpleUrlShortener($input: TxHashChainIdInput!) {\n simpleUrlShortener(input: $input) {\n ShortUrl\n ContainerText\n UrlToScan\n XPostText\n }\n}":re,"\nquery Status {\n status {\n ChainId\n ChainName\n RpcUrl\n CovalentLastBlock\n SecondsToWarning\n SecondsToError\n BlockPerSecond\n Events {\n Active\n StartingBlock\n EndingBlock\n ResponseType\n }\n }\n }":ue,"\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n":ke,"\n query TokenRefundsNFT($chainId: Int!, $poolId: Int!) {\n tokenRefundsNFT(chainId: $chainId, poolId: $poolId) {\n TxHash\n BlockSignedAt\n From\n TokensRefunded {\n TokenId\n Amount\n }\n TokenOut {\n TokenId\n Amount\n }\n }\n}":se,"\n query Data($chainId: Int, $tokenAddress: String, $fetchBalance: Boolean) {\n vaults(chainId: $chainId, tokenAddress: $tokenAddress, fetchBalance: $fetchBalance) {\n Data {\n VaultId\n VaultAddress\n VaultCreationTx\n TokenAddress\n TokenName\n TokenSymbol\n TokenDecimals\n Balance {\n BalanceOfToken\n FetchTime\n }\n }\n ChainId\n }\n }\n":ce};function pe(e){var n;return null!=(n=Ne[e])?n:{}}var Se,ye="0x0000000000000000000000000000000000000000",ge=pe("\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}"),Ae=function(){return a(ge,{fetchPolicy:"no-cache",context:{headers:{Authorization:ye}}})};!function(e){e[e.NOT_REQUESTED=0]="NOT_REQUESTED",e[e.REQUESTED=1]="REQUESTED",e[e.RECEIVED=2]="RECEIVED"}(Se||(Se={}));var fe=function(n){var i=n.children,a=e.useContext(N).apiState,t=a[0],d=a[1],l=t.account,o=t.privatTokenStatus,m=t.siweResult,r=Ae()[0];return e.useEffect(function(){l&&o===Se.REQUESTED&&m&&function(){try{return Promise.resolve(r({variables:m,fetchPolicy:"no-cache"})).then(function(e){var n=e.data;null!=n&&n.generateTokenFromSignature&&(localStorage.setItem(l,n.generateTokenFromSignature.token),d(function(e){return v({},e,{siweResult:null,privatTokenStatus:Se.RECEIVED})}))})}catch(e){return Promise.reject(e)}}()},[l,o,m,r]),e.createElement(e.Fragment,null,i)},De=function(n){var i=n.children,a=n.account,r=n.options,u=r.siweCallBack,c=r.uri,p=e.useState({account:void 0,userDenied:!1,privatTokenStatus:Se.NOT_REQUESTED,siweResult:null}),S=p[0],y=p[1],g=e.useMemo(function(){return[S,y]},[S]),A=e.useRef(!1),f=e.useRef(S),D=e.useRef(u),F=function(e){y(function(n){var i=e(n);return f.current=i,i})},I=e.useMemo(function(){return{apiState:g,siweCallBack:u}},[g,D]),b=e.useCallback(function(){try{if(A.current)return Promise.resolve();A.current=!0;var e=f.current,n=e.account,i=e.userDenied,a=e.privatTokenStatus;return Promise.resolve(function(e,t){try{var d=function(e,t){try{var d=function(){var e=function(){if(!i&&n&&a!==Se.REQUESTED)return F(function(e){return v({},e,{privatTokenStatus:Se.REQUESTED})}),localStorage.removeItem(n),Promise.resolve(D.current()).then(function(e){F(function(n){return v({},n,{siweResult:e})})})}();if(e&&e.then)return e.then(function(){})}()}catch(e){return t(e)}return d&&d.then?d.then(void 0,t):d}(0,function(e){var n;(n=e)&&"object"==typeof n&&"code"in n&&4001===e.code&&F(function(e){return v({},e,{userDenied:!0})})})}catch(e){return t(!0,e)}return d&&d.then?d.then(t.bind(null,!1),t.bind(null,!0)):t(!1,d)}(0,function(e,n){if(A.current=!1,e)throw n;return n}))}catch(e){return Promise.reject(e)}},[]),h=e.useMemo(function(){var e=k(function(e){var n=e.networkError;n&&"statusCode"in n&&(401===n.statusCode||403===n.statusCode)&&b()}),n=s(function(e,n){var i,a=localStorage.getItem(String(f.current.account));return null!=(i=n.headers)&&i.Authorization?{}:{headers:v({},n.headers,{Authorization:null!=a?a:ye})}}),i=new t({uri:c});return new d({link:l([e,n,i]),cache:new o})},[c,b]);return e.useEffect(function(){a&&F(function(e){return v({},e,{account:a})})},[a,y]),e.useEffect(function(){localStorage.getItem(String(a))||(f.current=S,b())},[b,S]),e.useEffect(function(){D.current=u},[u]),e.createElement(N.Provider,{value:I},e.createElement(m,{client:h},e.createElement(fe,null,i)))},Fe=pe("\n query MyQuery {\n time\n}"),Ie=function(){var e=r(Fe,{context:{headers:{Authorization:ye}}});return{loading:e.loading,error:e.error,data:e.data}},be=function(){return u(Fe,{context:{headers:{Authorization:ye}}})},he=pe("\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}"),Te=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return r(he,{skip:a===Se.REQUESTED||!i,context:{headers:{Authorization:t}}})},Ve=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(he,{context:{headers:{Authorization:i}}})},$e=pe("\n mutation setMyAgree {\n setMyAgree\n}"),Ce=pe("\n query MyData {\n myData {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallets\n }\n}"),Pe=pe("\n mutation AddEvmWallet($wallet: String!) {\n addEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}"),xe=pe("\n mutation DeleteEvmWallet($wallet: String!) {\n deleteEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}"),Ue=pe("\n mutation AddNonEvmWallet($chainName: String!, $wallet: String!) {\n addNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallet\n }\n}"),Ee=pe("\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}"),qe=pe("\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}"),je=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Pe,{context:{headers:{Authorization:i}}})},Oe=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(xe,{context:{headers:{Authorization:i}}})},Be=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Ue,{context:{headers:{Authorization:i}}})},ze=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a($e,{context:{headers:{Authorization:i}}})},We=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return r(Ce,{skip:a===Se.REQUESTED||!i,context:{headers:{Authorization:t}}})},we=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Ee,{context:{headers:{Authorization:i}}})},Re=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(qe,{context:{headers:{Authorization:i}}})},Me=pe("\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}"),Le=pe("\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}"),Ge=function(e){return r(Me,{skip:!e,context:{headers:{Authorization:ye}},variables:{address:e}})},He=function(){return r(Le,{context:{headers:{Authorization:ye}}})},Ke=pe("\n query MyRoles {\n myRoles\n }"),Qe=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return r(Ke,{skip:a===Se.REQUESTED||!i,context:{headers:{Authorization:t}}})},_e=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(Ke,{context:{headers:{Authorization:i}}})},Ye=pe("\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}"),Je=pe("\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}"),Xe=function(e){return r(Je,{skip:!e,context:{headers:{Authorization:ye}},variables:{campaignCodes:null!=e?e:[]}})},Ze=function(e){return r(Ye,{skip:!(null!=e&&e.length),context:{headers:{Authorization:ye}},variables:{campaignCodes:null!=e?e:[]}})},en=function(){return u(Je,{context:{headers:{Authorization:ye}}})},nn=pe("\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n"),an=function(){return r(nn,{context:{headers:{Authorization:ye}}})},tn=pe("\n query Data($chainId: Int, $tokenAddress: String, $fetchBalance: Boolean) {\n vaults(chainId: $chainId, tokenAddress: $tokenAddress, fetchBalance: $fetchBalance) {\n Data {\n VaultId\n VaultAddress\n VaultCreationTx\n TokenAddress\n TokenName\n TokenSymbol\n TokenDecimals\n Balance {\n BalanceOfToken\n FetchTime\n }\n }\n ChainId\n }\n }\n"),dn=function(e,n,i){return r(tn,{variables:{chainId:e,tokenAddress:n,fetchBalance:i},context:{headers:{Authorization:ye}},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"})},ln=function(){return u(tn,{context:{headers:{Authorization:ye}}})},on=pe("\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }"),mn=function(e){return r(on,{skip:null===e,context:{headers:{Authorization:ye}},variables:{onlyApproved:e}})},rn=pe("\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }"),un=function(){return r(rn,{context:{headers:{Authorization:ye}}})},kn=pe("\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n"),sn=function(e){return r(kn,{variables:{hashKey:e},context:{headers:{Authorization:ye}}})},cn=function(e,n){var i=c(e+"-"+n).toString();return sn(i)},vn=pe("\nquery SimpleUrlShortener($input: TxHashChainIdInput!) {\n simpleUrlShortener(input: $input) {\n ShortUrl\n ContainerText\n UrlToScan\n XPostText\n }\n}"),Nn=function(e,n){return r(vn,{skip:!e,context:{headers:{Authorization:ye}},variables:{input:{TxHash:e,ChainId:n}}})},pn=pe("\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"),Sn=function(e){return r(pn,{variables:{page:e},context:{headers:{Authorization:ye}}})},yn=pe("\n query MyInvested {\n myInvestmentsErc20 {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Token\n Id\n }\n myInvestmentsETH {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Id\n }\n}"),gn=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return r(yn,{skip:a===Se.REQUESTED||!i,context:{headers:{Authorization:t}}})},An=pe("\n mutation Logout {\n logout\n }\n"),fn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(An,{context:{headers:{Authorization:i}},onCompleted:function(){localStorage.removeItem(String(n))}})},Dn=function(){var e=n(N),a=e.apiState[0],t=e.siweCallBack,d=Ae()[0];return i(function(){try{var e,n=a.account,i=a.userDenied;if(!n)return Promise.resolve(null);if(!i)return Promise.resolve(localStorage.getItem(n));var l=function(n,i){try{var a=Promise.resolve(t()).then(function(n){return Promise.resolve(d({variables:n,fetchPolicy:"no-cache"})).then(function(n){var i=n.data;return null!=i&&i.generateTokenFromSignature?(e=1,i.generateTokenFromSignature.token):(e=1,null)})})}catch(e){return i(e)}return a&&a.then?a.then(void 0,i):a}(0,function(e){console.error("useGetToken error",e)});return Promise.resolve(l&&l.then?l.then(function(n){return e?n:null}):e?l:null)}catch(e){return Promise.reject(e)}},[a,t,d])},Fn=pe("\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}"),In=pe("\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}"),bn=pe("\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}"),hn=pe("\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}"),Tn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(bn,{context:{headers:{Authorization:i}}})},Vn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(In,{context:{headers:{Authorization:i}}})},$n=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Fn,{context:{headers:{Authorization:i}}})},Cn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(hn,{context:{headers:{Authorization:i}}})},Pn=pe("\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n"),xn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Pn,{context:{headers:{Authorization:i}}})},Un=pe("\n query MyAllocation($projectId: String!) {\n myAllocation(projectId: $projectId) {\n Amount\n StartTime\n EndTime\n PoolzBackId\n }\n }"),En=pe("\n query MyUpcomingAllocation($projectIDs: [String!]!) {\n myUpcomingAllocation(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n Amount\n }\n }"),qn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Un,{context:{headers:{Authorization:i}}})},jn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(En,{context:{headers:{Authorization:i}}})},On=pe("\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n"),Bn=pe("\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n"),zn=pe("\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n"),Wn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(On,{context:{headers:{Authorization:i}}})},wn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Bn,{context:{headers:{Authorization:i}}})},Rn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(zn,{context:{headers:{Authorization:i}}})},Mn=pe("\n mutation AdminCreatePoolzBackId($projectId: String!, $poolzBackId: Int!, $chainId: Int!) {\n adminCreatePoolzBackId(projectId: $projectId, poolzBackId: $poolzBackId, chainId: $chainId) {\n ProjectId\n PoolzBackId\n }\n }\n"),Ln=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Mn,{context:{headers:{Authorization:i}}})},Gn=pe("\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n"),Hn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Gn,{context:{headers:{Authorization:i}}})},Kn=pe("\n query AdminGetAllocation($projectId: String!) {\n adminGetAllocation(projectId: $projectId) {\n PhaseId\n WhiteList {\n UserAddress\n Amount\n }\n }\n }\n"),Qn=function(n){var i=e.useContext(N).apiState[0].account,a=i&&localStorage.getItem(i);return r(Kn,{context:{headers:{Authorization:a}},variables:{projectId:n}})},_n=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(Kn,{context:{headers:{Authorization:i}}})},Yn=pe("\n query AdminListOfPoolzBackId($projectIDs: [String!]!) {\n adminListOfPoolzBackId(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n }\n}"),Jn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Yn,{context:{headers:{Authorization:i}}})};export{De as API4Provider,ve as types,p as useAPI4State,je as useAddEvmWallet,$n as useAdminCreateAsset,Ln as useAdminCreatePoolzBackId,Qn as useAdminGetAllocation,Hn as useAdminWriteAllocation,mn as useApprovedContracts,Ze as useBoostData,Xe as useBoostUsers,Sn as useDaoSenderHistory,Oe as useDeleteEvmWallet,we as useDeleteNonEvmWallet,Cn as useGenerateSignature,Ie as useGetCurrentTime,Ae as useGetGeneratedToken,Te as useGetKYCStatus,Dn as useGetToken,_n as useLazyAdminGetAllocation,Jn as useLazyAdminListOfPoolzBackId,en as useLazyBoostUsers,xn as useLazyGenerateInvestSignature,wn as useLazyGetAdminSignUpV3,be as useLazyGetCurrentTime,Wn as useLazyGetMySignUpV3,ln as useLazyGetVaults,Ve as useLazyKYCStatus,qn as useLazyMyAllowcation,Vn as useLazyMyAsset,_e as useLazyMyRoles,jn as useLazyMyUpcomingAllowcation,Tn as useLazyRetrieveSignature,He as useLeaderboard,Ge as useLeaderboardByAddress,fn as useLogout,We as useMyData,gn as useMyInvested,Qe as useMyRoles,un as usePoolxPrice,an as usePoolxTokenomics,ze as useSetMyAgree,Rn as useSetMySignUpV3,Be as useSetNonEvmWallet,Nn as useSimpleUrlShortener,sn as useTokenInfo,cn as useTokenInfoByChainAndAddress,Re as useUpdateNonEvmWallet,dn as useVaults};
1
+ import e,{useContext as n,useCallback as i}from"react";import{useMutation as a,HttpLink as t,ApolloClient as l,from as d,InMemoryCache as o,ApolloProvider as r,useQuery as m,useLazyQuery as u}from"@apollo/client";export*from"@apollo/client";import{onError as k}from"@apollo/client/link/error";import{setContext as s}from"@apollo/client/link/context";import c from"crypto-js/sha256";function v(){return v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},v.apply(null,arguments)}var N=e.createContext(null),p=function(){return e.useContext(N)},S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminCreatePoolzBackId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"poolzBackId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminCreatePoolzBackId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"poolzBackId"},value:{kind:"Variable",name:{kind:"Name",value:"poolzBackId"}}},{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminGetAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminGetAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"PhaseId"}},{kind:"Field",name:{kind:"Name",value:"WhiteList"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]}}]},g={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminListOfPoolzBackId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminListOfPoolzBackId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},A={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminReadAssets"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ReadAssetsRequest"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminReadAssets"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Assets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Dispensers"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"IsTaken"}},{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"WeiAmount"}}]}}]}}]}}]}}]}}]},I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminWriteAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AdminWriteAllocation"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminWriteAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}]}]}}]},f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetApprovedContracts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"onlyApproved"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"approvedContracts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"onlyApproved"},value:{kind:"Variable",name:{kind:"Name",value:"onlyApproved"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ContractAddress"}},{kind:"Field",name:{kind:"Name",value:"Status"}}]}}]}}]},h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BoostProxyData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"boostProxy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"campaignCodes"},value:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Actions"}},{kind:"Field",name:{kind:"Name",value:"Participants"}},{kind:"Field",name:{kind:"Name",value:"TotalUsers"}},{kind:"Field",name:{kind:"Name",value:"DataKey"}},{kind:"Field",name:{kind:"Name",value:"CampaignName"}},{kind:"Field",name:{kind:"Name",value:"TotalEntries"}},{kind:"Field",name:{kind:"Name",value:"CampaignCode"}}]}}]}}]},D={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BoostProxyUsers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"boostProxy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"campaignCodes"},value:{kind:"Variable",name:{kind:"Name",value:"campaignCodes"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Actions"}},{kind:"Field",name:{kind:"Name",value:"Participants"}},{kind:"Field",name:{kind:"Name",value:"TotalUsers"}},{kind:"Field",name:{kind:"Name",value:"CampaignName"}},{kind:"Field",name:{kind:"Name",value:"TotalEntries"}},{kind:"Field",name:{kind:"Name",value:"CampaignCode"}},{kind:"Field",name:{kind:"Name",value:"DataKey"}},{kind:"Field",name:{kind:"Name",value:"Users"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"Entries"}}]}}]}}]}}]},T={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DaoSenderHistory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"daoSenderHistory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"Token"}},{kind:"Field",name:{kind:"Name",value:"UserCount"}},{kind:"Field",name:{kind:"Name",value:"TotalAmount"}}]}},{kind:"Field",name:{kind:"Name",value:"currentPage"}},{kind:"Field",name:{kind:"Name",value:"totalPages"}}]}}]}}]},F={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AdminCreateAsset"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"Request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateAssetRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminCreateAsset"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"Request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"StatusCode"}}]}}]}}]},b={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyAssets"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myAssets"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TotalAssets"}},{kind:"Field",name:{kind:"Name",value:"Assets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"RefundFinishTime"}},{kind:"Field",name:{kind:"Name",value:"WithdrawalDetail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"RefundDetail"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}}]}}]}}]}}]},V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RetrieveSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RetrieveSignatureRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retrieveSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"Receiver"}},{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"PoolId"}},{kind:"Field",name:{kind:"Name",value:"Signature"}},{kind:"Field",name:{kind:"Name",value:"IsRefund"}},{kind:"Field",name:{kind:"Name",value:"Builders"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProviderAddress"}},{kind:"Field",name:{kind:"Name",value:"WeiAmount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"FinishTime"}}]}}]}}]}}]},C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GenerateSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GenerateSignatureRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ValidFrom"}},{kind:"Field",name:{kind:"Name",value:"CurrentTime"}}]}}]}}]},P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]},$={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GenerateTokenFromSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eip4361message"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"signature"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateTokenFromSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"eip4361message"},value:{kind:"Variable",name:{kind:"Name",value:"eip4361message"}}},{kind:"Argument",name:{kind:"Name",value:"signature"},value:{kind:"Variable",name:{kind:"Name",value:"signature"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}},{kind:"Field",name:{kind:"Name",value:"validUntil"}}]}}]}}]},x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GenerateMyInvestSignature"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"weiAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"generateMyInvestSignature"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"weiAmount"},value:{kind:"Variable",name:{kind:"Name",value:"weiAmount"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Signature"}},{kind:"Field",name:{kind:"Name",value:"ValidUntil"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},E={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLeaderboardByAddress"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"address"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderBoard"},arguments:[{kind:"Argument",name:{kind:"Name",value:"address"},value:{kind:"Variable",name:{kind:"Name",value:"address"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Rank"}}]}}]}}]},q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getLeaderboard"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderBoard"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Rank"}},{kind:"Field",name:{kind:"Name",value:"Owner"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"Logout"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logout"}}]}}]},B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"StartTime"}},{kind:"Field",name:{kind:"Name",value:"EndTime"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}}]}}]}}]},W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyUpcomingAllocation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myUpcomingAllocation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"PoolzBackId"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"setMyAgree"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setMyAgree"}}]}}]},R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myData"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}},{kind:"Field",name:{kind:"Name",value:"EvmWallets"}}]}}]}}]},z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},w={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}},{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}},{kind:"Field",name:{kind:"Name",value:"EvmWallet"}}]}}]}}]},M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}}]}}]}}]},G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateNonEvmWallet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainName"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"wallet"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateNonEvmWallet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainName"},value:{kind:"Variable",name:{kind:"Name",value:"chainName"}}},{kind:"Argument",name:{kind:"Name",value:"wallet"},value:{kind:"Variable",name:{kind:"Name",value:"wallet"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Agree"}},{kind:"Field",name:{kind:"Name",value:"NonEvmWallet"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainName"}},{kind:"Field",name:{kind:"Name",value:"Wallet"}}]}}]}}]}}]},L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyInvested"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myInvestmentsErc20"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"BlockSignedAt"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Token"}},{kind:"Field",name:{kind:"Name",value:"Id"}}]}},{kind:"Field",name:{kind:"Name",value:"myInvestmentsETH"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"TxHash"}},{kind:"Field",name:{kind:"Name",value:"BlockSignedAt"}},{kind:"Field",name:{kind:"Name",value:"Amount"}},{kind:"Field",name:{kind:"Name",value:"Id"}}]}}]}}]},H={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"KYC"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myProxyKYC"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Proxy"}},{kind:"Field",name:{kind:"Name",value:"RequestStatus"}},{kind:"Field",name:{kind:"Name",value:"Status"}}]}}]}}]},K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyRoles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"myRoles"}}]}}]},Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PoolxPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"poolxPrice"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Price"}},{kind:"Field",name:{kind:"Name",value:"Timestamp"}}]}}]}}]},_={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPoolxTokenomics"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"poolxTokenomics"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"CirculatingSupply"}},{kind:"Field",name:{kind:"Name",value:"Locked"}},{kind:"Field",name:{kind:"Name",value:"Data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"TotalSupply"}},{kind:"Field",name:{kind:"Name",value:"BuyBack"}},{kind:"Field",name:{kind:"Name",value:"LockedDealV2"}},{kind:"Field",name:{kind:"Name",value:"DelayVault"}},{kind:"Field",name:{kind:"Name",value:"DelayVaultV2"}},{kind:"Field",name:{kind:"Name",value:"Reserved"}}]}},{kind:"Field",name:{kind:"Name",value:"Trade"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Sum"}},{kind:"Field",name:{kind:"Name",value:"Huobi"}},{kind:"Field",name:{kind:"Name",value:"GateIO"}},{kind:"Field",name:{kind:"Name",value:"PancakeSwapV3_01"}},{kind:"Field",name:{kind:"Name",value:"PancakeSwapV3"}},{kind:"Field",name:{kind:"Name",value:"Mexc"}}]}}]}}]}}]},Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MySignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mySignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectIDs"},value:{kind:"Variable",name:{kind:"Name",value:"projectIDs"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"SignedUp"}}]}}]}}]},J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AdminSignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"minPoolxAmount"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminSignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"minPoolxAmount"},value:{kind:"Variable",name:{kind:"Name",value:"minPoolxAmount"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"Amount"}}]}}]}}]},X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ProjectSignUpV3"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectSignUpV3"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ProjectId"}},{kind:"Field",name:{kind:"Name",value:"UserAddress"}},{kind:"Field",name:{kind:"Name",value:"JoinedTime"}}]}}]}}]},Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SimpleUrlShortener"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TxHashChainIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"simpleUrlShortener"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ShortUrl"}},{kind:"Field",name:{kind:"Name",value:"ContainerText"}},{kind:"Field",name:{kind:"Name",value:"UrlToScan"}},{kind:"Field",name:{kind:"Name",value:"XPostText"}}]}}]}}]},ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"TokenInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hashKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tokenInfo"},arguments:[{kind:"Argument",name:{kind:"Name",value:"hashKey"},value:{kind:"Variable",name:{kind:"Name",value:"hashKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"}},{kind:"Field",name:{kind:"Name",value:"ChainId"}},{kind:"Field",name:{kind:"Name",value:"Decimals"}},{kind:"Field",name:{kind:"Name",value:"Name"}},{kind:"Field",name:{kind:"Name",value:"Symbol"}},{kind:"Field",name:{kind:"Name",value:"TotalSupply"}}]}}]}}]},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Data"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"chainId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"fetchBalance"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vaults"},arguments:[{kind:"Argument",name:{kind:"Name",value:"chainId"},value:{kind:"Variable",name:{kind:"Name",value:"chainId"}}},{kind:"Argument",name:{kind:"Name",value:"tokenAddress"},value:{kind:"Variable",name:{kind:"Name",value:"tokenAddress"}}},{kind:"Argument",name:{kind:"Name",value:"fetchBalance"},value:{kind:"Variable",name:{kind:"Name",value:"fetchBalance"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"VaultId"}},{kind:"Field",name:{kind:"Name",value:"VaultAddress"}},{kind:"Field",name:{kind:"Name",value:"VaultCreationTx"}},{kind:"Field",name:{kind:"Name",value:"TokenAddress"}},{kind:"Field",name:{kind:"Name",value:"TokenName"}},{kind:"Field",name:{kind:"Name",value:"TokenSymbol"}},{kind:"Field",name:{kind:"Name",value:"TokenDecimals"}},{kind:"Field",name:{kind:"Name",value:"Balance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"BalanceOfToken"}},{kind:"Field",name:{kind:"Name",value:"FetchTime"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"ChainId"}}]}}]}}]},ie={__proto__:null,AdminCreatePoolzBackIdDocument:S,AdminGetAllocationDocument:y,AdminListOfPoolzBackIdDocument:g,AdminReadAssetsDocument:A,AdminWriteAllocationDocument:I,GetApprovedContractsDocument:f,BoostProxyDataDocument:h,BoostProxyUsersDocument:D,DaoSenderHistoryDocument:T,AdminCreateAssetDocument:F,MyAssetsDocument:b,RetrieveSignatureDocument:V,GenerateSignatureDocument:C,MyQueryDocument:P,GenerateTokenFromSignatureDocument:$,GenerateMyInvestSignatureDocument:x,GetLeaderboardByAddressDocument:E,GetLeaderboardDocument:q,LogoutDocument:j,MyAllocationDocument:B,MyUpcomingAllocationDocument:W,SetMyAgreeDocument:U,MyDataDocument:R,AddEvmWalletDocument:z,DeleteEvmWalletDocument:w,AddNonEvmWalletDocument:O,DeleteNonEvmWalletDocument:M,UpdateNonEvmWalletDocument:G,MyInvestedDocument:L,KycDocument:H,MyRolesDocument:K,PoolxPriceDocument:Q,GetPoolxTokenomicsDocument:_,MySignUpV3Document:Y,AdminSignUpV3Document:J,ProjectSignUpV3Document:X,SimpleUrlShortenerDocument:Z,TokenInfoDocument:ee,DataDocument:ne},ae={"\n mutation AdminCreatePoolzBackId($projectId: String!, $poolzBackId: Int!, $chainId: Int!) {\n adminCreatePoolzBackId(projectId: $projectId, poolzBackId: $poolzBackId, chainId: $chainId) {\n ProjectId\n PoolzBackId\n }\n }\n":S,"\n query AdminGetAllocation($projectId: String!) {\n adminGetAllocation(projectId: $projectId) {\n PhaseId\n WhiteList {\n UserAddress\n Amount\n }\n }\n }\n":y,"\n query AdminListOfPoolzBackId($projectIDs: [String!]!) {\n adminListOfPoolzBackId(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n }\n}":g,"\n query AdminReadAssets($request: [ReadAssetsRequest!]!) {\n adminReadAssets(request: $request) {\n Assets {\n ChainId\n PoolId\n Dispensers {\n IsTaken\n UserAddress\n Builders {\n WeiAmount\n }\n }\n }\n }\n}":A,"\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n":I,"\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }":f,"\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}":h,"\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}":D,"\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n":T,"\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}":F,"\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}":b,"\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}":V,"\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}":C,"\n query MyQuery {\n time\n}":P,"\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}":$,"\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n":x,"\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}":E,"\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}":q,"\n mutation Logout {\n logout\n }\n":j,"\n query MyAllocation($projectId: String!) {\n myAllocation(projectId: $projectId) {\n Amount\n StartTime\n EndTime\n PoolzBackId\n }\n }":B,"\n query MyUpcomingAllocation($projectIDs: [String!]!) {\n myUpcomingAllocation(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n Amount\n }\n }":W,"\n mutation setMyAgree {\n setMyAgree\n}":U,"\n query MyData {\n myData {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallets\n }\n}":R,"\n mutation AddEvmWallet($wallet: String!) {\n addEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}":z,"\n mutation DeleteEvmWallet($wallet: String!) {\n deleteEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}":w,"\n mutation AddNonEvmWallet($chainName: String!, $wallet: String!) {\n addNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallet\n }\n}":O,"\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}":M,"\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}":G,"\n query MyInvested {\n myInvestmentsErc20 {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Token\n Id\n }\n myInvestmentsETH {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Id\n }\n}":L,"\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}":H,"\n query MyRoles {\n myRoles\n }":K,"\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }":Q,"\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n":_,"\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n":Y,"\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n":J,"\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n":X,"\nquery SimpleUrlShortener($input: TxHashChainIdInput!) {\n simpleUrlShortener(input: $input) {\n ShortUrl\n ContainerText\n UrlToScan\n XPostText\n }\n}":Z,"\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n":ee,"\n query Data($chainId: Int, $tokenAddress: String, $fetchBalance: Boolean) {\n vaults(chainId: $chainId, tokenAddress: $tokenAddress, fetchBalance: $fetchBalance) {\n Data {\n VaultId\n VaultAddress\n VaultCreationTx\n TokenAddress\n TokenName\n TokenSymbol\n TokenDecimals\n Balance {\n BalanceOfToken\n FetchTime\n }\n }\n ChainId\n }\n }\n":ne};function te(e){var n;return null!=(n=ae[e])?n:{}}var le,de="0x0000000000000000000000000000000000000000",oe=te("\nmutation GenerateTokenFromSignature($eip4361message: String!, $signature: String!) {\n generateTokenFromSignature(eip4361message: $eip4361message, signature: $signature){\n token\n validUntil\n }\n}"),re=function(){return a(oe,{fetchPolicy:"no-cache",context:{headers:{Authorization:de}}})};!function(e){e[e.NOT_REQUESTED=0]="NOT_REQUESTED",e[e.REQUESTED=1]="REQUESTED",e[e.RECEIVED=2]="RECEIVED"}(le||(le={}));var me=function(n){var i=n.children,a=e.useContext(N).apiState,t=a[0],l=a[1],d=t.account,o=t.privatTokenStatus,r=t.siweResult,m=re()[0];return e.useEffect(function(){d&&o===le.REQUESTED&&r&&function(){try{return Promise.resolve(m({variables:r,fetchPolicy:"no-cache"})).then(function(e){var n=e.data;null!=n&&n.generateTokenFromSignature&&(localStorage.setItem(d,n.generateTokenFromSignature.token),l(function(e){return v({},e,{siweResult:null,privatTokenStatus:le.RECEIVED})}))})}catch(e){return Promise.reject(e)}}()},[d,o,r,m]),e.createElement(e.Fragment,null,i)},ue=function(n){var i=n.children,a=n.account,m=n.options,u=m.siweCallBack,c=m.uri,p=e.useState({account:void 0,userDenied:!1,privatTokenStatus:le.NOT_REQUESTED,siweResult:null}),S=p[0],y=p[1],g=e.useMemo(function(){return[S,y]},[S]),A=e.useRef(!1),I=e.useRef(S),f=e.useRef(u),h=function(e){y(function(n){var i=e(n);return I.current=i,i})},D=e.useMemo(function(){return{apiState:g,siweCallBack:u}},[g,f]),T=e.useCallback(function(){try{if(A.current)return Promise.resolve();A.current=!0;var e=I.current,n=e.account,i=e.userDenied,a=e.privatTokenStatus;return Promise.resolve(function(e,t){try{var l=function(e,t){try{var l=function(){var e=function(){if(!i&&n&&a!==le.REQUESTED)return h(function(e){return v({},e,{privatTokenStatus:le.REQUESTED})}),localStorage.removeItem(n),Promise.resolve(f.current()).then(function(e){h(function(n){return v({},n,{siweResult:e})})})}();if(e&&e.then)return e.then(function(){})}()}catch(e){return t(e)}return l&&l.then?l.then(void 0,t):l}(0,function(e){var n;(n=e)&&"object"==typeof n&&"code"in n&&4001===e.code&&h(function(e){return v({},e,{userDenied:!0})})})}catch(e){return t(!0,e)}return l&&l.then?l.then(t.bind(null,!1),t.bind(null,!0)):t(!1,l)}(0,function(e,n){if(A.current=!1,e)throw n;return n}))}catch(e){return Promise.reject(e)}},[]),F=e.useMemo(function(){var e=k(function(e){var n=e.networkError;n&&"statusCode"in n&&(401===n.statusCode||403===n.statusCode)&&T()}),n=s(function(e,n){var i,a=localStorage.getItem(String(I.current.account));return null!=(i=n.headers)&&i.Authorization?{}:{headers:v({},n.headers,{Authorization:null!=a?a:de})}}),i=new t({uri:c});return new l({link:d([e,n,i]),cache:new o})},[c,T]);return e.useEffect(function(){a&&h(function(e){return v({},e,{account:a})})},[a,y]),e.useEffect(function(){localStorage.getItem(String(a))||(I.current=S,T())},[T,S]),e.useEffect(function(){f.current=u},[u]),e.createElement(N.Provider,{value:D},e.createElement(r,{client:F},e.createElement(me,null,i)))},ke=te("\n query MyQuery {\n time\n}"),se=function(){var e=m(ke,{context:{headers:{Authorization:de}}});return{loading:e.loading,error:e.error,data:e.data}},ce=function(){return u(ke,{context:{headers:{Authorization:de}}})},ve=te("\n query KYC {\n myProxyKYC {\n Proxy\n RequestStatus\n Status\n }\n}"),Ne=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return m(ve,{skip:a===le.REQUESTED||!i,context:{headers:{Authorization:t}}})},pe=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(ve,{context:{headers:{Authorization:i}}})},Se=te("\n mutation setMyAgree {\n setMyAgree\n}"),ye=te("\n query MyData {\n myData {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallets\n }\n}"),ge=te("\n mutation AddEvmWallet($wallet: String!) {\n addEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}"),Ae=te("\n mutation DeleteEvmWallet($wallet: String!) {\n deleteEvmWallet(wallet: $wallet) {\n EvmWallet\n }\n}"),Ie=te("\n mutation AddNonEvmWallet($chainName: String!, $wallet: String!) {\n addNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n EvmWallet\n }\n}"),fe=te("\n mutation DeleteNonEvmWallet($chainName: String!) {\n deleteNonEvmWallet(chainName: $chainName) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}"),he=te("\n mutation UpdateNonEvmWallet($chainName: String!, $wallet: String!) {\n updateNonEvmWallet(chainName: $chainName, wallet: $wallet) {\n Agree\n NonEvmWallet {\n ChainName\n Wallet\n }\n }\n}"),De=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(ge,{context:{headers:{Authorization:i}}})},Te=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Ae,{context:{headers:{Authorization:i}}})},Fe=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Ie,{context:{headers:{Authorization:i}}})},be=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(Se,{context:{headers:{Authorization:i}}})},Ve=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return m(ye,{skip:a===le.REQUESTED||!i,context:{headers:{Authorization:t}}})},Ce=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(fe,{context:{headers:{Authorization:i}}})},Pe=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(he,{context:{headers:{Authorization:i}}})},$e=te("\n query getLeaderboardByAddress($address: String) {\n leaderBoard(address: $address) {\n Amount\n Owner\n Rank\n }\n}"),xe=te("\n query getLeaderboard {\n leaderBoard {\n Rank\n Owner\n Amount\n }\n}"),Ee=function(e){return m($e,{skip:!e,context:{headers:{Authorization:de}},variables:{address:e}})},qe=function(){return m(xe,{context:{headers:{Authorization:de}}})},je=te("\n query MyRoles {\n myRoles\n }"),Be=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return m(je,{skip:a===le.REQUESTED||!i,context:{headers:{Authorization:t}}})},We=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(je,{context:{headers:{Authorization:i}}})},Ue=te("\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}"),Re=te("\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}"),ze=function(e){return m(Re,{skip:!e,context:{headers:{Authorization:de}},variables:{campaignCodes:null!=e?e:[]}})},we=function(e){return m(Ue,{skip:!(null!=e&&e.length),context:{headers:{Authorization:de}},variables:{campaignCodes:null!=e?e:[]}})},Oe=function(){return u(Re,{context:{headers:{Authorization:de}}})},Me=te("\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n"),Ge=function(){return m(Me,{context:{headers:{Authorization:de}}})},Le=te("\n query Data($chainId: Int, $tokenAddress: String, $fetchBalance: Boolean) {\n vaults(chainId: $chainId, tokenAddress: $tokenAddress, fetchBalance: $fetchBalance) {\n Data {\n VaultId\n VaultAddress\n VaultCreationTx\n TokenAddress\n TokenName\n TokenSymbol\n TokenDecimals\n Balance {\n BalanceOfToken\n FetchTime\n }\n }\n ChainId\n }\n }\n"),He=function(e,n,i){return m(Le,{variables:{chainId:e,tokenAddress:n,fetchBalance:i},context:{headers:{Authorization:de}},notifyOnNetworkStatusChange:!0,fetchPolicy:"cache-and-network"})},Ke=function(){return u(Le,{context:{headers:{Authorization:de}}})},Qe=te("\n query GetApprovedContracts($onlyApproved: Boolean!) {\n approvedContracts(onlyApproved: $onlyApproved) {\n ContractAddress\n Status\n }\n }"),_e=function(e){return m(Qe,{skip:null===e,context:{headers:{Authorization:de}},variables:{onlyApproved:e}})},Ye=te("\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }"),Je=function(){return m(Ye,{context:{headers:{Authorization:de}}})},Xe=te("\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n"),Ze=function(e){return m(Xe,{variables:{hashKey:e},context:{headers:{Authorization:de}}})},en=function(e,n){var i=c(e+"-"+n).toString();return Ze(i)},nn=te("\nquery SimpleUrlShortener($input: TxHashChainIdInput!) {\n simpleUrlShortener(input: $input) {\n ShortUrl\n ContainerText\n UrlToScan\n XPostText\n }\n}"),an=function(e,n){return m(nn,{skip:!e,context:{headers:{Authorization:de}},variables:{input:{TxHash:e,ChainId:n}}})},tn=te("\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"),ln=function(e){return m(tn,{variables:{page:e},context:{headers:{Authorization:de}}})},dn=te("\n query MyInvested {\n myInvestmentsErc20 {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Token\n Id\n }\n myInvestmentsETH {\n ChainId\n TxHash\n BlockSignedAt\n Amount\n Id\n }\n}"),on=function(){var n=e.useContext(N).apiState[0],i=n.account,a=n.privatTokenStatus,t=i&&localStorage.getItem(i);return m(dn,{skip:a===le.REQUESTED||!i,context:{headers:{Authorization:t}}})},rn=te("\n mutation Logout {\n logout\n }\n"),mn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(rn,{context:{headers:{Authorization:i}},onCompleted:function(){localStorage.removeItem(String(n))}})},un=function(){var e=n(N),a=e.apiState[0],t=e.siweCallBack,l=re()[0];return i(function(){try{var e,n=a.account,i=a.userDenied;if(!n)return Promise.resolve(null);if(!i)return Promise.resolve(localStorage.getItem(n));var d=function(n,i){try{var a=Promise.resolve(t()).then(function(n){return Promise.resolve(l({variables:n,fetchPolicy:"no-cache"})).then(function(n){var i=n.data;return null!=i&&i.generateTokenFromSignature?(e=1,i.generateTokenFromSignature.token):(e=1,null)})})}catch(e){return i(e)}return a&&a.then?a.then(void 0,i):a}(0,function(e){console.error("useGetToken error",e)});return Promise.resolve(d&&d.then?d.then(function(n){return e?n:null}):e?d:null)}catch(e){return Promise.reject(e)}},[a,t,l])},kn=te("\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}"),sn=te("\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}"),cn=te("\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}"),vn=te("\n mutation GenerateSignature($request: GenerateSignatureRequest!) {\n generateSignature(request: $request) {\n ValidFrom\n CurrentTime\n }\n}"),Nn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(cn,{context:{headers:{Authorization:i}}})},pn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(sn,{context:{headers:{Authorization:i}}})},Sn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(kn,{context:{headers:{Authorization:i}}})},yn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(vn,{context:{headers:{Authorization:i}}})},gn=te("\n query GenerateMyInvestSignature($projectId: String!, $weiAmount: String!) {\n generateMyInvestSignature(projectId: $projectId, weiAmount: $weiAmount) {\n Signature\n ValidUntil\n PoolzBackId\n }\n }\n"),An=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(gn,{context:{headers:{Authorization:i}}})},In=te("\n query MyAllocation($projectId: String!) {\n myAllocation(projectId: $projectId) {\n Amount\n StartTime\n EndTime\n PoolzBackId\n }\n }"),fn=te("\n query MyUpcomingAllocation($projectIDs: [String!]!) {\n myUpcomingAllocation(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n Amount\n }\n }"),hn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(In,{context:{headers:{Authorization:i}}})},Dn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(fn,{context:{headers:{Authorization:i}}})},Tn=te("\n query MySignUpV3($projectIDs: [String!]!) {\n mySignUpV3(projectIDs: $projectIDs) {\n ProjectId\n SignedUp\n }\n }\n"),Fn=te("\n query AdminSignUpV3($projectId: String!, $minPoolxAmount: Int!) {\n adminSignUpV3(projectId: $projectId, minPoolxAmount: $minPoolxAmount) {\n Address\n Amount\n }\n }\n"),bn=te("\n mutation ProjectSignUpV3($projectId: String!) {\n projectSignUpV3(projectId: $projectId) {\n ProjectId\n UserAddress\n JoinedTime\n }\n }\n"),Vn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Tn,{context:{headers:{Authorization:i}}})},Cn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Fn,{context:{headers:{Authorization:i}}})},Pn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(bn,{context:{headers:{Authorization:i}}})},$n=te("\n mutation AdminCreatePoolzBackId($projectId: String!, $poolzBackId: Int!, $chainId: Int!) {\n adminCreatePoolzBackId(projectId: $projectId, poolzBackId: $poolzBackId, chainId: $chainId) {\n ProjectId\n PoolzBackId\n }\n }\n"),xn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a($n,{context:{headers:{Authorization:i}}})},En=te("\n mutation AdminWriteAllocation($input: AdminWriteAllocation!) {\n adminWriteAllocation(input: $input)\n }\n"),qn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return a(En,{context:{headers:{Authorization:i}}})},jn=te("\n query AdminGetAllocation($projectId: String!) {\n adminGetAllocation(projectId: $projectId) {\n PhaseId\n WhiteList {\n UserAddress\n Amount\n }\n }\n }\n"),Bn=function(n){var i=e.useContext(N).apiState[0].account,a=i&&localStorage.getItem(i);return m(jn,{context:{headers:{Authorization:a}},variables:{projectId:n}})},Wn=function(){var n=e.useContext(N).apiState[0].account,i=n&&localStorage.getItem(n);return u(jn,{context:{headers:{Authorization:i}}})},Un=te("\n query AdminListOfPoolzBackId($projectIDs: [String!]!) {\n adminListOfPoolzBackId(projectIDs: $projectIDs) {\n ProjectId\n PoolzBackId\n }\n}"),Rn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(Un,{context:{headers:{Authorization:i}}})},zn=te("\n query AdminReadAssets($request: [ReadAssetsRequest!]!) {\n adminReadAssets(request: $request) {\n Assets {\n ChainId\n PoolId\n Dispensers {\n IsTaken\n UserAddress\n Builders {\n WeiAmount\n }\n }\n }\n }\n}"),wn=function(){var n=e.useContext(N).apiState[0].account,i=n?localStorage.getItem(n):null;return u(zn,{context:{headers:{Authorization:i}}})};export{ue as API4Provider,ie as types,p as useAPI4State,De as useAddEvmWallet,Sn as useAdminCreateAsset,xn as useAdminCreatePoolzBackId,Bn as useAdminGetAllocation,qn as useAdminWriteAllocation,_e as useApprovedContracts,we as useBoostData,ze as useBoostUsers,ln as useDaoSenderHistory,Te as useDeleteEvmWallet,Ce as useDeleteNonEvmWallet,yn as useGenerateSignature,se as useGetCurrentTime,re as useGetGeneratedToken,Ne as useGetKYCStatus,un as useGetToken,Wn as useLazyAdminGetAllocation,Rn as useLazyAdminListOfPoolzBackId,wn as useLazyAdminReadAssets,Oe as useLazyBoostUsers,An as useLazyGenerateInvestSignature,Cn as useLazyGetAdminSignUpV3,ce as useLazyGetCurrentTime,Vn as useLazyGetMySignUpV3,Ke as useLazyGetVaults,pe as useLazyKYCStatus,hn as useLazyMyAllowcation,pn as useLazyMyAsset,We as useLazyMyRoles,Dn as useLazyMyUpcomingAllowcation,Nn as useLazyRetrieveSignature,qe as useLeaderboard,Ee as useLeaderboardByAddress,mn as useLogout,Ve as useMyData,on as useMyInvested,Be as useMyRoles,Je as usePoolxPrice,Ge as usePoolxTokenomics,be as useSetMyAgree,Pn as useSetMySignUpV3,Fe as useSetNonEvmWallet,an as useSimpleUrlShortener,Ze as useTokenInfo,en as useTokenInfoByChainAndAddress,Pe as useUpdateNonEvmWallet,He as useVaults};
2
2
  //# sourceMappingURL=index.module.js.map