@sats-connect/core 0.7.1-77a9de6 → 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
@@ -156,22 +156,14 @@ declare enum AddressType {
156
156
  starknet = "starknet",
157
157
  spark = "spark"
158
158
  }
159
- type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
160
- type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
161
159
  declare const addressSchema: v.ObjectSchema<{
162
160
  readonly address: v.StringSchema<undefined>;
163
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly publicKey: v.StringSchema<undefined>;
164
162
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
165
163
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
166
164
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
167
165
  }, undefined>;
168
- type Address = v.InferOutput<typeof addressSchema> & ({
169
- purpose: AddressWithPublicKey;
170
- publicKey: string;
171
- } | {
172
- purpose: AddressWithoutPublicKey;
173
- publicKey?: undefined;
174
- });
166
+ type Address = v.InferOutput<typeof addressSchema>;
175
167
  interface GetAddressResponse {
176
168
  addresses: Address[];
177
169
  }
@@ -281,7 +273,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
281
273
  readonly type: v.LiteralSchema<"accountChange", undefined>;
282
274
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
283
275
  readonly address: v.StringSchema<undefined>;
284
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly publicKey: v.StringSchema<undefined>;
285
277
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
286
278
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
287
279
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -299,7 +291,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
299
291
  }, undefined>;
300
292
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
301
293
  readonly address: v.StringSchema<undefined>;
302
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly publicKey: v.StringSchema<undefined>;
303
295
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
304
296
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
305
297
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -315,7 +307,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
315
307
  readonly type: v.LiteralSchema<"accountChange", undefined>;
316
308
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
317
309
  readonly address: v.StringSchema<undefined>;
318
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
310
+ readonly publicKey: v.StringSchema<undefined>;
319
311
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
320
312
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
321
313
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -330,7 +322,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
330
322
  }, undefined>;
331
323
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
332
324
  readonly address: v.StringSchema<undefined>;
333
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
325
+ readonly publicKey: v.StringSchema<undefined>;
334
326
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
335
327
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
336
328
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -447,7 +439,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
447
439
  */
448
440
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
449
441
  readonly address: v.StringSchema<undefined>;
450
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
442
+ readonly publicKey: v.StringSchema<undefined>;
451
443
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
452
444
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
453
445
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -646,7 +638,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
646
638
  declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
647
639
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
648
640
  readonly address: v.StringSchema<undefined>;
649
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
641
+ readonly publicKey: v.StringSchema<undefined>;
650
642
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
651
643
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
652
644
  }, undefined>, undefined>;
@@ -1031,7 +1023,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1031
1023
  */
1032
1024
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1033
1025
  readonly address: v.StringSchema<undefined>;
1034
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1026
+ readonly publicKey: v.StringSchema<undefined>;
1035
1027
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1036
1028
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1037
1029
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1074,7 +1066,8 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1074
1066
  readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1075
1067
  readonly balance: v.StringSchema<undefined>;
1076
1068
  readonly tokenMetadata: v.ObjectSchema<{
1077
- readonly tokenPublicKey: v.StringSchema<undefined>;
1069
+ readonly tokenAddress: v.StringSchema<undefined>;
1070
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1078
1071
  readonly tokenName: v.StringSchema<undefined>;
1079
1072
  readonly tokenTicker: v.StringSchema<undefined>;
1080
1073
  readonly decimals: v.NumberSchema<undefined>;
@@ -1136,9 +1129,9 @@ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1136
1129
  */
1137
1130
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1138
1131
  /**
1139
- * The token identifier.
1132
+ * The unique token address.
1140
1133
  */
1141
- readonly tokenIdentifier: v.StringSchema<undefined>;
1134
+ readonly tokenAddress: v.StringSchema<undefined>;
1142
1135
  /**
1143
1136
  * The recipient's spark address.
1144
1137
  */
@@ -1160,9 +1153,9 @@ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1160
1153
  */
1161
1154
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1162
1155
  /**
1163
- * The token identifier.
1156
+ * The unique token address.
1164
1157
  */
1165
- readonly tokenIdentifier: v.StringSchema<undefined>;
1158
+ readonly tokenAddress: v.StringSchema<undefined>;
1166
1159
  /**
1167
1160
  * The recipient's spark address.
1168
1161
  */
@@ -1393,7 +1386,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1393
1386
  */
1394
1387
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1395
1388
  readonly address: v.StringSchema<undefined>;
1396
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1389
+ readonly publicKey: v.StringSchema<undefined>;
1397
1390
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1398
1391
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1399
1392
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1937,7 +1930,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1937
1930
  readonly id: v.StringSchema<undefined>;
1938
1931
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1939
1932
  readonly address: v.StringSchema<undefined>;
1940
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1933
+ readonly publicKey: v.StringSchema<undefined>;
1941
1934
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1942
1935
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1943
1936
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1988,7 +1981,7 @@ declare const connectResultSchema: v.ObjectSchema<{
1988
1981
  readonly id: v.StringSchema<undefined>;
1989
1982
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1990
1983
  readonly address: v.StringSchema<undefined>;
1991
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1984
+ readonly publicKey: v.StringSchema<undefined>;
1992
1985
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1993
1986
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1994
1987
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -2113,7 +2106,7 @@ type StxRequestMethod = keyof StxRequests;
2113
2106
  type SparkRequests = {
2114
2107
  [sparkGetAddressesMethodName]: SparkGetAddresses;
2115
2108
  [sparkGetBalanceMethodName]: SparkGetBalance;
2116
- [sparkTransferMethodName]: SparkGetBalance;
2109
+ [sparkTransferMethodName]: SparkTransfer;
2117
2110
  [sparkTransferTokenMethodName]: SparkTransferToken;
2118
2111
  };
2119
2112
  type SparkRequestMethod = keyof SparkRequests;
package/dist/index.d.ts CHANGED
@@ -156,22 +156,14 @@ declare enum AddressType {
156
156
  starknet = "starknet",
157
157
  spark = "spark"
158
158
  }
159
- type AddressWithPublicKey = AddressPurpose.Payment | AddressPurpose.Ordinals | AddressPurpose.Stacks;
160
- type AddressWithoutPublicKey = Exclude<AddressPurpose, AddressWithPublicKey>;
161
159
  declare const addressSchema: v.ObjectSchema<{
162
160
  readonly address: v.StringSchema<undefined>;
163
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly publicKey: v.StringSchema<undefined>;
164
162
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
165
163
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
166
164
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
167
165
  }, undefined>;
168
- type Address = v.InferOutput<typeof addressSchema> & ({
169
- purpose: AddressWithPublicKey;
170
- publicKey: string;
171
- } | {
172
- purpose: AddressWithoutPublicKey;
173
- publicKey?: undefined;
174
- });
166
+ type Address = v.InferOutput<typeof addressSchema>;
175
167
  interface GetAddressResponse {
176
168
  addresses: Address[];
177
169
  }
@@ -281,7 +273,7 @@ declare const accountChangeSchema: v.ObjectSchema<{
281
273
  readonly type: v.LiteralSchema<"accountChange", undefined>;
282
274
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
283
275
  readonly address: v.StringSchema<undefined>;
284
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly publicKey: v.StringSchema<undefined>;
285
277
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
286
278
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
287
279
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -299,7 +291,7 @@ declare const networkChangeSchema: v.ObjectSchema<{
299
291
  }, undefined>;
300
292
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
301
293
  readonly address: v.StringSchema<undefined>;
302
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly publicKey: v.StringSchema<undefined>;
303
295
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
304
296
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
305
297
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -315,7 +307,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
315
307
  readonly type: v.LiteralSchema<"accountChange", undefined>;
316
308
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
317
309
  readonly address: v.StringSchema<undefined>;
318
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
310
+ readonly publicKey: v.StringSchema<undefined>;
319
311
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
320
312
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
321
313
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -330,7 +322,7 @@ declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
330
322
  }, undefined>;
331
323
  readonly addresses: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
332
324
  readonly address: v.StringSchema<undefined>;
333
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
325
+ readonly publicKey: v.StringSchema<undefined>;
334
326
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
335
327
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
336
328
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -447,7 +439,7 @@ declare const getAddressesResultSchema: v.ObjectSchema<{
447
439
  */
448
440
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
449
441
  readonly address: v.StringSchema<undefined>;
450
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
442
+ readonly publicKey: v.StringSchema<undefined>;
451
443
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
452
444
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
453
445
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -646,7 +638,7 @@ type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
646
638
  declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
647
639
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
648
640
  readonly address: v.StringSchema<undefined>;
649
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
641
+ readonly publicKey: v.StringSchema<undefined>;
650
642
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
651
643
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
652
644
  }, undefined>, undefined>;
@@ -1031,7 +1023,7 @@ declare const sparkGetAddressesResultSchema: v.ObjectSchema<{
1031
1023
  */
1032
1024
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1033
1025
  readonly address: v.StringSchema<undefined>;
1034
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1026
+ readonly publicKey: v.StringSchema<undefined>;
1035
1027
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1036
1028
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1037
1029
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1074,7 +1066,8 @@ declare const sparkGetBalanceResultSchema: v.ObjectSchema<{
1074
1066
  readonly tokenBalances: v.ArraySchema<v.ObjectSchema<{
1075
1067
  readonly balance: v.StringSchema<undefined>;
1076
1068
  readonly tokenMetadata: v.ObjectSchema<{
1077
- readonly tokenPublicKey: v.StringSchema<undefined>;
1069
+ readonly tokenAddress: v.StringSchema<undefined>;
1070
+ readonly tokenIdentifier: v.StringSchema<undefined>;
1078
1071
  readonly tokenName: v.StringSchema<undefined>;
1079
1072
  readonly tokenTicker: v.StringSchema<undefined>;
1080
1073
  readonly decimals: v.NumberSchema<undefined>;
@@ -1136,9 +1129,9 @@ declare const sparkTransferTokenParamsSchema: v.ObjectSchema<{
1136
1129
  */
1137
1130
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1138
1131
  /**
1139
- * The token identifier.
1132
+ * The unique token address.
1140
1133
  */
1141
- readonly tokenIdentifier: v.StringSchema<undefined>;
1134
+ readonly tokenAddress: v.StringSchema<undefined>;
1142
1135
  /**
1143
1136
  * The recipient's spark address.
1144
1137
  */
@@ -1160,9 +1153,9 @@ declare const sparkTransferTokenRequestMessageSchema: v.ObjectSchema<{
1160
1153
  */
1161
1154
  readonly tokenAmount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1162
1155
  /**
1163
- * The token identifier.
1156
+ * The unique token address.
1164
1157
  */
1165
- readonly tokenIdentifier: v.StringSchema<undefined>;
1158
+ readonly tokenAddress: v.StringSchema<undefined>;
1166
1159
  /**
1167
1160
  * The recipient's spark address.
1168
1161
  */
@@ -1393,7 +1386,7 @@ declare const stxGetAddressesResultSchema: v.ObjectSchema<{
1393
1386
  */
1394
1387
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1395
1388
  readonly address: v.StringSchema<undefined>;
1396
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1389
+ readonly publicKey: v.StringSchema<undefined>;
1397
1390
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1398
1391
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1399
1392
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1937,7 +1930,7 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1937
1930
  readonly id: v.StringSchema<undefined>;
1938
1931
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1939
1932
  readonly address: v.StringSchema<undefined>;
1940
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1933
+ readonly publicKey: v.StringSchema<undefined>;
1941
1934
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1942
1935
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1943
1936
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -1988,7 +1981,7 @@ declare const connectResultSchema: v.ObjectSchema<{
1988
1981
  readonly id: v.StringSchema<undefined>;
1989
1982
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
1990
1983
  readonly address: v.StringSchema<undefined>;
1991
- readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1984
+ readonly publicKey: v.StringSchema<undefined>;
1992
1985
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
1993
1986
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
1994
1987
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger", "keystone"], undefined>;
@@ -2113,7 +2106,7 @@ type StxRequestMethod = keyof StxRequests;
2113
2106
  type SparkRequests = {
2114
2107
  [sparkGetAddressesMethodName]: SparkGetAddresses;
2115
2108
  [sparkGetBalanceMethodName]: SparkGetBalance;
2116
- [sparkTransferMethodName]: SparkGetBalance;
2109
+ [sparkTransferMethodName]: SparkTransfer;
2117
2110
  [sparkTransferTokenMethodName]: SparkTransferToken;
2118
2111
  };
2119
2112
  type SparkRequestMethod = keyof SparkRequests;
package/dist/index.js CHANGED
@@ -268,7 +268,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
268
268
  })(AddressType || {});
269
269
  var addressSchema = v2.object({
270
270
  address: v2.string(),
271
- publicKey: v2.optional(v2.string()),
271
+ publicKey: v2.string(),
272
272
  purpose: v2.enum(AddressPurpose),
273
273
  addressType: v2.enum(AddressType),
274
274
  walletType: walletTypeSchema
@@ -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
@@ -34,7 +34,7 @@ var AddressType = /* @__PURE__ */ ((AddressType3) => {
34
34
  })(AddressType || {});
35
35
  var addressSchema = v2.object({
36
36
  address: v2.string(),
37
- publicKey: v2.optional(v2.string()),
37
+ publicKey: v2.string(),
38
38
  purpose: v2.enum(AddressPurpose),
39
39
  addressType: v2.enum(AddressType),
40
40
  walletType: walletTypeSchema
@@ -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-77a9de6",
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",