@secretkeylabs/stacks-tools 0.9.0-5deee01 → 0.9.0-87bc50c

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.cts CHANGED
@@ -794,22 +794,8 @@ type InfoResponse = {
794
794
  balance_proof: string;
795
795
  nonce_proof: string;
796
796
  };
797
- type InfoReturn = Promise<InfoResponse>;
798
- declare const info: (args: Args$4) => Promise<[null, unknown] | [{
799
- readonly name: "InfoFetchError";
800
- readonly message: "Failed to fetch info.";
801
- readonly data: {
802
- readonly init: RequestInit;
803
- readonly status: number;
804
- readonly statusText: string;
805
- readonly endpoint: string;
806
- readonly body: unknown;
807
- };
808
- }, null] | [{
809
- readonly name: "ParseBodyError";
810
- readonly message: "Failed to parse response body as JSON.";
811
- readonly data: SafeError<"SafeError", unknown>;
812
- }, null]>;
797
+ type InfoReturn = Promise<Result$1<InfoResponse>>;
798
+ declare const info: (args: Args$4) => InfoReturn;
813
799
 
814
800
  type info$1_InfoResponse = InfoResponse;
815
801
  type info$1_InfoReturn = InfoReturn;
@@ -839,21 +825,7 @@ declare namespace index$5 {
839
825
  }
840
826
 
841
827
  declare const accounts: {
842
- info: (args: Args$4) => Promise<[null, unknown] | [{
843
- readonly name: "InfoFetchError";
844
- readonly message: "Failed to fetch info.";
845
- readonly data: {
846
- readonly init: RequestInit;
847
- readonly status: number;
848
- readonly statusText: string;
849
- readonly endpoint: string;
850
- readonly body: unknown;
851
- };
852
- }, null] | [{
853
- readonly name: "ParseBodyError";
854
- readonly message: "Failed to parse response body as JSON.";
855
- readonly data: SafeError<"SafeError", unknown>;
856
- }, null]>;
828
+ info: (args: Args$4) => InfoReturn;
857
829
  };
858
830
 
859
831
  declare const index$4_accounts: typeof accounts;
@@ -863,21 +835,7 @@ declare namespace index$4 {
863
835
 
864
836
  declare const stacksRpcApi: {
865
837
  accounts: {
866
- info: (args: Args$4) => Promise<[null, unknown] | [{
867
- readonly name: "InfoFetchError";
868
- readonly message: "Failed to fetch info.";
869
- readonly data: {
870
- readonly init: RequestInit;
871
- readonly status: number;
872
- readonly statusText: string;
873
- readonly endpoint: string;
874
- readonly body: unknown;
875
- };
876
- }, null] | [{
877
- readonly name: "ParseBodyError";
878
- readonly message: "Failed to parse response body as JSON.";
879
- readonly data: SafeError<"SafeError", unknown>;
880
- }, null]>;
838
+ info: (args: Args$4) => InfoReturn;
881
839
  };
882
840
  pox: {
883
841
  poxDetails: typeof poxDetails;
package/dist/index.d.ts CHANGED
@@ -794,22 +794,8 @@ type InfoResponse = {
794
794
  balance_proof: string;
795
795
  nonce_proof: string;
796
796
  };
797
- type InfoReturn = Promise<InfoResponse>;
798
- declare const info: (args: Args$4) => Promise<[null, unknown] | [{
799
- readonly name: "InfoFetchError";
800
- readonly message: "Failed to fetch info.";
801
- readonly data: {
802
- readonly init: RequestInit;
803
- readonly status: number;
804
- readonly statusText: string;
805
- readonly endpoint: string;
806
- readonly body: unknown;
807
- };
808
- }, null] | [{
809
- readonly name: "ParseBodyError";
810
- readonly message: "Failed to parse response body as JSON.";
811
- readonly data: SafeError<"SafeError", unknown>;
812
- }, null]>;
797
+ type InfoReturn = Promise<Result$1<InfoResponse>>;
798
+ declare const info: (args: Args$4) => InfoReturn;
813
799
 
814
800
  type info$1_InfoResponse = InfoResponse;
815
801
  type info$1_InfoReturn = InfoReturn;
@@ -839,21 +825,7 @@ declare namespace index$5 {
839
825
  }
840
826
 
841
827
  declare const accounts: {
842
- info: (args: Args$4) => Promise<[null, unknown] | [{
843
- readonly name: "InfoFetchError";
844
- readonly message: "Failed to fetch info.";
845
- readonly data: {
846
- readonly init: RequestInit;
847
- readonly status: number;
848
- readonly statusText: string;
849
- readonly endpoint: string;
850
- readonly body: unknown;
851
- };
852
- }, null] | [{
853
- readonly name: "ParseBodyError";
854
- readonly message: "Failed to parse response body as JSON.";
855
- readonly data: SafeError<"SafeError", unknown>;
856
- }, null]>;
828
+ info: (args: Args$4) => InfoReturn;
857
829
  };
858
830
 
859
831
  declare const index$4_accounts: typeof accounts;
@@ -863,21 +835,7 @@ declare namespace index$4 {
863
835
 
864
836
  declare const stacksRpcApi: {
865
837
  accounts: {
866
- info: (args: Args$4) => Promise<[null, unknown] | [{
867
- readonly name: "InfoFetchError";
868
- readonly message: "Failed to fetch info.";
869
- readonly data: {
870
- readonly init: RequestInit;
871
- readonly status: number;
872
- readonly statusText: string;
873
- readonly endpoint: string;
874
- readonly body: unknown;
875
- };
876
- }, null] | [{
877
- readonly name: "ParseBodyError";
878
- readonly message: "Failed to parse response body as JSON.";
879
- readonly data: SafeError<"SafeError", unknown>;
880
- }, null]>;
838
+ info: (args: Args$4) => InfoReturn;
881
839
  };
882
840
  pox: {
883
841
  poxDetails: typeof poxDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretkeylabs/stacks-tools",
3
- "version": "0.9.0-5deee01",
3
+ "version": "0.9.0-87bc50c",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"