Skip to content

Commit ea705d5

Browse files
committed
chore: yarn lint on fixes
1 parent 0b0999d commit ea705d5

File tree

5 files changed

+28
-37
lines changed

5 files changed

+28
-37
lines changed

contract/src/orca.flows.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,13 @@ harden(makeAccount);
5252
*/
5353
export const makeCreateAndFund = async (
5454
orch,
55-
{
56-
localTransfer,
57-
setValue,
58-
},
55+
{ localTransfer, setValue },
5956
seat,
6057
{ chainName, denom },
6158
) => {
62-
63-
trace(`invoked makeCreateAndFund with chain ${chainName}, and denom ${denom}`)
59+
trace(
60+
`invoked makeCreateAndFund with chain ${chainName}, and denom ${denom}`,
61+
);
6462
const { give } = seat.getProposal();
6563
const [[_kw, amt]] = Object.entries(give);
6664
trace('orch', orch);
@@ -101,9 +99,9 @@ export const makeCreateAndFund = async (
10199

102100
await localTransfer(seat, localAccount, give);
103101
trace('after transfer');
104-
102+
105103
// const localChainBalance = await localAccount.getBalance("BLD"); //'ubld'
106-
// trace("localChainBalance", localChainBalance);
104+
// trace("localChainBalance", localChainBalance);
107105

108106
await localAccount.transfer(
109107
{
@@ -114,8 +112,8 @@ export const makeCreateAndFund = async (
114112
);
115113
seat.exit();
116114
const remoteChainBalance = await remoteAccount.getBalance('uosmo');
117-
console.log("remoteChainBalance", remoteChainBalance);
118-
115+
console.log('remoteChainBalance', remoteChainBalance);
116+
119117
return remoteAccount.asContinuingOffer();
120118
};
121119
harden(makeCreateAndFund);

contract/test/orca-contract.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,14 @@ const makeTestContext = async t => {
188188
encoding: 'bech32',
189189
}),
190190
getBalance: () => `1000${state.denom}`,
191-
getLocalAddress: () => `${state.name}LocalAccountAddress`,
192-
getRemoteAddress: () => `${state.name}RemoteAccountAddress`,
191+
getLocalAddress: () => `${state.name}LocalAccountAddress`,
192+
getRemoteAddress: () => `${state.name}RemoteAccountAddress`,
193193
}),
194194
getChainInfo: () =>
195195
Far('ChainInfo', {
196196
getChainId: () => state.chainId,
197197
getDenom: () => state.denom,
198198
getExpectedAddressPrefix: () => state.expectedAddressPrefix,
199-
200199
}),
201200
});
202201
}

contract/test/orca-multichain.test.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const makeAccountScenario = test.macro({
4949
} = t.context;
5050

5151
const agoricAddr = wallets[chainName];
52-
console.log("agoricAddr:", agoricAddr)
52+
console.log('agoricAddr:', agoricAddr);
5353
const wdUser1 = await provisionSmartWallet(agoricAddr, {
5454
BLD: 100n,
5555
IST: 100n,
@@ -114,12 +114,15 @@ const makeAccountScenario = test.macro({
114114
});
115115

116116
const makeCreateAndFundScenario = test.macro({
117-
title: (_, chainName, denom) => `Create and fund account on ${chainName} with denom: ${denom}`,
117+
title: (_, chainName, denom) =>
118+
`Create and fund account on ${chainName} with denom: ${denom}`,
118119
exec: async (t, chainName, denom) => {
119120
const config = chainConfig[chainName];
120121
if (!config) return t.fail(`Unknown chain: ${chainName}`);
121122

122-
console.log(`testing makeCreateAndFundScenario for chain ${chainName}, and denom ${denom}`);
123+
console.log(
124+
`testing makeCreateAndFundScenario for chain ${chainName}, and denom ${denom}`,
125+
);
123126
const {
124127
wallets,
125128
provisionSmartWallet,
@@ -128,7 +131,7 @@ const makeCreateAndFundScenario = test.macro({
128131
} = t.context;
129132

130133
const agoricAddr = wallets[chainName];
131-
console.log("agoricAddr:", agoricAddr)
134+
console.log('agoricAddr:', agoricAddr);
132135
const wdUser1 = await provisionSmartWallet(agoricAddr, {
133136
BLD: 100n,
134137
IST: 100n,
@@ -153,7 +156,7 @@ const makeCreateAndFundScenario = test.macro({
153156
);
154157
const brand = Object.fromEntries(brands).BLD;
155158

156-
console.log("brand::", brand)
159+
console.log('brand::', brand);
157160

158161
const amount = AmountMath.make(brand, 10n);
159162

@@ -162,7 +165,7 @@ const makeCreateAndFundScenario = test.macro({
162165
invitationSpec: {
163166
source: 'agoricContract',
164167
instancePath: [contractName],
165-
callPipe: [['makeCreateAndFundInvitation']],
168+
callPipe: [['makeCreateAndFundInvitation']],
166169
},
167170
offerArgs: { chainName, denom },
168171
proposal: {
@@ -171,7 +174,7 @@ const makeCreateAndFundScenario = test.macro({
171174
exit: { onDemand: null },
172175
},
173176
});
174-
177+
175178
const currentWalletRecord = await retryUntilCondition(
176179
() => vstorageClient.queryData(`published.wallet.${agoricAddr}.current`),
177180
({ offerToPublicSubscriberPaths }) =>
@@ -212,10 +215,9 @@ const makeCreateAndFundScenario = test.macro({
212215
},
213216
});
214217

215-
// test.serial(makeAccountScenario, 'agoric');
216-
// test.serial(makeAccountScenario, 'cosmoshub');
217-
// test.serial(makeAccountScenario, 'osmosis');
218+
test.serial(makeAccountScenario, 'agoric');
219+
test.serial(makeAccountScenario, 'cosmoshub');
220+
test.serial(makeAccountScenario, 'osmosis');
218221

219-
// test.serial(makeCreateAndFundScenario, 'agoric', 'ubld');
220222
// use IBC/E7827844CB818EE9C4DB2C159F1543FF62B26213B44CE8029D5CEFE52F0EE596
221223
test.serial(makeCreateAndFundScenario, 'osmosis', 'ubld');

contract/tsconfig.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"target": "esnext",
44
"module": "esnext",
55
"moduleResolution": "bundler",
6-
"lib": [
7-
"ESNext",
8-
"DOM"
9-
],
6+
"lib": ["ESNext", "DOM"],
107
"checkJs": false,
118
"strict": true,
129
"noImplicitAny": false,
@@ -18,13 +15,8 @@
1815
"outDir": "./dist",
1916
"downlevelIteration": true,
2017
"strictNullChecks": true,
21-
"noImplicitThis": true,
18+
"noImplicitThis": true
2219
},
23-
"include": [
24-
"tools",
25-
"test"
26-
],
27-
"exclude": [
28-
"node_modules"
29-
]
20+
"include": ["tools", "test"],
21+
"exclude": ["node_modules"]
3022
}

ui/src/components/Orchestration/Orchestration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Orchestration = () => {
118118
addNotification!,
119119
selectedChain,
120120
'makeCreateAndFundInvitation',
121-
{ chainName: selectedChain, denom: "ubld" },
121+
{ chainName: selectedChain, denom: 'ubld' },
122122
setLoadingCreateAndFund,
123123
handleToggle,
124124
setStatusText,

0 commit comments

Comments
 (0)