@sats-connect/core 0.0.8 → 0.0.9-3247d26

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/dist/index.d.mts CHANGED
@@ -114,7 +114,7 @@ interface Provider {
114
114
  mozillaAddOnsUrl?: string;
115
115
  googlePlayStoreUrl?: string;
116
116
  iOSAppStoreUrl?: string;
117
- methods?: (StxRequestMethod | BtcRequestMethod)[];
117
+ methods?: (StxRequestMethod | BtcRequestMethod | RunesRequestMethod)[];
118
118
  }
119
119
  interface SupportedWallet extends Provider {
120
120
  isInstalled: boolean;
@@ -492,6 +492,26 @@ interface RbfOrderResult {
492
492
  fundingAddress: string;
493
493
  }
494
494
  type RbfOrder = MethodParamsAndResult<RbfOrderParams, RbfOrderResult>;
495
+ type GetRunesBalanceParams = null;
496
+ interface GetRunesBalanceResult {
497
+ balances: {
498
+ rune: string;
499
+ amount: string;
500
+ divisibility: number;
501
+ }[];
502
+ }
503
+ type GetRunesBalance = MethodParamsAndResult<GetRunesBalanceParams, GetRunesBalanceResult>;
504
+ type TransferRunesParams = {
505
+ recipients: {
506
+ runeName: string;
507
+ amount: number;
508
+ address: string;
509
+ }[];
510
+ };
511
+ interface TransferRunesResult {
512
+ txid: string;
513
+ }
514
+ type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
495
515
 
496
516
  interface Pubkey {
497
517
  /**
@@ -701,6 +721,8 @@ interface RunesRequests {
701
721
  runes_getOrder: GetOrder;
702
722
  runes_estimateRbfOrder: EstimateRbfOrder;
703
723
  runes_rbfOrder: RbfOrder;
724
+ runes_getBalance: GetRunesBalance;
725
+ runes_transfer: TransferRunes;
704
726
  }
705
727
  type RunesRequestMethod = keyof RunesRequests;
706
728
  type Requests = BtcRequests & StxRequests & RunesRequests;
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ var RpcErrorCode = /* @__PURE__ */ ((RpcErrorCode2) => {
15
15
  return RpcErrorCode2;
16
16
  })(RpcErrorCode || {});
17
17
 
18
- // src/runes/index.ts
18
+ // src/runes/api.ts
19
19
  import axios from "axios";
20
20
  var ORDINALS_API_BASE_URL = (network = "Mainnet" /* Mainnet */) => `https://ordinals${network === "Testnet" /* Testnet */ ? "-testnet" : ""}.xverse.app/v1`;
21
21
  var RunesApi = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.9-3247d26",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",