@settlemint/sdk-js 2.2.3-preb2eda12 → 2.2.3-prf12d764a

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 CHANGED
@@ -229,7 +229,7 @@ Type representing a middleware entity with subgraphs.
229
229
 
230
230
  > **PlatformConfig** = `ResultOf`\<*typeof* `getPlatformConfigQuery`\>\[`"config"`\]
231
231
 
232
- Defined in: [graphql/platform.ts:51](https://github.com/settlemint/sdk/blob/v2.2.3/sdk/js/src/graphql/platform.ts#L51)
232
+ Defined in: [graphql/platform.ts:56](https://github.com/settlemint/sdk/blob/v2.2.3/sdk/js/src/graphql/platform.ts#L56)
233
233
 
234
234
  Type representing the platform configuration.
235
235
 
@@ -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:35](https://github.com/settlemint/sdk/blob/v2.2.3/sdk/js/src/graphql/private-key.ts#L35)
242
+ Defined in: [graphql/private-key.ts:44](https://github.com/settlemint/sdk/blob/v2.2.3/sdk/js/src/graphql/private-key.ts#L44)
243
243
 
244
244
  Type representing a private key entity.
245
245
 
@@ -1608,6 +1608,15 @@ 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
+ }
1611
1620
  blockchainNodes {
1612
1621
  ... on BlockchainNode {
1613
1622
  id
@@ -1650,6 +1659,9 @@ var createPrivateKey = graphql(
1650
1659
  $size: ClusterServiceSize
1651
1660
  $type: ClusterServiceType
1652
1661
  $blockchainNodes: [ID!]
1662
+ $trustedForwarderName: String
1663
+ $trustedForwarderAddress: String
1664
+ $relayerKey: ID
1653
1665
  ) {
1654
1666
  createPrivateKey(
1655
1667
  applicationId: $applicationId
@@ -1660,6 +1672,9 @@ var createPrivateKey = graphql(
1660
1672
  size: $size
1661
1673
  type: $type
1662
1674
  blockchainNodes: $blockchainNodes
1675
+ trustedForwarderName: $trustedForwarderName
1676
+ trustedForwarderAddress: $trustedForwarderAddress
1677
+ relayerKey: $relayerKey
1663
1678
  ) {
1664
1679
  ...PrivateKey
1665
1680
  }
@@ -1695,9 +1710,10 @@ var privatekeyRead = (gqlClient) => {
1695
1710
  };
1696
1711
  var privateKeyCreate = (gqlClient) => {
1697
1712
  return async (args) => {
1698
- const { applicationUniqueName, blockchainNodeUniqueNames, ...otherArgs } = args;
1713
+ const { applicationUniqueName, blockchainNodeUniqueNames, relayerKeyUniqueName, ...otherArgs } = args;
1699
1714
  const application = await applicationRead(gqlClient)(applicationUniqueName);
1700
1715
  const blockchainNodes = blockchainNodeUniqueNames ? await Promise.all(blockchainNodeUniqueNames.map((uniqueName) => blockchainNodeRead(gqlClient)(uniqueName))) : [];
1716
+ const relayerKey = relayerKeyUniqueName ? await privatekeyRead(gqlClient)(relayerKeyUniqueName) : void 0;
1701
1717
  const platformConfig = await getPlatformConfig(gqlClient)();
1702
1718
  const defaultProvider = platformConfig.deploymentEngineTargets.find(
1703
1719
  (target) => !target.disabled && target.clusters.some((cluster) => !cluster.disabled)
@@ -1707,6 +1723,7 @@ var privateKeyCreate = (gqlClient) => {
1707
1723
  ...otherArgs,
1708
1724
  applicationId: application.id,
1709
1725
  blockchainNodes: blockchainNodes.map((node) => node?.id),
1726
+ relayerKey: relayerKey?.id,
1710
1727
  provider: defaultProvider?.id ?? "gke",
1711
1728
  region: defaultRegion?.id?.split("-")[1] ?? "europe",
1712
1729
  size: "SMALL",