Remove methods from imported contracts that are not inherited (#14)
* Remove methods from imported contracts that are not inherited in ConditionalStarRelease * Remove methods from imported contracts that are not inherited in Censures * Remove methods from imported contracts that are not inherited in Claims * Remove methods from imported contracts that are not inherited in LinearStarRelease * Code refactor changes in Polls watcher from codegen * Remove methods from imported contracts that are not inherited in DelegatedSending * Remove methods from imported contracts that are not inherited in Ecliptic
This commit is contained in:
@@ -17,501 +17,6 @@ export class Client {
|
||||
this._client = new GraphQLClient(config);
|
||||
}
|
||||
|
||||
async getIsActive (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { isActive } = await this._client.query(
|
||||
gql(queries.isActive),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return isActive;
|
||||
}
|
||||
|
||||
async getGetKeys (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getKeys } = await this._client.query(
|
||||
gql(queries.getKeys),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getKeys;
|
||||
}
|
||||
|
||||
async getGetKeyRevisionNumber (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getKeyRevisionNumber } = await this._client.query(
|
||||
gql(queries.getKeyRevisionNumber),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getKeyRevisionNumber;
|
||||
}
|
||||
|
||||
async getHasBeenLinked (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { hasBeenLinked } = await this._client.query(
|
||||
gql(queries.hasBeenLinked),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return hasBeenLinked;
|
||||
}
|
||||
|
||||
async getIsLive (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { isLive } = await this._client.query(
|
||||
gql(queries.isLive),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return isLive;
|
||||
}
|
||||
|
||||
async getGetContinuityNumber (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getContinuityNumber } = await this._client.query(
|
||||
gql(queries.getContinuityNumber),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getContinuityNumber;
|
||||
}
|
||||
|
||||
async getGetSpawnCount (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getSpawnCount } = await this._client.query(
|
||||
gql(queries.getSpawnCount),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getSpawnCount;
|
||||
}
|
||||
|
||||
async getHasSponsor (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { hasSponsor } = await this._client.query(
|
||||
gql(queries.hasSponsor),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return hasSponsor;
|
||||
}
|
||||
|
||||
async getGetSponsor (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getSponsor } = await this._client.query(
|
||||
gql(queries.getSponsor),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getSponsor;
|
||||
}
|
||||
|
||||
async getIsSponsor (blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint): Promise<any> {
|
||||
const { isSponsor } = await this._client.query(
|
||||
gql(queries.isSponsor),
|
||||
{ blockHash, contractAddress, _point, _sponsor }
|
||||
);
|
||||
|
||||
return isSponsor;
|
||||
}
|
||||
|
||||
async getGetSponsoringCount (blockHash: string, contractAddress: string, _sponsor: bigint): Promise<any> {
|
||||
const { getSponsoringCount } = await this._client.query(
|
||||
gql(queries.getSponsoringCount),
|
||||
{ blockHash, contractAddress, _sponsor }
|
||||
);
|
||||
|
||||
return getSponsoringCount;
|
||||
}
|
||||
|
||||
async getIsEscaping (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { isEscaping } = await this._client.query(
|
||||
gql(queries.isEscaping),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return isEscaping;
|
||||
}
|
||||
|
||||
async getGetEscapeRequest (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getEscapeRequest } = await this._client.query(
|
||||
gql(queries.getEscapeRequest),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getEscapeRequest;
|
||||
}
|
||||
|
||||
async getIsRequestingEscapeTo (blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint): Promise<any> {
|
||||
const { isRequestingEscapeTo } = await this._client.query(
|
||||
gql(queries.isRequestingEscapeTo),
|
||||
{ blockHash, contractAddress, _point, _sponsor }
|
||||
);
|
||||
|
||||
return isRequestingEscapeTo;
|
||||
}
|
||||
|
||||
async getGetEscapeRequestsCount (blockHash: string, contractAddress: string, _sponsor: bigint): Promise<any> {
|
||||
const { getEscapeRequestsCount } = await this._client.query(
|
||||
gql(queries.getEscapeRequestsCount),
|
||||
{ blockHash, contractAddress, _sponsor }
|
||||
);
|
||||
|
||||
return getEscapeRequestsCount;
|
||||
}
|
||||
|
||||
async getGetOwner (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getOwner } = await this._client.query(
|
||||
gql(queries.getOwner),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getOwner;
|
||||
}
|
||||
|
||||
async getIsOwner (blockHash: string, contractAddress: string, _point: bigint, _address: string): Promise<any> {
|
||||
const { isOwner } = await this._client.query(
|
||||
gql(queries.isOwner),
|
||||
{ blockHash, contractAddress, _point, _address }
|
||||
);
|
||||
|
||||
return isOwner;
|
||||
}
|
||||
|
||||
async getGetOwnedPointCount (blockHash: string, contractAddress: string, _whose: string): Promise<any> {
|
||||
const { getOwnedPointCount } = await this._client.query(
|
||||
gql(queries.getOwnedPointCount),
|
||||
{ blockHash, contractAddress, _whose }
|
||||
);
|
||||
|
||||
return getOwnedPointCount;
|
||||
}
|
||||
|
||||
async getGetOwnedPointAtIndex (blockHash: string, contractAddress: string, _whose: string, _index: bigint): Promise<any> {
|
||||
const { getOwnedPointAtIndex } = await this._client.query(
|
||||
gql(queries.getOwnedPointAtIndex),
|
||||
{ blockHash, contractAddress, _whose, _index }
|
||||
);
|
||||
|
||||
return getOwnedPointAtIndex;
|
||||
}
|
||||
|
||||
async getGetManagementProxy (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getManagementProxy } = await this._client.query(
|
||||
gql(queries.getManagementProxy),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getManagementProxy;
|
||||
}
|
||||
|
||||
async getIsManagementProxy (blockHash: string, contractAddress: string, _point: bigint, _proxy: string): Promise<any> {
|
||||
const { isManagementProxy } = await this._client.query(
|
||||
gql(queries.isManagementProxy),
|
||||
{ blockHash, contractAddress, _point, _proxy }
|
||||
);
|
||||
|
||||
return isManagementProxy;
|
||||
}
|
||||
|
||||
async getCanManage (blockHash: string, contractAddress: string, _point: bigint, _who: string): Promise<any> {
|
||||
const { canManage } = await this._client.query(
|
||||
gql(queries.canManage),
|
||||
{ blockHash, contractAddress, _point, _who }
|
||||
);
|
||||
|
||||
return canManage;
|
||||
}
|
||||
|
||||
async getGetManagerForCount (blockHash: string, contractAddress: string, _proxy: string): Promise<any> {
|
||||
const { getManagerForCount } = await this._client.query(
|
||||
gql(queries.getManagerForCount),
|
||||
{ blockHash, contractAddress, _proxy }
|
||||
);
|
||||
|
||||
return getManagerForCount;
|
||||
}
|
||||
|
||||
async getGetSpawnProxy (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getSpawnProxy } = await this._client.query(
|
||||
gql(queries.getSpawnProxy),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getSpawnProxy;
|
||||
}
|
||||
|
||||
async getIsSpawnProxy (blockHash: string, contractAddress: string, _point: bigint, _proxy: string): Promise<any> {
|
||||
const { isSpawnProxy } = await this._client.query(
|
||||
gql(queries.isSpawnProxy),
|
||||
{ blockHash, contractAddress, _point, _proxy }
|
||||
);
|
||||
|
||||
return isSpawnProxy;
|
||||
}
|
||||
|
||||
async getCanSpawnAs (blockHash: string, contractAddress: string, _point: bigint, _who: string): Promise<any> {
|
||||
const { canSpawnAs } = await this._client.query(
|
||||
gql(queries.canSpawnAs),
|
||||
{ blockHash, contractAddress, _point, _who }
|
||||
);
|
||||
|
||||
return canSpawnAs;
|
||||
}
|
||||
|
||||
async getGetSpawningForCount (blockHash: string, contractAddress: string, _proxy: string): Promise<any> {
|
||||
const { getSpawningForCount } = await this._client.query(
|
||||
gql(queries.getSpawningForCount),
|
||||
{ blockHash, contractAddress, _proxy }
|
||||
);
|
||||
|
||||
return getSpawningForCount;
|
||||
}
|
||||
|
||||
async getGetVotingProxy (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getVotingProxy } = await this._client.query(
|
||||
gql(queries.getVotingProxy),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getVotingProxy;
|
||||
}
|
||||
|
||||
async getIsVotingProxy (blockHash: string, contractAddress: string, _point: bigint, _proxy: string): Promise<any> {
|
||||
const { isVotingProxy } = await this._client.query(
|
||||
gql(queries.isVotingProxy),
|
||||
{ blockHash, contractAddress, _point, _proxy }
|
||||
);
|
||||
|
||||
return isVotingProxy;
|
||||
}
|
||||
|
||||
async getCanVoteAs (blockHash: string, contractAddress: string, _point: bigint, _who: string): Promise<any> {
|
||||
const { canVoteAs } = await this._client.query(
|
||||
gql(queries.canVoteAs),
|
||||
{ blockHash, contractAddress, _point, _who }
|
||||
);
|
||||
|
||||
return canVoteAs;
|
||||
}
|
||||
|
||||
async getGetVotingForCount (blockHash: string, contractAddress: string, _proxy: string): Promise<any> {
|
||||
const { getVotingForCount } = await this._client.query(
|
||||
gql(queries.getVotingForCount),
|
||||
{ blockHash, contractAddress, _proxy }
|
||||
);
|
||||
|
||||
return getVotingForCount;
|
||||
}
|
||||
|
||||
async getGetTransferProxy (blockHash: string, contractAddress: string, _point: bigint): Promise<any> {
|
||||
const { getTransferProxy } = await this._client.query(
|
||||
gql(queries.getTransferProxy),
|
||||
{ blockHash, contractAddress, _point }
|
||||
);
|
||||
|
||||
return getTransferProxy;
|
||||
}
|
||||
|
||||
async getIsTransferProxy (blockHash: string, contractAddress: string, _point: bigint, _proxy: string): Promise<any> {
|
||||
const { isTransferProxy } = await this._client.query(
|
||||
gql(queries.isTransferProxy),
|
||||
{ blockHash, contractAddress, _point, _proxy }
|
||||
);
|
||||
|
||||
return isTransferProxy;
|
||||
}
|
||||
|
||||
async getCanTransfer (blockHash: string, contractAddress: string, _point: bigint, _who: string): Promise<any> {
|
||||
const { canTransfer } = await this._client.query(
|
||||
gql(queries.canTransfer),
|
||||
{ blockHash, contractAddress, _point, _who }
|
||||
);
|
||||
|
||||
return canTransfer;
|
||||
}
|
||||
|
||||
async getGetTransferringForCount (blockHash: string, contractAddress: string, _proxy: string): Promise<any> {
|
||||
const { getTransferringForCount } = await this._client.query(
|
||||
gql(queries.getTransferringForCount),
|
||||
{ blockHash, contractAddress, _proxy }
|
||||
);
|
||||
|
||||
return getTransferringForCount;
|
||||
}
|
||||
|
||||
async getIsOperator (blockHash: string, contractAddress: string, _owner: string, _operator: string): Promise<any> {
|
||||
const { isOperator } = await this._client.query(
|
||||
gql(queries.isOperator),
|
||||
{ blockHash, contractAddress, _owner, _operator }
|
||||
);
|
||||
|
||||
return isOperator;
|
||||
}
|
||||
|
||||
async getGetUpgradeProposalCount (blockHash: string, contractAddress: string): Promise<any> {
|
||||
const { getUpgradeProposalCount } = await this._client.query(
|
||||
gql(queries.getUpgradeProposalCount),
|
||||
{ blockHash, contractAddress }
|
||||
);
|
||||
|
||||
return getUpgradeProposalCount;
|
||||
}
|
||||
|
||||
async getGetDocumentProposalCount (blockHash: string, contractAddress: string): Promise<any> {
|
||||
const { getDocumentProposalCount } = await this._client.query(
|
||||
gql(queries.getDocumentProposalCount),
|
||||
{ blockHash, contractAddress }
|
||||
);
|
||||
|
||||
return getDocumentProposalCount;
|
||||
}
|
||||
|
||||
async getHasVotedOnUpgradePoll (blockHash: string, contractAddress: string, _galaxy: number, _proposal: string): Promise<any> {
|
||||
const { hasVotedOnUpgradePoll } = await this._client.query(
|
||||
gql(queries.hasVotedOnUpgradePoll),
|
||||
{ blockHash, contractAddress, _galaxy, _proposal }
|
||||
);
|
||||
|
||||
return hasVotedOnUpgradePoll;
|
||||
}
|
||||
|
||||
async getHasVotedOnDocumentPoll (blockHash: string, contractAddress: string, _galaxy: number, _proposal: string): Promise<any> {
|
||||
const { hasVotedOnDocumentPoll } = await this._client.query(
|
||||
gql(queries.hasVotedOnDocumentPoll),
|
||||
{ blockHash, contractAddress, _galaxy, _proposal }
|
||||
);
|
||||
|
||||
return hasVotedOnDocumentPoll;
|
||||
}
|
||||
|
||||
async getFindClaim (blockHash: string, contractAddress: string, _whose: bigint, _protocol: string, _claim: string): Promise<any> {
|
||||
const { findClaim } = await this._client.query(
|
||||
gql(queries.findClaim),
|
||||
{ blockHash, contractAddress, _whose, _protocol, _claim }
|
||||
);
|
||||
|
||||
return findClaim;
|
||||
}
|
||||
|
||||
async getSupportsInterface (blockHash: string, contractAddress: string, _interfaceId: string): Promise<any> {
|
||||
const { supportsInterface } = await this._client.query(
|
||||
gql(queries.supportsInterface),
|
||||
{ blockHash, contractAddress, _interfaceId }
|
||||
);
|
||||
|
||||
return supportsInterface;
|
||||
}
|
||||
|
||||
async getBalanceOf (blockHash: string, contractAddress: string, _owner: string): Promise<any> {
|
||||
const { balanceOf } = await this._client.query(
|
||||
gql(queries.balanceOf),
|
||||
{ blockHash, contractAddress, _owner }
|
||||
);
|
||||
|
||||
return balanceOf;
|
||||
}
|
||||
|
||||
async getOwnerOf (blockHash: string, contractAddress: string, _tokenId: bigint): Promise<any> {
|
||||
const { ownerOf } = await this._client.query(
|
||||
gql(queries.ownerOf),
|
||||
{ blockHash, contractAddress, _tokenId }
|
||||
);
|
||||
|
||||
return ownerOf;
|
||||
}
|
||||
|
||||
async getExists (blockHash: string, contractAddress: string, _tokenId: bigint): Promise<any> {
|
||||
const { exists } = await this._client.query(
|
||||
gql(queries.exists),
|
||||
{ blockHash, contractAddress, _tokenId }
|
||||
);
|
||||
|
||||
return exists;
|
||||
}
|
||||
|
||||
async getGetApproved (blockHash: string, contractAddress: string, _tokenId: bigint): Promise<any> {
|
||||
const { getApproved } = await this._client.query(
|
||||
gql(queries.getApproved),
|
||||
{ blockHash, contractAddress, _tokenId }
|
||||
);
|
||||
|
||||
return getApproved;
|
||||
}
|
||||
|
||||
async getIsApprovedForAll (blockHash: string, contractAddress: string, _owner: string, _operator: string): Promise<any> {
|
||||
const { isApprovedForAll } = await this._client.query(
|
||||
gql(queries.isApprovedForAll),
|
||||
{ blockHash, contractAddress, _owner, _operator }
|
||||
);
|
||||
|
||||
return isApprovedForAll;
|
||||
}
|
||||
|
||||
async getTotalSupply (blockHash: string, contractAddress: string): Promise<any> {
|
||||
const { totalSupply } = await this._client.query(
|
||||
gql(queries.totalSupply),
|
||||
{ blockHash, contractAddress }
|
||||
);
|
||||
|
||||
return totalSupply;
|
||||
}
|
||||
|
||||
async getTokenOfOwnerByIndex (blockHash: string, contractAddress: string, _owner: string, _index: bigint): Promise<any> {
|
||||
const { tokenOfOwnerByIndex } = await this._client.query(
|
||||
gql(queries.tokenOfOwnerByIndex),
|
||||
{ blockHash, contractAddress, _owner, _index }
|
||||
);
|
||||
|
||||
return tokenOfOwnerByIndex;
|
||||
}
|
||||
|
||||
async getTokenByIndex (blockHash: string, contractAddress: string, _index: bigint): Promise<any> {
|
||||
const { tokenByIndex } = await this._client.query(
|
||||
gql(queries.tokenByIndex),
|
||||
{ blockHash, contractAddress, _index }
|
||||
);
|
||||
|
||||
return tokenByIndex;
|
||||
}
|
||||
|
||||
async getName (blockHash: string, contractAddress: string): Promise<any> {
|
||||
const { name } = await this._client.query(
|
||||
gql(queries.name),
|
||||
{ blockHash, contractAddress }
|
||||
);
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
async getSymbol (blockHash: string, contractAddress: string): Promise<any> {
|
||||
const { symbol } = await this._client.query(
|
||||
gql(queries.symbol),
|
||||
{ blockHash, contractAddress }
|
||||
);
|
||||
|
||||
return symbol;
|
||||
}
|
||||
|
||||
async getTokenURI (blockHash: string, contractAddress: string, _tokenId: bigint): Promise<any> {
|
||||
const { tokenURI } = await this._client.query(
|
||||
gql(queries.tokenURI),
|
||||
{ blockHash, contractAddress, _tokenId }
|
||||
);
|
||||
|
||||
return tokenURI;
|
||||
}
|
||||
|
||||
async getGetSpawnLimit (blockHash: string, contractAddress: string, _point: bigint, _time: bigint): Promise<any> {
|
||||
const { getSpawnLimit } = await this._client.query(
|
||||
gql(queries.getSpawnLimit),
|
||||
{ blockHash, contractAddress, _point, _time }
|
||||
);
|
||||
|
||||
return getSpawnLimit;
|
||||
}
|
||||
|
||||
async getCanEscapeTo (blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint): Promise<any> {
|
||||
const { canEscapeTo } = await this._client.query(
|
||||
gql(queries.canEscapeTo),
|
||||
{ blockHash, contractAddress, _point, _sponsor }
|
||||
);
|
||||
|
||||
return canEscapeTo;
|
||||
}
|
||||
|
||||
async getWithdrawLimit (blockHash: string, contractAddress: string, _participant: string, _batch: number): Promise<any> {
|
||||
const { withdrawLimit } = await this._client.query(
|
||||
gql(queries.withdrawLimit),
|
||||
|
||||
@@ -20,68 +20,13 @@ import { SyncStatus } from './entity/SyncStatus';
|
||||
import { StateSyncStatus } from './entity/StateSyncStatus';
|
||||
import { BlockProgress } from './entity/BlockProgress';
|
||||
import { State } from './entity/State';
|
||||
import { IsActive } from './entity/IsActive';
|
||||
import { GetKeys } from './entity/GetKeys';
|
||||
import { GetKeyRevisionNumber } from './entity/GetKeyRevisionNumber';
|
||||
import { HasBeenLinked } from './entity/HasBeenLinked';
|
||||
import { IsLive } from './entity/IsLive';
|
||||
import { GetContinuityNumber } from './entity/GetContinuityNumber';
|
||||
import { GetSpawnCount } from './entity/GetSpawnCount';
|
||||
import { HasSponsor } from './entity/HasSponsor';
|
||||
import { GetSponsor } from './entity/GetSponsor';
|
||||
import { IsSponsor } from './entity/IsSponsor';
|
||||
import { GetSponsoringCount } from './entity/GetSponsoringCount';
|
||||
import { IsEscaping } from './entity/IsEscaping';
|
||||
import { GetEscapeRequest } from './entity/GetEscapeRequest';
|
||||
import { IsRequestingEscapeTo } from './entity/IsRequestingEscapeTo';
|
||||
import { GetEscapeRequestsCount } from './entity/GetEscapeRequestsCount';
|
||||
import { GetOwner } from './entity/GetOwner';
|
||||
import { IsOwner } from './entity/IsOwner';
|
||||
import { GetOwnedPointCount } from './entity/GetOwnedPointCount';
|
||||
import { GetOwnedPointAtIndex } from './entity/GetOwnedPointAtIndex';
|
||||
import { GetManagementProxy } from './entity/GetManagementProxy';
|
||||
import { IsManagementProxy } from './entity/IsManagementProxy';
|
||||
import { CanManage } from './entity/CanManage';
|
||||
import { GetManagerForCount } from './entity/GetManagerForCount';
|
||||
import { GetSpawnProxy } from './entity/GetSpawnProxy';
|
||||
import { IsSpawnProxy } from './entity/IsSpawnProxy';
|
||||
import { CanSpawnAs } from './entity/CanSpawnAs';
|
||||
import { GetSpawningForCount } from './entity/GetSpawningForCount';
|
||||
import { GetVotingProxy } from './entity/GetVotingProxy';
|
||||
import { IsVotingProxy } from './entity/IsVotingProxy';
|
||||
import { CanVoteAs } from './entity/CanVoteAs';
|
||||
import { GetVotingForCount } from './entity/GetVotingForCount';
|
||||
import { GetTransferProxy } from './entity/GetTransferProxy';
|
||||
import { IsTransferProxy } from './entity/IsTransferProxy';
|
||||
import { CanTransfer } from './entity/CanTransfer';
|
||||
import { GetTransferringForCount } from './entity/GetTransferringForCount';
|
||||
import { IsOperator } from './entity/IsOperator';
|
||||
import { GetUpgradeProposalCount } from './entity/GetUpgradeProposalCount';
|
||||
import { GetDocumentProposalCount } from './entity/GetDocumentProposalCount';
|
||||
import { HasVotedOnUpgradePoll } from './entity/HasVotedOnUpgradePoll';
|
||||
import { HasVotedOnDocumentPoll } from './entity/HasVotedOnDocumentPoll';
|
||||
import { FindClaim } from './entity/FindClaim';
|
||||
import { SupportsInterface } from './entity/SupportsInterface';
|
||||
import { BalanceOf } from './entity/BalanceOf';
|
||||
import { OwnerOf } from './entity/OwnerOf';
|
||||
import { Exists } from './entity/Exists';
|
||||
import { GetApproved } from './entity/GetApproved';
|
||||
import { IsApprovedForAll } from './entity/IsApprovedForAll';
|
||||
import { TotalSupply } from './entity/TotalSupply';
|
||||
import { TokenOfOwnerByIndex } from './entity/TokenOfOwnerByIndex';
|
||||
import { TokenByIndex } from './entity/TokenByIndex';
|
||||
import { Name } from './entity/Name';
|
||||
import { Symbol } from './entity/Symbol';
|
||||
import { TokenURI } from './entity/TokenURI';
|
||||
import { GetSpawnLimit } from './entity/GetSpawnLimit';
|
||||
import { CanEscapeTo } from './entity/CanEscapeTo';
|
||||
import { WithdrawLimit } from './entity/WithdrawLimit';
|
||||
import { VerifyBalance } from './entity/VerifyBalance';
|
||||
import { GetBatch } from './entity/GetBatch';
|
||||
import { GetWithdrawnFromBatch } from './entity/GetWithdrawnFromBatch';
|
||||
import { HasForfeitedBatch } from './entity/HasForfeitedBatch';
|
||||
|
||||
export const ENTITIES = [IsActive, GetKeys, GetKeyRevisionNumber, HasBeenLinked, IsLive, GetContinuityNumber, GetSpawnCount, HasSponsor, GetSponsor, IsSponsor, GetSponsoringCount, IsEscaping, GetEscapeRequest, IsRequestingEscapeTo, GetEscapeRequestsCount, GetOwner, IsOwner, GetOwnedPointCount, GetOwnedPointAtIndex, GetManagementProxy, IsManagementProxy, CanManage, GetManagerForCount, GetSpawnProxy, IsSpawnProxy, CanSpawnAs, GetSpawningForCount, GetVotingProxy, IsVotingProxy, CanVoteAs, GetVotingForCount, GetTransferProxy, IsTransferProxy, CanTransfer, GetTransferringForCount, IsOperator, GetUpgradeProposalCount, GetDocumentProposalCount, HasVotedOnUpgradePoll, HasVotedOnDocumentPoll, FindClaim, SupportsInterface, BalanceOf, OwnerOf, Exists, GetApproved, IsApprovedForAll, TotalSupply, TokenOfOwnerByIndex, TokenByIndex, Name, Symbol, TokenURI, GetSpawnLimit, CanEscapeTo, WithdrawLimit, VerifyBalance, GetBatch, GetWithdrawnFromBatch, HasForfeitedBatch];
|
||||
export const ENTITIES = [WithdrawLimit, VerifyBalance, GetBatch, GetWithdrawnFromBatch, HasForfeitedBatch];
|
||||
|
||||
export class Database implements DatabaseInterface {
|
||||
_config: ConnectionOptions;
|
||||
@@ -114,518 +59,6 @@ export class Database implements DatabaseInterface {
|
||||
return this._baseDatabase.close();
|
||||
}
|
||||
|
||||
async getIsActive ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<IsActive | undefined> {
|
||||
return this._conn.getRepository(IsActive)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetKeys ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetKeys | undefined> {
|
||||
return this._conn.getRepository(GetKeys)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetKeyRevisionNumber ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetKeyRevisionNumber | undefined> {
|
||||
return this._conn.getRepository(GetKeyRevisionNumber)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getHasBeenLinked ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<HasBeenLinked | undefined> {
|
||||
return this._conn.getRepository(HasBeenLinked)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsLive ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<IsLive | undefined> {
|
||||
return this._conn.getRepository(IsLive)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetContinuityNumber ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetContinuityNumber | undefined> {
|
||||
return this._conn.getRepository(GetContinuityNumber)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSpawnCount ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetSpawnCount | undefined> {
|
||||
return this._conn.getRepository(GetSpawnCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getHasSponsor ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<HasSponsor | undefined> {
|
||||
return this._conn.getRepository(HasSponsor)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSponsor ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetSponsor | undefined> {
|
||||
return this._conn.getRepository(GetSponsor)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsSponsor ({ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint }): Promise<IsSponsor | undefined> {
|
||||
return this._conn.getRepository(IsSponsor)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_sponsor
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSponsoringCount ({ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint }): Promise<GetSponsoringCount | undefined> {
|
||||
return this._conn.getRepository(GetSponsoringCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_sponsor
|
||||
});
|
||||
}
|
||||
|
||||
async getIsEscaping ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<IsEscaping | undefined> {
|
||||
return this._conn.getRepository(IsEscaping)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getGetEscapeRequest ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetEscapeRequest | undefined> {
|
||||
return this._conn.getRepository(GetEscapeRequest)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsRequestingEscapeTo ({ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint }): Promise<IsRequestingEscapeTo | undefined> {
|
||||
return this._conn.getRepository(IsRequestingEscapeTo)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_sponsor
|
||||
});
|
||||
}
|
||||
|
||||
async getGetEscapeRequestsCount ({ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint }): Promise<GetEscapeRequestsCount | undefined> {
|
||||
return this._conn.getRepository(GetEscapeRequestsCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_sponsor
|
||||
});
|
||||
}
|
||||
|
||||
async getGetOwner ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetOwner | undefined> {
|
||||
return this._conn.getRepository(GetOwner)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsOwner ({ blockHash, contractAddress, _point, _address }: { blockHash: string, contractAddress: string, _point: bigint, _address: string }): Promise<IsOwner | undefined> {
|
||||
return this._conn.getRepository(IsOwner)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_address
|
||||
});
|
||||
}
|
||||
|
||||
async getGetOwnedPointCount ({ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: string }): Promise<GetOwnedPointCount | undefined> {
|
||||
return this._conn.getRepository(GetOwnedPointCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_whose
|
||||
});
|
||||
}
|
||||
|
||||
async getGetOwnedPointAtIndex ({ blockHash, contractAddress, _whose, _index }: { blockHash: string, contractAddress: string, _whose: string, _index: bigint }): Promise<GetOwnedPointAtIndex | undefined> {
|
||||
return this._conn.getRepository(GetOwnedPointAtIndex)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_whose,
|
||||
_index
|
||||
});
|
||||
}
|
||||
|
||||
async getGetManagementProxy ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetManagementProxy | undefined> {
|
||||
return this._conn.getRepository(GetManagementProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsManagementProxy ({ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string }): Promise<IsManagementProxy | undefined> {
|
||||
return this._conn.getRepository(IsManagementProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getCanManage ({ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string }): Promise<CanManage | undefined> {
|
||||
return this._conn.getRepository(CanManage)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_who
|
||||
});
|
||||
}
|
||||
|
||||
async getGetManagerForCount ({ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string }): Promise<GetManagerForCount | undefined> {
|
||||
return this._conn.getRepository(GetManagerForCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSpawnProxy ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetSpawnProxy | undefined> {
|
||||
return this._conn.getRepository(GetSpawnProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsSpawnProxy ({ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string }): Promise<IsSpawnProxy | undefined> {
|
||||
return this._conn.getRepository(IsSpawnProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getCanSpawnAs ({ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string }): Promise<CanSpawnAs | undefined> {
|
||||
return this._conn.getRepository(CanSpawnAs)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_who
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSpawningForCount ({ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string }): Promise<GetSpawningForCount | undefined> {
|
||||
return this._conn.getRepository(GetSpawningForCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getGetVotingProxy ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetVotingProxy | undefined> {
|
||||
return this._conn.getRepository(GetVotingProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsVotingProxy ({ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string }): Promise<IsVotingProxy | undefined> {
|
||||
return this._conn.getRepository(IsVotingProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getCanVoteAs ({ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string }): Promise<CanVoteAs | undefined> {
|
||||
return this._conn.getRepository(CanVoteAs)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_who
|
||||
});
|
||||
}
|
||||
|
||||
async getGetVotingForCount ({ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string }): Promise<GetVotingForCount | undefined> {
|
||||
return this._conn.getRepository(GetVotingForCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getGetTransferProxy ({ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint }): Promise<GetTransferProxy | undefined> {
|
||||
return this._conn.getRepository(GetTransferProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point
|
||||
});
|
||||
}
|
||||
|
||||
async getIsTransferProxy ({ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string }): Promise<IsTransferProxy | undefined> {
|
||||
return this._conn.getRepository(IsTransferProxy)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getCanTransfer ({ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string }): Promise<CanTransfer | undefined> {
|
||||
return this._conn.getRepository(CanTransfer)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_who
|
||||
});
|
||||
}
|
||||
|
||||
async getGetTransferringForCount ({ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string }): Promise<GetTransferringForCount | undefined> {
|
||||
return this._conn.getRepository(GetTransferringForCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_proxy
|
||||
});
|
||||
}
|
||||
|
||||
async getIsOperator ({ blockHash, contractAddress, _owner, _operator }: { blockHash: string, contractAddress: string, _owner: string, _operator: string }): Promise<IsOperator | undefined> {
|
||||
return this._conn.getRepository(IsOperator)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_owner,
|
||||
_operator
|
||||
});
|
||||
}
|
||||
|
||||
async getGetUpgradeProposalCount ({ blockHash, contractAddress }: { blockHash: string, contractAddress: string }): Promise<GetUpgradeProposalCount | undefined> {
|
||||
return this._conn.getRepository(GetUpgradeProposalCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress
|
||||
});
|
||||
}
|
||||
|
||||
async getGetDocumentProposalCount ({ blockHash, contractAddress }: { blockHash: string, contractAddress: string }): Promise<GetDocumentProposalCount | undefined> {
|
||||
return this._conn.getRepository(GetDocumentProposalCount)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress
|
||||
});
|
||||
}
|
||||
|
||||
async getHasVotedOnUpgradePoll ({ blockHash, contractAddress, _galaxy, _proposal }: { blockHash: string, contractAddress: string, _galaxy: number, _proposal: string }): Promise<HasVotedOnUpgradePoll | undefined> {
|
||||
return this._conn.getRepository(HasVotedOnUpgradePoll)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_galaxy,
|
||||
_proposal
|
||||
});
|
||||
}
|
||||
|
||||
async getHasVotedOnDocumentPoll ({ blockHash, contractAddress, _galaxy, _proposal }: { blockHash: string, contractAddress: string, _galaxy: number, _proposal: string }): Promise<HasVotedOnDocumentPoll | undefined> {
|
||||
return this._conn.getRepository(HasVotedOnDocumentPoll)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_galaxy,
|
||||
_proposal
|
||||
});
|
||||
}
|
||||
|
||||
async getFindClaim ({ blockHash, contractAddress, _whose, _protocol, _claim }: { blockHash: string, contractAddress: string, _whose: bigint, _protocol: string, _claim: string }): Promise<FindClaim | undefined> {
|
||||
return this._conn.getRepository(FindClaim)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_whose,
|
||||
_protocol,
|
||||
_claim
|
||||
});
|
||||
}
|
||||
|
||||
async getSupportsInterface ({ blockHash, contractAddress, _interfaceId }: { blockHash: string, contractAddress: string, _interfaceId: string }): Promise<SupportsInterface | undefined> {
|
||||
return this._conn.getRepository(SupportsInterface)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_interfaceId
|
||||
});
|
||||
}
|
||||
|
||||
async getBalanceOf ({ blockHash, contractAddress, _owner }: { blockHash: string, contractAddress: string, _owner: string }): Promise<BalanceOf | undefined> {
|
||||
return this._conn.getRepository(BalanceOf)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_owner
|
||||
});
|
||||
}
|
||||
|
||||
async getOwnerOf ({ blockHash, contractAddress, _tokenId }: { blockHash: string, contractAddress: string, _tokenId: bigint }): Promise<OwnerOf | undefined> {
|
||||
return this._conn.getRepository(OwnerOf)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_tokenId
|
||||
});
|
||||
}
|
||||
|
||||
async getExists ({ blockHash, contractAddress, _tokenId }: { blockHash: string, contractAddress: string, _tokenId: bigint }): Promise<Exists | undefined> {
|
||||
return this._conn.getRepository(Exists)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_tokenId
|
||||
});
|
||||
}
|
||||
|
||||
async getGetApproved ({ blockHash, contractAddress, _tokenId }: { blockHash: string, contractAddress: string, _tokenId: bigint }): Promise<GetApproved | undefined> {
|
||||
return this._conn.getRepository(GetApproved)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_tokenId
|
||||
});
|
||||
}
|
||||
|
||||
async getIsApprovedForAll ({ blockHash, contractAddress, _owner, _operator }: { blockHash: string, contractAddress: string, _owner: string, _operator: string }): Promise<IsApprovedForAll | undefined> {
|
||||
return this._conn.getRepository(IsApprovedForAll)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_owner,
|
||||
_operator
|
||||
});
|
||||
}
|
||||
|
||||
async getTotalSupply ({ blockHash, contractAddress }: { blockHash: string, contractAddress: string }): Promise<TotalSupply | undefined> {
|
||||
return this._conn.getRepository(TotalSupply)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress
|
||||
});
|
||||
}
|
||||
|
||||
async getTokenOfOwnerByIndex ({ blockHash, contractAddress, _owner, _index }: { blockHash: string, contractAddress: string, _owner: string, _index: bigint }): Promise<TokenOfOwnerByIndex | undefined> {
|
||||
return this._conn.getRepository(TokenOfOwnerByIndex)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_owner,
|
||||
_index
|
||||
});
|
||||
}
|
||||
|
||||
async getTokenByIndex ({ blockHash, contractAddress, _index }: { blockHash: string, contractAddress: string, _index: bigint }): Promise<TokenByIndex | undefined> {
|
||||
return this._conn.getRepository(TokenByIndex)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_index
|
||||
});
|
||||
}
|
||||
|
||||
async getName ({ blockHash, contractAddress }: { blockHash: string, contractAddress: string }): Promise<Name | undefined> {
|
||||
return this._conn.getRepository(Name)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
async getSymbol ({ blockHash, contractAddress }: { blockHash: string, contractAddress: string }): Promise<Symbol | undefined> {
|
||||
return this._conn.getRepository(Symbol)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress
|
||||
});
|
||||
}
|
||||
|
||||
async getTokenURI ({ blockHash, contractAddress, _tokenId }: { blockHash: string, contractAddress: string, _tokenId: bigint }): Promise<TokenURI | undefined> {
|
||||
return this._conn.getRepository(TokenURI)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_tokenId
|
||||
});
|
||||
}
|
||||
|
||||
async getGetSpawnLimit ({ blockHash, contractAddress, _point, _time }: { blockHash: string, contractAddress: string, _point: bigint, _time: bigint }): Promise<GetSpawnLimit | undefined> {
|
||||
return this._conn.getRepository(GetSpawnLimit)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_time
|
||||
});
|
||||
}
|
||||
|
||||
async getCanEscapeTo ({ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint }): Promise<CanEscapeTo | undefined> {
|
||||
return this._conn.getRepository(CanEscapeTo)
|
||||
.findOne({
|
||||
blockHash,
|
||||
contractAddress,
|
||||
_point,
|
||||
_sponsor
|
||||
});
|
||||
}
|
||||
|
||||
async getWithdrawLimit ({ blockHash, contractAddress, _participant, _batch }: { blockHash: string, contractAddress: string, _participant: string, _batch: number }): Promise<WithdrawLimit | undefined> {
|
||||
return this._conn.getRepository(WithdrawLimit)
|
||||
.findOne({
|
||||
@@ -675,337 +108,6 @@ export class Database implements DatabaseInterface {
|
||||
});
|
||||
}
|
||||
|
||||
async saveIsActive ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<IsActive>): Promise<IsActive> {
|
||||
const repo = this._conn.getRepository(IsActive);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetKeys ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetKeys>): Promise<GetKeys> {
|
||||
const repo = this._conn.getRepository(GetKeys);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetKeyRevisionNumber ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetKeyRevisionNumber>): Promise<GetKeyRevisionNumber> {
|
||||
const repo = this._conn.getRepository(GetKeyRevisionNumber);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveHasBeenLinked ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<HasBeenLinked>): Promise<HasBeenLinked> {
|
||||
const repo = this._conn.getRepository(HasBeenLinked);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsLive ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<IsLive>): Promise<IsLive> {
|
||||
const repo = this._conn.getRepository(IsLive);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetContinuityNumber ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetContinuityNumber>): Promise<GetContinuityNumber> {
|
||||
const repo = this._conn.getRepository(GetContinuityNumber);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSpawnCount ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetSpawnCount>): Promise<GetSpawnCount> {
|
||||
const repo = this._conn.getRepository(GetSpawnCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveHasSponsor ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<HasSponsor>): Promise<HasSponsor> {
|
||||
const repo = this._conn.getRepository(HasSponsor);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSponsor ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetSponsor>): Promise<GetSponsor> {
|
||||
const repo = this._conn.getRepository(GetSponsor);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsSponsor ({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof }: DeepPartial<IsSponsor>): Promise<IsSponsor> {
|
||||
const repo = this._conn.getRepository(IsSponsor);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSponsoringCount ({ blockHash, blockNumber, contractAddress, _sponsor, value, proof }: DeepPartial<GetSponsoringCount>): Promise<GetSponsoringCount> {
|
||||
const repo = this._conn.getRepository(GetSponsoringCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _sponsor, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsEscaping ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<IsEscaping>): Promise<IsEscaping> {
|
||||
const repo = this._conn.getRepository(IsEscaping);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetEscapeRequest ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetEscapeRequest>): Promise<GetEscapeRequest> {
|
||||
const repo = this._conn.getRepository(GetEscapeRequest);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsRequestingEscapeTo ({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof }: DeepPartial<IsRequestingEscapeTo>): Promise<IsRequestingEscapeTo> {
|
||||
const repo = this._conn.getRepository(IsRequestingEscapeTo);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetEscapeRequestsCount ({ blockHash, blockNumber, contractAddress, _sponsor, value, proof }: DeepPartial<GetEscapeRequestsCount>): Promise<GetEscapeRequestsCount> {
|
||||
const repo = this._conn.getRepository(GetEscapeRequestsCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _sponsor, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetOwner ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetOwner>): Promise<GetOwner> {
|
||||
const repo = this._conn.getRepository(GetOwner);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsOwner ({ blockHash, blockNumber, contractAddress, _point, _address, value, proof }: DeepPartial<IsOwner>): Promise<IsOwner> {
|
||||
const repo = this._conn.getRepository(IsOwner);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _address, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetOwnedPointCount ({ blockHash, blockNumber, contractAddress, _whose, value, proof }: DeepPartial<GetOwnedPointCount>): Promise<GetOwnedPointCount> {
|
||||
const repo = this._conn.getRepository(GetOwnedPointCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _whose, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetOwnedPointAtIndex ({ blockHash, blockNumber, contractAddress, _whose, _index, value, proof }: DeepPartial<GetOwnedPointAtIndex>): Promise<GetOwnedPointAtIndex> {
|
||||
const repo = this._conn.getRepository(GetOwnedPointAtIndex);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _whose, _index, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetManagementProxy ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetManagementProxy>): Promise<GetManagementProxy> {
|
||||
const repo = this._conn.getRepository(GetManagementProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsManagementProxy ({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof }: DeepPartial<IsManagementProxy>): Promise<IsManagementProxy> {
|
||||
const repo = this._conn.getRepository(IsManagementProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveCanManage ({ blockHash, blockNumber, contractAddress, _point, _who, value, proof }: DeepPartial<CanManage>): Promise<CanManage> {
|
||||
const repo = this._conn.getRepository(CanManage);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _who, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetManagerForCount ({ blockHash, blockNumber, contractAddress, _proxy, value, proof }: DeepPartial<GetManagerForCount>): Promise<GetManagerForCount> {
|
||||
const repo = this._conn.getRepository(GetManagerForCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSpawnProxy ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetSpawnProxy>): Promise<GetSpawnProxy> {
|
||||
const repo = this._conn.getRepository(GetSpawnProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsSpawnProxy ({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof }: DeepPartial<IsSpawnProxy>): Promise<IsSpawnProxy> {
|
||||
const repo = this._conn.getRepository(IsSpawnProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveCanSpawnAs ({ blockHash, blockNumber, contractAddress, _point, _who, value, proof }: DeepPartial<CanSpawnAs>): Promise<CanSpawnAs> {
|
||||
const repo = this._conn.getRepository(CanSpawnAs);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _who, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSpawningForCount ({ blockHash, blockNumber, contractAddress, _proxy, value, proof }: DeepPartial<GetSpawningForCount>): Promise<GetSpawningForCount> {
|
||||
const repo = this._conn.getRepository(GetSpawningForCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetVotingProxy ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetVotingProxy>): Promise<GetVotingProxy> {
|
||||
const repo = this._conn.getRepository(GetVotingProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsVotingProxy ({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof }: DeepPartial<IsVotingProxy>): Promise<IsVotingProxy> {
|
||||
const repo = this._conn.getRepository(IsVotingProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveCanVoteAs ({ blockHash, blockNumber, contractAddress, _point, _who, value, proof }: DeepPartial<CanVoteAs>): Promise<CanVoteAs> {
|
||||
const repo = this._conn.getRepository(CanVoteAs);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _who, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetVotingForCount ({ blockHash, blockNumber, contractAddress, _proxy, value, proof }: DeepPartial<GetVotingForCount>): Promise<GetVotingForCount> {
|
||||
const repo = this._conn.getRepository(GetVotingForCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetTransferProxy ({ blockHash, blockNumber, contractAddress, _point, value, proof }: DeepPartial<GetTransferProxy>): Promise<GetTransferProxy> {
|
||||
const repo = this._conn.getRepository(GetTransferProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsTransferProxy ({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof }: DeepPartial<IsTransferProxy>): Promise<IsTransferProxy> {
|
||||
const repo = this._conn.getRepository(IsTransferProxy);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveCanTransfer ({ blockHash, blockNumber, contractAddress, _point, _who, value, proof }: DeepPartial<CanTransfer>): Promise<CanTransfer> {
|
||||
const repo = this._conn.getRepository(CanTransfer);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _who, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetTransferringForCount ({ blockHash, blockNumber, contractAddress, _proxy, value, proof }: DeepPartial<GetTransferringForCount>): Promise<GetTransferringForCount> {
|
||||
const repo = this._conn.getRepository(GetTransferringForCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _proxy, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsOperator ({ blockHash, blockNumber, contractAddress, _owner, _operator, value, proof }: DeepPartial<IsOperator>): Promise<IsOperator> {
|
||||
const repo = this._conn.getRepository(IsOperator);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _owner, _operator, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetUpgradeProposalCount ({ blockHash, blockNumber, contractAddress, value, proof }: DeepPartial<GetUpgradeProposalCount>): Promise<GetUpgradeProposalCount> {
|
||||
const repo = this._conn.getRepository(GetUpgradeProposalCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetDocumentProposalCount ({ blockHash, blockNumber, contractAddress, value, proof }: DeepPartial<GetDocumentProposalCount>): Promise<GetDocumentProposalCount> {
|
||||
const repo = this._conn.getRepository(GetDocumentProposalCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveHasVotedOnUpgradePoll ({ blockHash, blockNumber, contractAddress, _galaxy, _proposal, value, proof }: DeepPartial<HasVotedOnUpgradePoll>): Promise<HasVotedOnUpgradePoll> {
|
||||
const repo = this._conn.getRepository(HasVotedOnUpgradePoll);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _galaxy, _proposal, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveHasVotedOnDocumentPoll ({ blockHash, blockNumber, contractAddress, _galaxy, _proposal, value, proof }: DeepPartial<HasVotedOnDocumentPoll>): Promise<HasVotedOnDocumentPoll> {
|
||||
const repo = this._conn.getRepository(HasVotedOnDocumentPoll);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _galaxy, _proposal, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveFindClaim ({ blockHash, blockNumber, contractAddress, _whose, _protocol, _claim, value, proof }: DeepPartial<FindClaim>): Promise<FindClaim> {
|
||||
const repo = this._conn.getRepository(FindClaim);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _whose, _protocol, _claim, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveSupportsInterface ({ blockHash, blockNumber, contractAddress, _interfaceId, value, proof }: DeepPartial<SupportsInterface>): Promise<SupportsInterface> {
|
||||
const repo = this._conn.getRepository(SupportsInterface);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _interfaceId, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveBalanceOf ({ blockHash, blockNumber, contractAddress, _owner, value, proof }: DeepPartial<BalanceOf>): Promise<BalanceOf> {
|
||||
const repo = this._conn.getRepository(BalanceOf);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _owner, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveOwnerOf ({ blockHash, blockNumber, contractAddress, _tokenId, value, proof }: DeepPartial<OwnerOf>): Promise<OwnerOf> {
|
||||
const repo = this._conn.getRepository(OwnerOf);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _tokenId, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveExists ({ blockHash, blockNumber, contractAddress, _tokenId, value, proof }: DeepPartial<Exists>): Promise<Exists> {
|
||||
const repo = this._conn.getRepository(Exists);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _tokenId, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetApproved ({ blockHash, blockNumber, contractAddress, _tokenId, value, proof }: DeepPartial<GetApproved>): Promise<GetApproved> {
|
||||
const repo = this._conn.getRepository(GetApproved);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _tokenId, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveIsApprovedForAll ({ blockHash, blockNumber, contractAddress, _owner, _operator, value, proof }: DeepPartial<IsApprovedForAll>): Promise<IsApprovedForAll> {
|
||||
const repo = this._conn.getRepository(IsApprovedForAll);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _owner, _operator, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveTotalSupply ({ blockHash, blockNumber, contractAddress, value, proof }: DeepPartial<TotalSupply>): Promise<TotalSupply> {
|
||||
const repo = this._conn.getRepository(TotalSupply);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveTokenOfOwnerByIndex ({ blockHash, blockNumber, contractAddress, _owner, _index, value, proof }: DeepPartial<TokenOfOwnerByIndex>): Promise<TokenOfOwnerByIndex> {
|
||||
const repo = this._conn.getRepository(TokenOfOwnerByIndex);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _owner, _index, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveTokenByIndex ({ blockHash, blockNumber, contractAddress, _index, value, proof }: DeepPartial<TokenByIndex>): Promise<TokenByIndex> {
|
||||
const repo = this._conn.getRepository(TokenByIndex);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _index, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveName ({ blockHash, blockNumber, contractAddress, value, proof }: DeepPartial<Name>): Promise<Name> {
|
||||
const repo = this._conn.getRepository(Name);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
async saveSymbol ({ blockHash, blockNumber, contractAddress, value, proof }: DeepPartial<Symbol>): Promise<Symbol> {
|
||||
const repo = this._conn.getRepository(Symbol);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveTokenURI ({ blockHash, blockNumber, contractAddress, _tokenId, value, proof }: DeepPartial<TokenURI>): Promise<TokenURI> {
|
||||
const repo = this._conn.getRepository(TokenURI);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _tokenId, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveGetSpawnLimit ({ blockHash, blockNumber, contractAddress, _point, _time, value, proof }: DeepPartial<GetSpawnLimit>): Promise<GetSpawnLimit> {
|
||||
const repo = this._conn.getRepository(GetSpawnLimit);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _time, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveCanEscapeTo ({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof }: DeepPartial<CanEscapeTo>): Promise<CanEscapeTo> {
|
||||
const repo = this._conn.getRepository(CanEscapeTo);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _point, _sponsor, value, proof });
|
||||
return repo.save(entity);
|
||||
}
|
||||
|
||||
async saveWithdrawLimit ({ blockHash, blockNumber, contractAddress, _participant, _batch, value, proof }: DeepPartial<WithdrawLimit>): Promise<WithdrawLimit> {
|
||||
const repo = this._conn.getRepository(WithdrawLimit);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _participant, _batch, value, proof });
|
||||
@@ -1241,61 +343,6 @@ export class Database implements DatabaseInterface {
|
||||
}
|
||||
|
||||
_setPropColMaps (): void {
|
||||
this._propColMaps.IsActive = this._getPropertyColumnMapForEntity('IsActive');
|
||||
this._propColMaps.GetKeys = this._getPropertyColumnMapForEntity('GetKeys');
|
||||
this._propColMaps.GetKeyRevisionNumber = this._getPropertyColumnMapForEntity('GetKeyRevisionNumber');
|
||||
this._propColMaps.HasBeenLinked = this._getPropertyColumnMapForEntity('HasBeenLinked');
|
||||
this._propColMaps.IsLive = this._getPropertyColumnMapForEntity('IsLive');
|
||||
this._propColMaps.GetContinuityNumber = this._getPropertyColumnMapForEntity('GetContinuityNumber');
|
||||
this._propColMaps.GetSpawnCount = this._getPropertyColumnMapForEntity('GetSpawnCount');
|
||||
this._propColMaps.HasSponsor = this._getPropertyColumnMapForEntity('HasSponsor');
|
||||
this._propColMaps.GetSponsor = this._getPropertyColumnMapForEntity('GetSponsor');
|
||||
this._propColMaps.IsSponsor = this._getPropertyColumnMapForEntity('IsSponsor');
|
||||
this._propColMaps.GetSponsoringCount = this._getPropertyColumnMapForEntity('GetSponsoringCount');
|
||||
this._propColMaps.IsEscaping = this._getPropertyColumnMapForEntity('IsEscaping');
|
||||
this._propColMaps.GetEscapeRequest = this._getPropertyColumnMapForEntity('GetEscapeRequest');
|
||||
this._propColMaps.IsRequestingEscapeTo = this._getPropertyColumnMapForEntity('IsRequestingEscapeTo');
|
||||
this._propColMaps.GetEscapeRequestsCount = this._getPropertyColumnMapForEntity('GetEscapeRequestsCount');
|
||||
this._propColMaps.GetOwner = this._getPropertyColumnMapForEntity('GetOwner');
|
||||
this._propColMaps.IsOwner = this._getPropertyColumnMapForEntity('IsOwner');
|
||||
this._propColMaps.GetOwnedPointCount = this._getPropertyColumnMapForEntity('GetOwnedPointCount');
|
||||
this._propColMaps.GetOwnedPointAtIndex = this._getPropertyColumnMapForEntity('GetOwnedPointAtIndex');
|
||||
this._propColMaps.GetManagementProxy = this._getPropertyColumnMapForEntity('GetManagementProxy');
|
||||
this._propColMaps.IsManagementProxy = this._getPropertyColumnMapForEntity('IsManagementProxy');
|
||||
this._propColMaps.CanManage = this._getPropertyColumnMapForEntity('CanManage');
|
||||
this._propColMaps.GetManagerForCount = this._getPropertyColumnMapForEntity('GetManagerForCount');
|
||||
this._propColMaps.GetSpawnProxy = this._getPropertyColumnMapForEntity('GetSpawnProxy');
|
||||
this._propColMaps.IsSpawnProxy = this._getPropertyColumnMapForEntity('IsSpawnProxy');
|
||||
this._propColMaps.CanSpawnAs = this._getPropertyColumnMapForEntity('CanSpawnAs');
|
||||
this._propColMaps.GetSpawningForCount = this._getPropertyColumnMapForEntity('GetSpawningForCount');
|
||||
this._propColMaps.GetVotingProxy = this._getPropertyColumnMapForEntity('GetVotingProxy');
|
||||
this._propColMaps.IsVotingProxy = this._getPropertyColumnMapForEntity('IsVotingProxy');
|
||||
this._propColMaps.CanVoteAs = this._getPropertyColumnMapForEntity('CanVoteAs');
|
||||
this._propColMaps.GetVotingForCount = this._getPropertyColumnMapForEntity('GetVotingForCount');
|
||||
this._propColMaps.GetTransferProxy = this._getPropertyColumnMapForEntity('GetTransferProxy');
|
||||
this._propColMaps.IsTransferProxy = this._getPropertyColumnMapForEntity('IsTransferProxy');
|
||||
this._propColMaps.CanTransfer = this._getPropertyColumnMapForEntity('CanTransfer');
|
||||
this._propColMaps.GetTransferringForCount = this._getPropertyColumnMapForEntity('GetTransferringForCount');
|
||||
this._propColMaps.IsOperator = this._getPropertyColumnMapForEntity('IsOperator');
|
||||
this._propColMaps.GetUpgradeProposalCount = this._getPropertyColumnMapForEntity('GetUpgradeProposalCount');
|
||||
this._propColMaps.GetDocumentProposalCount = this._getPropertyColumnMapForEntity('GetDocumentProposalCount');
|
||||
this._propColMaps.HasVotedOnUpgradePoll = this._getPropertyColumnMapForEntity('HasVotedOnUpgradePoll');
|
||||
this._propColMaps.HasVotedOnDocumentPoll = this._getPropertyColumnMapForEntity('HasVotedOnDocumentPoll');
|
||||
this._propColMaps.FindClaim = this._getPropertyColumnMapForEntity('FindClaim');
|
||||
this._propColMaps.SupportsInterface = this._getPropertyColumnMapForEntity('SupportsInterface');
|
||||
this._propColMaps.BalanceOf = this._getPropertyColumnMapForEntity('BalanceOf');
|
||||
this._propColMaps.OwnerOf = this._getPropertyColumnMapForEntity('OwnerOf');
|
||||
this._propColMaps.Exists = this._getPropertyColumnMapForEntity('Exists');
|
||||
this._propColMaps.GetApproved = this._getPropertyColumnMapForEntity('GetApproved');
|
||||
this._propColMaps.IsApprovedForAll = this._getPropertyColumnMapForEntity('IsApprovedForAll');
|
||||
this._propColMaps.TotalSupply = this._getPropertyColumnMapForEntity('TotalSupply');
|
||||
this._propColMaps.TokenOfOwnerByIndex = this._getPropertyColumnMapForEntity('TokenOfOwnerByIndex');
|
||||
this._propColMaps.TokenByIndex = this._getPropertyColumnMapForEntity('TokenByIndex');
|
||||
this._propColMaps.Name = this._getPropertyColumnMapForEntity('Name');
|
||||
this._propColMaps.Symbol = this._getPropertyColumnMapForEntity('Symbol');
|
||||
this._propColMaps.TokenURI = this._getPropertyColumnMapForEntity('TokenURI');
|
||||
this._propColMaps.GetSpawnLimit = this._getPropertyColumnMapForEntity('GetSpawnLimit');
|
||||
this._propColMaps.CanEscapeTo = this._getPropertyColumnMapForEntity('CanEscapeTo');
|
||||
this._propColMaps.WithdrawLimit = this._getPropertyColumnMapForEntity('WithdrawLimit');
|
||||
this._propColMaps.VerifyBalance = this._getPropertyColumnMapForEntity('VerifyBalance');
|
||||
this._propColMaps.GetBatch = this._getPropertyColumnMapForEntity('GetBatch');
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
query balanceOf($blockHash: String!, $contractAddress: String!, $_owner: String!){
|
||||
balanceOf(blockHash: $blockHash, contractAddress: $contractAddress, _owner: $_owner){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query canEscapeTo($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_sponsor: BigInt!){
|
||||
canEscapeTo(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query canManage($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_who: String!){
|
||||
canManage(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _who: $_who){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query canSpawnAs($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_who: String!){
|
||||
canSpawnAs(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _who: $_who){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query canTransfer($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_who: String!){
|
||||
canTransfer(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _who: $_who){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query canVoteAs($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_who: String!){
|
||||
canVoteAs(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _who: $_who){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query exists($blockHash: String!, $contractAddress: String!, $_tokenId: BigInt!){
|
||||
exists(blockHash: $blockHash, contractAddress: $contractAddress, _tokenId: $_tokenId){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query findClaim($blockHash: String!, $contractAddress: String!, $_whose: BigInt!, $_protocol: String!, $_claim: String!){
|
||||
findClaim(blockHash: $blockHash, contractAddress: $contractAddress, _whose: $_whose, _protocol: $_protocol, _claim: $_claim){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getApproved($blockHash: String!, $contractAddress: String!, $_tokenId: BigInt!){
|
||||
getApproved(blockHash: $blockHash, contractAddress: $contractAddress, _tokenId: $_tokenId){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getContinuityNumber($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getContinuityNumber(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getDocumentMajorities($blockHash: String!, $contractAddress: String!){
|
||||
getDocumentMajorities(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getDocumentProposalCount($blockHash: String!, $contractAddress: String!){
|
||||
getDocumentProposalCount(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getDocumentProposals($blockHash: String!, $contractAddress: String!){
|
||||
getDocumentProposals(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getEscapeRequest($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getEscapeRequest(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getEscapeRequests($blockHash: String!, $contractAddress: String!, $_sponsor: BigInt!){
|
||||
getEscapeRequests(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getEscapeRequestsCount($blockHash: String!, $contractAddress: String!, $_sponsor: BigInt!){
|
||||
getEscapeRequestsCount(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getKeyRevisionNumber($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getKeyRevisionNumber(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
query getKeys($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value{
|
||||
value0
|
||||
value1
|
||||
value2
|
||||
value3
|
||||
}
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getManagementProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getManagementProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getManagerFor($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getManagerFor(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getManagerForCount($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getManagerForCount(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getOwnedPointAtIndex($blockHash: String!, $contractAddress: String!, $_whose: String!, $_index: BigInt!){
|
||||
getOwnedPointAtIndex(blockHash: $blockHash, contractAddress: $contractAddress, _whose: $_whose, _index: $_index){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getOwnedPointCount($blockHash: String!, $contractAddress: String!, $_whose: String!){
|
||||
getOwnedPointCount(blockHash: $blockHash, contractAddress: $contractAddress, _whose: $_whose){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getOwnedPoints($blockHash: String!, $contractAddress: String!, $_whose: String!){
|
||||
getOwnedPoints(blockHash: $blockHash, contractAddress: $contractAddress, _whose: $_whose){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getOwner($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawnCount($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getSpawnCount(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawnLimit($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_time: BigInt!){
|
||||
getSpawnLimit(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _time: $_time){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawnProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getSpawnProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawned($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getSpawned(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawningFor($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getSpawningFor(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSpawningForCount($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getSpawningForCount(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSponsor($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSponsoring($blockHash: String!, $contractAddress: String!, $_sponsor: BigInt!){
|
||||
getSponsoring(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getSponsoringCount($blockHash: String!, $contractAddress: String!, $_sponsor: BigInt!){
|
||||
getSponsoringCount(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getTransferProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getTransferProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getTransferringFor($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getTransferringFor(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getTransferringForCount($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getTransferringForCount(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getUpgradeProposalCount($blockHash: String!, $contractAddress: String!){
|
||||
getUpgradeProposalCount(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getUpgradeProposals($blockHash: String!, $contractAddress: String!){
|
||||
getUpgradeProposals(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getVotingFor($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getVotingFor(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getVotingForCount($blockHash: String!, $contractAddress: String!, $_proxy: String!){
|
||||
getVotingForCount(blockHash: $blockHash, contractAddress: $contractAddress, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query getVotingProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getVotingProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query hasBeenLinked($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
hasBeenLinked(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query hasSponsor($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
hasSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query hasVotedOnDocumentPoll($blockHash: String!, $contractAddress: String!, $_galaxy: Int!, $_proposal: String!){
|
||||
hasVotedOnDocumentPoll(blockHash: $blockHash, contractAddress: $contractAddress, _galaxy: $_galaxy, _proposal: $_proposal){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query hasVotedOnUpgradePoll($blockHash: String!, $contractAddress: String!, $_galaxy: Int!, $_proposal: String!){
|
||||
hasVotedOnUpgradePoll(blockHash: $blockHash, contractAddress: $contractAddress, _galaxy: $_galaxy, _proposal: $_proposal){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,72 +3,6 @@ import path from 'path';
|
||||
|
||||
export const events = fs.readFileSync(path.join(__dirname, 'events.gql'), 'utf8');
|
||||
export const eventsInRange = fs.readFileSync(path.join(__dirname, 'eventsInRange.gql'), 'utf8');
|
||||
export const isActive = fs.readFileSync(path.join(__dirname, 'isActive.gql'), 'utf8');
|
||||
export const getKeys = fs.readFileSync(path.join(__dirname, 'getKeys.gql'), 'utf8');
|
||||
export const getKeyRevisionNumber = fs.readFileSync(path.join(__dirname, 'getKeyRevisionNumber.gql'), 'utf8');
|
||||
export const hasBeenLinked = fs.readFileSync(path.join(__dirname, 'hasBeenLinked.gql'), 'utf8');
|
||||
export const isLive = fs.readFileSync(path.join(__dirname, 'isLive.gql'), 'utf8');
|
||||
export const getContinuityNumber = fs.readFileSync(path.join(__dirname, 'getContinuityNumber.gql'), 'utf8');
|
||||
export const getSpawnCount = fs.readFileSync(path.join(__dirname, 'getSpawnCount.gql'), 'utf8');
|
||||
export const getSpawned = fs.readFileSync(path.join(__dirname, 'getSpawned.gql'), 'utf8');
|
||||
export const hasSponsor = fs.readFileSync(path.join(__dirname, 'hasSponsor.gql'), 'utf8');
|
||||
export const getSponsor = fs.readFileSync(path.join(__dirname, 'getSponsor.gql'), 'utf8');
|
||||
export const isSponsor = fs.readFileSync(path.join(__dirname, 'isSponsor.gql'), 'utf8');
|
||||
export const getSponsoringCount = fs.readFileSync(path.join(__dirname, 'getSponsoringCount.gql'), 'utf8');
|
||||
export const getSponsoring = fs.readFileSync(path.join(__dirname, 'getSponsoring.gql'), 'utf8');
|
||||
export const isEscaping = fs.readFileSync(path.join(__dirname, 'isEscaping.gql'), 'utf8');
|
||||
export const getEscapeRequest = fs.readFileSync(path.join(__dirname, 'getEscapeRequest.gql'), 'utf8');
|
||||
export const isRequestingEscapeTo = fs.readFileSync(path.join(__dirname, 'isRequestingEscapeTo.gql'), 'utf8');
|
||||
export const getEscapeRequestsCount = fs.readFileSync(path.join(__dirname, 'getEscapeRequestsCount.gql'), 'utf8');
|
||||
export const getEscapeRequests = fs.readFileSync(path.join(__dirname, 'getEscapeRequests.gql'), 'utf8');
|
||||
export const getOwner = fs.readFileSync(path.join(__dirname, 'getOwner.gql'), 'utf8');
|
||||
export const isOwner = fs.readFileSync(path.join(__dirname, 'isOwner.gql'), 'utf8');
|
||||
export const getOwnedPointCount = fs.readFileSync(path.join(__dirname, 'getOwnedPointCount.gql'), 'utf8');
|
||||
export const getOwnedPoints = fs.readFileSync(path.join(__dirname, 'getOwnedPoints.gql'), 'utf8');
|
||||
export const getOwnedPointAtIndex = fs.readFileSync(path.join(__dirname, 'getOwnedPointAtIndex.gql'), 'utf8');
|
||||
export const getManagementProxy = fs.readFileSync(path.join(__dirname, 'getManagementProxy.gql'), 'utf8');
|
||||
export const isManagementProxy = fs.readFileSync(path.join(__dirname, 'isManagementProxy.gql'), 'utf8');
|
||||
export const canManage = fs.readFileSync(path.join(__dirname, 'canManage.gql'), 'utf8');
|
||||
export const getManagerForCount = fs.readFileSync(path.join(__dirname, 'getManagerForCount.gql'), 'utf8');
|
||||
export const getManagerFor = fs.readFileSync(path.join(__dirname, 'getManagerFor.gql'), 'utf8');
|
||||
export const getSpawnProxy = fs.readFileSync(path.join(__dirname, 'getSpawnProxy.gql'), 'utf8');
|
||||
export const isSpawnProxy = fs.readFileSync(path.join(__dirname, 'isSpawnProxy.gql'), 'utf8');
|
||||
export const canSpawnAs = fs.readFileSync(path.join(__dirname, 'canSpawnAs.gql'), 'utf8');
|
||||
export const getSpawningForCount = fs.readFileSync(path.join(__dirname, 'getSpawningForCount.gql'), 'utf8');
|
||||
export const getSpawningFor = fs.readFileSync(path.join(__dirname, 'getSpawningFor.gql'), 'utf8');
|
||||
export const getVotingProxy = fs.readFileSync(path.join(__dirname, 'getVotingProxy.gql'), 'utf8');
|
||||
export const isVotingProxy = fs.readFileSync(path.join(__dirname, 'isVotingProxy.gql'), 'utf8');
|
||||
export const canVoteAs = fs.readFileSync(path.join(__dirname, 'canVoteAs.gql'), 'utf8');
|
||||
export const getVotingForCount = fs.readFileSync(path.join(__dirname, 'getVotingForCount.gql'), 'utf8');
|
||||
export const getVotingFor = fs.readFileSync(path.join(__dirname, 'getVotingFor.gql'), 'utf8');
|
||||
export const getTransferProxy = fs.readFileSync(path.join(__dirname, 'getTransferProxy.gql'), 'utf8');
|
||||
export const isTransferProxy = fs.readFileSync(path.join(__dirname, 'isTransferProxy.gql'), 'utf8');
|
||||
export const canTransfer = fs.readFileSync(path.join(__dirname, 'canTransfer.gql'), 'utf8');
|
||||
export const getTransferringForCount = fs.readFileSync(path.join(__dirname, 'getTransferringForCount.gql'), 'utf8');
|
||||
export const getTransferringFor = fs.readFileSync(path.join(__dirname, 'getTransferringFor.gql'), 'utf8');
|
||||
export const isOperator = fs.readFileSync(path.join(__dirname, 'isOperator.gql'), 'utf8');
|
||||
export const getUpgradeProposals = fs.readFileSync(path.join(__dirname, 'getUpgradeProposals.gql'), 'utf8');
|
||||
export const getUpgradeProposalCount = fs.readFileSync(path.join(__dirname, 'getUpgradeProposalCount.gql'), 'utf8');
|
||||
export const getDocumentProposals = fs.readFileSync(path.join(__dirname, 'getDocumentProposals.gql'), 'utf8');
|
||||
export const getDocumentProposalCount = fs.readFileSync(path.join(__dirname, 'getDocumentProposalCount.gql'), 'utf8');
|
||||
export const getDocumentMajorities = fs.readFileSync(path.join(__dirname, 'getDocumentMajorities.gql'), 'utf8');
|
||||
export const hasVotedOnUpgradePoll = fs.readFileSync(path.join(__dirname, 'hasVotedOnUpgradePoll.gql'), 'utf8');
|
||||
export const hasVotedOnDocumentPoll = fs.readFileSync(path.join(__dirname, 'hasVotedOnDocumentPoll.gql'), 'utf8');
|
||||
export const findClaim = fs.readFileSync(path.join(__dirname, 'findClaim.gql'), 'utf8');
|
||||
export const supportsInterface = fs.readFileSync(path.join(__dirname, 'supportsInterface.gql'), 'utf8');
|
||||
export const balanceOf = fs.readFileSync(path.join(__dirname, 'balanceOf.gql'), 'utf8');
|
||||
export const ownerOf = fs.readFileSync(path.join(__dirname, 'ownerOf.gql'), 'utf8');
|
||||
export const exists = fs.readFileSync(path.join(__dirname, 'exists.gql'), 'utf8');
|
||||
export const getApproved = fs.readFileSync(path.join(__dirname, 'getApproved.gql'), 'utf8');
|
||||
export const isApprovedForAll = fs.readFileSync(path.join(__dirname, 'isApprovedForAll.gql'), 'utf8');
|
||||
export const totalSupply = fs.readFileSync(path.join(__dirname, 'totalSupply.gql'), 'utf8');
|
||||
export const tokenOfOwnerByIndex = fs.readFileSync(path.join(__dirname, 'tokenOfOwnerByIndex.gql'), 'utf8');
|
||||
export const tokenByIndex = fs.readFileSync(path.join(__dirname, 'tokenByIndex.gql'), 'utf8');
|
||||
export const name = fs.readFileSync(path.join(__dirname, 'name.gql'), 'utf8');
|
||||
export const symbol = fs.readFileSync(path.join(__dirname, 'symbol.gql'), 'utf8');
|
||||
export const tokenURI = fs.readFileSync(path.join(__dirname, 'tokenURI.gql'), 'utf8');
|
||||
export const getSpawnLimit = fs.readFileSync(path.join(__dirname, 'getSpawnLimit.gql'), 'utf8');
|
||||
export const canEscapeTo = fs.readFileSync(path.join(__dirname, 'canEscapeTo.gql'), 'utf8');
|
||||
export const withdrawLimit = fs.readFileSync(path.join(__dirname, 'withdrawLimit.gql'), 'utf8');
|
||||
export const verifyBalance = fs.readFileSync(path.join(__dirname, 'verifyBalance.gql'), 'utf8');
|
||||
export const getBatches = fs.readFileSync(path.join(__dirname, 'getBatches.gql'), 'utf8');
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
query isActive($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
isActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isApprovedForAll($blockHash: String!, $contractAddress: String!, $_owner: String!, $_operator: String!){
|
||||
isApprovedForAll(blockHash: $blockHash, contractAddress: $contractAddress, _owner: $_owner, _operator: $_operator){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isEscaping($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
isEscaping(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isLive($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
isLive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isManagementProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_proxy: String!){
|
||||
isManagementProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isOperator($blockHash: String!, $contractAddress: String!, $_owner: String!, $_operator: String!){
|
||||
isOperator(blockHash: $blockHash, contractAddress: $contractAddress, _owner: $_owner, _operator: $_operator){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isOwner($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_address: String!){
|
||||
isOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _address: $_address){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isRequestingEscapeTo($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_sponsor: BigInt!){
|
||||
isRequestingEscapeTo(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isSpawnProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_proxy: String!){
|
||||
isSpawnProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isSponsor($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_sponsor: BigInt!){
|
||||
isSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _sponsor: $_sponsor){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isTransferProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_proxy: String!){
|
||||
isTransferProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query isVotingProxy($blockHash: String!, $contractAddress: String!, $_point: BigInt!, $_proxy: String!){
|
||||
isVotingProxy(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point, _proxy: $_proxy){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query name($blockHash: String!, $contractAddress: String!){
|
||||
name(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query ownerOf($blockHash: String!, $contractAddress: String!, $_tokenId: BigInt!){
|
||||
ownerOf(blockHash: $blockHash, contractAddress: $contractAddress, _tokenId: $_tokenId){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query supportsInterface($blockHash: String!, $contractAddress: String!, $_interfaceId: String!){
|
||||
supportsInterface(blockHash: $blockHash, contractAddress: $contractAddress, _interfaceId: $_interfaceId){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query symbol($blockHash: String!, $contractAddress: String!){
|
||||
symbol(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query tokenByIndex($blockHash: String!, $contractAddress: String!, $_index: BigInt!){
|
||||
tokenByIndex(blockHash: $blockHash, contractAddress: $contractAddress, _index: $_index){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query tokenOfOwnerByIndex($blockHash: String!, $contractAddress: String!, $_owner: String!, $_index: BigInt!){
|
||||
tokenOfOwnerByIndex(blockHash: $blockHash, contractAddress: $contractAddress, _owner: $_owner, _index: $_index){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query tokenURI($blockHash: String!, $contractAddress: String!, $_tokenId: BigInt!){
|
||||
tokenURI(blockHash: $blockHash, contractAddress: $contractAddress, _tokenId: $_tokenId){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
query totalSupply($blockHash: String!, $contractAddress: String!){
|
||||
totalSupply(blockHash: $blockHash, contractAddress: $contractAddress){
|
||||
value
|
||||
proof{
|
||||
data
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -61,48 +61,16 @@ type OwnershipTransferredEvent {
|
||||
newOwner: String!
|
||||
}
|
||||
|
||||
type ResultBoolean {
|
||||
value: Boolean!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultGetKeysType {
|
||||
value: GetKeysType!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type GetKeysType {
|
||||
value0: String!
|
||||
value1: String!
|
||||
value2: BigInt!
|
||||
value3: BigInt!
|
||||
}
|
||||
|
||||
type ResultBigInt {
|
||||
value: BigInt!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultBigIntArray {
|
||||
value: [BigInt!]!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultString {
|
||||
value: String!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultStringArray {
|
||||
value: [String!]!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultInt {
|
||||
value: Int!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultBoolean {
|
||||
value: Boolean!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultIntArray {
|
||||
value: [Int!]!
|
||||
proof: Proof
|
||||
@@ -143,72 +111,6 @@ type ResultState {
|
||||
type Query {
|
||||
events(blockHash: String!, contractAddress: String!, name: String): [ResultEvent!]
|
||||
eventsInRange(fromBlockNumber: Int!, toBlockNumber: Int!): [ResultEvent!]
|
||||
isActive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
||||
getKeys(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultGetKeysType!
|
||||
getKeyRevisionNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
||||
hasBeenLinked(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
||||
isLive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
||||
getContinuityNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
||||
getSpawnCount(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
||||
getSpawned(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigIntArray!
|
||||
hasSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
||||
getSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
||||
isSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
|
||||
getSponsoringCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
|
||||
getSponsoring(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
|
||||
isEscaping(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
|
||||
getEscapeRequest(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
|
||||
isRequestingEscapeTo(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
|
||||
getEscapeRequestsCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
|
||||
getEscapeRequests(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
|
||||
getOwner(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
||||
isOwner(blockHash: String!, contractAddress: String!, _point: BigInt!, _address: String!): ResultBoolean!
|
||||
getOwnedPointCount(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigInt!
|
||||
getOwnedPoints(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigIntArray!
|
||||
getOwnedPointAtIndex(blockHash: String!, contractAddress: String!, _whose: String!, _index: BigInt!): ResultBigInt!
|
||||
getManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
||||
isManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
||||
canManage(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
||||
getManagerForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
||||
getManagerFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
||||
getSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
||||
isSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
||||
canSpawnAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
||||
getSpawningForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
||||
getSpawningFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
||||
getVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
||||
isVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
||||
canVoteAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
||||
getVotingForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
||||
getVotingFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
||||
getTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
||||
isTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
|
||||
canTransfer(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
|
||||
getTransferringForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
|
||||
getTransferringFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
|
||||
isOperator(blockHash: String!, contractAddress: String!, _owner: String!, _operator: String!): ResultBoolean!
|
||||
getUpgradeProposals(blockHash: String!, contractAddress: String!): ResultStringArray!
|
||||
getUpgradeProposalCount(blockHash: String!, contractAddress: String!): ResultBigInt!
|
||||
getDocumentProposals(blockHash: String!, contractAddress: String!): ResultStringArray!
|
||||
getDocumentProposalCount(blockHash: String!, contractAddress: String!): ResultBigInt!
|
||||
getDocumentMajorities(blockHash: String!, contractAddress: String!): ResultStringArray!
|
||||
hasVotedOnUpgradePoll(blockHash: String!, contractAddress: String!, _galaxy: Int!, _proposal: String!): ResultBoolean!
|
||||
hasVotedOnDocumentPoll(blockHash: String!, contractAddress: String!, _galaxy: Int!, _proposal: String!): ResultBoolean!
|
||||
findClaim(blockHash: String!, contractAddress: String!, _whose: BigInt!, _protocol: String!, _claim: String!): ResultInt!
|
||||
supportsInterface(blockHash: String!, contractAddress: String!, _interfaceId: String!): ResultBoolean!
|
||||
balanceOf(blockHash: String!, contractAddress: String!, _owner: String!): ResultBigInt!
|
||||
ownerOf(blockHash: String!, contractAddress: String!, _tokenId: BigInt!): ResultString!
|
||||
exists(blockHash: String!, contractAddress: String!, _tokenId: BigInt!): ResultBoolean!
|
||||
getApproved(blockHash: String!, contractAddress: String!, _tokenId: BigInt!): ResultString!
|
||||
isApprovedForAll(blockHash: String!, contractAddress: String!, _owner: String!, _operator: String!): ResultBoolean!
|
||||
totalSupply(blockHash: String!, contractAddress: String!): ResultBigInt!
|
||||
tokenOfOwnerByIndex(blockHash: String!, contractAddress: String!, _owner: String!, _index: BigInt!): ResultBigInt!
|
||||
tokenByIndex(blockHash: String!, contractAddress: String!, _index: BigInt!): ResultBigInt!
|
||||
name(blockHash: String!, contractAddress: String!): ResultString!
|
||||
symbol(blockHash: String!, contractAddress: String!): ResultString!
|
||||
tokenURI(blockHash: String!, contractAddress: String!, _tokenId: BigInt!): ResultString!
|
||||
getSpawnLimit(blockHash: String!, contractAddress: String!, _point: BigInt!, _time: BigInt!): ResultBigInt!
|
||||
canEscapeTo(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
|
||||
withdrawLimit(blockHash: String!, contractAddress: String!, _participant: String!, _batch: Int!): ResultInt!
|
||||
verifyBalance(blockHash: String!, contractAddress: String!, _participant: String!): ResultBoolean!
|
||||
getBatches(blockHash: String!, contractAddress: String!, _participant: String!): ResultIntArray!
|
||||
|
||||
Reference in New Issue
Block a user