// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. import { ethereum, JSONValue, TypedMap, Entity, Bytes, Address, BigInt } from "@graphprotocol/graph-ts"; export class Approval extends ethereum.Event { get params(): Approval__Params { return new Approval__Params(this); } } export class Approval__Params { _event: Approval; constructor(event: Approval) { this._event = event; } get owner(): Address { return this._event.parameters[0].value.toAddress(); } get approved(): Address { return this._event.parameters[1].value.toAddress(); } get tokenId(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class ApprovalForAll extends ethereum.Event { get params(): ApprovalForAll__Params { return new ApprovalForAll__Params(this); } } export class ApprovalForAll__Params { _event: ApprovalForAll; constructor(event: ApprovalForAll) { this._event = event; } get owner(): Address { return this._event.parameters[0].value.toAddress(); } get operator(): Address { return this._event.parameters[1].value.toAddress(); } get approved(): boolean { return this._event.parameters[2].value.toBoolean(); } } export class Initialized extends ethereum.Event { get params(): Initialized__Params { return new Initialized__Params(this); } } export class Initialized__Params { _event: Initialized; constructor(event: Initialized) { this._event = event; } get version(): i32 { return this._event.parameters[0].value.toI32(); } } export class OwnershipTransferred extends ethereum.Event { get params(): OwnershipTransferred__Params { return new OwnershipTransferred__Params(this); } } export class OwnershipTransferred__Params { _event: OwnershipTransferred; constructor(event: OwnershipTransferred) { this._event = event; } get previousOwner(): Address { return this._event.parameters[0].value.toAddress(); } get newOwner(): Address { return this._event.parameters[1].value.toAddress(); } } export class Transfer extends ethereum.Event { get params(): Transfer__Params { return new Transfer__Params(this); } } export class Transfer__Params { _event: Transfer; constructor(event: Transfer) { this._event = event; } get from(): Address { return this._event.parameters[0].value.toAddress(); } get to(): Address { return this._event.parameters[1].value.toAddress(); } get tokenId(): BigInt { return this._event.parameters[2].value.toBigInt(); } } export class VersionPush extends ethereum.Event { get params(): VersionPush__Params { return new VersionPush__Params(this); } } export class VersionPush__Params { _event: VersionPush; constructor(event: VersionPush) { this._event = event; } get _from(): Address { return this._event.parameters[0].value.toAddress(); } get _uuid(): BigInt { return this._event.parameters[1].value.toBigInt(); } get _cid(): Bytes { return this._event.parameters[2].value.toBytes(); } } export class ResearchObject extends ethereum.SmartContract { static bind(address: Address): ResearchObject { return new ResearchObject("ResearchObject", address); } _dpidRegistry(): Address { let result = super.call("_dpidRegistry", "_dpidRegistry():(address)", []); return result[0].toAddress(); } try__dpidRegistry(): ethereum.CallResult
{ let result = super.tryCall( "_dpidRegistry", "_dpidRegistry():(address)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } _metadata(param0: BigInt): Bytes { let result = super.call("_metadata", "_metadata(uint256):(bytes)", [ ethereum.Value.fromUnsignedBigInt(param0) ]); return result[0].toBytes(); } try__metadata(param0: BigInt): ethereum.CallResult { let result = super.tryCall("_metadata", "_metadata(uint256):(bytes)", [ ethereum.Value.fromUnsignedBigInt(param0) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBytes()); } balanceOf(owner: Address): BigInt { let result = super.call("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(owner) ]); return result[0].toBigInt(); } try_balanceOf(owner: Address): ethereum.CallResult { let result = super.tryCall("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(owner) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); } exists(tokenId: BigInt): boolean { let result = super.call("exists", "exists(uint256):(bool)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); return result[0].toBoolean(); } try_exists(tokenId: BigInt): ethereum.CallResult { let result = super.tryCall("exists", "exists(uint256):(bool)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } getApproved(tokenId: BigInt): Address { let result = super.call("getApproved", "getApproved(uint256):(address)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); return result[0].toAddress(); } try_getApproved(tokenId: BigInt): ethereum.CallResult
{ let result = super.tryCall( "getApproved", "getApproved(uint256):(address)", [ethereum.Value.fromUnsignedBigInt(tokenId)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } isApprovedForAll(owner: Address, operator: Address): boolean { let result = super.call( "isApprovedForAll", "isApprovedForAll(address,address):(bool)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(operator)] ); return result[0].toBoolean(); } try_isApprovedForAll( owner: Address, operator: Address ): ethereum.CallResult { let result = super.tryCall( "isApprovedForAll", "isApprovedForAll(address,address):(bool)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(operator)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } name(): string { let result = super.call("name", "name():(string)", []); return result[0].toString(); } try_name(): ethereum.CallResult { let result = super.tryCall("name", "name():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } owner(): Address { let result = super.call("owner", "owner():(address)", []); return result[0].toAddress(); } try_owner(): ethereum.CallResult
{ let result = super.tryCall("owner", "owner():(address)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } ownerOf(tokenId: BigInt): Address { let result = super.call("ownerOf", "ownerOf(uint256):(address)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); return result[0].toAddress(); } try_ownerOf(tokenId: BigInt): ethereum.CallResult
{ let result = super.tryCall("ownerOf", "ownerOf(uint256):(address)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); } supportsInterface(interfaceId: Bytes): boolean { let result = super.call( "supportsInterface", "supportsInterface(bytes4):(bool)", [ethereum.Value.fromFixedBytes(interfaceId)] ); return result[0].toBoolean(); } try_supportsInterface(interfaceId: Bytes): ethereum.CallResult { let result = super.tryCall( "supportsInterface", "supportsInterface(bytes4):(bool)", [ethereum.Value.fromFixedBytes(interfaceId)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBoolean()); } symbol(): string { let result = super.call("symbol", "symbol():(string)", []); return result[0].toString(); } try_symbol(): ethereum.CallResult { let result = super.tryCall("symbol", "symbol():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } tokenURI(tokenId: BigInt): string { let result = super.call("tokenURI", "tokenURI(uint256):(string)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); return result[0].toString(); } try_tokenURI(tokenId: BigInt): ethereum.CallResult { let result = super.tryCall("tokenURI", "tokenURI(uint256):(string)", [ ethereum.Value.fromUnsignedBigInt(tokenId) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); } } export class ConstructorCall extends ethereum.Call { get inputs(): ConstructorCall__Inputs { return new ConstructorCall__Inputs(this); } get outputs(): ConstructorCall__Outputs { return new ConstructorCall__Outputs(this); } } export class ConstructorCall__Inputs { _call: ConstructorCall; constructor(call: ConstructorCall) { this._call = call; } } export class ConstructorCall__Outputs { _call: ConstructorCall; constructor(call: ConstructorCall) { this._call = call; } } export class __VersionedERC721_initCall extends ethereum.Call { get inputs(): __VersionedERC721_initCall__Inputs { return new __VersionedERC721_initCall__Inputs(this); } get outputs(): __VersionedERC721_initCall__Outputs { return new __VersionedERC721_initCall__Outputs(this); } } export class __VersionedERC721_initCall__Inputs { _call: __VersionedERC721_initCall; constructor(call: __VersionedERC721_initCall) { this._call = call; } get name(): string { return this._call.inputValues[0].value.toString(); } get symbol(): string { return this._call.inputValues[1].value.toString(); } } export class __VersionedERC721_initCall__Outputs { _call: __VersionedERC721_initCall; constructor(call: __VersionedERC721_initCall) { this._call = call; } } export class ApproveCall extends ethereum.Call { get inputs(): ApproveCall__Inputs { return new ApproveCall__Inputs(this); } get outputs(): ApproveCall__Outputs { return new ApproveCall__Outputs(this); } } export class ApproveCall__Inputs { _call: ApproveCall; constructor(call: ApproveCall) { this._call = call; } get to(): Address { return this._call.inputValues[0].value.toAddress(); } get tokenId(): BigInt { return this._call.inputValues[1].value.toBigInt(); } } export class ApproveCall__Outputs { _call: ApproveCall; constructor(call: ApproveCall) { this._call = call; } } export class InitializeCall extends ethereum.Call { get inputs(): InitializeCall__Inputs { return new InitializeCall__Inputs(this); } get outputs(): InitializeCall__Outputs { return new InitializeCall__Outputs(this); } } export class InitializeCall__Inputs { _call: InitializeCall; constructor(call: InitializeCall) { this._call = call; } get dpidRegistry(): Address { return this._call.inputValues[0].value.toAddress(); } } export class InitializeCall__Outputs { _call: InitializeCall; constructor(call: InitializeCall) { this._call = call; } } export class MintCall extends ethereum.Call { get inputs(): MintCall__Inputs { return new MintCall__Inputs(this); } get outputs(): MintCall__Outputs { return new MintCall__Outputs(this); } } export class MintCall__Inputs { _call: MintCall; constructor(call: MintCall) { this._call = call; } get uuid(): BigInt { return this._call.inputValues[0].value.toBigInt(); } get cid(): Bytes { return this._call.inputValues[1].value.toBytes(); } } export class MintCall__Outputs { _call: MintCall; constructor(call: MintCall) { this._call = call; } } export class MintWithDpidCall extends ethereum.Call { get inputs(): MintWithDpidCall__Inputs { return new MintWithDpidCall__Inputs(this); } get outputs(): MintWithDpidCall__Outputs { return new MintWithDpidCall__Outputs(this); } } export class MintWithDpidCall__Inputs { _call: MintWithDpidCall; constructor(call: MintWithDpidCall) { this._call = call; } get uuid(): BigInt { return this._call.inputValues[0].value.toBigInt(); } get cid(): Bytes { return this._call.inputValues[1].value.toBytes(); } get prefix(): Bytes { return this._call.inputValues[2].value.toBytes(); } get expectedDpid(): BigInt { return this._call.inputValues[3].value.toBigInt(); } } export class MintWithDpidCall__Outputs { _call: MintWithDpidCall; constructor(call: MintWithDpidCall) { this._call = call; } } export class RenounceOwnershipCall extends ethereum.Call { get inputs(): RenounceOwnershipCall__Inputs { return new RenounceOwnershipCall__Inputs(this); } get outputs(): RenounceOwnershipCall__Outputs { return new RenounceOwnershipCall__Outputs(this); } } export class RenounceOwnershipCall__Inputs { _call: RenounceOwnershipCall; constructor(call: RenounceOwnershipCall) { this._call = call; } } export class RenounceOwnershipCall__Outputs { _call: RenounceOwnershipCall; constructor(call: RenounceOwnershipCall) { this._call = call; } } export class SafeTransferFromCall extends ethereum.Call { get inputs(): SafeTransferFromCall__Inputs { return new SafeTransferFromCall__Inputs(this); } get outputs(): SafeTransferFromCall__Outputs { return new SafeTransferFromCall__Outputs(this); } } export class SafeTransferFromCall__Inputs { _call: SafeTransferFromCall; constructor(call: SafeTransferFromCall) { this._call = call; } get from(): Address { return this._call.inputValues[0].value.toAddress(); } get to(): Address { return this._call.inputValues[1].value.toAddress(); } get tokenId(): BigInt { return this._call.inputValues[2].value.toBigInt(); } } export class SafeTransferFromCall__Outputs { _call: SafeTransferFromCall; constructor(call: SafeTransferFromCall) { this._call = call; } } export class SafeTransferFrom1Call extends ethereum.Call { get inputs(): SafeTransferFrom1Call__Inputs { return new SafeTransferFrom1Call__Inputs(this); } get outputs(): SafeTransferFrom1Call__Outputs { return new SafeTransferFrom1Call__Outputs(this); } } export class SafeTransferFrom1Call__Inputs { _call: SafeTransferFrom1Call; constructor(call: SafeTransferFrom1Call) { this._call = call; } get from(): Address { return this._call.inputValues[0].value.toAddress(); } get to(): Address { return this._call.inputValues[1].value.toAddress(); } get tokenId(): BigInt { return this._call.inputValues[2].value.toBigInt(); } get data(): Bytes { return this._call.inputValues[3].value.toBytes(); } } export class SafeTransferFrom1Call__Outputs { _call: SafeTransferFrom1Call; constructor(call: SafeTransferFrom1Call) { this._call = call; } } export class SetApprovalForAllCall extends ethereum.Call { get inputs(): SetApprovalForAllCall__Inputs { return new SetApprovalForAllCall__Inputs(this); } get outputs(): SetApprovalForAllCall__Outputs { return new SetApprovalForAllCall__Outputs(this); } } export class SetApprovalForAllCall__Inputs { _call: SetApprovalForAllCall; constructor(call: SetApprovalForAllCall) { this._call = call; } get operator(): Address { return this._call.inputValues[0].value.toAddress(); } get approved(): boolean { return this._call.inputValues[1].value.toBoolean(); } } export class SetApprovalForAllCall__Outputs { _call: SetApprovalForAllCall; constructor(call: SetApprovalForAllCall) { this._call = call; } } export class SetURICall extends ethereum.Call { get inputs(): SetURICall__Inputs { return new SetURICall__Inputs(this); } get outputs(): SetURICall__Outputs { return new SetURICall__Outputs(this); } } export class SetURICall__Inputs { _call: SetURICall; constructor(call: SetURICall) { this._call = call; } get uri(): string { return this._call.inputValues[0].value.toString(); } } export class SetURICall__Outputs { _call: SetURICall; constructor(call: SetURICall) { this._call = call; } } export class TransferFromCall extends ethereum.Call { get inputs(): TransferFromCall__Inputs { return new TransferFromCall__Inputs(this); } get outputs(): TransferFromCall__Outputs { return new TransferFromCall__Outputs(this); } } export class TransferFromCall__Inputs { _call: TransferFromCall; constructor(call: TransferFromCall) { this._call = call; } get from(): Address { return this._call.inputValues[0].value.toAddress(); } get to(): Address { return this._call.inputValues[1].value.toAddress(); } get tokenId(): BigInt { return this._call.inputValues[2].value.toBigInt(); } } export class TransferFromCall__Outputs { _call: TransferFromCall; constructor(call: TransferFromCall) { this._call = call; } } export class TransferOwnershipCall extends ethereum.Call { get inputs(): TransferOwnershipCall__Inputs { return new TransferOwnershipCall__Inputs(this); } get outputs(): TransferOwnershipCall__Outputs { return new TransferOwnershipCall__Outputs(this); } } export class TransferOwnershipCall__Inputs { _call: TransferOwnershipCall; constructor(call: TransferOwnershipCall) { this._call = call; } get newOwner(): Address { return this._call.inputValues[0].value.toAddress(); } } export class TransferOwnershipCall__Outputs { _call: TransferOwnershipCall; constructor(call: TransferOwnershipCall) { this._call = call; } } export class UpdateMetadataCall extends ethereum.Call { get inputs(): UpdateMetadataCall__Inputs { return new UpdateMetadataCall__Inputs(this); } get outputs(): UpdateMetadataCall__Outputs { return new UpdateMetadataCall__Outputs(this); } } export class UpdateMetadataCall__Inputs { _call: UpdateMetadataCall; constructor(call: UpdateMetadataCall) { this._call = call; } get tokenId(): BigInt { return this._call.inputValues[0].value.toBigInt(); } get cid(): Bytes { return this._call.inputValues[1].value.toBytes(); } } export class UpdateMetadataCall__Outputs { _call: UpdateMetadataCall; constructor(call: UpdateMetadataCall) { this._call = call; } }