Skip to content

Commit

Permalink
add token transfer sm params
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbl committed Apr 12, 2024
1 parent bacd941 commit 041e9d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk-actions-spec/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './smart-messages/tensor-transactions-spec';
export * from './smart-messages/token-transfer-spec';
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { SmartMessage, SmartMessageParams } from '@dialectlabs/sdk';

export interface TokenTransferSmartMessage extends SmartMessage {
transactionServiceId: 'token-transfer';
transactionParams: TokenTransferSmartMessageParams;
}

export interface TokenTransferSmartMessageParams extends SmartMessageParams {
payerWalletAddress: string;
payeeWalletAddress: string;
tokenMintAddress?: string;
amount: string;
}

0 comments on commit 041e9d3

Please sign in to comment.