Skip to content

Commit 95a472f

Browse files
committed
chore: nix-fmt applied
Signed-off-by: Kaan Caglan <[email protected]>
1 parent 21b720a commit 95a472f

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

app2/src/lib/transfer/normal/steps/SubmitStep.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export const submit = Effect.gen(function*() {
223223
ctaCopy = "Switching Network..."
224224
yield* Effect.sleep("1.5 seconds")
225225
226-
const publicClient = Sui.PublicClient.Live({ url: url })
226+
const publicClient = Sui.PublicClient.Live({ url: url })
227227
const walletClient = Sui.WalletClient.Live({ url: url, signer: signer, rpc: url })
228228
229229
// 5) Execute ZKGM request

app2/src/lib/transfer/shared/data/transfer-data.svelte.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import {
2020
SUI_ADDR,
2121
SUI_NATIVE_COIN,
2222
SUI_NATIVE_COIN_WITHOUT_0x,
23-
SUI_U_COIN,
2423
SUI_SOLVER_ON_COSMOS_METADATA,
2524
SUI_SOLVER_ON_SUI_METADATA,
25+
SUI_U_COIN,
2626
U_BANK,
2727
U_ERC20,
2828
U_SOLVER_ON_ETH_METADATA,
@@ -137,11 +137,11 @@ export class TransferData {
137137
]).pipe(
138138
Option.flatMap(
139139
([baseToken, sourceChain, destinationChain, quoteTokens]) => {
140-
console.log("isSolve: ", this.isSolve);
141-
console.log("baseToken: ", this.baseToken);
142-
console.log("quoteTokens: ", this.quoteTokens);
143-
console.log("destinationChain: ", this.destinationChain);
144-
console.log("sourceChain: ", this.baseToken);
140+
console.log("isSolve: ", this.isSolve)
141+
console.log("baseToken: ", this.baseToken)
142+
console.log("quoteTokens: ", this.quoteTokens)
143+
console.log("destinationChain: ", this.destinationChain)
144+
console.log("sourceChain: ", this.baseToken)
145145
if (this.isSolve) {
146146
return Match.value([
147147
Brand.unbranded(baseToken.denom).toLowerCase(),
@@ -162,11 +162,11 @@ export class TransferData {
162162
),
163163
Match.when(
164164
[toHex(SUI_U_COIN.address), "cosmos", Str.startsWith("union.")],
165-
() => U_BANK
165+
() => U_BANK,
166166
),
167167
Match.when(
168168
[toHex(SUI_ADDR.address), "sui", Str.startsWith("sui.")],
169-
() => SUI_NATIVE_COIN_WITHOUT_0x
169+
() => SUI_NATIVE_COIN_WITHOUT_0x,
170170
),
171171
Match.when(
172172
[U_ERC20.address.toLowerCase(), "evm", Match.any],
@@ -300,7 +300,7 @@ export class TransferData {
300300
["solve", toHex(SUI_NATIVE_COIN.address), "cosmos", Str.startsWith("union.")],
301301
() => Option.some(SUI_SOLVER_ON_COSMOS_METADATA),
302302
),
303-
Match.when(
303+
Match.when(
304304
["solve", toHex(SUI_ADDR.address), "sui", Str.startsWith("sui.")],
305305
() => Option.some(SUI_SOLVER_ON_SUI_METADATA),
306306
),

app2/src/lib/wallet/sui/config.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class SuiStore {
231231
}
232232

233233
this._account = account
234-
234+
235235
this._signer = makeWalletStandardSigner(wallet, account, this._rpcUrl)
236236

237237
this.address = account.address

ts-sdk-sui/src/Sui.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,12 @@ export const getCoinsWithBalance = (coinType: string, min: bigint) =>
387387
let total = 0n
388388

389389
while (true) {
390-
const page = await client.getCoins({ owner: resolvedOwner, coinType: coinType, cursor, limit: 50 })
390+
const page = await client.getCoins({
391+
owner: resolvedOwner,
392+
coinType: coinType,
393+
cursor,
394+
limit: 50,
395+
})
391396
for (const c of page.data) {
392397
acc.push({ coinObjectId: c.coinObjectId, balance: c.balance })
393398
total += BigInt(c.balance)

ts-sdk-sui/src/internal/zkgmClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const fromWallet = (
233233
if ((tx as any).setSender && typeof wallet.signer?.toSuiAddress === "function") {
234234
tx.setSender(wallet.signer.toSuiAddress())
235235
}
236-
236+
237237
// Our wrapper may already execute
238238
const signed = await wallet.signer.signTransactionBlock({ transactionBlock: tx })
239239

ts-sdk/src/Constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ export const SUI_ADDR = Ucs05.CosmosDisplay.make({
278278
address: "union1fufatgkyd23qmqlzt4avwj36kfhvjuur20pqjf8xewnx2mnhsses6dspmf",
279279
})
280280

281-
282281
/**
283282
* @category constants
284283
* @since 2.0.0
@@ -334,7 +333,7 @@ export const SUI_SOLVER_ON_COSMOS_METADATA =
334333
* @category constants
335334
* @since 2.0.0
336335
*/
337-
export const SUI_SOLVER_ON_SUI_METADATA =
336+
export const SUI_SOLVER_ON_SUI_METADATA =
338337
"0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001775637330332d7a6b676d2d657363726f772d7661756c74000000000000000000" as const
339338

340339
/**

0 commit comments

Comments
 (0)