Properties
Private
contractWrapper
contractWrapper: ContractWrapper<TContract>
featureName
featureName: "ContractMetadata" = FEATURE_METADATA.name
Private
schema
schema: TSchema
set
set: { prepare: ((...args) => Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>); (...args): Promise<TResult>; } = ... Type declaration
- (...args): Promise<TResult>
Parameters
Rest
...args: [metadata: input<TSchema["input"]>]
Returns Promise<TResult>
prepare: ((...args) => Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>)
- (...args): Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>
Parameters
Rest
...args: [metadata: input<TSchema["input"]>]
Returns Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>
Private
storage
storage: ThirdwebStorage<IpfsUploadBatchOptions>
update
update: { prepare: ((...args) => Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>); (...args): Promise<TResult>; } = ... Type declaration
- (...args): Promise<TResult>
Parameters
Rest
...args: [metadata: Partial<input<TSchema["input"]>>]
Returns Promise<TResult>
prepare: ((...args) => Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>)
- (...args): Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>
Parameters
Rest
...args: [metadata: Partial<input<TSchema["input"]>>]
Returns Promise<Transaction<If<Equals<output<TSchema["output"]>, never>, Omit<TransactionResultWithMetadata<unknown>, "data">, TransactionResultWithMetadata<output<TSchema["output"]>>>>>
Handles metadata for a Contract
Remarks
Read and update metadata for this contract
Example