@seedprotocol/sdk 0.1.107 → 0.1.108
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-BmzLHFCL.js → index-BmnXNuNp.js} +2 -2
- package/dist/{index-BmzLHFCL.js.map → index-BmnXNuNp.js.map} +1 -1
- package/dist/{index-Dg23uBJg.js → index-CsC8qxj6.js} +9 -9
- package/dist/{index-Dg23uBJg.js.map → index-CsC8qxj6.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-C1zm5m77.js → seed.schema.config-hUwOwJMn.js} +2 -2
- package/dist/{seed.schema.config-C1zm5m77.js.map → seed.schema.config-hUwOwJMn.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +4 -5
- package/dist/src/seed.ts +4 -31
- 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-CsC8qxj6.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-BmnXNuNp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BmnXNuNp.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 { ZERO_BYTES32, SchemaEncoder
|
|
29
|
+
import { ZERO_BYTES32, SchemaEncoder } 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-hUwOwJMn.js');
|
|
2074
2074
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2075
2075
|
let hasModelsInDb = false;
|
|
2076
2076
|
const schemaDefsByModelName = new Map();
|
|
@@ -5242,7 +5242,7 @@ const getVersionUid = (item) => {
|
|
|
5242
5242
|
item.latestVersionUid !== 'undefined') {
|
|
5243
5243
|
versionUid = item.latestVersionUid;
|
|
5244
5244
|
}
|
|
5245
|
-
return versionUid ||
|
|
5245
|
+
return versionUid || ZERO_BYTES32;
|
|
5246
5246
|
};
|
|
5247
5247
|
const getPropertyData = (itemProperty) => __awaiter(void 0, void 0, void 0, function* () {
|
|
5248
5248
|
const easDataType = INTERNAL_DATA_TYPES[itemProperty.propertyDef.dataType].eas;
|
|
@@ -5345,7 +5345,7 @@ const processRelationProperty = (relationProperty, multiPublishPayload) => __awa
|
|
|
5345
5345
|
localId: relationProperty.localId,
|
|
5346
5346
|
seedIsRevocable: true,
|
|
5347
5347
|
versionSchemaUid: VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA,
|
|
5348
|
-
seedUid: seedUid ||
|
|
5348
|
+
seedUid: seedUid || ZERO_BYTES32,
|
|
5349
5349
|
seedSchemaUid,
|
|
5350
5350
|
versionUid,
|
|
5351
5351
|
listOfAttestations: [],
|
|
@@ -5392,7 +5392,7 @@ const processListProperty = (listProperty, multiPublishPayload) => __awaiter(voi
|
|
|
5392
5392
|
localId: relatedItem.seedLocalId,
|
|
5393
5393
|
seedIsRevocable: true,
|
|
5394
5394
|
versionSchemaUid: VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA,
|
|
5395
|
-
seedUid: seedUid ||
|
|
5395
|
+
seedUid: seedUid || ZERO_BYTES32,
|
|
5396
5396
|
seedSchemaUid,
|
|
5397
5397
|
versionUid,
|
|
5398
5398
|
listOfAttestations: [],
|
|
@@ -5430,7 +5430,7 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5430
5430
|
seedIsRevocable: true,
|
|
5431
5431
|
seedSchemaUid: item.schemaUid,
|
|
5432
5432
|
versionSchemaUid: VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA,
|
|
5433
|
-
versionUid: item
|
|
5433
|
+
versionUid: getVersionUid(item),
|
|
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-hUwOwJMn.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-BmnXNuNp.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-CsC8qxj6.js.map
|