@suilend/sui-fe 2.0.8 → 2.0.10
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.
- package/lib/coinType.js +1 -0
- package/lib/keypair.d.ts +1 -3
- package/lib/keypair.js +1 -1
- package/package.json +1 -1
package/lib/coinType.js
CHANGED
|
@@ -246,6 +246,7 @@ export const COINTYPE_SYMBOL_MAP = {
|
|
|
246
246
|
[NORMALIZED_suiWBTC_COINTYPE]: "suiWBTC",
|
|
247
247
|
[NORMALIZED_XAUm_COINTYPE]: "XAUm",
|
|
248
248
|
[NORMALIZED_WBTC_COINTYPE]: "WBTC",
|
|
249
|
+
[NORMALIZED_USDsui_COINTYPE]: "USDsui",
|
|
249
250
|
};
|
|
250
251
|
export const COINTYPE_COLOR_MAP = {
|
|
251
252
|
[NORMALIZED_SEND_COINTYPE]: "#CADBFF",
|
package/lib/keypair.d.ts
CHANGED
|
@@ -29,9 +29,7 @@ export type FundKeypairResult = {
|
|
|
29
29
|
};
|
|
30
30
|
export declare const fundKeypair: (tokens: (Token & {
|
|
31
31
|
amount: BigNumber;
|
|
32
|
-
})[], address: string, keypair: Ed25519Keypair, suiClient: SuiJsonRpcClient, signExecuteAndWaitForTransaction: (transaction: Transaction,
|
|
33
|
-
auction?: boolean;
|
|
34
|
-
}, onSetGasBudget?: (transaction: Transaction) => void, onSign?: (signedTransaction: SignatureWithBytes) => void, onExecute?: (res: SuiTransactionBlockResponse) => void) => Promise<SuiTransactionBlockResponse>, // From WalletContext
|
|
32
|
+
})[], address: string, keypair: Ed25519Keypair, suiClient: SuiJsonRpcClient, signExecuteAndWaitForTransaction: (transaction: Transaction, onSetGasBudget?: (transaction: Transaction) => void, onSign?: (signedTransaction: SignatureWithBytes) => void, onExecute?: (res: SuiTransactionBlockResponse) => void) => Promise<SuiTransactionBlockResponse>, // From WalletContext
|
|
35
33
|
onSign?: (signedTransaction: SignatureWithBytes) => void, onExecute?: (res: SuiTransactionBlockResponse) => void) => Promise<{
|
|
36
34
|
res: SuiTransactionBlockResponse;
|
|
37
35
|
}>;
|
package/lib/keypair.js
CHANGED
|
@@ -200,7 +200,7 @@ onSign, onExecute) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
200
200
|
coins.push(coin);
|
|
201
201
|
}
|
|
202
202
|
transaction.transferObjects(coins, keypair.toSuiAddress());
|
|
203
|
-
const res = yield signExecuteAndWaitForTransaction(transaction, undefined,
|
|
203
|
+
const res = yield signExecuteAndWaitForTransaction(transaction, undefined, onSign, onExecute);
|
|
204
204
|
return { res };
|
|
205
205
|
});
|
|
206
206
|
export const returnAllOwnedObjectsAndSuiToUser = (address, keypair, suiClient, onSign, onExecute) => __awaiter(void 0, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@suilend/sui-fe","version":"2.0.
|
|
1
|
+
{"name":"@suilend/sui-fe","version":"2.0.10","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/","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.3.1"}}
|