@seedprotocol/sdk 0.1.103 → 0.1.104
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-BB80Wb2a.js → index-S6aUqdI6.js} +2 -2
- package/dist/{index-BB80Wb2a.js.map → index-S6aUqdI6.js.map} +1 -1
- package/dist/{index-Cbpu60mV.js → index-opZLss_R.js} +9 -7
- package/dist/{index-Cbpu60mV.js.map → index-opZLss_R.js.map} +1 -1
- package/dist/main.js +2 -2
- package/dist/{seed.schema.config--Nifymhk.js → seed.schema.config-D5w2jMZV.js} +2 -2
- package/dist/{seed.schema.config--Nifymhk.js.map → seed.schema.config-D5w2jMZV.js.map} +1 -1
- package/dist/src/actors.ts +289 -7
- package/dist/src/getPublishPayload.ts +8 -2
- package/dist/src/index.ts +4 -21
- 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-opZLss_R.js';
|
|
2
2
|
import './constants-rmQ8zg8_.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-S6aUqdI6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-S6aUqdI6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -26,8 +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_ADDRESS } from '
|
|
30
|
-
import { SchemaEncoder } from '@ethereum-attestation-service/eas-sdk';
|
|
29
|
+
import { SchemaEncoder, ZERO_ADDRESS } from '@ethereum-attestation-service/eas-sdk';
|
|
31
30
|
|
|
32
31
|
const isNode = () => {
|
|
33
32
|
return (typeof process !== 'undefined' &&
|
|
@@ -1068,7 +1067,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1068
1067
|
if (propertyRecordSchema &&
|
|
1069
1068
|
propertyRecordSchema.storageType &&
|
|
1070
1069
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1071
|
-
const { Item } = yield import('./index-
|
|
1070
|
+
const { Item } = yield import('./index-S6aUqdI6.js');
|
|
1072
1071
|
const item = yield Item.find({
|
|
1073
1072
|
seedLocalId,
|
|
1074
1073
|
modelName: itemModelName,
|
|
@@ -2622,7 +2621,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2622
2621
|
if (!models$1) {
|
|
2623
2622
|
return;
|
|
2624
2623
|
}
|
|
2625
|
-
const { models: SeedModels } = yield import('./seed.schema.config
|
|
2624
|
+
const { models: SeedModels } = yield import('./seed.schema.config-D5w2jMZV.js');
|
|
2626
2625
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2627
2626
|
let hasModelsInDb = false;
|
|
2628
2627
|
const schemaDefsByModelName = new Map();
|
|
@@ -5899,7 +5898,8 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5899
5898
|
],
|
|
5900
5899
|
});
|
|
5901
5900
|
}
|
|
5902
|
-
|
|
5901
|
+
console.log('ZERO_ADDRESS: ', ZERO_ADDRESS);
|
|
5902
|
+
const payload = [
|
|
5903
5903
|
{
|
|
5904
5904
|
localId,
|
|
5905
5905
|
seedIsRevocable,
|
|
@@ -5911,6 +5911,8 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5911
5911
|
propertiesToUpdate,
|
|
5912
5912
|
},
|
|
5913
5913
|
];
|
|
5914
|
+
console.log('payload: ', payload);
|
|
5915
|
+
return payload;
|
|
5914
5916
|
});
|
|
5915
5917
|
|
|
5916
5918
|
var _a$1;
|
|
@@ -6699,7 +6701,7 @@ const client = {
|
|
|
6699
6701
|
console.error('fs listeners not ready during init');
|
|
6700
6702
|
}
|
|
6701
6703
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6702
|
-
import('./seed.schema.config
|
|
6704
|
+
import('./seed.schema.config-D5w2jMZV.js').then(({ models }) => {
|
|
6703
6705
|
for (const [key, value] of Object.entries(models)) {
|
|
6704
6706
|
setModel(key, value);
|
|
6705
6707
|
}
|
|
@@ -7652,4 +7654,4 @@ if (isNode()) {
|
|
|
7652
7654
|
}
|
|
7653
7655
|
|
|
7654
7656
|
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 };
|
|
7655
|
-
//# sourceMappingURL=index-
|
|
7657
|
+
//# sourceMappingURL=index-opZLss_R.js.map
|