Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix storage engine on store/program/instance #174

Merged
merged 3 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "1.0.4",
"version": "1.0.5",
"packages": ["packages/*"]
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aleph-sdk/client",
"version": "1.0.4",
"version": "1.0.5",
"description": "",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/message/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aleph-sdk/message",
"version": "1.0.3",
"version": "1.0.5",
"description": "Aleph.im message CRUD API",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
Expand Down
4 changes: 3 additions & 1 deletion packages/message/src/instance/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export class InstanceMessageClient {
}: InstancePublishConfiguration): Promise<InstanceMessage> {
const timestamp = Date.now() / 1000
const { address } = account
// To remove @typescript-eslint/no-unused-vars at buildtime, without removing the argument
storageEngine

const mergedResources = {
...defaultResources,
Expand Down Expand Up @@ -76,7 +78,7 @@ export class InstanceMessageClient {
account,
channel,
timestamp,
storageEngine,
storageEngine: ItemType.inline,
content: instanceContent,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/message/src/program/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class ProgramMessageClient {
account,
channel,
timestamp,
storageEngine,
storageEngine: ItemType.inline,
content: programContent,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/message/src/store/impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class StoreMessageClient {
channel,
content: storeContent,
account,
storageEngine: storageEngine === ItemType.storage ? ItemType.inline : ItemType.ipfs,
storageEngine: ItemType.inline,
timestamp,
})

Expand Down
2 changes: 1 addition & 1 deletion packages/superfluid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aleph-sdk/superfluid",
"version": "1.0.4",
"version": "1.0.5",
"description": "Aleph.im account wrapper for interacting with the Superfluid Avalanche Contract",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
Expand Down
Loading