@settlemint/sdk-js 2.2.3-maina2edb406 → 2.2.3-maina39cf2f4
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/README.md +1 -1
- package/dist/settlemint.cjs +1 -18
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +1 -113
- package/dist/settlemint.d.ts +1 -113
- package/dist/settlemint.mjs +1 -18
- package/dist/settlemint.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -239,7 +239,7 @@ Type representing the platform configuration.
|
|
|
239
239
|
|
|
240
240
|
> **PrivateKey** = `ResultOf`\<*typeof* `PrivateKeyFragment`\>
|
|
241
241
|
|
|
242
|
-
Defined in: [graphql/private-key.ts:
|
|
242
|
+
Defined in: [graphql/private-key.ts:35](https://github.com/settlemint/sdk/blob/v2.2.3/sdk/js/src/graphql/private-key.ts#L35)
|
|
243
243
|
|
|
244
244
|
Type representing a private key entity.
|
|
245
245
|
|
package/dist/settlemint.cjs
CHANGED
|
@@ -1608,15 +1608,6 @@ var PrivateKeyFragment = graphql(`
|
|
|
1608
1608
|
provider
|
|
1609
1609
|
region
|
|
1610
1610
|
address
|
|
1611
|
-
trustedForwarderName
|
|
1612
|
-
trustedForwarderAddress
|
|
1613
|
-
relayerKey {
|
|
1614
|
-
... on PrivateKey {
|
|
1615
|
-
id
|
|
1616
|
-
name
|
|
1617
|
-
uniqueName
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
1611
|
blockchainNodes {
|
|
1621
1612
|
... on BlockchainNode {
|
|
1622
1613
|
id
|
|
@@ -1659,9 +1650,6 @@ var createPrivateKey = graphql(
|
|
|
1659
1650
|
$size: ClusterServiceSize
|
|
1660
1651
|
$type: ClusterServiceType
|
|
1661
1652
|
$blockchainNodes: [ID!]
|
|
1662
|
-
$trustedForwarderName: String
|
|
1663
|
-
$trustedForwarderAddress: String
|
|
1664
|
-
$relayerKey: ID
|
|
1665
1653
|
) {
|
|
1666
1654
|
createPrivateKey(
|
|
1667
1655
|
applicationId: $applicationId
|
|
@@ -1672,9 +1660,6 @@ var createPrivateKey = graphql(
|
|
|
1672
1660
|
size: $size
|
|
1673
1661
|
type: $type
|
|
1674
1662
|
blockchainNodes: $blockchainNodes
|
|
1675
|
-
trustedForwarderName: $trustedForwarderName
|
|
1676
|
-
trustedForwarderAddress: $trustedForwarderAddress
|
|
1677
|
-
relayerKey: $relayerKey
|
|
1678
1663
|
) {
|
|
1679
1664
|
...PrivateKey
|
|
1680
1665
|
}
|
|
@@ -1710,10 +1695,9 @@ var privatekeyRead = (gqlClient) => {
|
|
|
1710
1695
|
};
|
|
1711
1696
|
var privateKeyCreate = (gqlClient) => {
|
|
1712
1697
|
return async (args) => {
|
|
1713
|
-
const { applicationUniqueName, blockchainNodeUniqueNames,
|
|
1698
|
+
const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
|
|
1714
1699
|
const application = await applicationRead(gqlClient)(applicationUniqueName);
|
|
1715
1700
|
const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
|
|
1716
|
-
const relayerKey = relayerKeyUniqueName ? await privatekeyRead(gqlClient)(relayerKeyUniqueName) : void 0;
|
|
1717
1701
|
const platformConfig = await getPlatformConfig(gqlClient)();
|
|
1718
1702
|
const defaultProvider = platformConfig.deploymentEngineTargets.find(
|
|
1719
1703
|
(target) => !target.disabled && target.clusters.some((cluster) => !cluster.disabled)
|
|
@@ -1723,7 +1707,6 @@ var privateKeyCreate = (gqlClient) => {
|
|
|
1723
1707
|
...otherArgs,
|
|
1724
1708
|
applicationId: application.id,
|
|
1725
1709
|
blockchainNodes: blockchainNodes.map((node) => node?.id),
|
|
1726
|
-
relayerKey: relayerKey?.id,
|
|
1727
1710
|
provider: defaultProvider?.id ?? "gke",
|
|
1728
1711
|
region: defaultRegion?.id?.split("-")[1] ?? "europe",
|
|
1729
1712
|
size: "SMALL",
|