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

938: Add code for smart contract from puffer launchpad #3

Merged
merged 22 commits into from
May 22, 2024

Conversation

9inpachi
Copy link
Collaborator

The code is copied over to the package and linting issues along with some other problems are fixed.

The API is not exported/exposed yet since the idea of the package is to expose contract methods differently. Which will be added in a follow up PR.

@9inpachi 9inpachi force-pushed the 938/smart-contract-code branch from 7b6be9d to 3cc395b Compare May 15, 2024 15:12
Copy link
Contributor

@guestn guestn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not put comments on the legacy code you've copied over, but I think there are a few things there that could be improved

dist/main.cjs Outdated Show resolved Hide resolved
@@ -7,6 +7,11 @@ export default [
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
ignores: ['dist'],
ignores: ['dist/'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do better than this later hopefully

if (isConnected) {
const network = networkEnumToString(networkName).toLowerCase();
const importedModule = await import(`../config/${network}.ts`).catch(
() => ({ default: defaultConfig }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we actually be erroring here if the network can't found

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is removed in the next PR.

@9inpachi 9inpachi requested a review from guestn May 21, 2024 12:39
@9inpachi 9inpachi merged commit 0b39831 into main May 22, 2024
1 check passed
@9inpachi 9inpachi deleted the 938/smart-contract-code branch May 28, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants