@sats-connect/core 0.4.0-7a3cb13 → 0.4.0-80a221a
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 +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +681 -180
- package/dist/index.mjs +680 -179
- package/package.json +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -502,7 +502,6 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
502
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
503
503
|
*/
|
|
504
504
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
505
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
506
505
|
/**
|
|
507
506
|
* Whether to broadcast the transaction after signing.
|
|
508
507
|
**/
|
|
@@ -533,7 +532,6 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
533
532
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
534
533
|
*/
|
|
535
534
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
536
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
537
535
|
/**
|
|
538
536
|
* Whether to broadcast the transaction after signing.
|
|
539
537
|
**/
|
|
@@ -1577,6 +1575,8 @@ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
|
1577
1575
|
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1578
1576
|
}, undefined>;
|
|
1579
1577
|
}, undefined>], undefined>, undefined>, never>;
|
|
1578
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1579
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1580
1580
|
}, undefined>, never>;
|
|
1581
1581
|
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1582
1582
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
@@ -1611,6 +1611,8 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1611
1611
|
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1612
1612
|
}, undefined>;
|
|
1613
1613
|
}, undefined>], undefined>, undefined>, never>;
|
|
1614
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1615
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1614
1616
|
}, undefined>, never>;
|
|
1615
1617
|
readonly id: v.StringSchema<undefined>;
|
|
1616
1618
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1661,10 +1663,13 @@ interface OrdinalsRequests {
|
|
|
1661
1663
|
}
|
|
1662
1664
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1663
1665
|
interface WalletRequests {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1666
|
+
wallet_connect: Connect;
|
|
1667
|
+
wallet_disconnect: Disconnect;
|
|
1668
|
+
wallet_getAccount: GetAccount;
|
|
1667
1669
|
wallet_getCurrentPermissions: GetCurrentPermissions;
|
|
1670
|
+
wallet_getWalletType: GetWalletType;
|
|
1671
|
+
wallet_renouncePermissions: RenouncePermissions;
|
|
1672
|
+
wallet_requestPermissions: RequestPermissions;
|
|
1668
1673
|
}
|
|
1669
1674
|
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1670
1675
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,6 @@ declare const signPsbtParamsSchema: v.ObjectSchema<{
|
|
|
502
502
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
503
503
|
*/
|
|
504
504
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
505
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
506
505
|
/**
|
|
507
506
|
* Whether to broadcast the transaction after signing.
|
|
508
507
|
**/
|
|
@@ -533,7 +532,6 @@ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
|
|
|
533
532
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
534
533
|
*/
|
|
535
534
|
readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
536
|
-
readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
|
|
537
535
|
/**
|
|
538
536
|
* Whether to broadcast the transaction after signing.
|
|
539
537
|
**/
|
|
@@ -1577,6 +1575,8 @@ declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
|
|
|
1577
1575
|
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1578
1576
|
}, undefined>;
|
|
1579
1577
|
}, undefined>], undefined>, undefined>, never>;
|
|
1578
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1579
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1580
1580
|
}, undefined>, never>;
|
|
1581
1581
|
type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
|
|
1582
1582
|
declare const connectResultSchema: v.ObjectSchema<{
|
|
@@ -1611,6 +1611,8 @@ declare const connectRequestMessageSchema: v.ObjectSchema<{
|
|
|
1611
1611
|
readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
|
|
1612
1612
|
}, undefined>;
|
|
1613
1613
|
}, undefined>], undefined>, undefined>, never>;
|
|
1614
|
+
readonly addresses: v.OptionalSchema<v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>, never>;
|
|
1615
|
+
readonly message: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 80, "The message must not exceed 80 characters.">]>, never>;
|
|
1614
1616
|
}, undefined>, never>;
|
|
1615
1617
|
readonly id: v.StringSchema<undefined>;
|
|
1616
1618
|
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
@@ -1661,10 +1663,13 @@ interface OrdinalsRequests {
|
|
|
1661
1663
|
}
|
|
1662
1664
|
type OrdinalsRequestMethod = keyof OrdinalsRequests;
|
|
1663
1665
|
interface WalletRequests {
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1666
|
+
wallet_connect: Connect;
|
|
1667
|
+
wallet_disconnect: Disconnect;
|
|
1668
|
+
wallet_getAccount: GetAccount;
|
|
1667
1669
|
wallet_getCurrentPermissions: GetCurrentPermissions;
|
|
1670
|
+
wallet_getWalletType: GetWalletType;
|
|
1671
|
+
wallet_renouncePermissions: RenouncePermissions;
|
|
1672
|
+
wallet_requestPermissions: RequestPermissions;
|
|
1668
1673
|
}
|
|
1669
1674
|
type Requests = BtcRequests & StxRequests & RunesRequests & WalletRequests & OrdinalsRequests;
|
|
1670
1675
|
type Return<Method> = Method extends keyof Requests ? Requests[Method]['result'] : never;
|