Skip to content

Commit

Permalink
fix(core): ensure CallDataBuilder exported
Browse files Browse the repository at this point in the history
  • Loading branch information
extg3 committed Jun 29, 2024
1 parent 11c94ea commit 5cd2acd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/sandbox/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
InstantTrigger,
MultiSenderAction,
Erc20TokenABI as ERC20_ABI,
CallDataBuilder,
} from '@ditto-network/core';
import { EthersSigner, EthersContractFactory } from '@ditto-network/ethers';

Expand Down
2 changes: 2 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ Creating a custom action allows you to extend the functionality of your workflow
The following example demonstrates how to create a custom action that sends tokens to a recipient.

```typescript
import { CallDataBuilder } from '@ditto-network/core';

// 1. Define the configuration for the SendTokens action
// This type specifies the parameters required to send tokens
type SendTokensConfig = {
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/lib/workflow/builders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export const noopBuilderData = {
callData: new Set(),
value: BigInt(0),
} satisfies CallDataBuilderReturnData;

export * from './types';
1 change: 1 addition & 0 deletions packages/core/src/lib/workflow/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './factory';
export * from './actions';
export * from './builders';
export * from './triggers';
export type { Execution as WorkflowExecution } from './execution';

0 comments on commit 5cd2acd

Please sign in to comment.