298 lines
10 KiB
TypeScript
298 lines
10 KiB
TypeScript
export declare const governanceEventsSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly anyOf: readonly [{
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly event: {
|
|
readonly type: "string";
|
|
};
|
|
readonly id: {
|
|
readonly type: "number";
|
|
};
|
|
readonly proposer: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly target: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly startTime: {
|
|
readonly type: "number";
|
|
};
|
|
readonly endTime: {
|
|
readonly type: "number";
|
|
};
|
|
readonly description: {
|
|
readonly type: "string";
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "event", "id", "proposer", "target", "startTime", "endTime", "description"];
|
|
readonly additionalProperties: false;
|
|
}, {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly event: {
|
|
readonly type: "string";
|
|
};
|
|
readonly proposalId: {
|
|
readonly type: "number";
|
|
};
|
|
readonly voter: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly support: {
|
|
readonly type: "boolean";
|
|
};
|
|
readonly votes: {
|
|
readonly type: "string";
|
|
};
|
|
readonly from: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly input: {
|
|
readonly type: "string";
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "event", "proposalId", "voter", "support", "votes", "from", "input"];
|
|
readonly additionalProperties: false;
|
|
}, {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly event: {
|
|
readonly type: "string";
|
|
};
|
|
readonly account: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly delegateTo: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "account", "delegateTo"];
|
|
readonly additionalProperties: false;
|
|
}, {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly event: {
|
|
readonly type: "string";
|
|
};
|
|
readonly account: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly delegateFrom: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "account", "delegateFrom"];
|
|
readonly additionalProperties: false;
|
|
}];
|
|
};
|
|
};
|
|
export declare const registeredEventsSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly ensName: {
|
|
readonly type: "string";
|
|
};
|
|
readonly relayerAddress: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "ensName", "relayerAddress"];
|
|
readonly additionalProperties: false;
|
|
};
|
|
};
|
|
export declare const depositsEventsSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly commitment: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
readonly leafIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly timestamp: {
|
|
readonly type: "number";
|
|
};
|
|
readonly from: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "commitment", "leafIndex", "timestamp", "from"];
|
|
readonly additionalProperties: false;
|
|
};
|
|
};
|
|
export declare const withdrawalsEventsSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly nullifierHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
readonly to: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly fee: {
|
|
readonly type: "string";
|
|
readonly BN: true;
|
|
};
|
|
readonly timestamp: {
|
|
readonly type: "number";
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "nullifierHash", "to", "fee", "timestamp"];
|
|
readonly additionalProperties: false;
|
|
};
|
|
};
|
|
export declare const echoEventsSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly address: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{40}$";
|
|
readonly isAddress: true;
|
|
};
|
|
readonly encryptedAccount: {
|
|
readonly type: "string";
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "address", "encryptedAccount"];
|
|
readonly additionalProperties: false;
|
|
};
|
|
};
|
|
export declare const encryptedNotesSchema: {
|
|
readonly type: "array";
|
|
readonly items: {
|
|
readonly type: "object";
|
|
readonly properties: {
|
|
readonly encryptedNote: {
|
|
readonly type: "string";
|
|
};
|
|
readonly blockNumber: {
|
|
readonly type: "number";
|
|
};
|
|
readonly logIndex: {
|
|
readonly type: "number";
|
|
};
|
|
readonly transactionHash: {
|
|
readonly type: "string";
|
|
readonly pattern: "^0x[a-fA-F0-9]{64}$";
|
|
};
|
|
};
|
|
readonly required: readonly [...string[], "encryptedNote"];
|
|
readonly additionalProperties: false;
|
|
};
|
|
};
|
|
export declare function getEventsSchemaValidator(type: string): import("ajv").ValidateFunction<unknown>;
|