Skip to content

Commit

Permalink
update sui, run lint (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley authored Feb 22, 2024
1 parent 1e3ac6f commit 6391e45
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 86 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "5.10.3",
"version": "5.10.4",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
111 changes: 36 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions packages/stream/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@streamflow/stream",
"version": "5.10.3",
"version": "5.10.4",
"description": "JavaScript SDK to interact with Streamflow protocol.",
"homepage": "https://github.com/streamflow-finance/js-sdk/",
"main": "dist/index.js",
Expand All @@ -25,17 +25,16 @@
"jest": "29.3.1",
"prettier": "2.8.1",
"ts-jest": "29.0.3",
"typescript": "4.6.4"
"typescript": "^5.3.3"
},
"dependencies": {
"@manahippo/aptos-wallet-adapter": "1.0.6",
"@mysten/sui.js": "^0.40.0",
"@mysten/wallet-standard": "^0.6.0",
"@mysten/sui.js": "^0.45.1",
"@solana/buffer-layout": "4.0.1 ",
"@solana/spl-token": "0.3.6",
"@solana/wallet-adapter-base": "0.9.19",
"@solana/web3.js": "1.70.1",
"@suiet/wallet-kit": "0.2.18",
"@suiet/wallet-kit": "0.2.22",
"aptos": "1.4.0",
"bn.js": "5.2.1",
"borsh": "^2.0.0",
Expand Down
8 changes: 6 additions & 2 deletions packages/stream/solana/StreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import BN from "bn.js";
import { Buffer } from "buffer";
import { ASSOCIATED_TOKEN_PROGRAM_ID, NATIVE_MINT, TOKEN_PROGRAM_ID } from "@solana/spl-token";
import {
ASSOCIATED_TOKEN_PROGRAM_ID,
NATIVE_MINT,
TOKEN_PROGRAM_ID,
createAssociatedTokenAccountInstruction,
} from "@solana/spl-token";
import {
Connection,
Keypair,
Expand All @@ -15,7 +20,6 @@ import {
Commitment,
ConnectionConfig,
} from "@solana/web3.js";
import { createAssociatedTokenAccountInstruction } from "@solana/spl-token";
import * as borsh from "borsh";

import {
Expand Down
6 changes: 3 additions & 3 deletions packages/stream/sui/StreamClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BN from "bn.js";
import { CoinStruct, SuiClient } from "@mysten/sui.js/client";
import { TransactionBlock, TransactionArgument } from "@mysten/sui.js/transactions";
import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/transactions";
import { SUI_CLOCK_OBJECT_ID, SUI_TYPE_ARG } from "@mysten/sui.js/utils";

import { BaseStreamClient } from "../common/BaseStreamClient";
Expand Down Expand Up @@ -528,7 +528,7 @@ export default class SuiStreamClient extends BaseStreamClient {
coinType: string,
coins: CoinStruct[],
totalFee: number
): TransactionArgument {
): TransactionObjectArgument {
const coinObject = coinType === SUI_TYPE_ARG ? txb.gas : txb.object(coins[0].coinObjectId);

if (coins.length > 1) {
Expand All @@ -552,7 +552,7 @@ export default class SuiStreamClient extends BaseStreamClient {
txb: TransactionBlock,
coinType: string,
coins: CoinStruct[],
coinObject: TransactionArgument
coinObject: TransactionObjectArgument
): void {
const firstCoinObject = coinType === SUI_TYPE_ARG ? txb.gas : txb.object(coins[0].coinObjectId);
txb.mergeCoins(firstCoinObject, [coinObject]);
Expand Down

0 comments on commit 6391e45

Please sign in to comment.