Skip to content

Commit

Permalink
Merge branch 'feat/backend-interaction-tracker' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Jan 13, 2025
2 parents 1b80f2a + 38d9ba7 commit a538cb8
Show file tree
Hide file tree
Showing 32 changed files with 2,733 additions and 55 deletions.
35 changes: 35 additions & 0 deletions packages/app-essentials/src/blockchain/abis/interactionAbis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,41 @@ export const referralFeatureFacetAbi = [
{ type: "error", inputs: [], name: "UnknownInteraction" },
] as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// RetailInteractionFacet
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

export const retailInteractionFacetAbi = [
{ type: "fallback", stateMutability: "nonpayable" },
{
type: "function",
inputs: [],
name: "productTypeDenominator",
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
stateMutability: "pure",
},
{
type: "event",
anonymous: false,
inputs: [
{
name: "agencyId",
internalType: "bytes32",
type: "bytes32",
indexed: false,
},
{
name: "user",
internalType: "address",
type: "address",
indexed: false,
},
],
name: "CustomerMeeting",
},
{ type: "error", inputs: [], name: "UnknownInteraction" },
] as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WebShopInteractionFacet
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion packages/app-essentials/src/blockchain/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const addresses = {
// nexus
campaignBankFactory: "0x00000000003604CF2d09f4Aa3B878843A765015d",
campaignFactory: "0x0000000000278e0EFbC5968020A798AaB1571E5c",
facetFactory: "0x000000000068C43436b8970Ee8791718f50b9643",
facetFactory: "0x5Dcb1bB90Fc25ceFe9815bbd0c710F0496Fe946B",
mUSDToken: "0x43838DCb58a61325eC5F31FD70aB8cd3540733d1",
productAdministratorRegistry: "0x0000000000000823EaD12075a50A2a6520966e5c",
productInteractionManager: "0x0000000000009720dc2B0D893f7Ec2a878d21AeC",
Expand Down
11 changes: 11 additions & 0 deletions packages/backend-elysia/drizzle/dev/0008_productive_zarek.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE TYPE "public"."backend_interactions_tracker_source" AS ENUM('custom');--> statement-breakpoint
CREATE TABLE "backend_interactions_tracker" (
"id" serial PRIMARY KEY NOT NULL,
"product_id" "bytea" NOT NULL,
"hook_signature_key" varchar NOT NULL,
"created_at" timestamp DEFAULT now(),
"source" "backend_interactions_tracker_source" DEFAULT 'custom' NOT NULL,
CONSTRAINT "backend_interactions_tracker_product_id_unique" UNIQUE("product_id")
);
--> statement-breakpoint
CREATE INDEX "unique_tracker_product_id" ON "backend_interactions_tracker" USING btree ("product_id");
Loading

0 comments on commit a538cb8

Please sign in to comment.