commit 7d79347fa19a6fff82344647b1ac5f1bde54e820
parent bcff16549efd1441437fd17c35d9de45c5a1158a
Author: triesap <tyson@radroots.org>
Date: Sun, 18 Jan 2026 21:36:07 +0000
events: fix d_tag test fixtures
- update farm test d_tag to valid base64url length
- update gcs test d_tag to valid base64url length
- update plot test d_tag to valid base64url length
- align fixtures with current d_tag validation rules
Diffstat:
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/events/bindings/ts/src/types.ts b/events/bindings/ts/src/types.ts
@@ -1,5 +1,3 @@
-import type { RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCorePercent, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core-bindings";
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type JobFeedbackStatus = "payment_required" | "processing" | "error" | "success" | "partial";
diff --git a/tangle-events/src/tests.rs b/tangle-events/src/tests.rs
@@ -47,7 +47,7 @@ fn sync_all_emits_expected_order() {
let farm_pubkey = "f".repeat(64);
let farm_fields = IFarmFields {
- d_tag: "farm_d".to_string(),
+ d_tag: "AAAAAAAAAAAAAAAAAAAAAA".to_string(),
pubkey: farm_pubkey.clone(),
name: "Green Farm".to_string(),
about: Some("About".to_string()),
@@ -75,7 +75,7 @@ fn sync_all_emits_expected_order() {
]],
};
let gcs_fields = IGcsLocationFields {
- d_tag: "gcs_d".to_string(),
+ d_tag: "AAAAAAAAAAAAAAAAAAAAAQ".to_string(),
lat: 37.7,
lng: -122.4,
geohash: "9q8yy".to_string(),
@@ -109,7 +109,7 @@ fn sync_all_emits_expected_order() {
);
let plot_fields = IPlotFields {
- d_tag: "plot_d".to_string(),
+ d_tag: "AAAAAAAAAAAAAAAAAAAAAw".to_string(),
farm_id: farm_row.id.clone(),
name: "Plot A".to_string(),
about: None,
diff --git a/trade/bindings/ts/src/types.ts b/trade/bindings/ts/src/types.ts
@@ -1,7 +1,3 @@
-import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from "@radroots/events-bindings";
-
-import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core-bindings";
-
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type RadrootsListing = { d_tag: string, farm: RadrootsListingFarmRef, product: RadrootsListingProduct, primary_bin_id: string, bins: Array<RadrootsListingBin>, resource_area?: RadrootsResourceAreaRef | null, plot?: RadrootsPlotRef | null, discounts?: RadrootsCoreDiscount[] | null, inventory_available?: RadrootsCoreDecimal | null, availability?: RadrootsListingAvailability | null, delivery_method?: RadrootsListingDeliveryMethod | null, location?: RadrootsListingLocation | null, images?: RadrootsListingImage[] | null, };