File tree 2 files changed +14
-2
lines changed
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';
25
25
export * from './methods/get-addresses' ;
26
26
export * from './methods/bitcoin/send-transfer' ;
27
27
export * from './methods/bitcoin/sign-message' ;
28
+ export * from './methods/stacks/_clarity-values' ;
29
+ export * from './methods/stacks/_stacks-helpers' ;
28
30
export * from './methods/stacks/stx-sign-message' ;
29
31
export * from './methods/stacks/stx-sign-transaction' ;
30
32
export * from './methods/stacks/stx-call-contract' ;
Original file line number Diff line number Diff line change 1
1
import { z } from 'zod' ;
2
2
3
- import { DefineRpcMethod , RpcRequest , RpcResponse } from '../../rpc/schemas' ;
3
+ import {
4
+ DefineRpcMethod ,
5
+ RpcRequest ,
6
+ createRpcResponseSchema ,
7
+ defaultErrorSchema ,
8
+ } from '../../rpc/schemas' ;
4
9
import { clarityValueSchema } from './_clarity-values' ;
5
10
import {
6
11
baseStacksTransactionConfigSchema ,
@@ -31,7 +36,12 @@ export type StxCallContractRequest = RpcRequest<
31
36
// Result
32
37
export const stxCallContractResponseBodySchema = stacksTransactionDetailsSchema ;
33
38
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 > ;
35
45
36
46
export type DefineStxCallContractMethod = DefineRpcMethod <
37
47
StxCallContractRequest ,
You can’t perform that action at this time.
0 commit comments