-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Creations on chain #265
Merged
Merged
Creations on chain #265
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fa8038b
added endpoint to store creation onchain status
huzaifa-99 f09b5fa
updated swagger docs for creation endpoints
huzaifa-99 ba6c2ce
replaced cardano-ser-lib with meshjssdk
huzaifa-99 9b9ed92
upload creations on chain
huzaifa-99 7e70c56
updated db schema
huzaifa-99 0d6a38f
removed unused packages
huzaifa-99 bafeaf3
updated example env
huzaifa-99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* eslint-disable no-param-reassign */ | ||
/* eslint-disable unicorn/prefer-module */ | ||
const webpack = require('webpack'); | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: (config) => { | ||
const wasmExtensionRegExp = /\.wasm$/; | ||
config.resolve.extensions.push('.wasm'); | ||
config.resolve.fallback = { | ||
...config.resolve.fallback, | ||
buffer: require.resolve('buffer'), | ||
stream: require.resolve('stream'), | ||
}; | ||
config.plugins = [ | ||
...config.plugins, | ||
new webpack.ProvidePlugin({ | ||
Buffer: ['buffer', 'Buffer'], | ||
}), | ||
]; | ||
config.experiments = { | ||
syncWebAssembly: true, | ||
asyncWebAssembly: true, | ||
}; | ||
|
||
for (const rule of config.module.rules) { | ||
for (const oneOf of (rule.oneOf || [])) { | ||
if (oneOf.type === 'asset/resource') { | ||
oneOf.exclude.push(wasmExtensionRegExp); | ||
} | ||
} | ||
} | ||
|
||
return config; | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
const API_BASE_URL = 'https://pocre-api.herokuapp.com/v1/'; | ||
|
||
const POCRE_WALLET_ADDRESS = 'addr_test1qr0nvz3xurstmkj3h3a32knxsgpzvz4g8z3lvhhya9ffzh74uhu2hd3kjx8v9p906g4sejyj3w7q76zqwsgt4w9drfnsp8jhz7'; // preview testnet address || IMPORTANT: dont make real transactions | ||
|
||
const CHARGES = { | ||
CREATION_PUBLISHING_ADA: 9, | ||
}; | ||
|
||
const TRANSACTION_PURPOSES = { | ||
CREATION_PUBLISHING: 'Creation Publishing', | ||
}; | ||
|
||
const IPFS_BASE_URL = 'https://gateway.pinata.cloud/ipfs/'; | ||
|
||
export { | ||
API_BASE_URL, | ||
POCRE_WALLET_ADDRESS, | ||
CHARGES, | ||
IPFS_BASE_URL, | ||
TRANSACTION_PURPOSES, | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new field added to db