PolicyEngineIdl: {
accounts: {
discriminator: number[];
name: string;
}[];
address: string;
errors: {
code: number;
msg: string;
name: string;
}[];
instructions: ({
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable: boolean;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: {
name: string;
type: {
defined: {
name: string;
};
};
}[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: ({
name: string;
type: string;
} | {
name: string;
type: {
option: string;
};
})[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
value: (...)[];
}[];
};
signer?: undefined;
writable?: undefined;
})[];
args: never[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable: boolean;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: {
name: string;
type: string;
}[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda: {
program: {
kind: string;
value: number[];
};
seeds: ({
kind: ...;
path: ...;
value?: ...;
} | {
kind: ...;
path?: ...;
value: ...;
})[];
};
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
program?: undefined;
seeds: ({
kind: ...;
path?: ...;
value: ...;
} | {
kind: ...;
path: ...;
value?: ...;
})[];
};
writable?: undefined;
} | {
address: string;
name: string;
pda?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
writable: boolean;
})[];
args: {
name: string;
type: string;
}[];
discriminator: number[];
docs: string[];
name: string;
})[];
metadata: {
description: string;
name: string;
spec: string;
version: string;
};
types: ({
name: string;
repr: {
kind: string;
};
type: {
fields?: undefined;
kind: string;
variants: {
name: string;
}[];
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: {
array: ((...) | (...))[];
defined?: undefined;
};
} | {
name: string;
type: {
array?: undefined;
defined: {
name: string;
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: string;
} | {
name: string;
type: {
defined: {
name: string;
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
docs?: undefined;
name: string;
type: string;
} | {
docs: string[];
name: string;
type: string;
} | {
docs: string[];
name: string;
type: {
vec: {
defined: {
name: ...;
};
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields?: undefined;
kind: string;
variants: ({
fields?: undefined;
name: string;
} | {
fields: {
name: string;
type: string;
}[];
name: string;
})[];
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: string;
} | {
name: string;
type: {
vec: {
defined: {
name: ...;
};
};
};
})[];
kind: string;
variants?: undefined;
};
})[];
}
Type declaration
accounts: {
discriminator: number[];
name: string;
}[]
address: string
errors: {
code: number;
msg: string;
name: string;
}[]
instructions: ({
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable: boolean;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: {
name: string;
type: {
defined: {
name: string;
};
};
}[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: ({
name: string;
type: string;
} | {
name: string;
type: {
option: string;
};
})[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
value: (...)[];
}[];
};
signer?: undefined;
writable?: undefined;
})[];
args: never[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable: boolean;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer: boolean;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
signer?: undefined;
writable: boolean;
} | {
address?: undefined;
name: string;
pda: {
seeds: {
kind: string;
path: string;
}[];
};
signer?: undefined;
writable: boolean;
} | {
address: string;
name: string;
pda?: undefined;
signer?: undefined;
writable?: undefined;
})[];
args: {
name: string;
type: string;
}[];
discriminator: number[];
docs: string[];
name: string;
} | {
accounts: ({
address?: undefined;
name: string;
pda: {
program: {
kind: string;
value: number[];
};
seeds: ({
kind: ...;
path: ...;
value?: ...;
} | {
kind: ...;
path?: ...;
value: ...;
})[];
};
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda: {
program?: undefined;
seeds: ({
kind: ...;
path?: ...;
value: ...;
} | {
kind: ...;
path: ...;
value?: ...;
})[];
};
writable?: undefined;
} | {
address: string;
name: string;
pda?: undefined;
writable?: undefined;
} | {
address?: undefined;
name: string;
pda?: undefined;
writable: boolean;
})[];
args: {
name: string;
type: string;
}[];
discriminator: number[];
docs: string[];
name: string;
})[]
metadata: {
description: string;
name: string;
spec: string;
version: string;
}
description: string
name: string
spec: string
version: string
types: ({
name: string;
repr: {
kind: string;
};
type: {
fields?: undefined;
kind: string;
variants: {
name: string;
}[];
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: {
array: ((...) | (...))[];
defined?: undefined;
};
} | {
name: string;
type: {
array?: undefined;
defined: {
name: string;
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: string;
} | {
name: string;
type: {
defined: {
name: string;
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
docs?: undefined;
name: string;
type: string;
} | {
docs: string[];
name: string;
type: string;
} | {
docs: string[];
name: string;
type: {
vec: {
defined: {
name: ...;
};
};
};
})[];
kind: string;
variants?: undefined;
};
} | {
name: string;
repr?: undefined;
type: {
fields?: undefined;
kind: string;
variants: ({
fields?: undefined;
name: string;
} | {
fields: {
name: string;
type: string;
}[];
name: string;
})[];
};
} | {
name: string;
repr?: undefined;
type: {
fields: ({
name: string;
type: string;
} | {
name: string;
type: {
vec: {
defined: {
name: ...;
};
};
};
})[];
kind: string;
variants?: undefined;
};
})[]