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:
parent
9cee144676
commit
787965737d
0
packages/censures-watcher/.husky/pre-commit
Normal file → Executable file
0
packages/censures-watcher/.husky/pre-commit
Normal file → Executable file
@ -17,321 +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 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 getGetCensuringCount (blockHash: string, contractAddress: string, _whose: number): Promise<any> {
|
||||
const { getCensuringCount } = await this._client.query(
|
||||
gql(queries.getCensuringCount),
|
||||
|
@ -20,45 +20,10 @@ 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 { 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 { GetCensuringCount } from './entity/GetCensuringCount';
|
||||
import { GetCensuredByCount } from './entity/GetCensuredByCount';
|
||||
|
||||
export const ENTITIES = [IsActive, 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, GetCensuringCount, GetCensuredByCount];
|
||||
export const ENTITIES = [GetCensuringCount, GetCensuredByCount];
|
||||
|
||||
export class Database implements DatabaseInterface {
|
||||
_config: ConnectionOptions;
|
||||
@ -91,334 +56,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 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 getGetCensuringCount ({ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: number }): Promise<GetCensuringCount | undefined> {
|
||||
return this._conn.getRepository(GetCensuringCount)
|
||||
.findOne({
|
||||
@ -437,216 +74,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 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 saveGetCensuringCount ({ blockHash, blockNumber, contractAddress, _whose, value, proof }: DeepPartial<GetCensuringCount>): Promise<GetCensuringCount> {
|
||||
const repo = this._conn.getRepository(GetCensuringCount);
|
||||
const entity = repo.create({ blockHash, blockNumber, contractAddress, _whose, value, proof });
|
||||
@ -864,41 +291,6 @@ export class Database implements DatabaseInterface {
|
||||
}
|
||||
|
||||
_setPropColMaps (): void {
|
||||
this._propColMaps.IsActive = this._getPropertyColumnMapForEntity('IsActive');
|
||||
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.GetCensuringCount = this._getPropertyColumnMapForEntity('GetCensuringCount');
|
||||
this._propColMaps.GetCensuredByCount = this._getPropertyColumnMapForEntity('GetCensuredByCount');
|
||||
}
|
||||
|
@ -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 getContinuityNumber($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getContinuityNumber(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
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,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 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 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
|
||||
}
|
||||
}
|
||||
}
|
@ -3,49 +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 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 getCensuringCount = fs.readFileSync(path.join(__dirname, 'getCensuringCount.gql'), 'utf8');
|
||||
export const getCensuring = fs.readFileSync(path.join(__dirname, 'getCensuring.gql'), 'utf8');
|
||||
export const getCensuredByCount = fs.readFileSync(path.join(__dirname, 'getCensuredByCount.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 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
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -72,780 +72,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher
|
||||
},
|
||||
|
||||
Query: {
|
||||
isActive: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isActive', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isActive').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isActive(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getKeyRevisionNumber: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getKeyRevisionNumber', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getKeyRevisionNumber').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getKeyRevisionNumber(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
hasBeenLinked: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('hasBeenLinked', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('hasBeenLinked').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.hasBeenLinked(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isLive: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isLive', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isLive').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isLive(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getContinuityNumber: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getContinuityNumber', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getContinuityNumber').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getContinuityNumber(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSpawnCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawnCount', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawnCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawnCount(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSpawned: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawned', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawned').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawned(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
hasSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('hasSponsor', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('hasSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.hasSponsor(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsor', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsor(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isSponsor', blockHash, contractAddress, _point, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isSponsor(blockHash, contractAddress, _point, _sponsor);
|
||||
},
|
||||
|
||||
getSponsoringCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsoringCount', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsoringCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsoringCount(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getSponsoring: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsoring', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsoring').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsoring(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
isEscaping: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isEscaping', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isEscaping').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isEscaping(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getEscapeRequest: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequest', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequest').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequest(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isRequestingEscapeTo: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isRequestingEscapeTo', blockHash, contractAddress, _point, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isRequestingEscapeTo').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isRequestingEscapeTo(blockHash, contractAddress, _point, _sponsor);
|
||||
},
|
||||
|
||||
getEscapeRequestsCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequestsCount', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequestsCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequestsCount(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getEscapeRequests: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequests', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequests').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequests(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getOwner: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwner', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwner').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwner(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isOwner: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _address }: { blockHash: string, contractAddress: string, _point: bigint, _address: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isOwner', blockHash, contractAddress, _point, _address);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isOwner').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isOwner(blockHash, contractAddress, _point, _address);
|
||||
},
|
||||
|
||||
getOwnedPointCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPointCount', blockHash, contractAddress, _whose);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPointCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPointCount(blockHash, contractAddress, _whose);
|
||||
},
|
||||
|
||||
getOwnedPoints: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPoints', blockHash, contractAddress, _whose);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPoints').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPoints(blockHash, contractAddress, _whose);
|
||||
},
|
||||
|
||||
getOwnedPointAtIndex: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose, _index }: { blockHash: string, contractAddress: string, _whose: string, _index: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPointAtIndex', blockHash, contractAddress, _whose, _index);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPointAtIndex').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPointAtIndex(blockHash, contractAddress, _whose, _index);
|
||||
},
|
||||
|
||||
getManagementProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagementProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagementProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagementProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isManagementProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isManagementProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isManagementProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isManagementProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canManage: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canManage', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canManage').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canManage(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getManagerForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagerForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagerForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagerForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getManagerFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagerFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagerFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagerFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getSpawnProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawnProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawnProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawnProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isSpawnProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isSpawnProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isSpawnProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isSpawnProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canSpawnAs: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canSpawnAs', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canSpawnAs').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canSpawnAs(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getSpawningForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawningForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawningForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawningForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getSpawningFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawningFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawningFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawningFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getVotingProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isVotingProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isVotingProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isVotingProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isVotingProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canVoteAs: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canVoteAs', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canVoteAs').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canVoteAs(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getVotingForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getVotingFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getTransferProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isTransferProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isTransferProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isTransferProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isTransferProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canTransfer: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canTransfer', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canTransfer').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canTransfer(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getTransferringForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferringForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferringForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferringForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getTransferringFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferringFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferringFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferringFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
isOperator: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _owner, _operator }: { blockHash: string, contractAddress: string, _owner: string, _operator: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isOperator', blockHash, contractAddress, _owner, _operator);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isOperator').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isOperator(blockHash, contractAddress, _owner, _operator);
|
||||
},
|
||||
|
||||
getCensuringCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: number },
|
||||
|
@ -51,11 +51,6 @@ type ForgivenEvent {
|
||||
who: BigInt!
|
||||
}
|
||||
|
||||
type ResultBoolean {
|
||||
value: Boolean!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultBigInt {
|
||||
value: BigInt!
|
||||
proof: Proof
|
||||
@ -66,11 +61,6 @@ type ResultBigIntArray {
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultString {
|
||||
value: String!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultIntArray {
|
||||
value: [Int!]!
|
||||
proof: Proof
|
||||
@ -94,49 +84,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!
|
||||
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!
|
||||
getCensuringCount(blockHash: String!, contractAddress: String!, _whose: Int!): ResultBigInt!
|
||||
getCensuring(blockHash: String!, contractAddress: String!, _whose: Int!): ResultBigIntArray!
|
||||
getCensuredByCount(blockHash: String!, contractAddress: String!, _who: Int!): ResultBigInt!
|
||||
|
0
packages/claims-watcher/.husky/pre-commit
Normal file → Executable file
0
packages/claims-watcher/.husky/pre-commit
Normal file → Executable file
@ -17,321 +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 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 getFindClaim (blockHash: string, contractAddress: string, _whose: bigint, _protocol: string, _claim: string): Promise<any> {
|
||||
const { findClaim } = await this._client.query(
|
||||
gql(queries.findClaim),
|
||||
|
@ -20,44 +20,9 @@ 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 { 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 { FindClaim } from './entity/FindClaim';
|
||||
|
||||
export const ENTITIES = [IsActive, 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, FindClaim];
|
||||
export const ENTITIES = [FindClaim];
|
||||
|
||||
export class Database implements DatabaseInterface {
|
||||
_config: ConnectionOptions;
|
||||
@ -90,334 +55,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 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 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({
|
||||
@ -429,216 +66,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 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 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 });
|
||||
@ -850,41 +277,6 @@ export class Database implements DatabaseInterface {
|
||||
}
|
||||
|
||||
_setPropColMaps (): void {
|
||||
this._propColMaps.IsActive = this._getPropertyColumnMapForEntity('IsActive');
|
||||
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.FindClaim = this._getPropertyColumnMapForEntity('FindClaim');
|
||||
}
|
||||
}
|
||||
|
@ -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 getContinuityNumber($blockHash: String!, $contractAddress: String!, $_point: BigInt!){
|
||||
getContinuityNumber(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){
|
||||
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,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 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 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
|
||||
}
|
||||
}
|
||||
}
|
@ -3,49 +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 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 findClaim = fs.readFileSync(path.join(__dirname, 'findClaim.gql'), 'utf8');
|
||||
export const getSyncStatus = fs.readFileSync(path.join(__dirname, 'getSyncStatus.gql'), 'utf8');
|
||||
export const getStateByCID = fs.readFileSync(path.join(__dirname, 'getStateByCID.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 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
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -72,780 +72,6 @@ export const createResolvers = async (indexerArg: IndexerInterface, eventWatcher
|
||||
},
|
||||
|
||||
Query: {
|
||||
isActive: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isActive', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isActive').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isActive(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getKeyRevisionNumber: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getKeyRevisionNumber', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getKeyRevisionNumber').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getKeyRevisionNumber(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
hasBeenLinked: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('hasBeenLinked', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('hasBeenLinked').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.hasBeenLinked(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isLive: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isLive', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isLive').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isLive(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getContinuityNumber: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getContinuityNumber', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getContinuityNumber').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getContinuityNumber(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSpawnCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawnCount', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawnCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawnCount(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSpawned: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawned', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawned').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawned(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
hasSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('hasSponsor', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('hasSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.hasSponsor(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsor', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsor(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isSponsor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isSponsor', blockHash, contractAddress, _point, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isSponsor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isSponsor(blockHash, contractAddress, _point, _sponsor);
|
||||
},
|
||||
|
||||
getSponsoringCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsoringCount', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsoringCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsoringCount(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getSponsoring: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSponsoring', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSponsoring').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSponsoring(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
isEscaping: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isEscaping', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isEscaping').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isEscaping(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
getEscapeRequest: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequest', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequest').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequest(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isRequestingEscapeTo: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _sponsor }: { blockHash: string, contractAddress: string, _point: bigint, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isRequestingEscapeTo', blockHash, contractAddress, _point, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isRequestingEscapeTo').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isRequestingEscapeTo(blockHash, contractAddress, _point, _sponsor);
|
||||
},
|
||||
|
||||
getEscapeRequestsCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequestsCount', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequestsCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequestsCount(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getEscapeRequests: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _sponsor }: { blockHash: string, contractAddress: string, _sponsor: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getEscapeRequests', blockHash, contractAddress, _sponsor);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getEscapeRequests').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getEscapeRequests(blockHash, contractAddress, _sponsor);
|
||||
},
|
||||
|
||||
getOwner: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwner', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwner').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwner(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isOwner: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _address }: { blockHash: string, contractAddress: string, _point: bigint, _address: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isOwner', blockHash, contractAddress, _point, _address);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isOwner').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isOwner(blockHash, contractAddress, _point, _address);
|
||||
},
|
||||
|
||||
getOwnedPointCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPointCount', blockHash, contractAddress, _whose);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPointCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPointCount(blockHash, contractAddress, _whose);
|
||||
},
|
||||
|
||||
getOwnedPoints: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose }: { blockHash: string, contractAddress: string, _whose: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPoints', blockHash, contractAddress, _whose);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPoints').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPoints(blockHash, contractAddress, _whose);
|
||||
},
|
||||
|
||||
getOwnedPointAtIndex: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose, _index }: { blockHash: string, contractAddress: string, _whose: string, _index: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getOwnedPointAtIndex', blockHash, contractAddress, _whose, _index);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getOwnedPointAtIndex').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getOwnedPointAtIndex(blockHash, contractAddress, _whose, _index);
|
||||
},
|
||||
|
||||
getManagementProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagementProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagementProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagementProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isManagementProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isManagementProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isManagementProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isManagementProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canManage: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canManage', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canManage').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canManage(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getManagerForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagerForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagerForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagerForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getManagerFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getManagerFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getManagerFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getManagerFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getSpawnProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawnProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawnProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawnProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isSpawnProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isSpawnProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isSpawnProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isSpawnProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canSpawnAs: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canSpawnAs', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canSpawnAs').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canSpawnAs(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getSpawningForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawningForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawningForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawningForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getSpawningFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getSpawningFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getSpawningFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getSpawningFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getVotingProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isVotingProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isVotingProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isVotingProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isVotingProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canVoteAs: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canVoteAs', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canVoteAs').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canVoteAs(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getVotingForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getVotingFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getVotingFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getVotingFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getVotingFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getTransferProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point }: { blockHash: string, contractAddress: string, _point: bigint },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferProxy', blockHash, contractAddress, _point);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferProxy(blockHash, contractAddress, _point);
|
||||
},
|
||||
|
||||
isTransferProxy: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _proxy }: { blockHash: string, contractAddress: string, _point: bigint, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isTransferProxy', blockHash, contractAddress, _point, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isTransferProxy').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isTransferProxy(blockHash, contractAddress, _point, _proxy);
|
||||
},
|
||||
|
||||
canTransfer: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _point, _who }: { blockHash: string, contractAddress: string, _point: bigint, _who: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('canTransfer', blockHash, contractAddress, _point, _who);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('canTransfer').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.canTransfer(blockHash, contractAddress, _point, _who);
|
||||
},
|
||||
|
||||
getTransferringForCount: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferringForCount', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferringForCount').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferringForCount(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
getTransferringFor: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _proxy }: { blockHash: string, contractAddress: string, _proxy: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('getTransferringFor', blockHash, contractAddress, _proxy);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('getTransferringFor').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.getTransferringFor(blockHash, contractAddress, _proxy);
|
||||
},
|
||||
|
||||
isOperator: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _owner, _operator }: { blockHash: string, contractAddress: string, _owner: string, _operator: string },
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
__: any,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info: GraphQLResolveInfo
|
||||
): Promise<ValueResult> => {
|
||||
log('isOperator', blockHash, contractAddress, _owner, _operator);
|
||||
gqlTotalQueryCount.inc(1);
|
||||
gqlQueryCount.labels('isOperator').inc(1);
|
||||
|
||||
// Set cache-control hints
|
||||
// setGQLCacheHints(info, {}, gqlCacheConfig);
|
||||
|
||||
return indexer.isOperator(blockHash, contractAddress, _owner, _operator);
|
||||
},
|
||||
|
||||
findClaim: (
|
||||
_: any,
|
||||
{ blockHash, contractAddress, _whose, _protocol, _claim }: { blockHash: string, contractAddress: string, _whose: bigint, _protocol: string, _claim: string },
|
||||
|
@ -54,26 +54,6 @@ type ClaimRemovedEvent {
|
||||
_claim: String!
|
||||
}
|
||||
|
||||
type ResultBoolean {
|
||||
value: Boolean!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultBigInt {
|
||||
value: BigInt!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultBigIntArray {
|
||||
value: [BigInt!]!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultString {
|
||||
value: String!
|
||||
proof: Proof
|
||||
}
|
||||
|
||||
type ResultInt {
|
||||
value: Int!
|
||||
proof: Proof
|
||||
@ -97,49 +77,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!
|
||||
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!
|
||||
findClaim(blockHash: String!, contractAddress: String!, _whose: BigInt!, _protocol: String!, _claim: String!): ResultInt!
|
||||
getSyncStatus: SyncStatus
|
||||
getStateByCID(cid: String!): ResultState
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user