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: psp22 trait contract example with drink tests #300

Open
wants to merge 57 commits into
base: chore/tests_with_drink
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
4e44fba
feat: add interfaces for psp22
chungquantin Sep 18, 2024
a32f002
chore: add comments
chungquantin Sep 18, 2024
bf4062d
refactor: separate modules into files
chungquantin Sep 18, 2024
21c6826
refactor: fungible example
chungquantin Sep 18, 2024
894fcf9
feat: refactor example contract to follow spec
chungquantin Sep 18, 2024
817a351
test: psp22error
chungquantin Sep 18, 2024
6042f09
fix: missing String
chungquantin Sep 18, 2024
c8cc9d1
chore: revert example
chungquantin Sep 19, 2024
a8c063c
fix: resolve comments
chungquantin Sep 19, 2024
8176474
fix: revert example contract
chungquantin Sep 19, 2024
1945683
fix: add mod comment
chungquantin Sep 19, 2024
6aede89
fix: result type
chungquantin Sep 19, 2024
b52ad33
fix: update PSP22Metadata
chungquantin Sep 19, 2024
6b2f17a
fix: add comment for Psp22 trait
chungquantin Sep 19, 2024
4a1bf3b
fix: resolve comments
chungquantin Sep 19, 2024
699275c
fix: api integration tests
chungquantin Sep 19, 2024
94ee34e
fix: result type
chungquantin Sep 19, 2024
9bb3be8
fix: comment
chungquantin Sep 19, 2024
f03a5ae
feat: add interfaces for psp22
chungquantin Sep 18, 2024
1bbc3ed
chore: add comments
chungquantin Sep 18, 2024
e8d68a9
refactor: separate modules into files
chungquantin Sep 18, 2024
4ead643
refactor: fungible example
chungquantin Sep 18, 2024
12d1af4
feat: refactor example contract to follow spec
chungquantin Sep 18, 2024
24afd15
test: psp22error
chungquantin Sep 18, 2024
8ecf6d9
fix: missing String
chungquantin Sep 18, 2024
6f521f4
fix: resolve comments
chungquantin Sep 19, 2024
7ce5d52
fix: add mod comment
chungquantin Sep 19, 2024
b29cf17
fix: result type
chungquantin Sep 19, 2024
933c62e
fix: update PSP22Metadata
chungquantin Sep 19, 2024
de80906
fix: add comment for Psp22 trait
chungquantin Sep 19, 2024
8717adb
fix: resolve comments
chungquantin Sep 19, 2024
8ae2c00
fix: api integration tests
chungquantin Sep 19, 2024
97417e3
fix: result type
chungquantin Sep 19, 2024
204ee06
fix: resolve comments
chungquantin Sep 19, 2024
540639a
Merge branch 'chungquantin/feat-psp22_traits' into chungquantin/feat-…
chungquantin Sep 20, 2024
867cc28
feat: drink test for example contract
chungquantin Sep 20, 2024
7dc6047
refactor: add helpers module
chungquantin Sep 20, 2024
b433c67
feat: add event assertions
chungquantin Sep 20, 2024
e018e34
test: event assertion
chungquantin Sep 20, 2024
baab872
refactor: call expect error methods & function constant
chungquantin Sep 20, 2024
cb48a4d
test: add more test cases
chungquantin Sep 20, 2024
7637420
fix: comment
chungquantin Sep 23, 2024
83a5afe
Merge branch 'chungquantin/feat-psp22_traits' into chungquantin/feat-…
chungquantin Sep 23, 2024
f1245d7
Merge branch 'chore/tests_with_drink' into chungquantin/feat-psp22_ex…
chungquantin Sep 23, 2024
e76a524
chore: remove deprecated example contracts
chungquantin Sep 23, 2024
a39b1a4
chore: rebase
chungquantin Sep 23, 2024
517ddd3
fix: resolve comments & fix transfer_from()
chungquantin Sep 23, 2024
86e7d85
fix: expect return error method
chungquantin Sep 24, 2024
f8fc1b5
fix: add missing conversions in PSP22Error
chungquantin Sep 24, 2024
904d7c2
Merge branch 'chungquantin/feat-psp22_traits' into chungquantin/feat-…
chungquantin Sep 24, 2024
4a2077f
fix: remove ToString
chungquantin Sep 24, 2024
31b5735
Merge branch 'chungquantin/feat-psp22_traits' into chungquantin/feat-…
chungquantin Sep 24, 2024
8fc8d07
fix: ToString
chungquantin Sep 24, 2024
393dbf2
Merge branch 'chungquantin/feat-psp22_traits' into chungquantin/feat-…
chungquantin Sep 24, 2024
52ec10d
refactor: tests
chungquantin Sep 24, 2024
f9e76ec
feat: check deployment error
chungquantin Sep 24, 2024
e151ef1
refactor: update constant visibility
chungquantin Sep 24, 2024
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
28 changes: 0 additions & 28 deletions pop-api/examples/balance-transfer/Cargo.toml

This file was deleted.

135 changes: 0 additions & 135 deletions pop-api/examples/balance-transfer/lib.rs

This file was deleted.

26 changes: 24 additions & 2 deletions pop-api/examples/fungibles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,27 @@ name = "fungibles"
version = "0.1.0"

[dependencies]
ink = { version = "5.0.0", default-features = false }
pop-api = { path = "../../../pop-api", default-features = false, features = [ "fungibles" ] }
ink = { version = "=5.0.0", default-features = false, features = [ "ink-debug" ] }
pop-api = { path = "../../../pop-api", default-features = false, features = [
"fungibles",
] }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = [
"derive",
] }
scale-info = { version = "2.6", default-features = false, features = [
"derive",
], optional = true }

[dev-dependencies]
env_logger = { version = "0.11.3" }
serde_json = "1.0.114"

# Local
drink = { path = "../../../../pop-drink/drink" }
pop-sandbox = { path = "../../../pop-sandbox", default-features = false }

# Substrate
frame-support = { version = "36.0.0", default-features = false }

[lib]
path = "lib.rs"
Expand All @@ -18,4 +37,7 @@ ink-as-dependency = [ ]
std = [
"ink/std",
"pop-api/std",
"pop-sandbox/std",
"scale-info/std",
"scale/std",
]
Loading
Loading