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

feat(devnet): pop api + fungibles use case #132

Merged
merged 66 commits into from
Sep 13, 2024
Merged

feat(devnet): pop api + fungibles use case #132

merged 66 commits into from
Sep 13, 2024

Conversation

Daanvdplas
Copy link
Collaborator

@Daanvdplas Daanvdplas commented Jul 26, 2024

Pop API + local fungibles implementation (minus native token)

Closes #65

Size of contract pop-api/examples/fungibles/ compared to the psp22 extension in ink-examples:

  • Fungibles contract:
    Original wasm size: 31.3K, Optimized: 7.4K (current IT contract is bigger because there are more functions implemented)
  • Template contract:
    Original wasm size: 30.3K, Optimized: 7.0K

Contains:

Merged after

Daanvdplas and others added 29 commits May 19, 2024 17:38
# This is the 1st commit message:

refactor: general

# This is the commit message #2:

init

# This is the commit message #3:

begin refactor

# This is the commit message #4:

refactor: error handling

# This is the commit message #5:

tests: add error handling tests

# This is the commit message #6:

WIP

# This is the commit message #7:

finalise error handling

# This is the commit message #8:

refactor: easier review
Co-authored-by: Frank Bell <frank@r0gue.io>
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	pop-api/Cargo.toml
#	primitives/Cargo.toml
#	primitives/src/lib.rs
#	primitives/src/storage_keys.rs
#	runtime/devnet/Cargo.toml
#	runtime/devnet/src/config/assets.rs
#	runtime/devnet/src/config/contracts.rs
#	runtime/devnet/src/extensions.rs
#	runtime/devnet/src/lib.rs
#	runtime/testnet/Cargo.toml
#	runtime/testnet/src/config/assets.rs
Required due to failure or coverage CI job.
Required due to failure or coverage CI job.
@evilrobot-01
Copy link
Collaborator

Co-authored-by: Tin Chung <56880684+chungquantin@users.noreply.github.com>
Co-authored-by: Frank Bell <60948618+evilrobot-01@users.noreply.github.com>
Copy link
Collaborator

@evilrobot-01 evilrobot-01 left a comment

Choose a reason for hiding this comment

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

Ran out of steam on pop-api/integration-tests/src/fungibles/mod.rs and marked accordingly - 7k lines just too much. All other files reviewed.

pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Show resolved Hide resolved
pallets/api/src/mock.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Show resolved Hide resolved
runtime/devnet/src/config/api/mod.rs Show resolved Hide resolved
runtime/devnet/src/config/api/versioning.rs Outdated Show resolved Hide resolved
runtime/devnet/src/config/api/versioning.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Show resolved Hide resolved
Co-authored-by: Frank Bell <frank@r0gue.io>
Daanvdplas and others added 6 commits September 13, 2024 16:50
Co-authored-by: Frank Bell <frank@r0gue.io>
Co-authored-by: Frank Bell <60948618+evilrobot-01@users.noreply.github.com>
Co-authored-by: Peter White <petras9789@gmail.com>
Co-authored-by: Frank Bell <frank@r0gue.io>
Co-authored-by: Frank Bell <60948618+evilrobot-01@users.noreply.github.com>
Co-authored-by: Daanvdplas <daanvdplas@live.nl>
Co-authored-by: Peter White <petras9789@gmail.com>
Co-authored-by: Daanvdplas <daanvdplas@live.nl>
Co-authored-by: Frank Bell <frank@r0gue.io>
Co-authored-by: Frank Bell <60948618+evilrobot-01@users.noreply.github.com>
Co-authored-by: Peter White <petras9789@gmail.com>
Co-authored-by: Daanvdplas <daanvdplas@live.nl>
Copy link
Collaborator

@evilrobot-01 evilrobot-01 left a comment

Choose a reason for hiding this comment

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

🚀

@peterwht peterwht merged commit b653091 into main Sep 13, 2024
9 of 10 checks passed
@peterwht peterwht deleted the daan/api branch September 13, 2024 20:18
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.

feat: local fungibles pop api integration
5 participants