Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/entities/MerkleProofManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,10 @@ describe('MerkleProofManager', () => {
const template = {
id: 'template-1',
name: 'Default Template',
actions: [{ policyIndex: 0 }, { policyIndex: 1 }],
actions: [
{ policyIndex: 0, defaultValues: ['0x', 987654321000] },
{ policyIndex: 1, defaultValues: [987654321000, '0x'] },
],
createdAt: new Date().toISOString(),
updatedAt: undefined,
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/poolMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export type MerkleProofTemplate = {
export type MerkleProofTemplateAction = {
/** index of the policy in manager.policies[] */
policyIndex: number
/** possible inputs for the policy execution, matching input order from policy inputs */
defaultValues: (HexString | string | number)[]
}

export type MerkleProofPolicy = {
Expand Down
Loading