Skip to content

Commit

Permalink
Remove methods from imported contracts that are not inherited in Cens…
Browse files Browse the repository at this point in the history
…ures
  • Loading branch information
nikugogoi committed Apr 26, 2023
1 parent 633b7fa commit 1f45671
Show file tree
Hide file tree
Showing 50 changed files with 11 additions and 3,308 deletions.
Empty file modified packages/censures-watcher/.husky/pre-commit
100644 → 100755
Empty file.
315 changes: 0 additions & 315 deletions packages/censures-watcher/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Loading

0 comments on commit 1f45671

Please sign in to comment.