@swapkit/core 4.4.49 → 4.5.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 4.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#319](https://github.com/swapkit/sdk/pull/319) [`67445d1`](https://github.com/swapkit/sdk/commit/67445d13c963492bbe4283f098b959de010ed0a7) Thanks [@towanTG](https://github.com/towanTG)! - Add Aleo chain metadata, assets, public-balance support, HD derivation, public transfers, fee estimates, broadcasting, transaction status, and keystore/server registration.
8
+ - [#328](https://github.com/swapkit/sdk/pull/328) [`0794dd0`](https://github.com/swapkit/sdk/commit/0794dd0d92a4ab1808c42069d483b91e5ae35f4a) Thanks [@towanTG](https://github.com/towanTG)! - Aleo review follow-up: surface `splitTransactionId` in unshield failure errors so an interrupted unshield is resumable, treat a 404 on the serial-number lookup as the authoritative unspent answer across RPC failover, filter record extraction to `credits.aleo` in `getRecords`, reject toolbox params carrying both a phrase and an external signer (`toolbox_aleo_conflicting_signers`), validate `feeRecordCredits`, and throw a clear `toolbox_aleo_no_rpc_urls` error when no RPC URL is configured. (via @swapkit/toolboxes@4.25.0)
9
+ - [#325](https://github.com/swapkit/sdk/pull/325) [`88aa0cc`](https://github.com/swapkit/sdk/commit/88aa0cc308af1010e5632a7fd9136e43ddbed6a4) Thanks [@paz-ts](https://github.com/paz-ts)! - toSignificant no longer corrupts values with long decimal parts: leading zeros are stripped as a string instead of through Number.parseInt, whose float round-trip rendered full-precision balances on 24-decimal chains like NEAR with two decimal points ("0.0003.2238") and silently lost digits past 2^53 on 18-decimal chains. (via @swapkit/toolboxes@4.25.0)
10
+ - Update generated token lists. (via @swapkit/toolboxes@4.25.0)
11
+
3
12
  ## 4.4.49
4
13
 
5
14
  ### Patch Changes
@@ -212,6 +212,41 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
212
212
  transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
213
213
  validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
214
214
  };
215
+ ALEO: ChainWallet<Chain.Aleo> & {
216
+ broadcastTransaction: (transaction: import("@swapkit/toolboxes/aleo/types").AleoTransaction) => Promise<string>;
217
+ createSigner: (phrase: string, derivationPath?: import("@swapkit/helpers").DerivationPathArray) => import("@swapkit/toolboxes/aleo/types").AleoChainSigner;
218
+ createTransaction: ({ assetValue, priorityFee, recipient, sender }: import("@swapkit/toolboxes/aleo/types").AleoCreateTransactionParams) => Promise<{
219
+ functionName: "transfer_public";
220
+ inputs: [string, string];
221
+ priorityFee: number;
222
+ programName: string;
223
+ sender: string;
224
+ }>;
225
+ estimateTransactionFee: ({ assetValue, priorityFee }: import("@swapkit/toolboxes/aleo/types").AleoTransferParams) => AssetValue;
226
+ getAddress: () => Promise<string>;
227
+ getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
228
+ getBalanceFromRpc: (address: string) => Promise<AssetValue[]>;
229
+ getBalances: () => Promise<AssetValue[]>;
230
+ getBalanceWithFallback: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
231
+ getRecords: ({ transactionIds }: {
232
+ transactionIds: string[];
233
+ }) => Promise<import("@swapkit/toolboxes/aleo/types").AleoRecord[]>;
234
+ getShieldedBalance: ({ transactionIds }: {
235
+ transactionIds: string[];
236
+ }) => Promise<AssetValue>;
237
+ signAndBroadcastTransaction: (transaction: import("@swapkit/toolboxes/aleo/types").AleoUnsignedTransaction) => Promise<string>;
238
+ signTransaction: (transaction: import("@swapkit/toolboxes/aleo/types").AleoUnsignedTransaction) => Promise<import("@swapkit/toolboxes/aleo/types").AleoTransaction>;
239
+ transfer: (params: import("@swapkit/toolboxes/aleo/types").AleoTransferParams) => Promise<string>;
240
+ unshield: ({ transactionId, feeRecordCredits, }: {
241
+ transactionId: string;
242
+ feeRecordCredits?: number;
243
+ }) => Promise<{
244
+ publicBalance: AssetValue;
245
+ splitTransactionId: string | undefined;
246
+ unshieldTransactionId: string;
247
+ }>;
248
+ validateAddress: typeof import("@swapkit/toolboxes/aleo/helpers").validateAleoAddress;
249
+ };
215
250
  APT: ChainWallet<Chain.Aptos> & {
216
251
  broadcastTransaction: ({ senderAuthenticator, transaction, }: {
217
252
  senderAuthenticator: Awaited<ReturnType<(transaction: Awaited<ReturnType<({ recipient, assetValue, maxGasAmount, sender: _senderAddress, sweep, }: import("@swapkit/toolboxes/aptos/types").AptosCreateTransactionParams) => Promise<import("@aptos-labs/ts-sdk").SimpleTransaction>>>) => Promise<import("@aptos-labs/ts-sdk").AccountAuthenticator>>>;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
- "@swapkit/helpers": "4.17.1",
5
- "@swapkit/plugins": "4.6.63",
6
- "@swapkit/toolboxes": "4.24.1",
7
- "@swapkit/wallet-core": "4.3.16"
4
+ "@swapkit/helpers": "4.18.0",
5
+ "@swapkit/plugins": "4.6.64",
6
+ "@swapkit/toolboxes": "4.25.0",
7
+ "@swapkit/wallet-core": "4.3.17"
8
8
  },
9
9
  "description": "SwapKit - Core",
10
10
  "devDependencies": {
@@ -36,5 +36,5 @@
36
36
  "type-check:go": "tsgo"
37
37
  },
38
38
  "type": "module",
39
- "version": "4.4.49"
39
+ "version": "4.5.0"
40
40
  }