Skip to content

Commit

Permalink
naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aboelenein committed Jul 24, 2024
1 parent 80d8b67 commit 543b43d
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions src/request/types/runesMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,27 @@ export type GetRunesBalance = MethodParamsAndResult<
v.InferOutput<typeof getRunesBalanceResultSchema>
>;

export const RuneTransferRecipientsSchema = v.array(
v.object({
runeName: v.string(),
amount: v.string(),
address: v.string(),
})
);
export const TransferRunesMethodName = 'runes_transfer';
export const TransferRunesParamsSchema = v.object({
recipients: RuneTransferRecipientsSchema,
export const transferRunesMethodName = 'runes_transfer';
export const transferRunesParamsSchema = v.object({
recipients: v.array(
v.object({
runeName: v.string(),
amount: v.string(),
address: v.string(),
})
),
});

export const transferRunesSchema = v.object({
...rpcRequestMessageSchema.entries,
...v.object({
method: v.literal(transferRunesMethodName),
params: transferRunesParamsSchema,
id: v.string(),
}).entries,
});
export type TransferRunesParams = v.InferOutput<typeof TransferRunesParamsSchema>;

export type TransferRunesParams = v.InferOutput<typeof transferRunesParamsSchema>;
export const TransferRunesResultSchema = v.object({
txid: v.string(),
});
Expand Down

0 comments on commit 543b43d

Please sign in to comment.