solana-idl-foundation / solana-idl-spec

Specifying a Solana IDL Standard, inspired from the Anchor IDL Standard
Apache License 2.0
20 stars 2 forks source link

[Spec] Idl Metadata #10

Open ngundotra opened 1 year ago

ngundotra commented 1 year ago

I'd like to propose the following type definition for the metadata field of the IDL:

/**
 * Metadata for IDL origination and program identification
 */
export type IdlMetadata = {
  origin?: string;
  deployments?: IdlMetadataDeployments[];
};

/**
 * Information related to where the relevant program is
 */
export type IdlMetadataDeployments = {
  chainId: string;
  address: string;
  slot?: number;
};

Metadata should tell me where to find the program, and at which slot does this IDL begin accurately describing the program.

Looking for feedback, suggestions & additions

callensm commented 1 year ago

i think this is good. this is potentially where the security_txt data from neodyme could be useful as well...or at the very least some form of contact information for the authority.