File tree Expand file tree Collapse file tree 2 files changed +2
-30
lines changed
packages/query/src/stacks Expand file tree Collapse file tree 2 files changed +2
-30
lines changed Original file line number Diff line number Diff line change 1
- import { ContractInterfaceResponse } from '@stacks/stacks-blockchain-api-types' ;
2
1
import type { AddressTokenOfferingLocked } from '@stacks/stacks-blockchain-api-types/generated' ;
3
2
4
3
export type SelectedKeys =
@@ -56,13 +55,6 @@ export interface AddressBalanceResponse {
56
55
token_offering_locked ?: AddressTokenOfferingLocked ;
57
56
}
58
57
59
- export type ContractInterfaceResponseWithFunctions = Omit <
60
- ContractInterfaceResponse ,
61
- 'functions'
62
- > & {
63
- functions : ContractInterfaceFunction [ ] ;
64
- } ;
65
-
66
58
export interface FeeEstimation {
67
59
fee : number ;
68
60
fee_rate : number ;
@@ -85,23 +77,3 @@ export interface NonFungibleTokenHoldingListResult {
85
77
repr : string ;
86
78
} ;
87
79
}
88
-
89
- // These types copied from `@stacks/rpc-client` package that is no longer
90
- // maintained. We define them here only to remove the package.
91
- /** @deprecated */
92
- interface BufferArg {
93
- buffer : {
94
- length : number ;
95
- } ;
96
- }
97
- /** @deprecated */
98
- export interface ContractInterfaceFunctionArg {
99
- name : string ;
100
- type : string | BufferArg ;
101
- }
102
- /** @deprecated */
103
- export interface ContractInterfaceFunction {
104
- name : string ;
105
- access : 'public' | 'private' | 'read_only' ;
106
- args : ContractInterfaceFunctionArg [ ] ;
107
- }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import type {
12
12
ReadOnlyFunctionSuccessResponse ,
13
13
Transaction ,
14
14
} from '@stacks/stacks-blockchain-api-types' ;
15
+ import { ClarityAbi } from '@stacks/transactions' ;
15
16
import axios from 'axios' ;
16
17
17
18
import { DEFAULT_LIST_LIMIT } from '@leather.io/constants' ;
@@ -21,7 +22,6 @@ import { Paginated } from '../../types/api-types';
21
22
import { getHiroApiRateLimiter } from '../rate-limiter/hiro-rate-limiter' ;
22
23
import type {
23
24
AddressBalanceResponse ,
24
- ContractInterfaceResponseWithFunctions ,
25
25
NonFungibleTokenHoldingListResult ,
26
26
StacksTxFeeEstimation ,
27
27
} from './hiro-api-types' ;
@@ -245,7 +245,7 @@ export function stacksClient(basePath: string) {
245
245
) {
246
246
const resp = await rateLimiter . add (
247
247
( ) =>
248
- axios . get < ContractInterfaceResponseWithFunctions > (
248
+ axios . get < ClarityAbi > (
249
249
`${ basePath } /v2/contracts/interface/${ contractAddress } /${ contractName } ` ,
250
250
{ signal }
251
251
) ,
You can’t perform that action at this time.
0 commit comments