@sats-connect/core 0.4.1-977f9b7 → 0.4.2-5220ac4
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -5
- package/package.json +1 -4
package/dist/index.d.mts
CHANGED
|
@@ -949,14 +949,14 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
949
949
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
950
950
|
* strings of Clarity values.
|
|
951
951
|
*
|
|
952
|
-
* To convert Clarity values to their hex representation, the `
|
|
952
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
953
953
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
954
954
|
*
|
|
955
955
|
* ```js
|
|
956
|
-
* import {
|
|
956
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
957
957
|
*
|
|
958
958
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
959
|
-
* const hexArgs = functionArgs.map(
|
|
959
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
960
960
|
* ```
|
|
961
961
|
*/
|
|
962
962
|
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
@@ -993,14 +993,14 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
993
993
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
994
994
|
* strings of Clarity values.
|
|
995
995
|
*
|
|
996
|
-
* To convert Clarity values to their hex representation, the `
|
|
996
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
997
997
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
998
998
|
*
|
|
999
999
|
* ```js
|
|
1000
|
-
* import {
|
|
1000
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
1001
1001
|
*
|
|
1002
1002
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
1003
|
-
* const hexArgs = functionArgs.map(
|
|
1003
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
1004
1004
|
* ```
|
|
1005
1005
|
*/
|
|
1006
1006
|
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
package/dist/index.d.ts
CHANGED
|
@@ -949,14 +949,14 @@ declare const stxCallContractParamsSchema: v.ObjectSchema<{
|
|
|
949
949
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
950
950
|
* strings of Clarity values.
|
|
951
951
|
*
|
|
952
|
-
* To convert Clarity values to their hex representation, the `
|
|
952
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
953
953
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
954
954
|
*
|
|
955
955
|
* ```js
|
|
956
|
-
* import {
|
|
956
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
957
957
|
*
|
|
958
958
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
959
|
-
* const hexArgs = functionArgs.map(
|
|
959
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
960
960
|
* ```
|
|
961
961
|
*/
|
|
962
962
|
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
|
@@ -993,14 +993,14 @@ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
|
|
|
993
993
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
994
994
|
* strings of Clarity values.
|
|
995
995
|
*
|
|
996
|
-
* To convert Clarity values to their hex representation, the `
|
|
996
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
997
997
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
998
998
|
*
|
|
999
999
|
* ```js
|
|
1000
|
-
* import {
|
|
1000
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
1001
1001
|
*
|
|
1002
1002
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
1003
|
-
* const hexArgs = functionArgs.map(
|
|
1003
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
1004
1004
|
* ```
|
|
1005
1005
|
*/
|
|
1006
1006
|
readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
package/dist/index.js
CHANGED
|
@@ -331,14 +331,14 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
331
331
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
332
332
|
* strings of Clarity values.
|
|
333
333
|
*
|
|
334
|
-
* To convert Clarity values to their hex representation, the `
|
|
334
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
335
335
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
336
336
|
*
|
|
337
337
|
* ```js
|
|
338
|
-
* import {
|
|
338
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
339
339
|
*
|
|
340
340
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
341
|
-
* const hexArgs = functionArgs.map(
|
|
341
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
342
342
|
* ```
|
|
343
343
|
*/
|
|
344
344
|
arguments: v3.optional(v3.array(v3.string()))
|
|
@@ -604,7 +604,6 @@ var stxSignTransactionRequestMessageSchema = v10.object({
|
|
|
604
604
|
});
|
|
605
605
|
|
|
606
606
|
// src/request/types/stxMethods/signTransactions.ts
|
|
607
|
-
var import_transactions = require("@stacks/transactions");
|
|
608
607
|
var v11 = __toESM(require("valibot"));
|
|
609
608
|
var stxSignTransactionsMethodName = "stx_signTransactions";
|
|
610
609
|
var stxSignTransactionsParamsSchema = v11.object({
|
|
@@ -616,7 +615,7 @@ var stxSignTransactionsParamsSchema = v11.object({
|
|
|
616
615
|
v11.pipe(
|
|
617
616
|
v11.string(),
|
|
618
617
|
v11.check((hex) => {
|
|
619
|
-
return
|
|
618
|
+
return true;
|
|
620
619
|
}, "Invalid hex-encoded Stacks transaction.")
|
|
621
620
|
)
|
|
622
621
|
),
|
package/dist/index.mjs
CHANGED
|
@@ -132,14 +132,14 @@ var stxCallContractParamsSchema = v3.object({
|
|
|
132
132
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
133
133
|
* strings of Clarity values.
|
|
134
134
|
*
|
|
135
|
-
* To convert Clarity values to their hex representation, the `
|
|
135
|
+
* To convert Clarity values to their hex representation, the `cvToHex`
|
|
136
136
|
* helper from the `@stacks/transactions` package may be helpful.
|
|
137
137
|
*
|
|
138
138
|
* ```js
|
|
139
|
-
* import {
|
|
139
|
+
* import { cvToHex } from '@stacks/transactions';
|
|
140
140
|
*
|
|
141
141
|
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
142
|
-
* const hexArgs = functionArgs.map(
|
|
142
|
+
* const hexArgs = functionArgs.map(cvToHex);
|
|
143
143
|
* ```
|
|
144
144
|
*/
|
|
145
145
|
arguments: v3.optional(v3.array(v3.string()))
|
|
@@ -405,7 +405,6 @@ var stxSignTransactionRequestMessageSchema = v10.object({
|
|
|
405
405
|
});
|
|
406
406
|
|
|
407
407
|
// src/request/types/stxMethods/signTransactions.ts
|
|
408
|
-
import { deserializeTransaction } from "@stacks/transactions";
|
|
409
408
|
import * as v11 from "valibot";
|
|
410
409
|
var stxSignTransactionsMethodName = "stx_signTransactions";
|
|
411
410
|
var stxSignTransactionsParamsSchema = v11.object({
|
|
@@ -417,7 +416,7 @@ var stxSignTransactionsParamsSchema = v11.object({
|
|
|
417
416
|
v11.pipe(
|
|
418
417
|
v11.string(),
|
|
419
418
|
v11.check((hex) => {
|
|
420
|
-
return
|
|
419
|
+
return true;
|
|
421
420
|
}, "Invalid hex-encoded Stacks transaction.")
|
|
422
421
|
)
|
|
423
422
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sats-connect/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-5220ac4",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.mts",
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
"jsontokens": "4.0.1",
|
|
33
33
|
"valibot": "0.42.1"
|
|
34
34
|
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@stacks/transactions": "^7.0.2"
|
|
37
|
-
},
|
|
38
35
|
"devDependencies": {
|
|
39
36
|
"@types/jest": "^29.2.6",
|
|
40
37
|
"husky": "^8.0.3",
|