File tree 4 files changed +8
-12
lines changed
4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://jsr.io/schema/config-file.v1.json" ,
3
3
"name" : " @union/client" ,
4
- "version" : " 0.0.26 " ,
4
+ "version" : " 0.0.27 " ,
5
5
"license" : " MIT" ,
6
6
"exports" : {
7
7
"." : " ./src/mod.ts"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @unionlabs/client" ,
3
- "version" : " 0.0.26 " ,
3
+ "version" : " 0.0.27 " ,
4
4
"homepage" : " https://union.build" ,
5
5
"description" : " Union Labs cross-chain transfers client" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -81,14 +81,14 @@ export async function getHubbleChainDetails({
81
81
} )
82
82
}
83
83
84
- const forward = ucsConfiguration . forward . find (
84
+ const forward = ucsConfiguration . forwards . find (
85
85
item => item . destination_chain . chain_id === destinationChainId
86
86
)
87
87
88
88
if ( ! forward ) return err ( new Error ( "Forward configuration not found" ) )
89
89
return ok ( {
90
90
transferType,
91
- port : forward . port ,
91
+ port : forward . port_id ,
92
92
destinationChannel : forward . channel_id ,
93
93
sourceChannel : ucsConfiguration . channel_id ,
94
94
relayContractAddress : ucsConfiguration . contract_address ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export const offchainQuery = {
43
43
> => {
44
44
return await hubbleRestFetch <
45
45
OffchainQueryBaseResponse < Chain < typeof includeEndpoints , typeof includeContracts > >
46
- > ( "/chains" , {
46
+ > ( "/v1/ chains" , {
47
47
query : {
48
48
include_rpcs : includeEndpoints ,
49
49
include_contracts : includeContracts ,
@@ -78,7 +78,7 @@ export const offchainQuery = {
78
78
> => {
79
79
return await hubbleRestFetch <
80
80
OffchainQueryBaseResponse < Chain < typeof includeEndpoints , typeof includeContracts > >
81
- > ( `/chains/${ chainId } ` , {
81
+ > ( `/v1/ chains/${ chainId } ` , {
82
82
query : {
83
83
include_assets : includeAssets ,
84
84
include_rpcs : includeEndpoints ,
@@ -107,7 +107,7 @@ interface Asset {
107
107
}
108
108
109
109
interface Forward {
110
- port : string
110
+ port_id : string
111
111
channel_id : string
112
112
connection_id : string
113
113
contract_address : string
@@ -119,28 +119,24 @@ interface Forward {
119
119
export interface Ucs1Configuration {
120
120
channel_id : string
121
121
connection_id : string
122
- source_chain_id : number
123
122
contract_address : string
124
123
source_chain : {
125
- id : number
126
124
testnet : boolean
127
125
enabled : boolean
128
126
chain_id : string
129
127
addr_prefix : string
130
128
display_name : string
131
129
logo_uri : string | null
132
130
}
133
- destination_chain_id : number
134
131
destination_chain : {
135
- id : number
136
132
testnet : boolean
137
133
enabled : boolean
138
134
chain_id : ChainId
139
135
addr_prefix : string
140
136
display_name : string
141
137
logo_uri : string | null
142
138
}
143
- forward : Array < Forward >
139
+ forwards : Array < Forward >
144
140
}
145
141
146
142
export interface Chain <
You can’t perform that action at this time.
0 commit comments