@@ -88,44 +88,51 @@ const fundRemote = async (
88
88
const filename = fileURLToPath ( import . meta. url ) ;
89
89
const dirname = path . dirname ( filename ) ;
90
90
91
- const setupXcsContracts = async ( t ) => {
92
- console . log ( " Setting XXC Contracts ..." ) ;
91
+ const setupXcsContracts = async t => {
92
+ console . log ( ' Setting XXC Contracts ...' ) ;
93
93
try {
94
94
const scriptPath = path . resolve ( dirname , '../../scripts/setup-xcs.sh' ) ;
95
95
const { stdout } = await execa ( scriptPath ) ;
96
- console . log ( " setup-xcs script output:" , stdout ) ;
96
+ console . log ( ' setup-xcs script output:' , stdout ) ;
97
97
} catch ( error ) {
98
98
t . fail ( `setup-xcs script failed with error: ${ error } ` ) ;
99
99
}
100
- }
100
+ } ;
101
101
102
- const createOsmosisPool = async ( t ) => {
103
- console . log ( " Creating Osmosis Pool ..." ) ;
102
+ const createOsmosisPool = async t => {
103
+ console . log ( ' Creating Osmosis Pool ...' ) ;
104
104
try {
105
- const scriptPath = path . resolve ( dirname , '../../scripts/create-osmosis-pool.sh' ) ;
105
+ const scriptPath = path . resolve (
106
+ dirname ,
107
+ '../../scripts/create-osmosis-pool.sh' ,
108
+ ) ;
106
109
const { stdout } = await execa ( scriptPath ) ;
107
- console . log ( " create-osmosis-pool script output:" , stdout ) ;
110
+ console . log ( ' create-osmosis-pool script output:' , stdout ) ;
108
111
} catch ( error ) {
109
112
t . fail ( `create-osmosis-pool failed with error: ${ error } ` ) ;
110
113
}
111
- }
114
+ } ;
112
115
113
- const setupXcsState = async ( t ) => {
114
- console . log ( " Setting XXC State ..." ) ;
116
+ const setupXcsState = async t => {
117
+ console . log ( ' Setting XXC State ...' ) ;
115
118
try {
116
- const { stdout } = await execa ( 'make' , [ 'tx-chain-channel-links' ] , { cwd : dirname } ) ;
117
- console . log ( "tx-chain-channel-links target output:" , stdout ) ;
119
+ const { stdout } = await execa ( 'make' , [ 'tx-chain-channel-links' ] , {
120
+ cwd : dirname ,
121
+ } ) ;
122
+ console . log ( 'tx-chain-channel-links target output:' , stdout ) ;
118
123
} catch ( error ) {
119
124
t . fail ( `tx-chain-channel-links failed with error: ${ error } ` ) ;
120
125
}
121
126
122
127
try {
123
- const { stdout } = await execa ( 'make' , [ 'tx-bec32-prefixes' ] , { cwd : dirname } ) ;
124
- console . log ( "tx-bec32-prefixes target output:" , stdout ) ;
128
+ const { stdout } = await execa ( 'make' , [ 'tx-bec32-prefixes' ] , {
129
+ cwd : dirname ,
130
+ } ) ;
131
+ console . log ( 'tx-bec32-prefixes target output:' , stdout ) ;
125
132
} catch ( error ) {
126
133
t . fail ( `tx-bec32-prefixes failed with error: ${ error } ` ) ;
127
134
}
128
- }
135
+ } ;
129
136
130
137
test . before ( async t => {
131
138
const { setupTestKeys, ...common } = await commonSetup ( t ) ;
@@ -135,9 +142,9 @@ test.before(async t => {
135
142
console . log ( 'WALLETS' , wallets ) ;
136
143
t . context = { ...common , wallets } ;
137
144
await startContract ( contractName , contractBuilder , commonBuilderOpts ) ;
138
- await setupXcsContracts ( t )
139
- await createOsmosisPool ( t )
140
- await setupXcsState ( t )
145
+ await setupXcsContracts ( t ) ;
146
+ await createOsmosisPool ( t ) ;
147
+ await setupXcsState ( t ) ;
141
148
} ) ;
142
149
143
150
test . serial ( 'BLD for OSMO, receiver on Agoric' , async t => {
@@ -288,9 +295,9 @@ test.serial('address hook - BLD for OSMO, receiver on Agoric', async t => {
288
295
const { balances : agoricReceiverBalances } = await retryUntilCondition (
289
296
( ) => queryClient . queryBalances ( wallets . agoricReceiver ) ,
290
297
( { balances } ) => {
291
- const balancesBeforeAmount = BigInt ( balancesBefore [ 0 ] ?. amount || 0 )
292
- const currentBalanceAmount = BigInt ( balances [ 0 ] ?. amount || 0 )
293
- return currentBalanceAmount > balancesBeforeAmount
298
+ const balancesBeforeAmount = BigInt ( balancesBefore [ 0 ] ?. amount || 0 ) ;
299
+ const currentBalanceAmount = BigInt ( balances [ 0 ] ?. amount || 0 ) ;
300
+ return currentBalanceAmount > balancesBeforeAmount ;
294
301
} ,
295
302
'Deposit reflected in localOrchAccount balance' ,
296
303
) ;
0 commit comments