@seedprotocol/sdk 0.1.106 → 0.1.107
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/dist/{index-DyEsLJAK.js → index-BmzLHFCL.js} +2 -2
- package/dist/{index-DyEsLJAK.js.map → index-BmzLHFCL.js.map} +1 -1
- package/dist/{index-CvfKxmFw.js → index-Dg23uBJg.js} +7 -7
- package/dist/{index-CvfKxmFw.js.map → index-Dg23uBJg.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-C37yDUmq.js → seed.schema.config-C1zm5m77.js} +2 -2
- package/dist/{seed.schema.config-C37yDUmq.js.map → seed.schema.config-C1zm5m77.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +3 -2
- package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-
|
|
1
|
+
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-Dg23uBJg.js';
|
|
2
2
|
import './constants-qIJt7998.js';
|
|
3
3
|
import '@ethereum-attestation-service/eas-sdk';
|
|
4
4
|
import 'thirdweb';
|
|
@@ -29,4 +29,4 @@ import 'rxjs';
|
|
|
29
29
|
import 'drizzle-orm/sqlite-proxy';
|
|
30
30
|
import '@zenfs/dom';
|
|
31
31
|
import 'arweave';
|
|
32
|
-
//# sourceMappingURL=index-
|
|
32
|
+
//# sourceMappingURL=index-BmzLHFCL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BmzLHFCL.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -26,7 +26,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
26
26
|
import { drizzle } from 'drizzle-orm/sqlite-proxy';
|
|
27
27
|
import { WebAccess } from '@zenfs/dom';
|
|
28
28
|
import Arweave from 'arweave';
|
|
29
|
-
import {
|
|
29
|
+
import { ZERO_BYTES32, SchemaEncoder, ZERO_ADDRESS } from '@ethereum-attestation-service/eas-sdk';
|
|
30
30
|
|
|
31
31
|
const isNode = () => {
|
|
32
32
|
return (typeof process !== 'undefined' &&
|
|
@@ -2070,7 +2070,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2070
2070
|
if (!models$1) {
|
|
2071
2071
|
return;
|
|
2072
2072
|
}
|
|
2073
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2073
|
+
const { models: SeedModels } = yield import('./seed.schema.config-C1zm5m77.js');
|
|
2074
2074
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2075
2075
|
let hasModelsInDb = false;
|
|
2076
2076
|
const schemaDefsByModelName = new Map();
|
|
@@ -5426,11 +5426,11 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5426
5426
|
// That means the Seed of the Item, plus any Seeds pointed to by Relations
|
|
5427
5427
|
let itemPublishData = {
|
|
5428
5428
|
localId: item.seedLocalId,
|
|
5429
|
-
seedUid: item.seedUid ||
|
|
5429
|
+
seedUid: item.seedUid || ZERO_BYTES32,
|
|
5430
5430
|
seedIsRevocable: true,
|
|
5431
5431
|
seedSchemaUid: item.schemaUid,
|
|
5432
5432
|
versionSchemaUid: VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA,
|
|
5433
|
-
versionUid: item.latestVersionUid ||
|
|
5433
|
+
versionUid: item.latestVersionUid || ZERO_BYTES32,
|
|
5434
5434
|
listOfAttestations: [],
|
|
5435
5435
|
propertiesToUpdate: [],
|
|
5436
5436
|
};
|
|
@@ -6235,7 +6235,7 @@ const client = {
|
|
|
6235
6235
|
console.error('fs listeners not ready during init');
|
|
6236
6236
|
}
|
|
6237
6237
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6238
|
-
import('./seed.schema.config-
|
|
6238
|
+
import('./seed.schema.config-C1zm5m77.js').then(({ models }) => {
|
|
6239
6239
|
for (const [key, value] of Object.entries(models)) {
|
|
6240
6240
|
setModel(key, value);
|
|
6241
6241
|
}
|
|
@@ -6910,7 +6910,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
6910
6910
|
if (propertyRecordSchema &&
|
|
6911
6911
|
propertyRecordSchema.storageType &&
|
|
6912
6912
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
6913
|
-
const { Item } = yield import('./index-
|
|
6913
|
+
const { Item } = yield import('./index-BmzLHFCL.js');
|
|
6914
6914
|
const item = yield Item.find({
|
|
6915
6915
|
seedLocalId,
|
|
6916
6916
|
modelName: itemModelName,
|
|
@@ -7852,4 +7852,4 @@ if (isNode()) {
|
|
|
7852
7852
|
}
|
|
7853
7853
|
|
|
7854
7854
|
export { GET_SCHEMAS as G, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, GET_SCHEMA_BY_NAME as a, GET_SEEDS as b, GET_SEED_IDS as c, GET_STORAGE_TRANSACTION_ID as d, GET_VERSIONS as e, GET_PROPERTIES as f, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as g, itemMachineAll as h, itemMachineSingle as i, ImageSrc as j, ItemProperty as k, useItem as l, useItemProperties as m, useCreateItem as n, useItemProperty as o, useDeleteItem as p, useGlobalServiceStatus as q, useServices as r, getGlobalService as s, client as t, useItems as u, getCorrectId as v, withSeed as w };
|
|
7855
|
-
//# sourceMappingURL=index-
|
|
7855
|
+
//# sourceMappingURL=index-Dg23uBJg.js.map
|