@suilend/sui-fe 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,6 @@ export declare const MS_PER_YEAR = 31556952000;
8
8
  export declare enum RpcId {
9
9
  TRITON_ONE = "tritonOne",
10
10
  FULL_NODE = "fullNode",
11
- ALL_THAT_NODE = "allThatNode",
12
11
  CUSTOM = "custom"
13
12
  }
14
13
  export type Rpc = {
package/lib/constants.js CHANGED
@@ -10,25 +10,19 @@ export var RpcId;
10
10
  (function (RpcId) {
11
11
  RpcId["TRITON_ONE"] = "tritonOne";
12
12
  RpcId["FULL_NODE"] = "fullNode";
13
- RpcId["ALL_THAT_NODE"] = "allThatNode";
14
13
  RpcId["CUSTOM"] = "custom";
15
14
  })(RpcId || (RpcId = {}));
16
15
  export const RPCS = [
17
16
  {
18
17
  id: RpcId.TRITON_ONE,
19
18
  name: "Triton One",
20
- url: `https://solendf-suishar-0c55.mainnet.sui.rpcpool.com/${(_a = process.env.NEXT_PUBLIC_SUI_TRITON_ONE_DEV_API_KEY) !== null && _a !== void 0 ? _a : ""}`,
19
+ url: `https://solendf-suishar-0c55.mainnet.sui.rpcpool.com:443/${(_a = process.env.NEXT_PUBLIC_SUI_TRITON_ONE_DEV_API_KEY) !== null && _a !== void 0 ? _a : ""}`,
21
20
  },
22
21
  {
23
22
  id: RpcId.FULL_NODE,
24
23
  name: "Full Node",
25
24
  url: "https://fullnode.mainnet.sui.io:443",
26
25
  },
27
- {
28
- id: RpcId.ALL_THAT_NODE,
29
- name: "All That Node",
30
- url: "https://sui-mainnet-rpc.allthatnode.com",
31
- },
32
26
  {
33
27
  id: RpcId.CUSTOM,
34
28
  name: "Custom",
package/lib/keypair.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SuiClientTypes } from "@mysten/sui/client";
2
- import { SuiJsonRpcClient, SuiTransactionBlockResponse } from "@mysten/sui/jsonRpc";
3
- import { SuiGrpcClient } from "@mysten/sui/grpc";
4
2
  import { SignatureWithBytes } from "@mysten/sui/cryptography";
3
+ import { SuiGrpcClient } from "@mysten/sui/grpc";
4
+ import { SuiJsonRpcClient, SuiTransactionBlockResponse } from "@mysten/sui/jsonRpc";
5
5
  import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519";
6
6
  import { Transaction } from "@mysten/sui/transactions";
7
7
  import BigNumber from "bignumber.js";
package/lib/keypair.js CHANGED
@@ -12,8 +12,8 @@ import { Transaction, } from "@mysten/sui/transactions";
12
12
  import { fromBase64, toHex } from "@mysten/sui/utils";
13
13
  import BigNumber from "bignumber.js";
14
14
  import { isSui } from "./coinType";
15
- import { getAllCoins, getAllOwnedObjects, getMostRecentAddressTransaction, mergeAllCoins, } from "./transactions";
16
15
  import { API_URL } from "./constants";
16
+ import { getAllCoins, getAllOwnedObjects, getMostRecentAddressTransaction, mergeAllCoins, } from "./transactions";
17
17
  // SIGN, EXECUTE, AND WAIT FOR
18
18
  export class TransactionStatusError extends Error {
19
19
  constructor(message) {
@@ -1,6 +1,6 @@
1
1
  import { SuiClientTypes } from "@mysten/sui/client";
2
- import { SuiJsonRpcClient, SuiTransactionBlockResponse } from "@mysten/sui/jsonRpc";
3
2
  import { SuiGrpcClient } from "@mysten/sui/grpc";
3
+ import { SuiJsonRpcClient, SuiTransactionBlockResponse } from "@mysten/sui/jsonRpc";
4
4
  import { Transaction } from "@mysten/sui/transactions";
5
5
  import BigNumber from "bignumber.js";
6
6
  import { Token } from "./coinMetadata";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@suilend/sui-fe","version":"0.4.0","private":false,"description":"A collection of TypeScript frontend libraries","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./lib/constants":"./lib/constants.js","./lib/transactions":"./lib/transactions.js","./lib/format":"./lib/format.js","./lib/ledger":"./lib/ledger.js","./lib/coinMetadata":"./lib/coinMetadata.js","./lib":"./lib/index.js","./lib/indexedDB":"./lib/indexedDB.js","./lib/coinType":"./lib/coinType.js","./lib/coin":"./lib/coin.js","./lib/msafe":"./lib/msafe.js","./lib/keypair":"./lib/keypair.js","./lib/api":"./lib/api.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ./release.js && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/suilend/sui-fe.git"},"bugs":{"url":"https://github.com/suilend/sui-fe/issues"},"dependencies":{"@mysten/wallet-standard":"0.20.0","bignumber.js":"^9.1.2","blake2b":"^2.1.4","lodash":"^4.17.21","p-limit":"3.1.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.8","@types/blake2b":"^2.1.3","@types/lodash":"^4.17.13","@types/node":"^22.9.0","@typescript-eslint/eslint-plugin":"^8.14.0","@typescript-eslint/parser":"^8.14.0","eslint":"^9.14.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.6.3"},"peerDependencies":{"@mysten/sui":"2.1.0"}}
1
+ {"name":"@suilend/sui-fe","version":"0.4.2","private":false,"description":"A collection of TypeScript frontend libraries","author":"Suilend","license":"MIT","main":"./index.js","exports":{".":"./index.js","./lib/constants":"./lib/constants.js","./lib/transactions":"./lib/transactions.js","./lib/format":"./lib/format.js","./lib/ledger":"./lib/ledger.js","./lib/coinMetadata":"./lib/coinMetadata.js","./lib":"./lib/index.js","./lib/indexedDB":"./lib/indexedDB.js","./lib/coinType":"./lib/coinType.js","./lib/coin":"./lib/coin.js","./lib/msafe":"./lib/msafe.js","./lib/keypair":"./lib/keypair.js","./lib/api":"./lib/api.js"},"types":"./index.js","scripts":{"build":"rm -rf ./dist && bun tsc","eslint":"eslint --fix \"./src/**/*.ts\"","prettier":"prettier --write \"./src/**/*\"","lint":"bun eslint && bun prettier && bun tsc --noEmit","release":"bun run build && bun ./release.js && cd ./dist && npm publish --access public"},"repository":{"type":"git","url":"git+https://github.com/suilend/sui-fe.git"},"bugs":{"url":"https://github.com/suilend/sui-fe/issues"},"dependencies":{"@mysten/wallet-standard":"0.20.0","bignumber.js":"^9.1.2","blake2b":"^2.1.4","lodash":"^4.17.21","p-limit":"3.1.0"},"devDependencies":{"@tsconfig/recommended":"^1.0.8","@types/blake2b":"^2.1.3","@types/lodash":"^4.17.13","@types/node":"^22.9.0","@typescript-eslint/eslint-plugin":"^8.14.0","@typescript-eslint/parser":"^8.14.0","eslint":"^9.14.0","eslint-config-prettier":"^9.1.0","eslint-plugin-import":"^2.31.0","eslint-plugin-prettier":"^5.2.1","prettier":"^3.3.3","ts-node":"^10.9.2","typescript":"^5.6.3"},"peerDependencies":{"@mysten/sui":"2.1.0"}}