diff --git a/package.json b/package.json index 18446115..64554b90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@centrifuge/sdk", - "version": "0.40.0", + "version": "0.40.1", "description": "", "homepage": "https://github.com/centrifuge/sdk/tree/main#readme", "author": "", diff --git a/src/entities/MerkleProofManager.test.ts b/src/entities/MerkleProofManager.test.ts index 95829e83..4bd1ed0b 100644 --- a/src/entities/MerkleProofManager.test.ts +++ b/src/entities/MerkleProofManager.test.ts @@ -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, } diff --git a/src/types/poolMetadata.ts b/src/types/poolMetadata.ts index ad4c998c..57247921 100644 --- a/src/types/poolMetadata.ts +++ b/src/types/poolMetadata.ts @@ -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 = {