@sats-connect/core 0.7.1-8500dcc → 0.7.1-a0d9214

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
@@ -449,7 +449,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
449
449
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
450
450
  }, undefined>;
451
451
  readonly stacks: v.ObjectSchema<{
452
- readonly name: v.StringSchema<undefined>;
452
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
453
453
  }, undefined>;
454
454
  readonly spark: v.ObjectSchema<{
455
455
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1033,7 +1033,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1033
1033
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1034
1034
  }, undefined>;
1035
1035
  readonly stacks: v.ObjectSchema<{
1036
- readonly name: v.StringSchema<undefined>;
1036
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1037
1037
  }, undefined>;
1038
1038
  readonly spark: v.ObjectSchema<{
1039
1039
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1066,7 +1066,8 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1066
1066
  readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1067
1067
  readonly balance: v.StringSchema<undefined>;
1068
1068
  readonly tokenMetadata: v.ObjectSchema<{
1069
- readonly tokenPublicKey: v.StringSchema<undefined>;
1069
+ readonly tokenAddress: v.StringSchema<undefined>;
1070
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1070
1071
  readonly tokenName: v.StringSchema<undefined>;
1071
1072
  readonly tokenTicker: v.StringSchema<undefined>;
1072
1073
  readonly decimals: v.NumberSchema<undefined>;
@@ -1128,9 +1129,9 @@ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1128
1129
  */
1129
1130
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1130
1131
  /**
1131
- * The token identifier.
1132
+ * The unique token address.
1132
1133
  */
1133
- readonly tokenIdentifier: v.StringSchema<undefined>;
1134
+ readonly tokenAddress: v.StringSchema<undefined>;
1134
1135
  /**
1135
1136
  * The recipient's spark address.
1136
1137
  */
@@ -1152,9 +1153,9 @@ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1152
1153
  */
1153
1154
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1154
1155
  /**
1155
- * The token identifier.
1156
+ * The unique token address.
1156
1157
  */
1157
- readonly tokenIdentifier: v.StringSchema<undefined>;
1158
+ readonly tokenAddress: v.StringSchema<undefined>;
1158
1159
  /**
1159
1160
  * The recipient's spark address.
1160
1161
  */
@@ -1354,7 +1355,7 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1354
1355
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1355
1356
  }, undefined>;
1356
1357
  readonly stacks: v.ObjectSchema<{
1357
- readonly name: v.StringSchema<undefined>;
1358
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1358
1359
  }, undefined>;
1359
1360
  readonly spark: v.ObjectSchema<{
1360
1361
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1395,7 +1396,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1395
1396
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1396
1397
  }, undefined>;
1397
1398
  readonly stacks: v.ObjectSchema<{
1398
- readonly name: v.StringSchema<undefined>;
1399
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1399
1400
  }, undefined>;
1400
1401
  readonly spark: v.ObjectSchema<{
1401
1402
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1873,7 +1874,7 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
1873
1874
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1874
1875
  }, undefined>;
1875
1876
  readonly stacks: v.ObjectSchema<{
1876
- readonly name: v.StringSchema<undefined>;
1877
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1877
1878
  }, undefined>;
1878
1879
  readonly spark: v.ObjectSchema<{
1879
1880
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1940,7 +1941,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1940
1941
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1941
1942
  }, undefined>;
1942
1943
  readonly stacks: v.ObjectSchema<{
1943
- readonly name: v.StringSchema<undefined>;
1944
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1944
1945
  }, undefined>;
1945
1946
  readonly spark: v.ObjectSchema<{
1946
1947
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1991,7 +1992,7 @@ declare const connectResultSchema: v.ObjectSchema<{
1991
1992
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1992
1993
  }, undefined>;
1993
1994
  readonly stacks: v.ObjectSchema<{
1994
- readonly name: v.StringSchema<undefined>;
1995
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1995
1996
  }, undefined>;
1996
1997
  readonly spark: v.ObjectSchema<{
1997
1998
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -2105,7 +2106,7 @@ type StxRequestMethod = keyof StxRequests;
2105
2106
  type SparkRequests = {
2106
2107
  [sparkGetAddressesMethodName]: SparkGetAddresses;
2107
2108
  [sparkGetBalanceMethodName]: SparkGetBalance;
2108
- [sparkTransferMethodName]: SparkGetBalance;
2109
+ [sparkTransferMethodName]: SparkTransfer;
2109
2110
  [sparkTransferTokenMethodName]: SparkTransferToken;
2110
2111
  };
2111
2112
  type SparkRequestMethod = keyof SparkRequests;
package/dist/index.d.ts CHANGED
@@ -449,7 +449,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
449
449
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
450
450
  }, undefined>;
451
451
  readonly stacks: v.ObjectSchema<{
452
- readonly name: v.StringSchema<undefined>;
452
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
453
453
  }, undefined>;
454
454
  readonly spark: v.ObjectSchema<{
455
455
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1033,7 +1033,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1033
1033
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1034
1034
  }, undefined>;
1035
1035
  readonly stacks: v.ObjectSchema<{
1036
- readonly name: v.StringSchema<undefined>;
1036
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1037
1037
  }, undefined>;
1038
1038
  readonly spark: v.ObjectSchema<{
1039
1039
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1066,7 +1066,8 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1066
1066
  readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1067
1067
  readonly balance: v.StringSchema<undefined>;
1068
1068
  readonly tokenMetadata: v.ObjectSchema<{
1069
- readonly tokenPublicKey: v.StringSchema<undefined>;
1069
+ readonly tokenAddress: v.StringSchema<undefined>;
1070
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1070
1071
  readonly tokenName: v.StringSchema<undefined>;
1071
1072
  readonly tokenTicker: v.StringSchema<undefined>;
1072
1073
  readonly decimals: v.NumberSchema<undefined>;
@@ -1128,9 +1129,9 @@ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1128
1129
  */
1129
1130
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1130
1131
  /**
1131
- * The token identifier.
1132
+ * The unique token address.
1132
1133
  */
1133
- readonly tokenIdentifier: v.StringSchema<undefined>;
1134
+ readonly tokenAddress: v.StringSchema<undefined>;
1134
1135
  /**
1135
1136
  * The recipient's spark address.
1136
1137
  */
@@ -1152,9 +1153,9 @@ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1152
1153
  */
1153
1154
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1154
1155
  /**
1155
- * The token identifier.
1156
+ * The unique token address.
1156
1157
  */
1157
- readonly tokenIdentifier: v.StringSchema<undefined>;
1158
+ readonly tokenAddress: v.StringSchema<undefined>;
1158
1159
  /**
1159
1160
  * The recipient's spark address.
1160
1161
  */
@@ -1354,7 +1355,7 @@ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
1354
1355
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1355
1356
  }, undefined>;
1356
1357
  readonly stacks: v.ObjectSchema<{
1357
- readonly name: v.StringSchema<undefined>;
1358
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1358
1359
  }, undefined>;
1359
1360
  readonly spark: v.ObjectSchema<{
1360
1361
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1395,7 +1396,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1395
1396
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1396
1397
  }, undefined>;
1397
1398
  readonly stacks: v.ObjectSchema<{
1398
- readonly name: v.StringSchema<undefined>;
1399
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1399
1400
  }, undefined>;
1400
1401
  readonly spark: v.ObjectSchema<{
1401
1402
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1873,7 +1874,7 @@ declare const getNetworkResultSchema: v.ObjectSchema<{
1873
1874
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1874
1875
  }, undefined>;
1875
1876
  readonly stacks: v.ObjectSchema<{
1876
- readonly name: v.StringSchema<undefined>;
1877
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1877
1878
  }, undefined>;
1878
1879
  readonly spark: v.ObjectSchema<{
1879
1880
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1940,7 +1941,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1940
1941
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1941
1942
  }, undefined>;
1942
1943
  readonly stacks: v.ObjectSchema<{
1943
- readonly name: v.StringSchema<undefined>;
1944
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1944
1945
  }, undefined>;
1945
1946
  readonly spark: v.ObjectSchema<{
1946
1947
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -1991,7 +1992,7 @@ declare const connectResultSchema: v.ObjectSchema<{
1991
1992
  readonly name: v.EnumSchema<typeof BitcoinNetworkType, undefined>;
1992
1993
  }, undefined>;
1993
1994
  readonly stacks: v.ObjectSchema<{
1994
- readonly name: v.StringSchema<undefined>;
1995
+ readonly name: v.EnumSchema<typeof StacksNetworkType, undefined>;
1995
1996
  }, undefined>;
1996
1997
  readonly spark: v.ObjectSchema<{
1997
1998
  readonly name: v.EnumSchema<typeof SparkNetworkType, undefined>;
@@ -2105,7 +2106,7 @@ type StxRequestMethod = keyof StxRequests;
2105
2106
  type SparkRequests = {
2106
2107
  [sparkGetAddressesMethodName]: SparkGetAddresses;
2107
2108
  [sparkGetBalanceMethodName]: SparkGetBalance;
2108
- [sparkTransferMethodName]: SparkGetBalance;
2109
+ [sparkTransferMethodName]: SparkTransfer;
2109
2110
  [sparkTransferTokenMethodName]: SparkTransferToken;
2110
2111
  };
2111
2112
  type SparkRequestMethod = keyof SparkRequests;
package/dist/index.js CHANGED
@@ -522,7 +522,7 @@ var getNetworkResultSchema = v5.object({
522
522
  name: v5.enum(BitcoinNetworkType)
523
523
  }),
524
524
  stacks: v5.object({
525
- name: v5.string()
525
+ name: v5.enum(StacksNetworkType)
526
526
  }),
527
527
  spark: v5.object({
528
528
  name: v5.enum(SparkNetworkType)
@@ -1080,7 +1080,8 @@ var sparkGetBalanceResultSchema = v13.object({
1080
1080
  /* The address balance of the token in string form as it can overflow a js number */
1081
1081
  balance: v13.string(),
1082
1082
  tokenMetadata: v13.object({
1083
- tokenPublicKey: v13.string(),
1083
+ tokenAddress: v13.string(),
1084
+ tokenIdentifier: v13.string(),
1084
1085
  tokenName: v13.string(),
1085
1086
  tokenTicker: v13.string(),
1086
1087
  decimals: v13.number(),
@@ -1135,9 +1136,9 @@ var sparkTransferTokenParamsSchema = v15.object({
1135
1136
  */
1136
1137
  tokenAmount: v15.union([v15.number(), v15.string()]),
1137
1138
  /**
1138
- * The token identifier.
1139
+ * The unique token address.
1139
1140
  */
1140
- tokenIdentifier: v15.string(),
1141
+ tokenAddress: v15.string(),
1141
1142
  /**
1142
1143
  * The recipient's spark address.
1143
1144
  */
package/dist/index.mjs CHANGED
@@ -288,7 +288,7 @@ var getNetworkResultSchema = v5.object({
288
288
  name: v5.enum(BitcoinNetworkType)
289
289
  }),
290
290
  stacks: v5.object({
291
- name: v5.string()
291
+ name: v5.enum(StacksNetworkType)
292
292
  }),
293
293
  spark: v5.object({
294
294
  name: v5.enum(SparkNetworkType)
@@ -846,7 +846,8 @@ var sparkGetBalanceResultSchema = v13.object({
846
846
  /* The address balance of the token in string form as it can overflow a js number */
847
847
  balance: v13.string(),
848
848
  tokenMetadata: v13.object({
849
- tokenPublicKey: v13.string(),
849
+ tokenAddress: v13.string(),
850
+ tokenIdentifier: v13.string(),
850
851
  tokenName: v13.string(),
851
852
  tokenTicker: v13.string(),
852
853
  decimals: v13.number(),
@@ -901,9 +902,9 @@ var sparkTransferTokenParamsSchema = v15.object({
901
902
  */
902
903
  tokenAmount: v15.union([v15.number(), v15.string()]),
903
904
  /**
904
- * The token identifier.
905
+ * The unique token address.
905
906
  */
906
- tokenIdentifier: v15.string(),
907
+ tokenAddress: v15.string(),
907
908
  /**
908
909
  * The recipient's spark address.
909
910
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.7.1-8500dcc",
3
+ "version": "0.7.1-a0d9214",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",