File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ export * from './methods/bitcoin/sign-psbt';
2525export * from './methods/get-addresses' ;
2626export * from './methods/bitcoin/send-transfer' ;
2727export * from './methods/bitcoin/sign-message' ;
28+ export * from './methods/stacks/_clarity-values' ;
29+ export * from './methods/stacks/_stacks-helpers' ;
2830export * from './methods/stacks/stx-sign-message' ;
2931export * from './methods/stacks/stx-sign-transaction' ;
3032export * from './methods/stacks/stx-call-contract' ;
Original file line number Diff line number Diff line change 11import { z } from 'zod' ;
22
3- import { DefineRpcMethod , RpcRequest , RpcResponse } from '../../rpc/schemas' ;
3+ import {
4+ DefineRpcMethod ,
5+ RpcRequest ,
6+ createRpcResponseSchema ,
7+ defaultErrorSchema ,
8+ } from '../../rpc/schemas' ;
49import { clarityValueSchema } from './_clarity-values' ;
510import {
611 baseStacksTransactionConfigSchema ,
@@ -31,7 +36,12 @@ export type StxCallContractRequest = RpcRequest<
3136// Result
3237export const stxCallContractResponseBodySchema = stacksTransactionDetailsSchema ;
3338
34- export type StxCallContractResponse = RpcResponse < typeof stxCallContractResponseBodySchema > ;
39+ export const stxCallContractResponseSchema = createRpcResponseSchema (
40+ stxCallContractResponseBodySchema ,
41+ defaultErrorSchema
42+ ) ;
43+
44+ export type StxCallContractResponse = z . infer < typeof stxCallContractResponseSchema > ;
3545
3646export type DefineStxCallContractMethod = DefineRpcMethod <
3747 StxCallContractRequest ,
You can’t perform that action at this time.
0 commit comments