errors) {
+ this.errors = errors;
+ }
+
+ /** Return true if this ValidateLayerZeroChannelResponse object is equal to o. */
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ValidateLayerZeroChannelResponse validateLayerZeroChannelResponse =
+ (ValidateLayerZeroChannelResponse) o;
+ return Objects.equals(this.correct, validateLayerZeroChannelResponse.correct)
+ && Objects.equals(this.errors, validateLayerZeroChannelResponse.errors);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(correct, errors);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ValidateLayerZeroChannelResponse {\n");
+ sb.append(" correct: ").append(toIndentedString(correct)).append("\n");
+ sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ /**
+ * Convert the instance into URL query string.
+ *
+ * @return URL query string
+ */
+ public String toUrlQueryString() {
+ return toUrlQueryString(null);
+ }
+
+ /**
+ * Convert the instance into URL query string.
+ *
+ * @param prefix prefix of the query string
+ * @return URL query string
+ */
+ public String toUrlQueryString(String prefix) {
+ String suffix = "";
+ String containerSuffix = "";
+ String containerPrefix = "";
+ if (prefix == null) {
+ // style=form, explode=true, e.g. /pet?name=cat&type=manx
+ prefix = "";
+ } else {
+ // deepObject style e.g. /pet?id[name]=cat&id[type]=manx
+ prefix = prefix + "[";
+ suffix = "]";
+ containerSuffix = "]";
+ containerPrefix = "[";
+ }
+
+ StringJoiner joiner = new StringJoiner("&");
+
+ // add `correct` to the URL query string
+ if (getCorrect() != null) {
+ joiner.add(
+ String.format(
+ "%scorrect%s=%s",
+ prefix,
+ suffix,
+ URLEncoder.encode(String.valueOf(getCorrect()), StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+
+ // add `errors` to the URL query string
+ if (getErrors() != null) {
+ for (int i = 0; i < getErrors().size(); i++) {
+ joiner.add(
+ String.format(
+ "%serrors%s%s=%s",
+ prefix,
+ suffix,
+ "".equals(suffix)
+ ? ""
+ : String.format(
+ "%s%d%s", containerPrefix, i, containerSuffix),
+ URLEncoder.encode(
+ String.valueOf(getErrors().get(i)),
+ StandardCharsets.UTF_8)
+ .replaceAll("\\+", "%20")));
+ }
+ }
+
+ return joiner.toString();
+ }
+}
diff --git a/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java b/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java
index 6de522fd..3e26e611 100644
--- a/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java
+++ b/src/test/java/com/fireblocks/sdk/api/TokenizationApiTest.java
@@ -15,6 +15,7 @@
import com.fireblocks.sdk.ApiException;
import com.fireblocks.sdk.ApiResponse;
+import com.fireblocks.sdk.model.AdapterProcessingResult;
import com.fireblocks.sdk.model.CollectionBurnRequestDto;
import com.fireblocks.sdk.model.CollectionBurnResponseDto;
import com.fireblocks.sdk.model.CollectionDeployRequestDto;
@@ -23,15 +24,28 @@
import com.fireblocks.sdk.model.CollectionMintResponseDto;
import com.fireblocks.sdk.model.CreateMultichainTokenRequest;
import com.fireblocks.sdk.model.CreateTokenRequestDto;
+import com.fireblocks.sdk.model.DeployLayerZeroAdaptersRequest;
import com.fireblocks.sdk.model.DeployableAddressResponse;
import com.fireblocks.sdk.model.GetDeployableAddressRequest;
+import com.fireblocks.sdk.model.GetLayerZeroDvnConfigResponse;
+import com.fireblocks.sdk.model.GetLayerZeroPeersResponse;
import com.fireblocks.sdk.model.GetLinkedCollectionsPaginatedResponse;
import com.fireblocks.sdk.model.ReissueMultichainTokenRequest;
+import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersRequest;
+import com.fireblocks.sdk.model.RemoveLayerZeroAdaptersResponse;
+import com.fireblocks.sdk.model.RemoveLayerZeroPeersRequest;
+import com.fireblocks.sdk.model.RemoveLayerZeroPeersResponse;
+import com.fireblocks.sdk.model.SetLayerZeroDvnConfigRequest;
+import com.fireblocks.sdk.model.SetLayerZeroDvnConfigResponse;
+import com.fireblocks.sdk.model.SetLayerZeroPeersRequest;
+import com.fireblocks.sdk.model.SetLayerZeroPeersResponse;
import com.fireblocks.sdk.model.TokenLinkDto;
import com.fireblocks.sdk.model.TokenLinkRequestDto;
import com.fireblocks.sdk.model.TokensPaginatedResponse;
+import com.fireblocks.sdk.model.ValidateLayerZeroChannelResponse;
import java.math.BigDecimal;
import java.util.List;
+import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import org.junit.Ignore;
import org.junit.Test;
@@ -73,6 +87,38 @@ public void createNewCollectionTest() throws ApiException {
api.createNewCollection(collectionDeployRequestDto, idempotencyKey);
}
+ /**
+ * Remove LayerZero adapters
+ *
+ * Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles
+ * and deactivates the specified adapter contracts.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void deactivateAndUnlinkAdaptersTest() throws ApiException {
+ RemoveLayerZeroAdaptersRequest removeLayerZeroAdaptersRequest = null;
+ String idempotencyKey = null;
+ CompletableFuture> response =
+ api.deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest, idempotencyKey);
+ }
+
+ /**
+ * Deploy LayerZero adapters
+ *
+ * Deploy LayerZero adapters for multichain token bridging functionality. This endpoint
+ * creates adapter contracts that enable cross-chain token transfers.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void deployAndLinkAdaptersTest() throws ApiException {
+ DeployLayerZeroAdaptersRequest deployLayerZeroAdaptersRequest = null;
+ String idempotencyKey = null;
+ CompletableFuture>> response =
+ api.deployAndLinkAdapters(deployLayerZeroAdaptersRequest, idempotencyKey);
+ }
+
/**
* Get collection token details
*
@@ -118,6 +164,37 @@ public void getDeployableAddressTest() throws ApiException {
api.getDeployableAddress(getDeployableAddressRequest, idempotencyKey);
}
+ /**
+ * Get LayerZero DVN configuration
+ *
+ * Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns
+ * DVN configurations for channels between the source adapter and its peers.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getLayerZeroDvnConfigTest() throws ApiException {
+ UUID adapterTokenLinkId = null;
+ UUID peerAdapterTokenLinkId = null;
+ CompletableFuture> response =
+ api.getLayerZeroDvnConfig(adapterTokenLinkId, peerAdapterTokenLinkId);
+ }
+
+ /**
+ * Get LayerZero peers
+ *
+ * Retrieve the LayerZero peers configured for a specific adapter. Returns information about
+ * peer relationships for cross-chain communication.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getLayerZeroPeersTest() throws ApiException {
+ UUID adapterTokenLinkId = null;
+ CompletableFuture> response =
+ api.getLayerZeroPeers(adapterTokenLinkId);
+ }
+
/**
* Get collections
*
@@ -247,6 +324,56 @@ public void reIssueTokenMultiChainTest() throws ApiException {
reissueMultichainTokenRequest, tokenLinkId, idempotencyKey);
}
+ /**
+ * Remove LayerZero peers
+ *
+ * Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer
+ * relationships between LayerZero adapters.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void removeLayerZeroPeersTest() throws ApiException {
+ RemoveLayerZeroPeersRequest removeLayerZeroPeersRequest = null;
+ String idempotencyKey = null;
+ CompletableFuture> response =
+ api.removeLayerZeroPeers(removeLayerZeroPeersRequest, idempotencyKey);
+ }
+
+ /**
+ * Set LayerZero DVN configuration
+ *
+ * Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration
+ * for message verification between source and destination adapters.
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void setLayerZeroDvnConfigTest() throws ApiException {
+ SetLayerZeroDvnConfigRequest setLayerZeroDvnConfigRequest = null;
+ String idempotencyKey = null;
+ CompletableFuture> response =
+ api.setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest, idempotencyKey);
+ }
+
+ /**
+ * Set LayerZero peers
+ *
+ *