Skip to content

Commit 6522461

Browse files
Merge pull request #81 from ProvableHQ/feat/dynamic-imports
[Feature] Add imports property to transaction type
2 parents 16e5898 + fa21e65 commit 6522461

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

.changeset/fruity-poems-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@provablehq/aleo-types': patch
3+
---
4+
5+
Added the ability to specify the names of programs that needs to be imported during dynamic dispatch calls.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@provablehq/wasm": "^0.8.8"
3030
},
3131
"devDependencies": {
32-
"@changesets/cli": "^2.27.1",
32+
"@changesets/cli": "^2.28.1",
3333
"@typescript-eslint/eslint-plugin": "^6.16.0",
3434
"@typescript-eslint/parser": "^6.16.0",
3535
"concurrently": "^8.2.2",

packages/aleo-types/src/transaction.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export interface TransactionOptions {
7171
* Whether the fee is private
7272
*/
7373
privateFee?: boolean;
74+
75+
/**
76+
* List of program names that should be imported when calling a dynamic dispatch function.
77+
*/
78+
imports?: string[];
7479
}
7580

7681
/**

pnpm-lock.yaml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)