@sats-connect/core 0.14.1 → 0.15.0
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 +282 -206
- package/dist/index.d.ts +282 -206
- package/dist/index.js +841 -733
- package/dist/index.mjs +829 -733
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -121,6 +121,18 @@ __export(index_exports, {
|
|
|
121
121
|
isProviderInstalled: () => isProviderInstalled,
|
|
122
122
|
networkChangeEventName: () => networkChangeEventName,
|
|
123
123
|
networkChangeSchema: () => networkChangeSchema,
|
|
124
|
+
openBridgeMethodName: () => openBridgeMethodName,
|
|
125
|
+
openBridgeParamsSchema: () => openBridgeParamsSchema,
|
|
126
|
+
openBridgeRequestMessageSchema: () => openBridgeRequestMessageSchema,
|
|
127
|
+
openBridgeResultSchema: () => openBridgeResultSchema,
|
|
128
|
+
openBuyMethodName: () => openBuyMethodName,
|
|
129
|
+
openBuyParamsSchema: () => openBuyParamsSchema,
|
|
130
|
+
openBuyRequestMessageSchema: () => openBuyRequestMessageSchema,
|
|
131
|
+
openBuyResultSchema: () => openBuyResultSchema,
|
|
132
|
+
openReceiveMethodName: () => openReceiveMethodName,
|
|
133
|
+
openReceiveParamsSchema: () => openReceiveParamsSchema,
|
|
134
|
+
openReceiveRequestMessageSchema: () => openReceiveRequestMessageSchema,
|
|
135
|
+
openReceiveResultSchema: () => openReceiveResultSchema,
|
|
124
136
|
permission: () => permission,
|
|
125
137
|
removeDefaultProvider: () => removeDefaultProvider,
|
|
126
138
|
renouncePermissionsMethodName: () => renouncePermissionsMethodName,
|
|
@@ -274,7 +286,7 @@ __export(index_exports, {
|
|
|
274
286
|
module.exports = __toCommonJS(index_exports);
|
|
275
287
|
|
|
276
288
|
// src/request/index.ts
|
|
277
|
-
var
|
|
289
|
+
var v55 = __toESM(require("valibot"));
|
|
278
290
|
|
|
279
291
|
// src/provider/types.ts
|
|
280
292
|
var v4 = __toESM(require("valibot"));
|
|
@@ -518,219 +530,303 @@ var sanitizeAddressPurposeRequest = (method, params) => {
|
|
|
518
530
|
};
|
|
519
531
|
|
|
520
532
|
// src/request/types/btcMethods.ts
|
|
521
|
-
var
|
|
533
|
+
var v20 = __toESM(require("valibot"));
|
|
522
534
|
|
|
523
|
-
// src/request/types/walletMethods.ts
|
|
535
|
+
// src/request/types/walletMethods/addNetwork.ts
|
|
524
536
|
var v5 = __toESM(require("valibot"));
|
|
525
|
-
var
|
|
526
|
-
|
|
527
|
-
});
|
|
528
|
-
var walletActionsSchema = v5.object({
|
|
529
|
-
readNetwork: v5.optional(v5.boolean())
|
|
530
|
-
});
|
|
531
|
-
var accountPermissionSchema = v5.object({
|
|
532
|
-
type: v5.literal("account"),
|
|
533
|
-
resourceId: v5.string(),
|
|
534
|
-
clientId: v5.string(),
|
|
535
|
-
actions: accountActionsSchema
|
|
536
|
-
});
|
|
537
|
-
var walletPermissionSchema = v5.object({
|
|
538
|
-
type: v5.literal("wallet"),
|
|
539
|
-
resourceId: v5.string(),
|
|
540
|
-
clientId: v5.string(),
|
|
541
|
-
actions: walletActionsSchema
|
|
542
|
-
});
|
|
543
|
-
var PermissionRequestParams = v5.variant("type", [
|
|
537
|
+
var addNetworkMethodName = "wallet_addNetwork";
|
|
538
|
+
var addNetworkParamsSchema = v5.variant("chain", [
|
|
544
539
|
v5.object({
|
|
545
|
-
|
|
540
|
+
chain: v5.literal("bitcoin"),
|
|
541
|
+
type: v5.enum(BitcoinNetworkType),
|
|
542
|
+
name: v5.string(),
|
|
543
|
+
rpcUrl: v5.string(),
|
|
544
|
+
rpcFallbackUrl: v5.optional(v5.string()),
|
|
545
|
+
indexerUrl: v5.optional(v5.string()),
|
|
546
|
+
blockExplorerUrl: v5.optional(v5.string()),
|
|
547
|
+
switch: v5.optional(v5.boolean())
|
|
546
548
|
}),
|
|
547
549
|
v5.object({
|
|
548
|
-
|
|
550
|
+
chain: v5.literal("stacks"),
|
|
551
|
+
name: v5.string(),
|
|
552
|
+
type: v5.enum(StacksNetworkType),
|
|
553
|
+
rpcUrl: v5.string(),
|
|
554
|
+
blockExplorerUrl: v5.optional(v5.string()),
|
|
555
|
+
switch: v5.optional(v5.boolean())
|
|
556
|
+
}),
|
|
557
|
+
v5.object({
|
|
558
|
+
chain: v5.literal("starknet"),
|
|
559
|
+
name: v5.string(),
|
|
560
|
+
type: v5.enum(StarknetNetworkType),
|
|
561
|
+
rpcUrl: v5.string(),
|
|
562
|
+
blockExplorerUrl: v5.optional(v5.string()),
|
|
563
|
+
switch: v5.optional(v5.boolean())
|
|
549
564
|
})
|
|
550
565
|
]);
|
|
551
|
-
var
|
|
552
|
-
var requestPermissionsMethodName = "wallet_requestPermissions";
|
|
553
|
-
var requestPermissionsParamsSchema = v5.nullish(v5.array(PermissionRequestParams));
|
|
554
|
-
var requestPermissionsResultSchema = v5.literal(true);
|
|
555
|
-
var requestPermissionsRequestMessageSchema = v5.object({
|
|
566
|
+
var addNetworkRequestMessageSchema = v5.object({
|
|
556
567
|
...rpcRequestMessageSchema.entries,
|
|
557
568
|
...v5.object({
|
|
558
|
-
method: v5.literal(
|
|
559
|
-
params:
|
|
569
|
+
method: v5.literal(addNetworkMethodName),
|
|
570
|
+
params: addNetworkParamsSchema,
|
|
560
571
|
id: v5.string()
|
|
561
572
|
}).entries
|
|
562
573
|
});
|
|
563
|
-
var
|
|
564
|
-
|
|
565
|
-
var renouncePermissionsResultSchema = v5.nullish(v5.null());
|
|
566
|
-
var renouncePermissionsRequestMessageSchema = v5.object({
|
|
567
|
-
...rpcRequestMessageSchema.entries,
|
|
568
|
-
...v5.object({
|
|
569
|
-
method: v5.literal(renouncePermissionsMethodName),
|
|
570
|
-
params: renouncePermissionsParamsSchema,
|
|
571
|
-
id: v5.string()
|
|
572
|
-
}).entries
|
|
574
|
+
var addNetworkResultSchema = v5.object({
|
|
575
|
+
id: v5.string()
|
|
573
576
|
});
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
var
|
|
577
|
-
var
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
method: v5.literal(disconnectMethodName),
|
|
581
|
-
params: disconnectParamsSchema,
|
|
582
|
-
id: v5.string()
|
|
583
|
-
}).entries
|
|
577
|
+
|
|
578
|
+
// src/request/types/walletMethods/changeNetwork.ts
|
|
579
|
+
var v6 = __toESM(require("valibot"));
|
|
580
|
+
var changeNetworkMethodName = "wallet_changeNetwork";
|
|
581
|
+
var changeNetworkParamsSchema = v6.object({
|
|
582
|
+
name: v6.enum(BitcoinNetworkType)
|
|
584
583
|
});
|
|
585
|
-
var
|
|
586
|
-
var
|
|
587
|
-
var getWalletTypeResultSchema = walletTypeSchema;
|
|
588
|
-
var getWalletTypeRequestMessageSchema = v5.object({
|
|
584
|
+
var changeNetworkResultSchema = v6.nullish(v6.null());
|
|
585
|
+
var changeNetworkRequestMessageSchema = v6.object({
|
|
589
586
|
...rpcRequestMessageSchema.entries,
|
|
590
|
-
...
|
|
591
|
-
method:
|
|
592
|
-
params:
|
|
593
|
-
id:
|
|
587
|
+
...v6.object({
|
|
588
|
+
method: v6.literal(changeNetworkMethodName),
|
|
589
|
+
params: changeNetworkParamsSchema,
|
|
590
|
+
id: v6.string()
|
|
594
591
|
}).entries
|
|
595
592
|
});
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
var
|
|
593
|
+
|
|
594
|
+
// src/request/types/walletMethods/changeNetworkById.ts
|
|
595
|
+
var v7 = __toESM(require("valibot"));
|
|
596
|
+
var changeNetworkByIdMethodName = "wallet_changeNetworkById";
|
|
597
|
+
var changeNetworkByIdParamsSchema = v7.object({
|
|
598
|
+
id: v7.string()
|
|
599
|
+
});
|
|
600
|
+
var changeNetworkByIdResultSchema = v7.nullish(v7.null());
|
|
601
|
+
var changeNetworkByIdRequestMessageSchema = v7.object({
|
|
600
602
|
...rpcRequestMessageSchema.entries,
|
|
601
|
-
...
|
|
602
|
-
method:
|
|
603
|
-
params:
|
|
604
|
-
id:
|
|
603
|
+
...v7.object({
|
|
604
|
+
method: v7.literal(changeNetworkByIdMethodName),
|
|
605
|
+
params: changeNetworkByIdParamsSchema,
|
|
606
|
+
id: v7.string()
|
|
605
607
|
}).entries
|
|
606
608
|
});
|
|
609
|
+
|
|
610
|
+
// src/request/types/walletMethods/common.ts
|
|
611
|
+
var v8 = __toESM(require("valibot"));
|
|
612
|
+
var accountActionsSchema = v8.object({
|
|
613
|
+
read: v8.optional(v8.boolean())
|
|
614
|
+
});
|
|
615
|
+
var walletActionsSchema = v8.object({
|
|
616
|
+
readNetwork: v8.optional(v8.boolean())
|
|
617
|
+
});
|
|
618
|
+
var accountPermissionSchema = v8.object({
|
|
619
|
+
type: v8.literal("account"),
|
|
620
|
+
resourceId: v8.string(),
|
|
621
|
+
clientId: v8.string(),
|
|
622
|
+
actions: accountActionsSchema
|
|
623
|
+
});
|
|
624
|
+
var walletPermissionSchema = v8.object({
|
|
625
|
+
type: v8.literal("wallet"),
|
|
626
|
+
resourceId: v8.string(),
|
|
627
|
+
clientId: v8.string(),
|
|
628
|
+
actions: walletActionsSchema
|
|
629
|
+
});
|
|
630
|
+
var PermissionRequestParams = v8.variant("type", [
|
|
631
|
+
v8.object({
|
|
632
|
+
...v8.omit(accountPermissionSchema, ["clientId"]).entries
|
|
633
|
+
}),
|
|
634
|
+
v8.object({
|
|
635
|
+
...v8.omit(walletPermissionSchema, ["clientId"]).entries
|
|
636
|
+
})
|
|
637
|
+
]);
|
|
638
|
+
var permission = v8.variant("type", [accountPermissionSchema, walletPermissionSchema]);
|
|
639
|
+
|
|
640
|
+
// src/request/types/walletMethods/connect.ts
|
|
641
|
+
var v10 = __toESM(require("valibot"));
|
|
642
|
+
|
|
643
|
+
// src/request/types/walletMethods/getNetwork.ts
|
|
644
|
+
var v9 = __toESM(require("valibot"));
|
|
607
645
|
var getNetworkMethodName = "wallet_getNetwork";
|
|
608
|
-
var getNetworkParamsSchema =
|
|
609
|
-
var getNetworkResultSchema =
|
|
610
|
-
bitcoin:
|
|
611
|
-
name:
|
|
646
|
+
var getNetworkParamsSchema = v9.nullish(v9.null());
|
|
647
|
+
var getNetworkResultSchema = v9.object({
|
|
648
|
+
bitcoin: v9.object({
|
|
649
|
+
name: v9.enum(BitcoinNetworkType)
|
|
612
650
|
}),
|
|
613
|
-
stacks:
|
|
614
|
-
name:
|
|
651
|
+
stacks: v9.object({
|
|
652
|
+
name: v9.enum(StacksNetworkType)
|
|
615
653
|
}),
|
|
616
|
-
spark:
|
|
617
|
-
name:
|
|
654
|
+
spark: v9.object({
|
|
655
|
+
name: v9.enum(SparkNetworkType)
|
|
618
656
|
})
|
|
619
657
|
});
|
|
620
|
-
var getNetworkRequestMessageSchema =
|
|
658
|
+
var getNetworkRequestMessageSchema = v9.object({
|
|
621
659
|
...rpcRequestMessageSchema.entries,
|
|
622
|
-
...
|
|
623
|
-
method:
|
|
660
|
+
...v9.object({
|
|
661
|
+
method: v9.literal(getNetworkMethodName),
|
|
624
662
|
params: getNetworkParamsSchema,
|
|
625
|
-
id:
|
|
663
|
+
id: v9.string()
|
|
626
664
|
}).entries
|
|
627
665
|
});
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
666
|
+
|
|
667
|
+
// src/request/types/walletMethods/connect.ts
|
|
668
|
+
var connectMethodName = "wallet_connect";
|
|
669
|
+
var connectParamsSchema = v10.nullish(
|
|
670
|
+
v10.object({
|
|
671
|
+
permissions: v10.optional(v10.array(PermissionRequestParams)),
|
|
672
|
+
addresses: v10.optional(v10.array(v10.enum(AddressPurpose))),
|
|
673
|
+
message: v10.optional(
|
|
674
|
+
v10.pipe(v10.string(), v10.maxLength(80, "The message must not exceed 80 characters."))
|
|
675
|
+
),
|
|
676
|
+
network: v10.optional(v10.enum(BitcoinNetworkType))
|
|
677
|
+
})
|
|
678
|
+
);
|
|
679
|
+
var connectResultSchema = v10.object({
|
|
680
|
+
id: v10.string(),
|
|
681
|
+
addresses: v10.array(addressSchema),
|
|
682
|
+
walletType: walletTypeSchema,
|
|
683
|
+
network: getNetworkResultSchema
|
|
631
684
|
});
|
|
632
|
-
var
|
|
633
|
-
var changeNetworkRequestMessageSchema = v5.object({
|
|
685
|
+
var connectRequestMessageSchema = v10.object({
|
|
634
686
|
...rpcRequestMessageSchema.entries,
|
|
635
|
-
...
|
|
636
|
-
method:
|
|
637
|
-
params:
|
|
638
|
-
id:
|
|
687
|
+
...v10.object({
|
|
688
|
+
method: v10.literal(connectMethodName),
|
|
689
|
+
params: connectParamsSchema,
|
|
690
|
+
id: v10.string()
|
|
639
691
|
}).entries
|
|
640
692
|
});
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
var
|
|
646
|
-
var
|
|
693
|
+
|
|
694
|
+
// src/request/types/walletMethods/disconnect.ts
|
|
695
|
+
var v11 = __toESM(require("valibot"));
|
|
696
|
+
var disconnectMethodName = "wallet_disconnect";
|
|
697
|
+
var disconnectParamsSchema = v11.nullish(v11.null());
|
|
698
|
+
var disconnectResultSchema = v11.nullish(v11.null());
|
|
699
|
+
var disconnectRequestMessageSchema = v11.object({
|
|
647
700
|
...rpcRequestMessageSchema.entries,
|
|
648
|
-
...
|
|
649
|
-
method:
|
|
650
|
-
params:
|
|
651
|
-
id:
|
|
701
|
+
...v11.object({
|
|
702
|
+
method: v11.literal(disconnectMethodName),
|
|
703
|
+
params: disconnectParamsSchema,
|
|
704
|
+
id: v11.string()
|
|
652
705
|
}).entries
|
|
653
706
|
});
|
|
707
|
+
|
|
708
|
+
// src/request/types/walletMethods/getAccount.ts
|
|
709
|
+
var v12 = __toESM(require("valibot"));
|
|
654
710
|
var getAccountMethodName = "wallet_getAccount";
|
|
655
|
-
var getAccountParamsSchema =
|
|
656
|
-
var getAccountResultSchema =
|
|
657
|
-
id:
|
|
658
|
-
addresses:
|
|
711
|
+
var getAccountParamsSchema = v12.nullish(v12.null());
|
|
712
|
+
var getAccountResultSchema = v12.object({
|
|
713
|
+
id: v12.string(),
|
|
714
|
+
addresses: v12.array(addressSchema),
|
|
659
715
|
walletType: walletTypeSchema,
|
|
660
716
|
network: getNetworkResultSchema
|
|
661
717
|
});
|
|
662
|
-
var getAccountRequestMessageSchema =
|
|
718
|
+
var getAccountRequestMessageSchema = v12.object({
|
|
663
719
|
...rpcRequestMessageSchema.entries,
|
|
664
|
-
...
|
|
665
|
-
method:
|
|
720
|
+
...v12.object({
|
|
721
|
+
method: v12.literal(getAccountMethodName),
|
|
666
722
|
params: getAccountParamsSchema,
|
|
667
|
-
id:
|
|
723
|
+
id: v12.string()
|
|
668
724
|
}).entries
|
|
669
725
|
});
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
addresses: v5.array(addressSchema),
|
|
684
|
-
walletType: walletTypeSchema,
|
|
685
|
-
network: getNetworkResultSchema
|
|
726
|
+
|
|
727
|
+
// src/request/types/walletMethods/getCurrentPermissions.ts
|
|
728
|
+
var v13 = __toESM(require("valibot"));
|
|
729
|
+
var getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
|
|
730
|
+
var getCurrentPermissionsParamsSchema = v13.nullish(v13.null());
|
|
731
|
+
var getCurrentPermissionsResultSchema = v13.array(permission);
|
|
732
|
+
var getCurrentPermissionsRequestMessageSchema = v13.object({
|
|
733
|
+
...rpcRequestMessageSchema.entries,
|
|
734
|
+
...v13.object({
|
|
735
|
+
method: v13.literal(getCurrentPermissionsMethodName),
|
|
736
|
+
params: getCurrentPermissionsParamsSchema,
|
|
737
|
+
id: v13.string()
|
|
738
|
+
}).entries
|
|
686
739
|
});
|
|
687
|
-
|
|
740
|
+
|
|
741
|
+
// src/request/types/walletMethods/getWalletType.ts
|
|
742
|
+
var v14 = __toESM(require("valibot"));
|
|
743
|
+
var getWalletTypeMethodName = "wallet_getWalletType";
|
|
744
|
+
var getWalletTypeParamsSchema = v14.nullish(v14.null());
|
|
745
|
+
var getWalletTypeResultSchema = walletTypeSchema;
|
|
746
|
+
var getWalletTypeRequestMessageSchema = v14.object({
|
|
688
747
|
...rpcRequestMessageSchema.entries,
|
|
689
|
-
...
|
|
690
|
-
method:
|
|
691
|
-
params:
|
|
692
|
-
id:
|
|
748
|
+
...v14.object({
|
|
749
|
+
method: v14.literal(getWalletTypeMethodName),
|
|
750
|
+
params: getWalletTypeParamsSchema,
|
|
751
|
+
id: v14.string()
|
|
693
752
|
}).entries
|
|
694
753
|
});
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
switch: v5.optional(v5.boolean())
|
|
706
|
-
}),
|
|
707
|
-
v5.object({
|
|
708
|
-
chain: v5.literal("stacks"),
|
|
709
|
-
name: v5.string(),
|
|
710
|
-
type: v5.enum(StacksNetworkType),
|
|
711
|
-
rpcUrl: v5.string(),
|
|
712
|
-
blockExplorerUrl: v5.optional(v5.string()),
|
|
713
|
-
switch: v5.optional(v5.boolean())
|
|
714
|
-
}),
|
|
715
|
-
v5.object({
|
|
716
|
-
chain: v5.literal("starknet"),
|
|
717
|
-
name: v5.string(),
|
|
718
|
-
type: v5.enum(StarknetNetworkType),
|
|
719
|
-
rpcUrl: v5.string(),
|
|
720
|
-
blockExplorerUrl: v5.optional(v5.string()),
|
|
721
|
-
switch: v5.optional(v5.boolean())
|
|
722
|
-
})
|
|
723
|
-
]);
|
|
724
|
-
var addNetworkRequestMessageSchema = v5.object({
|
|
754
|
+
|
|
755
|
+
// src/request/types/walletMethods/openBridge.ts
|
|
756
|
+
var v15 = __toESM(require("valibot"));
|
|
757
|
+
var openBridgeMethodName = "wallet_openBridge";
|
|
758
|
+
var openBridgeParamsSchema = v15.object({
|
|
759
|
+
fromAsset: v15.string(),
|
|
760
|
+
toAsset: v15.string()
|
|
761
|
+
});
|
|
762
|
+
var openBridgeResultSchema = v15.nullish(v15.null());
|
|
763
|
+
var openBridgeRequestMessageSchema = v15.object({
|
|
725
764
|
...rpcRequestMessageSchema.entries,
|
|
726
|
-
...
|
|
727
|
-
method:
|
|
728
|
-
params:
|
|
729
|
-
id:
|
|
765
|
+
...v15.object({
|
|
766
|
+
method: v15.literal(openBridgeMethodName),
|
|
767
|
+
params: openBridgeParamsSchema,
|
|
768
|
+
id: v15.string()
|
|
730
769
|
}).entries
|
|
731
770
|
});
|
|
732
|
-
|
|
733
|
-
|
|
771
|
+
|
|
772
|
+
// src/request/types/walletMethods/openBuy.ts
|
|
773
|
+
var v16 = __toESM(require("valibot"));
|
|
774
|
+
var openBuyMethodName = "wallet_openBuy";
|
|
775
|
+
var openBuyParamsSchema = v16.object({
|
|
776
|
+
asset: v16.string()
|
|
777
|
+
});
|
|
778
|
+
var openBuyResultSchema = v16.nullish(v16.null());
|
|
779
|
+
var openBuyRequestMessageSchema = v16.object({
|
|
780
|
+
...rpcRequestMessageSchema.entries,
|
|
781
|
+
...v16.object({
|
|
782
|
+
method: v16.literal(openBuyMethodName),
|
|
783
|
+
params: openBuyParamsSchema,
|
|
784
|
+
id: v16.string()
|
|
785
|
+
}).entries
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
// src/request/types/walletMethods/openReceive.ts
|
|
789
|
+
var v17 = __toESM(require("valibot"));
|
|
790
|
+
var openReceiveMethodName = "wallet_openReceive";
|
|
791
|
+
var openReceiveParamsSchema = v17.object({
|
|
792
|
+
address: v17.string()
|
|
793
|
+
});
|
|
794
|
+
var openReceiveResultSchema = addressSchema;
|
|
795
|
+
var openReceiveRequestMessageSchema = v17.object({
|
|
796
|
+
...rpcRequestMessageSchema.entries,
|
|
797
|
+
...v17.object({
|
|
798
|
+
method: v17.literal(openReceiveMethodName),
|
|
799
|
+
params: openReceiveParamsSchema,
|
|
800
|
+
id: v17.string()
|
|
801
|
+
}).entries
|
|
802
|
+
});
|
|
803
|
+
|
|
804
|
+
// src/request/types/walletMethods/renouncePermissions.ts
|
|
805
|
+
var v18 = __toESM(require("valibot"));
|
|
806
|
+
var renouncePermissionsMethodName = "wallet_renouncePermissions";
|
|
807
|
+
var renouncePermissionsParamsSchema = v18.nullish(v18.null());
|
|
808
|
+
var renouncePermissionsResultSchema = v18.nullish(v18.null());
|
|
809
|
+
var renouncePermissionsRequestMessageSchema = v18.object({
|
|
810
|
+
...rpcRequestMessageSchema.entries,
|
|
811
|
+
...v18.object({
|
|
812
|
+
method: v18.literal(renouncePermissionsMethodName),
|
|
813
|
+
params: renouncePermissionsParamsSchema,
|
|
814
|
+
id: v18.string()
|
|
815
|
+
}).entries
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
// src/request/types/walletMethods/requestPermissions.ts
|
|
819
|
+
var v19 = __toESM(require("valibot"));
|
|
820
|
+
var requestPermissionsMethodName = "wallet_requestPermissions";
|
|
821
|
+
var requestPermissionsParamsSchema = v19.nullish(v19.array(PermissionRequestParams));
|
|
822
|
+
var requestPermissionsResultSchema = v19.literal(true);
|
|
823
|
+
var requestPermissionsRequestMessageSchema = v19.object({
|
|
824
|
+
...rpcRequestMessageSchema.entries,
|
|
825
|
+
...v19.object({
|
|
826
|
+
method: v19.literal(requestPermissionsMethodName),
|
|
827
|
+
params: requestPermissionsParamsSchema,
|
|
828
|
+
id: v19.string()
|
|
829
|
+
}).entries
|
|
734
830
|
});
|
|
735
831
|
|
|
736
832
|
// src/request/types/btcMethods.ts
|
|
@@ -740,58 +836,58 @@ var ProviderPlatform = /* @__PURE__ */ ((ProviderPlatform2) => {
|
|
|
740
836
|
return ProviderPlatform2;
|
|
741
837
|
})(ProviderPlatform || {});
|
|
742
838
|
var getInfoMethodName = "getInfo";
|
|
743
|
-
var getInfoParamsSchema =
|
|
744
|
-
var getInfoResultSchema =
|
|
839
|
+
var getInfoParamsSchema = v20.nullish(v20.null());
|
|
840
|
+
var getInfoResultSchema = v20.object({
|
|
745
841
|
/**
|
|
746
842
|
* Version of the wallet.
|
|
747
843
|
*/
|
|
748
|
-
version:
|
|
844
|
+
version: v20.string(),
|
|
749
845
|
/**
|
|
750
846
|
* The platform the wallet is running on (web or mobile).
|
|
751
847
|
*/
|
|
752
|
-
platform:
|
|
848
|
+
platform: v20.optional(v20.enum(ProviderPlatform)),
|
|
753
849
|
/**
|
|
754
850
|
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
755
851
|
*/
|
|
756
|
-
methods:
|
|
852
|
+
methods: v20.optional(v20.array(v20.string())),
|
|
757
853
|
/**
|
|
758
854
|
* List of WBIP standards supported by the wallet. Not currently used.
|
|
759
855
|
*/
|
|
760
|
-
supports:
|
|
856
|
+
supports: v20.array(v20.string())
|
|
761
857
|
});
|
|
762
|
-
var getInfoRequestMessageSchema =
|
|
858
|
+
var getInfoRequestMessageSchema = v20.object({
|
|
763
859
|
...rpcRequestMessageSchema.entries,
|
|
764
|
-
...
|
|
765
|
-
method:
|
|
860
|
+
...v20.object({
|
|
861
|
+
method: v20.literal(getInfoMethodName),
|
|
766
862
|
params: getInfoParamsSchema,
|
|
767
|
-
id:
|
|
863
|
+
id: v20.string()
|
|
768
864
|
}).entries
|
|
769
865
|
});
|
|
770
866
|
var getAddressesMethodName = "getAddresses";
|
|
771
|
-
var getAddressesParamsSchema =
|
|
867
|
+
var getAddressesParamsSchema = v20.object({
|
|
772
868
|
/**
|
|
773
869
|
* The purposes for which to generate addresses. See
|
|
774
870
|
* {@linkcode AddressPurpose} for available purposes.
|
|
775
871
|
*/
|
|
776
|
-
purposes:
|
|
872
|
+
purposes: v20.array(v20.enum(AddressPurpose)),
|
|
777
873
|
/**
|
|
778
874
|
* A message to be displayed to the user in the request prompt.
|
|
779
875
|
*/
|
|
780
|
-
message:
|
|
876
|
+
message: v20.optional(v20.string())
|
|
781
877
|
});
|
|
782
|
-
var getAddressesResultSchema =
|
|
878
|
+
var getAddressesResultSchema = v20.object({
|
|
783
879
|
/**
|
|
784
880
|
* The addresses generated for the given purposes.
|
|
785
881
|
*/
|
|
786
|
-
addresses:
|
|
882
|
+
addresses: v20.array(addressSchema),
|
|
787
883
|
network: getNetworkResultSchema
|
|
788
884
|
});
|
|
789
|
-
var getAddressesRequestMessageSchema =
|
|
885
|
+
var getAddressesRequestMessageSchema = v20.object({
|
|
790
886
|
...rpcRequestMessageSchema.entries,
|
|
791
|
-
...
|
|
792
|
-
method:
|
|
887
|
+
...v20.object({
|
|
888
|
+
method: v20.literal(getAddressesMethodName),
|
|
793
889
|
params: getAddressesParamsSchema,
|
|
794
|
-
id:
|
|
890
|
+
id: v20.string()
|
|
795
891
|
}).entries
|
|
796
892
|
});
|
|
797
893
|
var signMessageMethodName = "signMessage";
|
|
@@ -800,606 +896,606 @@ var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
|
|
|
800
896
|
MessageSigningProtocols2["BIP322"] = "BIP322";
|
|
801
897
|
return MessageSigningProtocols2;
|
|
802
898
|
})(MessageSigningProtocols || {});
|
|
803
|
-
var signMessageParamsSchema =
|
|
899
|
+
var signMessageParamsSchema = v20.object({
|
|
804
900
|
/**
|
|
805
901
|
* The address used for signing.
|
|
806
902
|
**/
|
|
807
|
-
address:
|
|
903
|
+
address: v20.string(),
|
|
808
904
|
/**
|
|
809
905
|
* The message to sign.
|
|
810
906
|
**/
|
|
811
|
-
message:
|
|
907
|
+
message: v20.string(),
|
|
812
908
|
/**
|
|
813
909
|
* The protocol to use for signing the message.
|
|
814
910
|
*/
|
|
815
|
-
protocol:
|
|
911
|
+
protocol: v20.optional(v20.enum(MessageSigningProtocols))
|
|
816
912
|
});
|
|
817
|
-
var signMessageResultSchema =
|
|
913
|
+
var signMessageResultSchema = v20.object({
|
|
818
914
|
/**
|
|
819
915
|
* The signature of the message.
|
|
820
916
|
*/
|
|
821
|
-
signature:
|
|
917
|
+
signature: v20.string(),
|
|
822
918
|
/**
|
|
823
919
|
* hash of the message.
|
|
824
920
|
*/
|
|
825
|
-
messageHash:
|
|
921
|
+
messageHash: v20.string(),
|
|
826
922
|
/**
|
|
827
923
|
* The address used for signing.
|
|
828
924
|
*/
|
|
829
|
-
address:
|
|
925
|
+
address: v20.string(),
|
|
830
926
|
/**
|
|
831
927
|
* The protocol to use for signing the message.
|
|
832
928
|
*/
|
|
833
|
-
protocol:
|
|
929
|
+
protocol: v20.enum(MessageSigningProtocols)
|
|
834
930
|
});
|
|
835
|
-
var signMessageRequestMessageSchema =
|
|
931
|
+
var signMessageRequestMessageSchema = v20.object({
|
|
836
932
|
...rpcRequestMessageSchema.entries,
|
|
837
|
-
...
|
|
838
|
-
method:
|
|
933
|
+
...v20.object({
|
|
934
|
+
method: v20.literal(signMessageMethodName),
|
|
839
935
|
params: signMessageParamsSchema,
|
|
840
|
-
id:
|
|
936
|
+
id: v20.string()
|
|
841
937
|
}).entries
|
|
842
938
|
});
|
|
843
939
|
var sendTransferMethodName = "sendTransfer";
|
|
844
|
-
var sendTransferParamsSchema =
|
|
940
|
+
var sendTransferParamsSchema = v20.object({
|
|
845
941
|
/**
|
|
846
942
|
* Array of recipients to send to.
|
|
847
943
|
* The amount to send to each recipient is in satoshis.
|
|
848
944
|
*/
|
|
849
|
-
recipients:
|
|
850
|
-
|
|
851
|
-
address:
|
|
852
|
-
amount:
|
|
945
|
+
recipients: v20.array(
|
|
946
|
+
v20.object({
|
|
947
|
+
address: v20.string(),
|
|
948
|
+
amount: v20.number()
|
|
853
949
|
})
|
|
854
950
|
)
|
|
855
951
|
});
|
|
856
|
-
var sendTransferResultSchema =
|
|
952
|
+
var sendTransferResultSchema = v20.object({
|
|
857
953
|
/**
|
|
858
954
|
* The transaction id as a hex-encoded string.
|
|
859
955
|
*/
|
|
860
|
-
txid:
|
|
956
|
+
txid: v20.string()
|
|
861
957
|
});
|
|
862
|
-
var sendTransferRequestMessageSchema =
|
|
958
|
+
var sendTransferRequestMessageSchema = v20.object({
|
|
863
959
|
...rpcRequestMessageSchema.entries,
|
|
864
|
-
...
|
|
865
|
-
method:
|
|
960
|
+
...v20.object({
|
|
961
|
+
method: v20.literal(sendTransferMethodName),
|
|
866
962
|
params: sendTransferParamsSchema,
|
|
867
|
-
id:
|
|
963
|
+
id: v20.string()
|
|
868
964
|
}).entries
|
|
869
965
|
});
|
|
870
966
|
var signPsbtMethodName = "signPsbt";
|
|
871
|
-
var signPsbtParamsSchema =
|
|
967
|
+
var signPsbtParamsSchema = v20.object({
|
|
872
968
|
/**
|
|
873
969
|
* The base64 encoded PSBT to sign.
|
|
874
970
|
*/
|
|
875
|
-
psbt:
|
|
971
|
+
psbt: v20.string(),
|
|
876
972
|
/**
|
|
877
973
|
* The inputs to sign.
|
|
878
974
|
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
879
975
|
*/
|
|
880
|
-
signInputs:
|
|
976
|
+
signInputs: v20.optional(v20.record(v20.string(), v20.array(v20.number()))),
|
|
881
977
|
/**
|
|
882
978
|
* Whether to broadcast the transaction after signing.
|
|
883
979
|
**/
|
|
884
|
-
broadcast:
|
|
980
|
+
broadcast: v20.optional(v20.boolean())
|
|
885
981
|
});
|
|
886
|
-
var signPsbtResultSchema =
|
|
982
|
+
var signPsbtResultSchema = v20.object({
|
|
887
983
|
/**
|
|
888
984
|
* The base64 encoded PSBT after signing.
|
|
889
985
|
*/
|
|
890
|
-
psbt:
|
|
986
|
+
psbt: v20.string(),
|
|
891
987
|
/**
|
|
892
988
|
* The transaction id as a hex-encoded string.
|
|
893
989
|
* This is only returned if the transaction was broadcast.
|
|
894
990
|
**/
|
|
895
|
-
txid:
|
|
991
|
+
txid: v20.optional(v20.string())
|
|
896
992
|
});
|
|
897
|
-
var signPsbtRequestMessageSchema =
|
|
993
|
+
var signPsbtRequestMessageSchema = v20.object({
|
|
898
994
|
...rpcRequestMessageSchema.entries,
|
|
899
|
-
...
|
|
900
|
-
method:
|
|
995
|
+
...v20.object({
|
|
996
|
+
method: v20.literal(signPsbtMethodName),
|
|
901
997
|
params: signPsbtParamsSchema,
|
|
902
|
-
id:
|
|
998
|
+
id: v20.string()
|
|
903
999
|
}).entries
|
|
904
1000
|
});
|
|
905
1001
|
var getAccountsMethodName = "getAccounts";
|
|
906
|
-
var getAccountsParamsSchema =
|
|
1002
|
+
var getAccountsParamsSchema = v20.object({
|
|
907
1003
|
/**
|
|
908
1004
|
* The purposes for which to generate addresses. See
|
|
909
1005
|
* {@linkcode AddressPurpose} for available purposes.
|
|
910
1006
|
*/
|
|
911
|
-
purposes:
|
|
1007
|
+
purposes: v20.array(v20.enum(AddressPurpose)),
|
|
912
1008
|
/**
|
|
913
1009
|
* A message to be displayed to the user in the request prompt.
|
|
914
1010
|
*/
|
|
915
|
-
message:
|
|
1011
|
+
message: v20.optional(v20.string())
|
|
916
1012
|
});
|
|
917
|
-
var getAccountsResultSchema =
|
|
918
|
-
|
|
1013
|
+
var getAccountsResultSchema = v20.array(
|
|
1014
|
+
v20.object({
|
|
919
1015
|
...addressSchema.entries,
|
|
920
|
-
...
|
|
1016
|
+
...v20.object({
|
|
921
1017
|
walletType: walletTypeSchema
|
|
922
1018
|
}).entries
|
|
923
1019
|
})
|
|
924
1020
|
);
|
|
925
|
-
var getAccountsRequestMessageSchema =
|
|
1021
|
+
var getAccountsRequestMessageSchema = v20.object({
|
|
926
1022
|
...rpcRequestMessageSchema.entries,
|
|
927
|
-
...
|
|
928
|
-
method:
|
|
1023
|
+
...v20.object({
|
|
1024
|
+
method: v20.literal(getAccountsMethodName),
|
|
929
1025
|
params: getAccountsParamsSchema,
|
|
930
|
-
id:
|
|
1026
|
+
id: v20.string()
|
|
931
1027
|
}).entries
|
|
932
1028
|
});
|
|
933
1029
|
var getBalanceMethodName = "getBalance";
|
|
934
|
-
var getBalanceParamsSchema =
|
|
935
|
-
var getBalanceResultSchema =
|
|
1030
|
+
var getBalanceParamsSchema = v20.nullish(v20.null());
|
|
1031
|
+
var getBalanceResultSchema = v20.object({
|
|
936
1032
|
/**
|
|
937
1033
|
* The confirmed balance of the wallet in sats. Using a string due to chrome
|
|
938
1034
|
* messages not supporting bigint
|
|
939
1035
|
* (https://issues.chromium.org/issues/40116184).
|
|
940
1036
|
*/
|
|
941
|
-
confirmed:
|
|
1037
|
+
confirmed: v20.string(),
|
|
942
1038
|
/**
|
|
943
1039
|
* The unconfirmed balance of the wallet in sats. Using a string due to chrome
|
|
944
1040
|
* messages not supporting bigint
|
|
945
1041
|
* (https://issues.chromium.org/issues/40116184).
|
|
946
1042
|
*/
|
|
947
|
-
unconfirmed:
|
|
1043
|
+
unconfirmed: v20.string(),
|
|
948
1044
|
/**
|
|
949
1045
|
* The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
|
|
950
1046
|
* sats. Using a string due to chrome messages not supporting bigint
|
|
951
1047
|
* (https://issues.chromium.org/issues/40116184).
|
|
952
1048
|
*/
|
|
953
|
-
total:
|
|
1049
|
+
total: v20.string()
|
|
954
1050
|
});
|
|
955
|
-
var getBalanceRequestMessageSchema =
|
|
1051
|
+
var getBalanceRequestMessageSchema = v20.object({
|
|
956
1052
|
...rpcRequestMessageSchema.entries,
|
|
957
|
-
...
|
|
958
|
-
method:
|
|
959
|
-
id:
|
|
1053
|
+
...v20.object({
|
|
1054
|
+
method: v20.literal(getBalanceMethodName),
|
|
1055
|
+
id: v20.string()
|
|
960
1056
|
}).entries
|
|
961
1057
|
});
|
|
962
1058
|
|
|
963
1059
|
// src/request/types/ordinalsMethods.ts
|
|
964
|
-
var
|
|
1060
|
+
var v21 = __toESM(require("valibot"));
|
|
965
1061
|
var getInscriptionsMethodName = "ord_getInscriptions";
|
|
966
|
-
var getInscriptionsParamsSchema =
|
|
967
|
-
offset:
|
|
968
|
-
limit:
|
|
969
|
-
});
|
|
970
|
-
var getInscriptionsResultSchema =
|
|
971
|
-
total:
|
|
972
|
-
limit:
|
|
973
|
-
offset:
|
|
974
|
-
inscriptions:
|
|
975
|
-
|
|
976
|
-
inscriptionId:
|
|
977
|
-
inscriptionNumber:
|
|
978
|
-
address:
|
|
979
|
-
collectionName:
|
|
980
|
-
postage:
|
|
981
|
-
contentLength:
|
|
982
|
-
contentType:
|
|
983
|
-
timestamp:
|
|
984
|
-
offset:
|
|
985
|
-
genesisTransaction:
|
|
986
|
-
output:
|
|
1062
|
+
var getInscriptionsParamsSchema = v21.object({
|
|
1063
|
+
offset: v21.number(),
|
|
1064
|
+
limit: v21.number()
|
|
1065
|
+
});
|
|
1066
|
+
var getInscriptionsResultSchema = v21.object({
|
|
1067
|
+
total: v21.number(),
|
|
1068
|
+
limit: v21.number(),
|
|
1069
|
+
offset: v21.number(),
|
|
1070
|
+
inscriptions: v21.array(
|
|
1071
|
+
v21.object({
|
|
1072
|
+
inscriptionId: v21.string(),
|
|
1073
|
+
inscriptionNumber: v21.string(),
|
|
1074
|
+
address: v21.string(),
|
|
1075
|
+
collectionName: v21.optional(v21.string()),
|
|
1076
|
+
postage: v21.string(),
|
|
1077
|
+
contentLength: v21.string(),
|
|
1078
|
+
contentType: v21.string(),
|
|
1079
|
+
timestamp: v21.number(),
|
|
1080
|
+
offset: v21.number(),
|
|
1081
|
+
genesisTransaction: v21.string(),
|
|
1082
|
+
output: v21.string()
|
|
987
1083
|
})
|
|
988
1084
|
)
|
|
989
1085
|
});
|
|
990
|
-
var getInscriptionsRequestMessageSchema =
|
|
1086
|
+
var getInscriptionsRequestMessageSchema = v21.object({
|
|
991
1087
|
...rpcRequestMessageSchema.entries,
|
|
992
|
-
...
|
|
993
|
-
method:
|
|
1088
|
+
...v21.object({
|
|
1089
|
+
method: v21.literal(getInscriptionsMethodName),
|
|
994
1090
|
params: getInscriptionsParamsSchema,
|
|
995
|
-
id:
|
|
1091
|
+
id: v21.string()
|
|
996
1092
|
}).entries
|
|
997
1093
|
});
|
|
998
1094
|
var sendInscriptionsMethodName = "ord_sendInscriptions";
|
|
999
|
-
var sendInscriptionsParamsSchema =
|
|
1000
|
-
transfers:
|
|
1001
|
-
|
|
1002
|
-
address:
|
|
1003
|
-
inscriptionId:
|
|
1095
|
+
var sendInscriptionsParamsSchema = v21.object({
|
|
1096
|
+
transfers: v21.array(
|
|
1097
|
+
v21.object({
|
|
1098
|
+
address: v21.string(),
|
|
1099
|
+
inscriptionId: v21.string()
|
|
1004
1100
|
})
|
|
1005
1101
|
)
|
|
1006
1102
|
});
|
|
1007
|
-
var sendInscriptionsResultSchema =
|
|
1008
|
-
txid:
|
|
1103
|
+
var sendInscriptionsResultSchema = v21.object({
|
|
1104
|
+
txid: v21.string()
|
|
1009
1105
|
});
|
|
1010
|
-
var sendInscriptionsRequestMessageSchema =
|
|
1106
|
+
var sendInscriptionsRequestMessageSchema = v21.object({
|
|
1011
1107
|
...rpcRequestMessageSchema.entries,
|
|
1012
|
-
...
|
|
1013
|
-
method:
|
|
1108
|
+
...v21.object({
|
|
1109
|
+
method: v21.literal(sendInscriptionsMethodName),
|
|
1014
1110
|
params: sendInscriptionsParamsSchema,
|
|
1015
|
-
id:
|
|
1111
|
+
id: v21.string()
|
|
1016
1112
|
}).entries
|
|
1017
1113
|
});
|
|
1018
1114
|
|
|
1019
1115
|
// src/request/types/runesMethods/etch.ts
|
|
1020
|
-
var
|
|
1116
|
+
var v22 = __toESM(require("valibot"));
|
|
1021
1117
|
var runesEtchMethodName = "runes_etch";
|
|
1022
|
-
var etchTermsSchema =
|
|
1023
|
-
amount:
|
|
1024
|
-
cap:
|
|
1025
|
-
heightStart:
|
|
1026
|
-
heightEnd:
|
|
1027
|
-
offsetStart:
|
|
1028
|
-
offsetEnd:
|
|
1029
|
-
});
|
|
1030
|
-
var inscriptionDetailsSchema =
|
|
1031
|
-
contentType:
|
|
1032
|
-
contentBase64:
|
|
1033
|
-
});
|
|
1034
|
-
var runesEtchParamsSchema =
|
|
1035
|
-
runeName:
|
|
1036
|
-
divisibility:
|
|
1037
|
-
symbol:
|
|
1038
|
-
premine:
|
|
1039
|
-
isMintable:
|
|
1040
|
-
delegateInscriptionId:
|
|
1041
|
-
destinationAddress:
|
|
1042
|
-
refundAddress:
|
|
1043
|
-
feeRate:
|
|
1044
|
-
appServiceFee:
|
|
1045
|
-
appServiceFeeAddress:
|
|
1046
|
-
terms:
|
|
1047
|
-
inscriptionDetails:
|
|
1048
|
-
network:
|
|
1049
|
-
});
|
|
1050
|
-
var runesEtchResultSchema =
|
|
1051
|
-
orderId:
|
|
1052
|
-
fundTransactionId:
|
|
1053
|
-
fundingAddress:
|
|
1054
|
-
});
|
|
1055
|
-
var runesEtchRequestMessageSchema =
|
|
1118
|
+
var etchTermsSchema = v22.object({
|
|
1119
|
+
amount: v22.string(),
|
|
1120
|
+
cap: v22.string(),
|
|
1121
|
+
heightStart: v22.optional(v22.string()),
|
|
1122
|
+
heightEnd: v22.optional(v22.string()),
|
|
1123
|
+
offsetStart: v22.optional(v22.string()),
|
|
1124
|
+
offsetEnd: v22.optional(v22.string())
|
|
1125
|
+
});
|
|
1126
|
+
var inscriptionDetailsSchema = v22.object({
|
|
1127
|
+
contentType: v22.string(),
|
|
1128
|
+
contentBase64: v22.string()
|
|
1129
|
+
});
|
|
1130
|
+
var runesEtchParamsSchema = v22.object({
|
|
1131
|
+
runeName: v22.string(),
|
|
1132
|
+
divisibility: v22.optional(v22.number()),
|
|
1133
|
+
symbol: v22.optional(v22.string()),
|
|
1134
|
+
premine: v22.optional(v22.string()),
|
|
1135
|
+
isMintable: v22.boolean(),
|
|
1136
|
+
delegateInscriptionId: v22.optional(v22.string()),
|
|
1137
|
+
destinationAddress: v22.string(),
|
|
1138
|
+
refundAddress: v22.string(),
|
|
1139
|
+
feeRate: v22.number(),
|
|
1140
|
+
appServiceFee: v22.optional(v22.number()),
|
|
1141
|
+
appServiceFeeAddress: v22.optional(v22.string()),
|
|
1142
|
+
terms: v22.optional(etchTermsSchema),
|
|
1143
|
+
inscriptionDetails: v22.optional(inscriptionDetailsSchema),
|
|
1144
|
+
network: v22.optional(v22.enum(BitcoinNetworkType))
|
|
1145
|
+
});
|
|
1146
|
+
var runesEtchResultSchema = v22.object({
|
|
1147
|
+
orderId: v22.string(),
|
|
1148
|
+
fundTransactionId: v22.string(),
|
|
1149
|
+
fundingAddress: v22.string()
|
|
1150
|
+
});
|
|
1151
|
+
var runesEtchRequestMessageSchema = v22.object({
|
|
1056
1152
|
...rpcRequestMessageSchema.entries,
|
|
1057
|
-
...
|
|
1058
|
-
method:
|
|
1153
|
+
...v22.object({
|
|
1154
|
+
method: v22.literal(runesEtchMethodName),
|
|
1059
1155
|
params: runesEtchParamsSchema,
|
|
1060
|
-
id:
|
|
1156
|
+
id: v22.string()
|
|
1061
1157
|
}).entries
|
|
1062
1158
|
});
|
|
1063
1159
|
|
|
1064
1160
|
// src/request/types/runesMethods/getBalance.ts
|
|
1065
|
-
var
|
|
1161
|
+
var v23 = __toESM(require("valibot"));
|
|
1066
1162
|
var runesGetBalanceMethodName = "runes_getBalance";
|
|
1067
|
-
var runesGetBalanceParamsSchema =
|
|
1068
|
-
var runesGetBalanceResultSchema =
|
|
1069
|
-
balances:
|
|
1070
|
-
|
|
1071
|
-
runeName:
|
|
1072
|
-
amount:
|
|
1073
|
-
divisibility:
|
|
1074
|
-
symbol:
|
|
1075
|
-
inscriptionId:
|
|
1076
|
-
spendableBalance:
|
|
1163
|
+
var runesGetBalanceParamsSchema = v23.nullish(v23.null());
|
|
1164
|
+
var runesGetBalanceResultSchema = v23.object({
|
|
1165
|
+
balances: v23.array(
|
|
1166
|
+
v23.object({
|
|
1167
|
+
runeName: v23.string(),
|
|
1168
|
+
amount: v23.string(),
|
|
1169
|
+
divisibility: v23.number(),
|
|
1170
|
+
symbol: v23.string(),
|
|
1171
|
+
inscriptionId: v23.nullish(v23.string()),
|
|
1172
|
+
spendableBalance: v23.string()
|
|
1077
1173
|
})
|
|
1078
1174
|
)
|
|
1079
1175
|
});
|
|
1080
|
-
var runesGetBalanceRequestMessageSchema =
|
|
1176
|
+
var runesGetBalanceRequestMessageSchema = v23.object({
|
|
1081
1177
|
...rpcRequestMessageSchema.entries,
|
|
1082
|
-
...
|
|
1083
|
-
method:
|
|
1178
|
+
...v23.object({
|
|
1179
|
+
method: v23.literal(runesGetBalanceMethodName),
|
|
1084
1180
|
params: runesGetBalanceParamsSchema,
|
|
1085
|
-
id:
|
|
1181
|
+
id: v23.string()
|
|
1086
1182
|
}).entries
|
|
1087
1183
|
});
|
|
1088
1184
|
|
|
1089
1185
|
// src/request/types/runesMethods/mint.ts
|
|
1090
|
-
var
|
|
1186
|
+
var v24 = __toESM(require("valibot"));
|
|
1091
1187
|
var runesMintMethodName = "runes_mint";
|
|
1092
|
-
var runesMintParamsSchema =
|
|
1093
|
-
appServiceFee:
|
|
1094
|
-
appServiceFeeAddress:
|
|
1095
|
-
destinationAddress:
|
|
1096
|
-
feeRate:
|
|
1097
|
-
refundAddress:
|
|
1098
|
-
repeats:
|
|
1099
|
-
runeName:
|
|
1100
|
-
network:
|
|
1101
|
-
});
|
|
1102
|
-
var runesMintResultSchema =
|
|
1103
|
-
orderId:
|
|
1104
|
-
fundTransactionId:
|
|
1105
|
-
fundingAddress:
|
|
1106
|
-
});
|
|
1107
|
-
var runesMintRequestMessageSchema =
|
|
1188
|
+
var runesMintParamsSchema = v24.object({
|
|
1189
|
+
appServiceFee: v24.optional(v24.number()),
|
|
1190
|
+
appServiceFeeAddress: v24.optional(v24.string()),
|
|
1191
|
+
destinationAddress: v24.string(),
|
|
1192
|
+
feeRate: v24.number(),
|
|
1193
|
+
refundAddress: v24.string(),
|
|
1194
|
+
repeats: v24.number(),
|
|
1195
|
+
runeName: v24.string(),
|
|
1196
|
+
network: v24.optional(v24.enum(BitcoinNetworkType))
|
|
1197
|
+
});
|
|
1198
|
+
var runesMintResultSchema = v24.object({
|
|
1199
|
+
orderId: v24.string(),
|
|
1200
|
+
fundTransactionId: v24.string(),
|
|
1201
|
+
fundingAddress: v24.string()
|
|
1202
|
+
});
|
|
1203
|
+
var runesMintRequestMessageSchema = v24.object({
|
|
1108
1204
|
...rpcRequestMessageSchema.entries,
|
|
1109
|
-
...
|
|
1110
|
-
method:
|
|
1205
|
+
...v24.object({
|
|
1206
|
+
method: v24.literal(runesMintMethodName),
|
|
1111
1207
|
params: runesMintParamsSchema,
|
|
1112
|
-
id:
|
|
1208
|
+
id: v24.string()
|
|
1113
1209
|
}).entries
|
|
1114
1210
|
});
|
|
1115
1211
|
|
|
1116
1212
|
// src/request/types/runesMethods/transfer.ts
|
|
1117
|
-
var
|
|
1213
|
+
var v25 = __toESM(require("valibot"));
|
|
1118
1214
|
var runesTransferMethodName = "runes_transfer";
|
|
1119
|
-
var runesTransferParamsSchema =
|
|
1120
|
-
recipients:
|
|
1121
|
-
|
|
1122
|
-
runeName:
|
|
1123
|
-
amount:
|
|
1124
|
-
address:
|
|
1215
|
+
var runesTransferParamsSchema = v25.object({
|
|
1216
|
+
recipients: v25.array(
|
|
1217
|
+
v25.object({
|
|
1218
|
+
runeName: v25.string(),
|
|
1219
|
+
amount: v25.string(),
|
|
1220
|
+
address: v25.string()
|
|
1125
1221
|
})
|
|
1126
1222
|
)
|
|
1127
1223
|
});
|
|
1128
|
-
var runesTransferResultSchema =
|
|
1129
|
-
txid:
|
|
1224
|
+
var runesTransferResultSchema = v25.object({
|
|
1225
|
+
txid: v25.string()
|
|
1130
1226
|
});
|
|
1131
|
-
var runesTransferRequestMessageSchema =
|
|
1227
|
+
var runesTransferRequestMessageSchema = v25.object({
|
|
1132
1228
|
...rpcRequestMessageSchema.entries,
|
|
1133
|
-
...
|
|
1134
|
-
method:
|
|
1229
|
+
...v25.object({
|
|
1230
|
+
method: v25.literal(runesTransferMethodName),
|
|
1135
1231
|
params: runesTransferParamsSchema,
|
|
1136
|
-
id:
|
|
1232
|
+
id: v25.string()
|
|
1137
1233
|
}).entries
|
|
1138
1234
|
});
|
|
1139
1235
|
|
|
1140
1236
|
// src/request/types/sparkMethods/flashnetMethods/clawbackFunds.ts
|
|
1141
|
-
var
|
|
1237
|
+
var v26 = __toESM(require("valibot"));
|
|
1142
1238
|
var sparkFlashnetClawbackFundsMethodName = "spark_flashnet_clawbackFunds";
|
|
1143
|
-
var sparkFlashnetClawbackFundsParamsSchema =
|
|
1144
|
-
sparkTransferId:
|
|
1145
|
-
lpIdentityPublicKey:
|
|
1146
|
-
});
|
|
1147
|
-
var sparkFlashnetClawbackFundsResultSchema =
|
|
1148
|
-
requestId:
|
|
1149
|
-
accepted:
|
|
1150
|
-
internalRequestId:
|
|
1151
|
-
sparkStatusTrackingId:
|
|
1152
|
-
error:
|
|
1153
|
-
});
|
|
1154
|
-
var sparkFlashnetClawbackFundsRequestMessageSchema =
|
|
1239
|
+
var sparkFlashnetClawbackFundsParamsSchema = v26.object({
|
|
1240
|
+
sparkTransferId: v26.string(),
|
|
1241
|
+
lpIdentityPublicKey: v26.string()
|
|
1242
|
+
});
|
|
1243
|
+
var sparkFlashnetClawbackFundsResultSchema = v26.object({
|
|
1244
|
+
requestId: v26.string(),
|
|
1245
|
+
accepted: v26.boolean(),
|
|
1246
|
+
internalRequestId: v26.optional(v26.string()),
|
|
1247
|
+
sparkStatusTrackingId: v26.optional(v26.string()),
|
|
1248
|
+
error: v26.optional(v26.string())
|
|
1249
|
+
});
|
|
1250
|
+
var sparkFlashnetClawbackFundsRequestMessageSchema = v26.object({
|
|
1155
1251
|
...rpcRequestMessageSchema.entries,
|
|
1156
|
-
...
|
|
1157
|
-
method:
|
|
1252
|
+
...v26.object({
|
|
1253
|
+
method: v26.literal(sparkFlashnetClawbackFundsMethodName),
|
|
1158
1254
|
params: sparkFlashnetClawbackFundsParamsSchema,
|
|
1159
|
-
id:
|
|
1255
|
+
id: v26.string()
|
|
1160
1256
|
}).entries
|
|
1161
1257
|
});
|
|
1162
1258
|
|
|
1163
1259
|
// src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
|
|
1164
|
-
var
|
|
1260
|
+
var v27 = __toESM(require("valibot"));
|
|
1165
1261
|
var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
|
|
1166
|
-
var sparkFlashnetExecuteRouteSwapParamsSchema =
|
|
1167
|
-
hops:
|
|
1168
|
-
|
|
1169
|
-
poolId:
|
|
1170
|
-
assetInAddress:
|
|
1171
|
-
assetOutAddress:
|
|
1172
|
-
hopIntegratorFeeRateBps:
|
|
1262
|
+
var sparkFlashnetExecuteRouteSwapParamsSchema = v27.object({
|
|
1263
|
+
hops: v27.array(
|
|
1264
|
+
v27.object({
|
|
1265
|
+
poolId: v27.string(),
|
|
1266
|
+
assetInAddress: v27.string(),
|
|
1267
|
+
assetOutAddress: v27.string(),
|
|
1268
|
+
hopIntegratorFeeRateBps: v27.optional(v27.number())
|
|
1173
1269
|
})
|
|
1174
1270
|
),
|
|
1175
|
-
initialAssetAddress:
|
|
1176
|
-
inputAmount:
|
|
1177
|
-
maxRouteSlippageBps:
|
|
1178
|
-
minAmountOut:
|
|
1179
|
-
integratorFeeRateBps:
|
|
1180
|
-
integratorPublicKey:
|
|
1181
|
-
});
|
|
1182
|
-
var sparkFlashnetExecuteRouteSwapResultSchema =
|
|
1183
|
-
requestId:
|
|
1184
|
-
accepted:
|
|
1185
|
-
outputAmount:
|
|
1186
|
-
executionPrice:
|
|
1187
|
-
finalOutboundTransferId:
|
|
1188
|
-
error:
|
|
1189
|
-
});
|
|
1190
|
-
var sparkFlashnetExecuteRouteSwapRequestMessageSchema =
|
|
1271
|
+
initialAssetAddress: v27.string(),
|
|
1272
|
+
inputAmount: v27.string(),
|
|
1273
|
+
maxRouteSlippageBps: v27.string(),
|
|
1274
|
+
minAmountOut: v27.optional(v27.string()),
|
|
1275
|
+
integratorFeeRateBps: v27.optional(v27.number()),
|
|
1276
|
+
integratorPublicKey: v27.optional(v27.string())
|
|
1277
|
+
});
|
|
1278
|
+
var sparkFlashnetExecuteRouteSwapResultSchema = v27.object({
|
|
1279
|
+
requestId: v27.string(),
|
|
1280
|
+
accepted: v27.boolean(),
|
|
1281
|
+
outputAmount: v27.string(),
|
|
1282
|
+
executionPrice: v27.string(),
|
|
1283
|
+
finalOutboundTransferId: v27.string(),
|
|
1284
|
+
error: v27.optional(v27.string())
|
|
1285
|
+
});
|
|
1286
|
+
var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v27.object({
|
|
1191
1287
|
...rpcRequestMessageSchema.entries,
|
|
1192
|
-
...
|
|
1193
|
-
method:
|
|
1288
|
+
...v27.object({
|
|
1289
|
+
method: v27.literal(sparkFlashnetExecuteRouteSwapMethodName),
|
|
1194
1290
|
params: sparkFlashnetExecuteRouteSwapParamsSchema,
|
|
1195
|
-
id:
|
|
1291
|
+
id: v27.string()
|
|
1196
1292
|
}).entries
|
|
1197
1293
|
});
|
|
1198
1294
|
|
|
1199
1295
|
// src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
|
|
1200
|
-
var
|
|
1296
|
+
var v28 = __toESM(require("valibot"));
|
|
1201
1297
|
var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
|
|
1202
|
-
var sparkFlashnetExecuteSwapParamsSchema =
|
|
1203
|
-
poolId:
|
|
1204
|
-
assetInAddress:
|
|
1205
|
-
assetOutAddress:
|
|
1206
|
-
amountIn:
|
|
1207
|
-
maxSlippageBps:
|
|
1208
|
-
minAmountOut:
|
|
1209
|
-
integratorFeeRateBps:
|
|
1210
|
-
integratorPublicKey:
|
|
1211
|
-
});
|
|
1212
|
-
var sparkFlashnetExecuteSwapResultSchema =
|
|
1213
|
-
requestId:
|
|
1214
|
-
accepted:
|
|
1215
|
-
amountOut:
|
|
1216
|
-
feeAmount:
|
|
1217
|
-
executionPrice:
|
|
1218
|
-
assetOutAddress:
|
|
1219
|
-
assetInAddress:
|
|
1220
|
-
outboundTransferId:
|
|
1221
|
-
error:
|
|
1222
|
-
});
|
|
1223
|
-
var sparkFlashnetExecuteSwapRequestMessageSchema =
|
|
1298
|
+
var sparkFlashnetExecuteSwapParamsSchema = v28.object({
|
|
1299
|
+
poolId: v28.string(),
|
|
1300
|
+
assetInAddress: v28.string(),
|
|
1301
|
+
assetOutAddress: v28.string(),
|
|
1302
|
+
amountIn: v28.string(),
|
|
1303
|
+
maxSlippageBps: v28.number(),
|
|
1304
|
+
minAmountOut: v28.optional(v28.string()),
|
|
1305
|
+
integratorFeeRateBps: v28.optional(v28.number()),
|
|
1306
|
+
integratorPublicKey: v28.optional(v28.string())
|
|
1307
|
+
});
|
|
1308
|
+
var sparkFlashnetExecuteSwapResultSchema = v28.object({
|
|
1309
|
+
requestId: v28.string(),
|
|
1310
|
+
accepted: v28.boolean(),
|
|
1311
|
+
amountOut: v28.optional(v28.string()),
|
|
1312
|
+
feeAmount: v28.optional(v28.string()),
|
|
1313
|
+
executionPrice: v28.optional(v28.string()),
|
|
1314
|
+
assetOutAddress: v28.optional(v28.string()),
|
|
1315
|
+
assetInAddress: v28.optional(v28.string()),
|
|
1316
|
+
outboundTransferId: v28.optional(v28.string()),
|
|
1317
|
+
error: v28.optional(v28.string())
|
|
1318
|
+
});
|
|
1319
|
+
var sparkFlashnetExecuteSwapRequestMessageSchema = v28.object({
|
|
1224
1320
|
...rpcRequestMessageSchema.entries,
|
|
1225
|
-
...
|
|
1226
|
-
method:
|
|
1321
|
+
...v28.object({
|
|
1322
|
+
method: v28.literal(sparkFlashnetExecuteSwapMethodName),
|
|
1227
1323
|
params: sparkFlashnetExecuteSwapParamsSchema,
|
|
1228
|
-
id:
|
|
1324
|
+
id: v28.string()
|
|
1229
1325
|
}).entries
|
|
1230
1326
|
});
|
|
1231
1327
|
|
|
1232
1328
|
// src/request/types/sparkMethods/flashnetMethods/getClawbackEligibleTransfers.ts
|
|
1233
|
-
var
|
|
1329
|
+
var v29 = __toESM(require("valibot"));
|
|
1234
1330
|
var sparkGetClawbackEligibleTransfersMethodName = "spark_flashnet_getClawbackEligibleTransfers";
|
|
1235
|
-
var sparkGetClawbackEligibleTransfersParamsSchema =
|
|
1236
|
-
var sparkGetClawbackEligibleTransfersResultSchema =
|
|
1237
|
-
eligibleTransfers:
|
|
1238
|
-
|
|
1239
|
-
txId:
|
|
1240
|
-
createdAt:
|
|
1241
|
-
lpIdentityPublicKey:
|
|
1331
|
+
var sparkGetClawbackEligibleTransfersParamsSchema = v29.nullish(v29.null());
|
|
1332
|
+
var sparkGetClawbackEligibleTransfersResultSchema = v29.object({
|
|
1333
|
+
eligibleTransfers: v29.array(
|
|
1334
|
+
v29.object({
|
|
1335
|
+
txId: v29.string(),
|
|
1336
|
+
createdAt: v29.string(),
|
|
1337
|
+
lpIdentityPublicKey: v29.string()
|
|
1242
1338
|
})
|
|
1243
1339
|
)
|
|
1244
1340
|
});
|
|
1245
|
-
var sparkGetClawbackEligibleTransfersRequestMessageSchema =
|
|
1341
|
+
var sparkGetClawbackEligibleTransfersRequestMessageSchema = v29.object({
|
|
1246
1342
|
...rpcRequestMessageSchema.entries,
|
|
1247
|
-
...
|
|
1248
|
-
method:
|
|
1343
|
+
...v29.object({
|
|
1344
|
+
method: v29.literal(sparkGetClawbackEligibleTransfersMethodName),
|
|
1249
1345
|
params: sparkGetClawbackEligibleTransfersParamsSchema,
|
|
1250
|
-
id:
|
|
1346
|
+
id: v29.string()
|
|
1251
1347
|
}).entries
|
|
1252
1348
|
});
|
|
1253
1349
|
|
|
1254
1350
|
// src/request/types/sparkMethods/flashnetMethods/getJwt.ts
|
|
1255
|
-
var
|
|
1351
|
+
var v30 = __toESM(require("valibot"));
|
|
1256
1352
|
var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
|
|
1257
|
-
var sparkFlashnetGetJwtParamsSchema =
|
|
1258
|
-
var sparkFlashnetGetJwtResultSchema =
|
|
1353
|
+
var sparkFlashnetGetJwtParamsSchema = v30.null();
|
|
1354
|
+
var sparkFlashnetGetJwtResultSchema = v30.object({
|
|
1259
1355
|
/**
|
|
1260
1356
|
* The JWT token for authenticated requests to the Flashnet API.
|
|
1261
1357
|
*/
|
|
1262
|
-
jwt:
|
|
1358
|
+
jwt: v30.string()
|
|
1263
1359
|
});
|
|
1264
|
-
var sparkFlashnetGetJwtRequestMessageSchema =
|
|
1360
|
+
var sparkFlashnetGetJwtRequestMessageSchema = v30.object({
|
|
1265
1361
|
...rpcRequestMessageSchema.entries,
|
|
1266
|
-
...
|
|
1267
|
-
method:
|
|
1362
|
+
...v30.object({
|
|
1363
|
+
method: v30.literal(sparkFlashnetGetJwtMethodName),
|
|
1268
1364
|
params: sparkFlashnetGetJwtParamsSchema,
|
|
1269
|
-
id:
|
|
1365
|
+
id: v30.string()
|
|
1270
1366
|
}).entries
|
|
1271
1367
|
});
|
|
1272
1368
|
|
|
1273
1369
|
// src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
|
|
1274
|
-
var
|
|
1275
|
-
var sparkFlashnetAddLiquidityIntentSchema =
|
|
1276
|
-
type:
|
|
1277
|
-
data:
|
|
1278
|
-
userPublicKey:
|
|
1279
|
-
poolId:
|
|
1280
|
-
assetAAmount:
|
|
1281
|
-
assetBAmount:
|
|
1282
|
-
assetAMinAmountIn:
|
|
1283
|
-
assetBMinAmountIn:
|
|
1284
|
-
assetATransferId:
|
|
1285
|
-
assetBTransferId:
|
|
1286
|
-
nonce:
|
|
1370
|
+
var v31 = __toESM(require("valibot"));
|
|
1371
|
+
var sparkFlashnetAddLiquidityIntentSchema = v31.object({
|
|
1372
|
+
type: v31.literal("addLiquidity"),
|
|
1373
|
+
data: v31.object({
|
|
1374
|
+
userPublicKey: v31.string(),
|
|
1375
|
+
poolId: v31.string(),
|
|
1376
|
+
assetAAmount: v31.string(),
|
|
1377
|
+
assetBAmount: v31.string(),
|
|
1378
|
+
assetAMinAmountIn: v31.string(),
|
|
1379
|
+
assetBMinAmountIn: v31.string(),
|
|
1380
|
+
assetATransferId: v31.string(),
|
|
1381
|
+
assetBTransferId: v31.string(),
|
|
1382
|
+
nonce: v31.string()
|
|
1287
1383
|
})
|
|
1288
1384
|
});
|
|
1289
1385
|
|
|
1290
1386
|
// src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
|
|
1291
|
-
var
|
|
1292
|
-
var sparkFlashnetClawbackIntentSchema =
|
|
1293
|
-
type:
|
|
1294
|
-
data:
|
|
1295
|
-
senderPublicKey:
|
|
1296
|
-
sparkTransferId:
|
|
1297
|
-
lpIdentityPublicKey:
|
|
1298
|
-
nonce:
|
|
1387
|
+
var v32 = __toESM(require("valibot"));
|
|
1388
|
+
var sparkFlashnetClawbackIntentSchema = v32.object({
|
|
1389
|
+
type: v32.literal("clawback"),
|
|
1390
|
+
data: v32.object({
|
|
1391
|
+
senderPublicKey: v32.string(),
|
|
1392
|
+
sparkTransferId: v32.string(),
|
|
1393
|
+
lpIdentityPublicKey: v32.string(),
|
|
1394
|
+
nonce: v32.string()
|
|
1299
1395
|
})
|
|
1300
1396
|
});
|
|
1301
1397
|
|
|
1302
1398
|
// src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
|
|
1303
|
-
var
|
|
1304
|
-
var sparkFlashnetConfirmInitialDepositIntentSchema =
|
|
1305
|
-
type:
|
|
1306
|
-
data:
|
|
1307
|
-
poolId:
|
|
1308
|
-
assetASparkTransferId:
|
|
1309
|
-
poolOwnerPublicKey:
|
|
1310
|
-
nonce:
|
|
1399
|
+
var v33 = __toESM(require("valibot"));
|
|
1400
|
+
var sparkFlashnetConfirmInitialDepositIntentSchema = v33.object({
|
|
1401
|
+
type: v33.literal("confirmInitialDeposit"),
|
|
1402
|
+
data: v33.object({
|
|
1403
|
+
poolId: v33.string(),
|
|
1404
|
+
assetASparkTransferId: v33.string(),
|
|
1405
|
+
poolOwnerPublicKey: v33.string(),
|
|
1406
|
+
nonce: v33.string()
|
|
1311
1407
|
})
|
|
1312
1408
|
});
|
|
1313
1409
|
|
|
1314
1410
|
// src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
|
|
1315
|
-
var
|
|
1316
|
-
var sparkFlashnetCreateConstantProductPoolIntentSchema =
|
|
1317
|
-
type:
|
|
1318
|
-
data:
|
|
1319
|
-
poolOwnerPublicKey:
|
|
1320
|
-
assetAAddress:
|
|
1321
|
-
assetBAddress:
|
|
1322
|
-
lpFeeRateBps:
|
|
1323
|
-
totalHostFeeRateBps:
|
|
1324
|
-
nonce:
|
|
1411
|
+
var v34 = __toESM(require("valibot"));
|
|
1412
|
+
var sparkFlashnetCreateConstantProductPoolIntentSchema = v34.object({
|
|
1413
|
+
type: v34.literal("createConstantProductPool"),
|
|
1414
|
+
data: v34.object({
|
|
1415
|
+
poolOwnerPublicKey: v34.string(),
|
|
1416
|
+
assetAAddress: v34.string(),
|
|
1417
|
+
assetBAddress: v34.string(),
|
|
1418
|
+
lpFeeRateBps: v34.union([v34.number(), v34.string()]),
|
|
1419
|
+
totalHostFeeRateBps: v34.union([v34.number(), v34.string()]),
|
|
1420
|
+
nonce: v34.string()
|
|
1325
1421
|
})
|
|
1326
1422
|
});
|
|
1327
1423
|
|
|
1328
1424
|
// src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
|
|
1329
|
-
var
|
|
1330
|
-
var sparkFlashnetCreateSingleSidedPoolIntentSchema =
|
|
1331
|
-
type:
|
|
1332
|
-
data:
|
|
1333
|
-
assetAAddress:
|
|
1334
|
-
assetBAddress:
|
|
1335
|
-
assetAInitialReserve:
|
|
1336
|
-
virtualReserveA:
|
|
1337
|
-
virtualReserveB:
|
|
1338
|
-
threshold:
|
|
1339
|
-
lpFeeRateBps:
|
|
1340
|
-
totalHostFeeRateBps:
|
|
1341
|
-
poolOwnerPublicKey:
|
|
1342
|
-
nonce:
|
|
1425
|
+
var v35 = __toESM(require("valibot"));
|
|
1426
|
+
var sparkFlashnetCreateSingleSidedPoolIntentSchema = v35.object({
|
|
1427
|
+
type: v35.literal("createSingleSidedPool"),
|
|
1428
|
+
data: v35.object({
|
|
1429
|
+
assetAAddress: v35.string(),
|
|
1430
|
+
assetBAddress: v35.string(),
|
|
1431
|
+
assetAInitialReserve: v35.string(),
|
|
1432
|
+
virtualReserveA: v35.union([v35.number(), v35.string()]),
|
|
1433
|
+
virtualReserveB: v35.union([v35.number(), v35.string()]),
|
|
1434
|
+
threshold: v35.union([v35.number(), v35.string()]),
|
|
1435
|
+
lpFeeRateBps: v35.union([v35.number(), v35.string()]),
|
|
1436
|
+
totalHostFeeRateBps: v35.union([v35.number(), v35.string()]),
|
|
1437
|
+
poolOwnerPublicKey: v35.string(),
|
|
1438
|
+
nonce: v35.string()
|
|
1343
1439
|
})
|
|
1344
1440
|
});
|
|
1345
1441
|
|
|
1346
1442
|
// src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
|
|
1347
|
-
var
|
|
1348
|
-
var sparkFlashnetRemoveLiquidityIntentSchema =
|
|
1349
|
-
type:
|
|
1350
|
-
data:
|
|
1351
|
-
userPublicKey:
|
|
1352
|
-
poolId:
|
|
1353
|
-
lpTokensToRemove:
|
|
1354
|
-
nonce:
|
|
1443
|
+
var v36 = __toESM(require("valibot"));
|
|
1444
|
+
var sparkFlashnetRemoveLiquidityIntentSchema = v36.object({
|
|
1445
|
+
type: v36.literal("removeLiquidity"),
|
|
1446
|
+
data: v36.object({
|
|
1447
|
+
userPublicKey: v36.string(),
|
|
1448
|
+
poolId: v36.string(),
|
|
1449
|
+
lpTokensToRemove: v36.string(),
|
|
1450
|
+
nonce: v36.string()
|
|
1355
1451
|
})
|
|
1356
1452
|
});
|
|
1357
1453
|
|
|
1358
1454
|
// src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
|
|
1359
|
-
var
|
|
1360
|
-
var sparkFlashnetRouteSwapIntentSchema =
|
|
1361
|
-
type:
|
|
1362
|
-
data:
|
|
1363
|
-
userPublicKey:
|
|
1364
|
-
initialSparkTransferId:
|
|
1365
|
-
hops:
|
|
1366
|
-
|
|
1367
|
-
poolId:
|
|
1368
|
-
inputAssetAddress:
|
|
1369
|
-
outputAssetAddress:
|
|
1370
|
-
hopIntegratorFeeRateBps:
|
|
1455
|
+
var v37 = __toESM(require("valibot"));
|
|
1456
|
+
var sparkFlashnetRouteSwapIntentSchema = v37.object({
|
|
1457
|
+
type: v37.literal("executeRouteSwap"),
|
|
1458
|
+
data: v37.object({
|
|
1459
|
+
userPublicKey: v37.string(),
|
|
1460
|
+
initialSparkTransferId: v37.string(),
|
|
1461
|
+
hops: v37.array(
|
|
1462
|
+
v37.object({
|
|
1463
|
+
poolId: v37.string(),
|
|
1464
|
+
inputAssetAddress: v37.string(),
|
|
1465
|
+
outputAssetAddress: v37.string(),
|
|
1466
|
+
hopIntegratorFeeRateBps: v37.optional(v37.union([v37.number(), v37.string()]))
|
|
1371
1467
|
})
|
|
1372
1468
|
),
|
|
1373
|
-
inputAmount:
|
|
1374
|
-
maxRouteSlippageBps:
|
|
1375
|
-
minAmountOut:
|
|
1376
|
-
defaultIntegratorFeeRateBps:
|
|
1377
|
-
nonce:
|
|
1469
|
+
inputAmount: v37.string(),
|
|
1470
|
+
maxRouteSlippageBps: v37.union([v37.number(), v37.string()]),
|
|
1471
|
+
minAmountOut: v37.string(),
|
|
1472
|
+
defaultIntegratorFeeRateBps: v37.optional(v37.union([v37.number(), v37.string()])),
|
|
1473
|
+
nonce: v37.string()
|
|
1378
1474
|
})
|
|
1379
1475
|
});
|
|
1380
1476
|
|
|
1381
1477
|
// src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
|
|
1382
|
-
var
|
|
1383
|
-
var sparkFlashnetSwapIntentSchema =
|
|
1384
|
-
type:
|
|
1385
|
-
data:
|
|
1386
|
-
userPublicKey:
|
|
1387
|
-
poolId:
|
|
1388
|
-
transferId:
|
|
1389
|
-
assetInAddress:
|
|
1390
|
-
assetOutAddress:
|
|
1391
|
-
amountIn:
|
|
1392
|
-
maxSlippageBps:
|
|
1393
|
-
minAmountOut:
|
|
1394
|
-
totalIntegratorFeeRateBps:
|
|
1395
|
-
nonce:
|
|
1478
|
+
var v38 = __toESM(require("valibot"));
|
|
1479
|
+
var sparkFlashnetSwapIntentSchema = v38.object({
|
|
1480
|
+
type: v38.literal("executeSwap"),
|
|
1481
|
+
data: v38.object({
|
|
1482
|
+
userPublicKey: v38.string(),
|
|
1483
|
+
poolId: v38.string(),
|
|
1484
|
+
transferId: v38.string(),
|
|
1485
|
+
assetInAddress: v38.string(),
|
|
1486
|
+
assetOutAddress: v38.string(),
|
|
1487
|
+
amountIn: v38.string(),
|
|
1488
|
+
maxSlippageBps: v38.union([v38.number(), v38.string()]),
|
|
1489
|
+
minAmountOut: v38.string(),
|
|
1490
|
+
totalIntegratorFeeRateBps: v38.optional(v38.union([v38.number(), v38.string()])),
|
|
1491
|
+
nonce: v38.string()
|
|
1396
1492
|
})
|
|
1397
1493
|
});
|
|
1398
1494
|
|
|
1399
1495
|
// src/request/types/sparkMethods/flashnetMethods/signIntent.ts
|
|
1400
|
-
var
|
|
1496
|
+
var v39 = __toESM(require("valibot"));
|
|
1401
1497
|
var sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
|
|
1402
|
-
var sparkFlashnetSignIntentParamsSchema =
|
|
1498
|
+
var sparkFlashnetSignIntentParamsSchema = v39.union([
|
|
1403
1499
|
sparkFlashnetSwapIntentSchema,
|
|
1404
1500
|
sparkFlashnetRouteSwapIntentSchema,
|
|
1405
1501
|
sparkFlashnetAddLiquidityIntentSchema,
|
|
@@ -1409,109 +1505,109 @@ var sparkFlashnetSignIntentParamsSchema = v25.union([
|
|
|
1409
1505
|
sparkFlashnetCreateSingleSidedPoolIntentSchema,
|
|
1410
1506
|
sparkFlashnetRemoveLiquidityIntentSchema
|
|
1411
1507
|
]);
|
|
1412
|
-
var sparkFlashnetSignIntentResultSchema =
|
|
1508
|
+
var sparkFlashnetSignIntentResultSchema = v39.object({
|
|
1413
1509
|
/**
|
|
1414
1510
|
* The signed intent as a hex string.
|
|
1415
1511
|
*/
|
|
1416
|
-
signature:
|
|
1512
|
+
signature: v39.string()
|
|
1417
1513
|
});
|
|
1418
|
-
var sparkFlashnetSignIntentRequestMessageSchema =
|
|
1514
|
+
var sparkFlashnetSignIntentRequestMessageSchema = v39.object({
|
|
1419
1515
|
...rpcRequestMessageSchema.entries,
|
|
1420
|
-
...
|
|
1421
|
-
method:
|
|
1516
|
+
...v39.object({
|
|
1517
|
+
method: v39.literal(sparkFlashnetSignIntentMethodName),
|
|
1422
1518
|
params: sparkFlashnetSignIntentParamsSchema,
|
|
1423
|
-
id:
|
|
1519
|
+
id: v39.string()
|
|
1424
1520
|
}).entries
|
|
1425
1521
|
});
|
|
1426
1522
|
|
|
1427
1523
|
// src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.ts
|
|
1428
|
-
var
|
|
1524
|
+
var v40 = __toESM(require("valibot"));
|
|
1429
1525
|
var sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
|
|
1430
|
-
var sparkFlashnetSignStructuredMessageParamsSchema =
|
|
1431
|
-
message:
|
|
1526
|
+
var sparkFlashnetSignStructuredMessageParamsSchema = v40.object({
|
|
1527
|
+
message: v40.string()
|
|
1432
1528
|
});
|
|
1433
|
-
var sparkFlashnetSignStructuredMessageResultSchema =
|
|
1434
|
-
message:
|
|
1435
|
-
signature:
|
|
1529
|
+
var sparkFlashnetSignStructuredMessageResultSchema = v40.object({
|
|
1530
|
+
message: v40.string(),
|
|
1531
|
+
signature: v40.string()
|
|
1436
1532
|
});
|
|
1437
|
-
var sparkFlashnetSignStructuredMessageRequestMessageSchema =
|
|
1533
|
+
var sparkFlashnetSignStructuredMessageRequestMessageSchema = v40.object({
|
|
1438
1534
|
...rpcRequestMessageSchema.entries,
|
|
1439
|
-
...
|
|
1440
|
-
method:
|
|
1535
|
+
...v40.object({
|
|
1536
|
+
method: v40.literal(sparkFlashnetSignStructuredMessageMethodName),
|
|
1441
1537
|
params: sparkFlashnetSignStructuredMessageParamsSchema,
|
|
1442
|
-
id:
|
|
1538
|
+
id: v40.string()
|
|
1443
1539
|
}).entries
|
|
1444
1540
|
});
|
|
1445
1541
|
|
|
1446
1542
|
// src/request/types/sparkMethods/getAddresses.ts
|
|
1447
|
-
var
|
|
1543
|
+
var v41 = __toESM(require("valibot"));
|
|
1448
1544
|
var sparkGetAddressesMethodName = "spark_getAddresses";
|
|
1449
|
-
var sparkGetAddressesParamsSchema =
|
|
1450
|
-
|
|
1545
|
+
var sparkGetAddressesParamsSchema = v41.nullish(
|
|
1546
|
+
v41.object({
|
|
1451
1547
|
/**
|
|
1452
1548
|
* A message to be displayed to the user in the request prompt.
|
|
1453
1549
|
*/
|
|
1454
|
-
message:
|
|
1550
|
+
message: v41.optional(v41.string())
|
|
1455
1551
|
})
|
|
1456
1552
|
);
|
|
1457
|
-
var sparkGetAddressesResultSchema =
|
|
1553
|
+
var sparkGetAddressesResultSchema = v41.object({
|
|
1458
1554
|
/**
|
|
1459
1555
|
* The addresses generated for the given purposes.
|
|
1460
1556
|
*/
|
|
1461
|
-
addresses:
|
|
1557
|
+
addresses: v41.array(addressSchema),
|
|
1462
1558
|
network: getNetworkResultSchema
|
|
1463
1559
|
});
|
|
1464
|
-
var sparkGetAddressesRequestMessageSchema =
|
|
1560
|
+
var sparkGetAddressesRequestMessageSchema = v41.object({
|
|
1465
1561
|
...rpcRequestMessageSchema.entries,
|
|
1466
|
-
...
|
|
1467
|
-
method:
|
|
1562
|
+
...v41.object({
|
|
1563
|
+
method: v41.literal(sparkGetAddressesMethodName),
|
|
1468
1564
|
params: sparkGetAddressesParamsSchema,
|
|
1469
|
-
id:
|
|
1565
|
+
id: v41.string()
|
|
1470
1566
|
}).entries
|
|
1471
1567
|
});
|
|
1472
1568
|
|
|
1473
1569
|
// src/request/types/sparkMethods/getBalance.ts
|
|
1474
|
-
var
|
|
1570
|
+
var v42 = __toESM(require("valibot"));
|
|
1475
1571
|
var sparkGetBalanceMethodName = "spark_getBalance";
|
|
1476
|
-
var sparkGetBalanceParamsSchema =
|
|
1477
|
-
var sparkGetBalanceResultSchema =
|
|
1572
|
+
var sparkGetBalanceParamsSchema = v42.nullish(v42.null());
|
|
1573
|
+
var sparkGetBalanceResultSchema = v42.object({
|
|
1478
1574
|
/**
|
|
1479
1575
|
* The Spark Bitcoin address balance in sats in string form.
|
|
1480
1576
|
*/
|
|
1481
|
-
balance:
|
|
1482
|
-
tokenBalances:
|
|
1483
|
-
|
|
1577
|
+
balance: v42.string(),
|
|
1578
|
+
tokenBalances: v42.array(
|
|
1579
|
+
v42.object({
|
|
1484
1580
|
/* The address balance of the token in string form as it can overflow a js number */
|
|
1485
|
-
balance:
|
|
1486
|
-
tokenMetadata:
|
|
1487
|
-
tokenIdentifier:
|
|
1488
|
-
tokenName:
|
|
1489
|
-
tokenTicker:
|
|
1490
|
-
decimals:
|
|
1491
|
-
maxSupply:
|
|
1581
|
+
balance: v42.string(),
|
|
1582
|
+
tokenMetadata: v42.object({
|
|
1583
|
+
tokenIdentifier: v42.string(),
|
|
1584
|
+
tokenName: v42.string(),
|
|
1585
|
+
tokenTicker: v42.string(),
|
|
1586
|
+
decimals: v42.number(),
|
|
1587
|
+
maxSupply: v42.string()
|
|
1492
1588
|
})
|
|
1493
1589
|
})
|
|
1494
1590
|
)
|
|
1495
1591
|
});
|
|
1496
|
-
var sparkGetBalanceRequestMessageSchema =
|
|
1592
|
+
var sparkGetBalanceRequestMessageSchema = v42.object({
|
|
1497
1593
|
...rpcRequestMessageSchema.entries,
|
|
1498
|
-
...
|
|
1499
|
-
method:
|
|
1594
|
+
...v42.object({
|
|
1595
|
+
method: v42.literal(sparkGetBalanceMethodName),
|
|
1500
1596
|
params: sparkGetBalanceParamsSchema,
|
|
1501
|
-
id:
|
|
1597
|
+
id: v42.string()
|
|
1502
1598
|
}).entries
|
|
1503
1599
|
});
|
|
1504
1600
|
|
|
1505
1601
|
// src/request/types/sparkMethods/signMessage.ts
|
|
1506
|
-
var
|
|
1602
|
+
var v43 = __toESM(require("valibot"));
|
|
1507
1603
|
var sparkSignMessageMethodName = "spark_signMessage";
|
|
1508
|
-
var sparkSignMessageParamsSchema =
|
|
1604
|
+
var sparkSignMessageParamsSchema = v43.object({
|
|
1509
1605
|
/**
|
|
1510
1606
|
* The message to sign. The message should only consist of valid UTF-8 characters.
|
|
1511
1607
|
*/
|
|
1512
|
-
message:
|
|
1608
|
+
message: v43.string()
|
|
1513
1609
|
});
|
|
1514
|
-
var sparkSignMessageResultSchema =
|
|
1610
|
+
var sparkSignMessageResultSchema = v43.object({
|
|
1515
1611
|
/**
|
|
1516
1612
|
* The signature, encoded in base64, of the message hash.
|
|
1517
1613
|
*
|
|
@@ -1519,98 +1615,98 @@ var sparkSignMessageResultSchema = v29.object({
|
|
|
1519
1615
|
* and the resulting byte array is hashed with SHA256 before signing
|
|
1520
1616
|
* with the private key.
|
|
1521
1617
|
*/
|
|
1522
|
-
signature:
|
|
1618
|
+
signature: v43.string()
|
|
1523
1619
|
});
|
|
1524
|
-
var sparkSignMessageRequestMessageSchema =
|
|
1620
|
+
var sparkSignMessageRequestMessageSchema = v43.object({
|
|
1525
1621
|
...rpcRequestMessageSchema.entries,
|
|
1526
|
-
...
|
|
1527
|
-
method:
|
|
1622
|
+
...v43.object({
|
|
1623
|
+
method: v43.literal(sparkSignMessageMethodName),
|
|
1528
1624
|
params: sparkSignMessageParamsSchema,
|
|
1529
|
-
id:
|
|
1625
|
+
id: v43.string()
|
|
1530
1626
|
}).entries
|
|
1531
1627
|
});
|
|
1532
1628
|
|
|
1533
1629
|
// src/request/types/sparkMethods/transfer.ts
|
|
1534
|
-
var
|
|
1630
|
+
var v44 = __toESM(require("valibot"));
|
|
1535
1631
|
var sparkTransferMethodName = "spark_transfer";
|
|
1536
|
-
var sparkTransferParamsSchema =
|
|
1632
|
+
var sparkTransferParamsSchema = v44.object({
|
|
1537
1633
|
/**
|
|
1538
1634
|
* Amount of SATS to transfer as a string or number.
|
|
1539
1635
|
*/
|
|
1540
|
-
amountSats:
|
|
1636
|
+
amountSats: v44.union([v44.number(), v44.string()]),
|
|
1541
1637
|
/**
|
|
1542
1638
|
* The recipient's spark address.
|
|
1543
1639
|
*/
|
|
1544
|
-
receiverSparkAddress:
|
|
1640
|
+
receiverSparkAddress: v44.string()
|
|
1545
1641
|
});
|
|
1546
|
-
var sparkTransferResultSchema =
|
|
1642
|
+
var sparkTransferResultSchema = v44.object({
|
|
1547
1643
|
/**
|
|
1548
1644
|
* The ID of the transaction.
|
|
1549
1645
|
*/
|
|
1550
|
-
id:
|
|
1646
|
+
id: v44.string()
|
|
1551
1647
|
});
|
|
1552
|
-
var sparkTransferRequestMessageSchema =
|
|
1648
|
+
var sparkTransferRequestMessageSchema = v44.object({
|
|
1553
1649
|
...rpcRequestMessageSchema.entries,
|
|
1554
|
-
...
|
|
1555
|
-
method:
|
|
1650
|
+
...v44.object({
|
|
1651
|
+
method: v44.literal(sparkTransferMethodName),
|
|
1556
1652
|
params: sparkTransferParamsSchema,
|
|
1557
|
-
id:
|
|
1653
|
+
id: v44.string()
|
|
1558
1654
|
}).entries
|
|
1559
1655
|
});
|
|
1560
1656
|
|
|
1561
1657
|
// src/request/types/sparkMethods/transferToken.ts
|
|
1562
|
-
var
|
|
1658
|
+
var v45 = __toESM(require("valibot"));
|
|
1563
1659
|
var sparkTransferTokenMethodName = "spark_transferToken";
|
|
1564
|
-
var sparkTransferTokenParamsSchema =
|
|
1660
|
+
var sparkTransferTokenParamsSchema = v45.object({
|
|
1565
1661
|
/**
|
|
1566
1662
|
* Amount of units of the token to transfer as a string or number.
|
|
1567
1663
|
*/
|
|
1568
|
-
tokenAmount:
|
|
1664
|
+
tokenAmount: v45.union([v45.number(), v45.string()]),
|
|
1569
1665
|
/**
|
|
1570
1666
|
* The Bech32m token identifier.
|
|
1571
1667
|
*/
|
|
1572
|
-
tokenIdentifier:
|
|
1668
|
+
tokenIdentifier: v45.string(),
|
|
1573
1669
|
/**
|
|
1574
1670
|
* The recipient's spark address.
|
|
1575
1671
|
*/
|
|
1576
|
-
receiverSparkAddress:
|
|
1672
|
+
receiverSparkAddress: v45.string()
|
|
1577
1673
|
});
|
|
1578
|
-
var sparkTransferTokenResultSchema =
|
|
1674
|
+
var sparkTransferTokenResultSchema = v45.object({
|
|
1579
1675
|
/**
|
|
1580
1676
|
* The ID of the transaction.
|
|
1581
1677
|
*/
|
|
1582
|
-
id:
|
|
1678
|
+
id: v45.string()
|
|
1583
1679
|
});
|
|
1584
|
-
var sparkTransferTokenRequestMessageSchema =
|
|
1680
|
+
var sparkTransferTokenRequestMessageSchema = v45.object({
|
|
1585
1681
|
...rpcRequestMessageSchema.entries,
|
|
1586
|
-
...
|
|
1587
|
-
method:
|
|
1682
|
+
...v45.object({
|
|
1683
|
+
method: v45.literal(sparkTransferTokenMethodName),
|
|
1588
1684
|
params: sparkTransferTokenParamsSchema,
|
|
1589
|
-
id:
|
|
1685
|
+
id: v45.string()
|
|
1590
1686
|
}).entries
|
|
1591
1687
|
});
|
|
1592
1688
|
|
|
1593
1689
|
// src/request/types/stxMethods/callContract.ts
|
|
1594
|
-
var
|
|
1690
|
+
var v46 = __toESM(require("valibot"));
|
|
1595
1691
|
var stxCallContractMethodName = "stx_callContract";
|
|
1596
|
-
var stxCallContractParamsSchema =
|
|
1692
|
+
var stxCallContractParamsSchema = v46.object({
|
|
1597
1693
|
/**
|
|
1598
1694
|
* The contract principal.
|
|
1599
1695
|
*
|
|
1600
1696
|
* E.g. `"SPKE...GD5C.my-contract"`
|
|
1601
1697
|
*/
|
|
1602
|
-
contract:
|
|
1698
|
+
contract: v46.string(),
|
|
1603
1699
|
/**
|
|
1604
1700
|
* The name of the function to call.
|
|
1605
1701
|
*
|
|
1606
1702
|
* Note: spec changes ongoing,
|
|
1607
1703
|
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
1608
1704
|
*/
|
|
1609
|
-
functionName:
|
|
1705
|
+
functionName: v46.string(),
|
|
1610
1706
|
/**
|
|
1611
1707
|
* @deprecated in favor of `functionArgs` for @stacks/connect compatibility
|
|
1612
1708
|
*/
|
|
1613
|
-
arguments:
|
|
1709
|
+
arguments: v46.optional(v46.array(v46.string())),
|
|
1614
1710
|
/**
|
|
1615
1711
|
* The function's arguments. The arguments are expected to be hex-encoded
|
|
1616
1712
|
* strings of Clarity values.
|
|
@@ -1625,274 +1721,274 @@ var stxCallContractParamsSchema = v32.object({
|
|
|
1625
1721
|
* const hexArgs = functionArgs.map(cvToHex);
|
|
1626
1722
|
* ```
|
|
1627
1723
|
*/
|
|
1628
|
-
functionArgs:
|
|
1724
|
+
functionArgs: v46.optional(v46.array(v46.string())),
|
|
1629
1725
|
/**
|
|
1630
1726
|
* The post conditions to apply to the contract call.
|
|
1631
1727
|
*/
|
|
1632
|
-
postConditions:
|
|
1728
|
+
postConditions: v46.optional(v46.array(v46.string())),
|
|
1633
1729
|
/**
|
|
1634
1730
|
* The mode to apply to the post conditions.
|
|
1635
1731
|
*/
|
|
1636
|
-
postConditionMode:
|
|
1732
|
+
postConditionMode: v46.optional(v46.union([v46.literal("allow"), v46.literal("deny")]))
|
|
1637
1733
|
});
|
|
1638
|
-
var stxCallContractResultSchema =
|
|
1734
|
+
var stxCallContractResultSchema = v46.object({
|
|
1639
1735
|
/**
|
|
1640
1736
|
* The ID of the transaction.
|
|
1641
1737
|
*/
|
|
1642
|
-
txid:
|
|
1738
|
+
txid: v46.string(),
|
|
1643
1739
|
/**
|
|
1644
1740
|
* A Stacks transaction as a hex-encoded string.
|
|
1645
1741
|
*/
|
|
1646
|
-
transaction:
|
|
1742
|
+
transaction: v46.string()
|
|
1647
1743
|
});
|
|
1648
|
-
var stxCallContractRequestMessageSchema =
|
|
1744
|
+
var stxCallContractRequestMessageSchema = v46.object({
|
|
1649
1745
|
...rpcRequestMessageSchema.entries,
|
|
1650
|
-
...
|
|
1651
|
-
method:
|
|
1746
|
+
...v46.object({
|
|
1747
|
+
method: v46.literal(stxCallContractMethodName),
|
|
1652
1748
|
params: stxCallContractParamsSchema,
|
|
1653
|
-
id:
|
|
1749
|
+
id: v46.string()
|
|
1654
1750
|
}).entries
|
|
1655
1751
|
});
|
|
1656
1752
|
|
|
1657
1753
|
// src/request/types/stxMethods/deployContract.ts
|
|
1658
|
-
var
|
|
1754
|
+
var v47 = __toESM(require("valibot"));
|
|
1659
1755
|
var stxDeployContractMethodName = "stx_deployContract";
|
|
1660
|
-
var stxDeployContractParamsSchema =
|
|
1756
|
+
var stxDeployContractParamsSchema = v47.object({
|
|
1661
1757
|
/**
|
|
1662
1758
|
* Name of the contract.
|
|
1663
1759
|
*/
|
|
1664
|
-
name:
|
|
1760
|
+
name: v47.string(),
|
|
1665
1761
|
/**
|
|
1666
1762
|
* The source code of the Clarity contract.
|
|
1667
1763
|
*/
|
|
1668
|
-
clarityCode:
|
|
1764
|
+
clarityCode: v47.string(),
|
|
1669
1765
|
/**
|
|
1670
1766
|
* The version of the Clarity contract.
|
|
1671
1767
|
*/
|
|
1672
|
-
clarityVersion:
|
|
1768
|
+
clarityVersion: v47.optional(v47.number()),
|
|
1673
1769
|
/**
|
|
1674
1770
|
* The post conditions to apply to the contract call.
|
|
1675
1771
|
*/
|
|
1676
|
-
postConditions:
|
|
1772
|
+
postConditions: v47.optional(v47.array(v47.string())),
|
|
1677
1773
|
/**
|
|
1678
1774
|
* The mode to apply to the post conditions.
|
|
1679
1775
|
*/
|
|
1680
|
-
postConditionMode:
|
|
1776
|
+
postConditionMode: v47.optional(v47.union([v47.literal("allow"), v47.literal("deny")]))
|
|
1681
1777
|
});
|
|
1682
|
-
var stxDeployContractResultSchema =
|
|
1778
|
+
var stxDeployContractResultSchema = v47.object({
|
|
1683
1779
|
/**
|
|
1684
1780
|
* The ID of the transaction.
|
|
1685
1781
|
*/
|
|
1686
|
-
txid:
|
|
1782
|
+
txid: v47.string(),
|
|
1687
1783
|
/**
|
|
1688
1784
|
* A Stacks transaction as a hex-encoded string.
|
|
1689
1785
|
*/
|
|
1690
|
-
transaction:
|
|
1786
|
+
transaction: v47.string()
|
|
1691
1787
|
});
|
|
1692
|
-
var stxDeployContractRequestMessageSchema =
|
|
1788
|
+
var stxDeployContractRequestMessageSchema = v47.object({
|
|
1693
1789
|
...rpcRequestMessageSchema.entries,
|
|
1694
|
-
...
|
|
1695
|
-
method:
|
|
1790
|
+
...v47.object({
|
|
1791
|
+
method: v47.literal(stxDeployContractMethodName),
|
|
1696
1792
|
params: stxDeployContractParamsSchema,
|
|
1697
|
-
id:
|
|
1793
|
+
id: v47.string()
|
|
1698
1794
|
}).entries
|
|
1699
1795
|
});
|
|
1700
1796
|
|
|
1701
1797
|
// src/request/types/stxMethods/getAccounts.ts
|
|
1702
|
-
var
|
|
1798
|
+
var v48 = __toESM(require("valibot"));
|
|
1703
1799
|
var stxGetAccountsMethodName = "stx_getAccounts";
|
|
1704
|
-
var stxGetAccountsParamsSchema =
|
|
1705
|
-
var stxGetAccountsResultSchema =
|
|
1800
|
+
var stxGetAccountsParamsSchema = v48.nullish(v48.null());
|
|
1801
|
+
var stxGetAccountsResultSchema = v48.object({
|
|
1706
1802
|
/**
|
|
1707
1803
|
* The addresses generated for the given purposes.
|
|
1708
1804
|
*/
|
|
1709
|
-
addresses:
|
|
1710
|
-
|
|
1711
|
-
address:
|
|
1712
|
-
publicKey:
|
|
1713
|
-
gaiaHubUrl:
|
|
1714
|
-
gaiaAppKey:
|
|
1805
|
+
addresses: v48.array(
|
|
1806
|
+
v48.object({
|
|
1807
|
+
address: v48.string(),
|
|
1808
|
+
publicKey: v48.string(),
|
|
1809
|
+
gaiaHubUrl: v48.string(),
|
|
1810
|
+
gaiaAppKey: v48.string()
|
|
1715
1811
|
})
|
|
1716
1812
|
),
|
|
1717
1813
|
network: getNetworkResultSchema
|
|
1718
1814
|
});
|
|
1719
|
-
var stxGetAccountsRequestMessageSchema =
|
|
1815
|
+
var stxGetAccountsRequestMessageSchema = v48.object({
|
|
1720
1816
|
...rpcRequestMessageSchema.entries,
|
|
1721
|
-
...
|
|
1722
|
-
method:
|
|
1817
|
+
...v48.object({
|
|
1818
|
+
method: v48.literal(stxGetAccountsMethodName),
|
|
1723
1819
|
params: stxGetAccountsParamsSchema,
|
|
1724
|
-
id:
|
|
1820
|
+
id: v48.string()
|
|
1725
1821
|
}).entries
|
|
1726
1822
|
});
|
|
1727
1823
|
|
|
1728
1824
|
// src/request/types/stxMethods/getAddresses.ts
|
|
1729
|
-
var
|
|
1825
|
+
var v49 = __toESM(require("valibot"));
|
|
1730
1826
|
var stxGetAddressesMethodName = "stx_getAddresses";
|
|
1731
|
-
var stxGetAddressesParamsSchema =
|
|
1732
|
-
|
|
1827
|
+
var stxGetAddressesParamsSchema = v49.nullish(
|
|
1828
|
+
v49.object({
|
|
1733
1829
|
/**
|
|
1734
1830
|
* A message to be displayed to the user in the request prompt.
|
|
1735
1831
|
*/
|
|
1736
|
-
message:
|
|
1832
|
+
message: v49.optional(v49.string())
|
|
1737
1833
|
})
|
|
1738
1834
|
);
|
|
1739
|
-
var stxGetAddressesResultSchema =
|
|
1835
|
+
var stxGetAddressesResultSchema = v49.object({
|
|
1740
1836
|
/**
|
|
1741
1837
|
* The addresses generated for the given purposes.
|
|
1742
1838
|
*/
|
|
1743
|
-
addresses:
|
|
1839
|
+
addresses: v49.array(addressSchema),
|
|
1744
1840
|
network: getNetworkResultSchema
|
|
1745
1841
|
});
|
|
1746
|
-
var stxGetAddressesRequestMessageSchema =
|
|
1842
|
+
var stxGetAddressesRequestMessageSchema = v49.object({
|
|
1747
1843
|
...rpcRequestMessageSchema.entries,
|
|
1748
|
-
...
|
|
1749
|
-
method:
|
|
1844
|
+
...v49.object({
|
|
1845
|
+
method: v49.literal(stxGetAddressesMethodName),
|
|
1750
1846
|
params: stxGetAddressesParamsSchema,
|
|
1751
|
-
id:
|
|
1847
|
+
id: v49.string()
|
|
1752
1848
|
}).entries
|
|
1753
1849
|
});
|
|
1754
1850
|
|
|
1755
1851
|
// src/request/types/stxMethods/signMessage.ts
|
|
1756
|
-
var
|
|
1852
|
+
var v50 = __toESM(require("valibot"));
|
|
1757
1853
|
var stxSignMessageMethodName = "stx_signMessage";
|
|
1758
|
-
var stxSignMessageParamsSchema =
|
|
1854
|
+
var stxSignMessageParamsSchema = v50.object({
|
|
1759
1855
|
/**
|
|
1760
1856
|
* The message to sign.
|
|
1761
1857
|
*/
|
|
1762
|
-
message:
|
|
1858
|
+
message: v50.string()
|
|
1763
1859
|
});
|
|
1764
|
-
var stxSignMessageResultSchema =
|
|
1860
|
+
var stxSignMessageResultSchema = v50.object({
|
|
1765
1861
|
/**
|
|
1766
1862
|
* The signature of the message.
|
|
1767
1863
|
*/
|
|
1768
|
-
signature:
|
|
1864
|
+
signature: v50.string(),
|
|
1769
1865
|
/**
|
|
1770
1866
|
* The public key used to sign the message.
|
|
1771
1867
|
*/
|
|
1772
|
-
publicKey:
|
|
1868
|
+
publicKey: v50.string()
|
|
1773
1869
|
});
|
|
1774
|
-
var stxSignMessageRequestMessageSchema =
|
|
1870
|
+
var stxSignMessageRequestMessageSchema = v50.object({
|
|
1775
1871
|
...rpcRequestMessageSchema.entries,
|
|
1776
|
-
...
|
|
1777
|
-
method:
|
|
1872
|
+
...v50.object({
|
|
1873
|
+
method: v50.literal(stxSignMessageMethodName),
|
|
1778
1874
|
params: stxSignMessageParamsSchema,
|
|
1779
|
-
id:
|
|
1875
|
+
id: v50.string()
|
|
1780
1876
|
}).entries
|
|
1781
1877
|
});
|
|
1782
1878
|
|
|
1783
1879
|
// src/request/types/stxMethods/signStructuredMessage.ts
|
|
1784
|
-
var
|
|
1880
|
+
var v51 = __toESM(require("valibot"));
|
|
1785
1881
|
var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
|
|
1786
|
-
var stxSignStructuredMessageParamsSchema =
|
|
1882
|
+
var stxSignStructuredMessageParamsSchema = v51.object({
|
|
1787
1883
|
/**
|
|
1788
1884
|
* The domain to be signed.
|
|
1789
1885
|
*/
|
|
1790
|
-
domain:
|
|
1886
|
+
domain: v51.string(),
|
|
1791
1887
|
/**
|
|
1792
1888
|
* Message payload to be signed.
|
|
1793
1889
|
*/
|
|
1794
|
-
message:
|
|
1890
|
+
message: v51.string(),
|
|
1795
1891
|
/**
|
|
1796
1892
|
* The public key to sign the message with.
|
|
1797
1893
|
*/
|
|
1798
|
-
publicKey:
|
|
1894
|
+
publicKey: v51.optional(v51.string())
|
|
1799
1895
|
});
|
|
1800
|
-
var stxSignStructuredMessageResultSchema =
|
|
1896
|
+
var stxSignStructuredMessageResultSchema = v51.object({
|
|
1801
1897
|
/**
|
|
1802
1898
|
* Signature of the message.
|
|
1803
1899
|
*/
|
|
1804
|
-
signature:
|
|
1900
|
+
signature: v51.string(),
|
|
1805
1901
|
/**
|
|
1806
1902
|
* Public key as hex-encoded string.
|
|
1807
1903
|
*/
|
|
1808
|
-
publicKey:
|
|
1904
|
+
publicKey: v51.string()
|
|
1809
1905
|
});
|
|
1810
|
-
var stxSignStructuredMessageRequestMessageSchema =
|
|
1906
|
+
var stxSignStructuredMessageRequestMessageSchema = v51.object({
|
|
1811
1907
|
...rpcRequestMessageSchema.entries,
|
|
1812
|
-
...
|
|
1813
|
-
method:
|
|
1908
|
+
...v51.object({
|
|
1909
|
+
method: v51.literal(stxSignStructuredMessageMethodName),
|
|
1814
1910
|
params: stxSignStructuredMessageParamsSchema,
|
|
1815
|
-
id:
|
|
1911
|
+
id: v51.string()
|
|
1816
1912
|
}).entries
|
|
1817
1913
|
});
|
|
1818
1914
|
|
|
1819
1915
|
// src/request/types/stxMethods/signTransaction.ts
|
|
1820
|
-
var
|
|
1916
|
+
var v52 = __toESM(require("valibot"));
|
|
1821
1917
|
var stxSignTransactionMethodName = "stx_signTransaction";
|
|
1822
|
-
var stxSignTransactionParamsSchema =
|
|
1918
|
+
var stxSignTransactionParamsSchema = v52.object({
|
|
1823
1919
|
/**
|
|
1824
1920
|
* The transaction to sign as a hex-encoded string.
|
|
1825
1921
|
*/
|
|
1826
|
-
transaction:
|
|
1922
|
+
transaction: v52.string(),
|
|
1827
1923
|
/**
|
|
1828
1924
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1829
1925
|
* when not provided.
|
|
1830
1926
|
*/
|
|
1831
|
-
pubkey:
|
|
1927
|
+
pubkey: v52.optional(v52.string()),
|
|
1832
1928
|
/**
|
|
1833
1929
|
* Whether to broadcast the transaction after signing. Defaults to `true`.
|
|
1834
1930
|
*/
|
|
1835
|
-
broadcast:
|
|
1931
|
+
broadcast: v52.optional(v52.boolean())
|
|
1836
1932
|
});
|
|
1837
|
-
var stxSignTransactionResultSchema =
|
|
1933
|
+
var stxSignTransactionResultSchema = v52.object({
|
|
1838
1934
|
/**
|
|
1839
1935
|
* The signed transaction as a hex-encoded string.
|
|
1840
1936
|
*/
|
|
1841
|
-
transaction:
|
|
1937
|
+
transaction: v52.string()
|
|
1842
1938
|
});
|
|
1843
|
-
var stxSignTransactionRequestMessageSchema =
|
|
1939
|
+
var stxSignTransactionRequestMessageSchema = v52.object({
|
|
1844
1940
|
...rpcRequestMessageSchema.entries,
|
|
1845
|
-
...
|
|
1846
|
-
method:
|
|
1941
|
+
...v52.object({
|
|
1942
|
+
method: v52.literal(stxSignTransactionMethodName),
|
|
1847
1943
|
params: stxSignTransactionParamsSchema,
|
|
1848
|
-
id:
|
|
1944
|
+
id: v52.string()
|
|
1849
1945
|
}).entries
|
|
1850
1946
|
});
|
|
1851
1947
|
|
|
1852
1948
|
// src/request/types/stxMethods/signTransactions.ts
|
|
1853
|
-
var
|
|
1949
|
+
var v53 = __toESM(require("valibot"));
|
|
1854
1950
|
var stxSignTransactionsMethodName = "stx_signTransactions";
|
|
1855
|
-
var stxSignTransactionsParamsSchema =
|
|
1951
|
+
var stxSignTransactionsParamsSchema = v53.object({
|
|
1856
1952
|
/**
|
|
1857
1953
|
* The transactions to sign as hex-encoded strings.
|
|
1858
1954
|
*/
|
|
1859
|
-
transactions:
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1955
|
+
transactions: v53.pipe(
|
|
1956
|
+
v53.array(
|
|
1957
|
+
v53.pipe(
|
|
1958
|
+
v53.string(),
|
|
1959
|
+
v53.check((hex) => {
|
|
1864
1960
|
return true;
|
|
1865
1961
|
}, "Invalid hex-encoded Stacks transaction.")
|
|
1866
1962
|
)
|
|
1867
1963
|
),
|
|
1868
|
-
|
|
1964
|
+
v53.minLength(1)
|
|
1869
1965
|
),
|
|
1870
1966
|
/**
|
|
1871
1967
|
* Whether the signed transactions should be broadcast after signing. Defaults
|
|
1872
1968
|
* to `true`.
|
|
1873
1969
|
*/
|
|
1874
|
-
broadcast:
|
|
1970
|
+
broadcast: v53.optional(v53.boolean())
|
|
1875
1971
|
});
|
|
1876
|
-
var stxSignTransactionsResultSchema =
|
|
1972
|
+
var stxSignTransactionsResultSchema = v53.object({
|
|
1877
1973
|
/**
|
|
1878
1974
|
* The signed transactions as hex-encoded strings, in the same order as in the
|
|
1879
1975
|
* sign request.
|
|
1880
1976
|
*/
|
|
1881
|
-
transactions:
|
|
1977
|
+
transactions: v53.array(v53.string())
|
|
1882
1978
|
});
|
|
1883
|
-
var stxSignTransactionsRequestMessageSchema =
|
|
1979
|
+
var stxSignTransactionsRequestMessageSchema = v53.object({
|
|
1884
1980
|
...rpcRequestMessageSchema.entries,
|
|
1885
|
-
...
|
|
1886
|
-
method:
|
|
1981
|
+
...v53.object({
|
|
1982
|
+
method: v53.literal(stxSignTransactionsMethodName),
|
|
1887
1983
|
params: stxSignTransactionsParamsSchema,
|
|
1888
|
-
id:
|
|
1984
|
+
id: v53.string()
|
|
1889
1985
|
}).entries
|
|
1890
1986
|
});
|
|
1891
1987
|
|
|
1892
1988
|
// src/request/types/stxMethods/transferStx.ts
|
|
1893
|
-
var
|
|
1989
|
+
var v54 = __toESM(require("valibot"));
|
|
1894
1990
|
var stxTransferStxMethodName = "stx_transferStx";
|
|
1895
|
-
var stxTransferStxParamsSchema =
|
|
1991
|
+
var stxTransferStxParamsSchema = v54.object({
|
|
1896
1992
|
/**
|
|
1897
1993
|
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
1898
1994
|
* parseable by `BigInt` is acceptable.
|
|
@@ -1905,23 +2001,23 @@ var stxTransferStxParamsSchema = v40.object({
|
|
|
1905
2001
|
* const amount3 = '1234';
|
|
1906
2002
|
* ```
|
|
1907
2003
|
*/
|
|
1908
|
-
amount:
|
|
2004
|
+
amount: v54.union([v54.number(), v54.string()]),
|
|
1909
2005
|
/**
|
|
1910
2006
|
* The recipient's principal.
|
|
1911
2007
|
*/
|
|
1912
|
-
recipient:
|
|
2008
|
+
recipient: v54.string(),
|
|
1913
2009
|
/**
|
|
1914
2010
|
* A string representing the memo.
|
|
1915
2011
|
*/
|
|
1916
|
-
memo:
|
|
2012
|
+
memo: v54.optional(v54.string()),
|
|
1917
2013
|
/**
|
|
1918
2014
|
* Version of parameter format.
|
|
1919
2015
|
*/
|
|
1920
|
-
version:
|
|
2016
|
+
version: v54.optional(v54.string()),
|
|
1921
2017
|
/**
|
|
1922
2018
|
* The mode of the post conditions.
|
|
1923
2019
|
*/
|
|
1924
|
-
postConditionMode:
|
|
2020
|
+
postConditionMode: v54.optional(v54.number()),
|
|
1925
2021
|
/**
|
|
1926
2022
|
* A hex-encoded string representing the post conditions.
|
|
1927
2023
|
*
|
|
@@ -1934,29 +2030,29 @@ var stxTransferStxParamsSchema = v40.object({
|
|
|
1934
2030
|
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
1935
2031
|
* ```
|
|
1936
2032
|
*/
|
|
1937
|
-
postConditions:
|
|
2033
|
+
postConditions: v54.optional(v54.array(v54.string())),
|
|
1938
2034
|
/**
|
|
1939
2035
|
* The public key to sign the transaction with. The wallet may use any key
|
|
1940
2036
|
* when not provided.
|
|
1941
2037
|
*/
|
|
1942
|
-
pubkey:
|
|
2038
|
+
pubkey: v54.optional(v54.string())
|
|
1943
2039
|
});
|
|
1944
|
-
var stxTransferStxResultSchema =
|
|
2040
|
+
var stxTransferStxResultSchema = v54.object({
|
|
1945
2041
|
/**
|
|
1946
2042
|
* The ID of the transaction.
|
|
1947
2043
|
*/
|
|
1948
|
-
txid:
|
|
2044
|
+
txid: v54.string(),
|
|
1949
2045
|
/**
|
|
1950
2046
|
* A Stacks transaction as a hex-encoded string.
|
|
1951
2047
|
*/
|
|
1952
|
-
transaction:
|
|
2048
|
+
transaction: v54.string()
|
|
1953
2049
|
});
|
|
1954
|
-
var stxTransferStxRequestMessageSchema =
|
|
2050
|
+
var stxTransferStxRequestMessageSchema = v54.object({
|
|
1955
2051
|
...rpcRequestMessageSchema.entries,
|
|
1956
|
-
...
|
|
1957
|
-
method:
|
|
2052
|
+
...v54.object({
|
|
2053
|
+
method: v54.literal(stxTransferStxMethodName),
|
|
1958
2054
|
params: stxTransferStxParamsSchema,
|
|
1959
|
-
id:
|
|
2055
|
+
id: v54.string()
|
|
1960
2056
|
}).entries
|
|
1961
2057
|
});
|
|
1962
2058
|
|
|
@@ -1964,13 +2060,13 @@ var stxTransferStxRequestMessageSchema = v40.object({
|
|
|
1964
2060
|
var cache = {};
|
|
1965
2061
|
var requestInternal = async (provider, method, params) => {
|
|
1966
2062
|
const response = await provider.request(method, params);
|
|
1967
|
-
if (
|
|
2063
|
+
if (v55.is(rpcErrorResponseMessageSchema, response)) {
|
|
1968
2064
|
return {
|
|
1969
2065
|
status: "error",
|
|
1970
2066
|
error: response.error
|
|
1971
2067
|
};
|
|
1972
2068
|
}
|
|
1973
|
-
if (
|
|
2069
|
+
if (v55.is(rpcSuccessResponseMessageSchema, response)) {
|
|
1974
2070
|
return {
|
|
1975
2071
|
status: "success",
|
|
1976
2072
|
result: response.result
|
|
@@ -3107,6 +3203,18 @@ var signMultipleTransactions = async (options) => {
|
|
|
3107
3203
|
isProviderInstalled,
|
|
3108
3204
|
networkChangeEventName,
|
|
3109
3205
|
networkChangeSchema,
|
|
3206
|
+
openBridgeMethodName,
|
|
3207
|
+
openBridgeParamsSchema,
|
|
3208
|
+
openBridgeRequestMessageSchema,
|
|
3209
|
+
openBridgeResultSchema,
|
|
3210
|
+
openBuyMethodName,
|
|
3211
|
+
openBuyParamsSchema,
|
|
3212
|
+
openBuyRequestMessageSchema,
|
|
3213
|
+
openBuyResultSchema,
|
|
3214
|
+
openReceiveMethodName,
|
|
3215
|
+
openReceiveParamsSchema,
|
|
3216
|
+
openReceiveRequestMessageSchema,
|
|
3217
|
+
openReceiveResultSchema,
|
|
3110
3218
|
permission,
|
|
3111
3219
|
removeDefaultProvider,
|
|
3112
3220
|
renouncePermissionsMethodName,
|