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

Add Potlock contract #76

Open
wants to merge 52 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9832d6e
Add Potlock contract
CostinCarabas Jun 17, 2024
e641553
Refactor donations
CostinCarabas Jun 18, 2024
12572ae
Fix building issues
CostinCarabas Jun 18, 2024
622069f
Merge branch 'fix-unit-tests' into add-potlock-contract
CostinCarabas Jun 20, 2024
cc7cea6
Framework upgrade potlock
CostinCarabas Jun 20, 2024
3e52a79
Add blackbox tests
CostinCarabas Jun 20, 2024
849325b
Added more unit tests
CostinCarabas Jun 21, 2024
89ed86f
Add several more tests
CostinCarabas Jun 21, 2024
6fc6db6
Add interactor
CostinCarabas Jun 21, 2024
4103456
Adjust interactors functions
CostinCarabas Jun 22, 2024
214e117
Add diferent types of actors from different wallets
CostinCarabas Jun 26, 2024
a8bb80a
Merge branch 'main' into add-potlock-contract
CostinCarabas Jul 3, 2024
ae32eff
Merge pull request #84 from multiversx/potlock-framework-upgrade
CostinCarabas Jul 3, 2024
a4ecfb3
Merge branch 'main' into add-potlock-contract
CostinCarabas Jul 11, 2024
d0555ce
Merge remote-tracking branch 'origin/main' into add-potlock-contract
CostinCarabas Jul 16, 2024
e35a545
Merge pull request #85 from multiversx/potlock-unit-tests
CostinCarabas Jul 16, 2024
d6fa92b
Merge branch 'add-potlock-contract' into potlock-system-tests
CostinCarabas Jul 16, 2024
b479a1b
Merge pull request #86 from multiversx/potlock-system-tests
CostinCarabas Jul 16, 2024
3af9363
Framework upgrade 0.51.1
CostinCarabas Jul 19, 2024
8b4903e
Fix tests
CostinCarabas Jul 19, 2024
2da0c7a
Fix clippy
CostinCarabas Jul 19, 2024
a5894c5
Fixes after review
CostinCarabas Jul 19, 2024
68b4660
Fixes after review
CostinCarabas Jul 31, 2024
2bbbe84
Fix tests
CostinCarabas Jul 31, 2024
2abeab0
Refuse multiple donations with different tokens
CostinCarabas Jul 31, 2024
324f598
Add tests for multiple donations with different tokens
CostinCarabas Jul 31, 2024
c01041d
Fix donate_to_project
CostinCarabas Jul 31, 2024
dbe90fb
Merge branch 'main' into add-potlock-contract
CostinCarabas Aug 1, 2024
a1e9c73
Framework upgrade 0.52.1
CostinCarabas Aug 1, 2024
b6bdb74
potlock: distributePotToProjects: percentage req
CostinCarabas Aug 5, 2024
a9187f1
Merge branch 'main' into add-potlock-contract
CostinCarabas Aug 6, 2024
56fc27b
Merge branch 'main' into add-potlock-contract
dorin-iancu Aug 7, 2024
f074305
Merge branch 'main' into add-potlock-contract
CostinCarabas Aug 12, 2024
3bc8bf5
potlock: Framework upgrade
CostinCarabas Aug 14, 2024
f406d80
Fix README
CostinCarabas Aug 16, 2024
d7c4857
Fixes after review
CostinCarabas Aug 19, 2024
906e146
Fixes after review
CostinCarabas Aug 19, 2024
c8032b0
Fixes after review
CostinCarabas Aug 19, 2024
e8cd551
Fix tests
CostinCarabas Aug 20, 2024
75f9f47
Fix compiling issues
CostinCarabas Aug 21, 2024
8b51d5f
potlock: more unit tests
CostinCarabas Aug 21, 2024
7e28fa2
Add interactor tests
vladiouz Aug 21, 2024
eadba85
Add interactor tests
vladiouz Sep 6, 2024
f804a7d
Solve warnings
vladiouz Sep 6, 2024
28addac
Execute interactor tests only on demand
vladiouz Sep 6, 2024
e416e52
Cleanse tests
vladiouz Sep 6, 2024
8223852
Cleanse tests
vladiouz Sep 6, 2024
c39f4d5
Merge pull request #105 from multiversx/add-potlock-contract-interact…
vladiouz Sep 6, 2024
091289e
Merge branch 'main' into add-potlock-contract
CostinCarabas Oct 7, 2024
6c7a767
Framework upgrade 0.53.2
CostinCarabas Oct 9, 2024
0d838e9
potlock: clippy fix
CostinCarabas Oct 9, 2024
b7c0cd8
Merge branch 'main' into add-potlock-contract
CostinCarabas Oct 9, 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
120 changes: 75 additions & 45 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ members = [
"contracts/paymaster/meta",
"contracts/ping-pong-egld",
"contracts/ping-pong-egld/meta",
"contracts/potlock",
"contracts/potlock/meta",
"contracts/potlock/interact-rs",
"contracts/proxy-deployer",
"contracts/proxy-deployer/meta",
"contracts/proxy-pause",
Expand Down
22 changes: 22 additions & 0 deletions contracts/potlock/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "potlock"
version = "0.0.0"
authors = ["you"]
edition = "2021"
publish = false
readme = "README.md"

[lib]
path = "src/potlock.rs"

[dependencies.multiversx-sc]
version = "0.52.1"

[dependencies.multiversx-sc-modules]
version = "=0.52.1"

[dev-dependencies]
num-bigint = "0.4.2"

[dev-dependencies.multiversx-sc-scenario]
version = "0.52.1"
7 changes: 7 additions & 0 deletions contracts/potlock/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Paymaster SC

## Overview



## Implementation
2 changes: 2 additions & 0 deletions contracts/potlock/interact-rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Pem files are used for interactions, but shouldn't be committed
*.pem
30 changes: 30 additions & 0 deletions contracts/potlock/interact-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[[bin]]
name = "rust-interact"
path = "src/potlock_interactor_main.rs"

[package]
name = "rust-interact"
version = "0.0.0"
authors = ["you"]
edition = "2021"
publish = false

[dependencies]
toml = "0.8.6"

[dependencies.potlock]
path = ".."

[dependencies.multiversx-sc-snippets]
version = "0.52.1"

[dependencies.multiversx-sc]
version = "0.52.1"

[dependencies.clap]
version = "4.4.7"
features = ["derive"]

[dependencies.serde]
version = "1.0"
features = ["derive"]
6 changes: 6 additions & 0 deletions contracts/potlock/interact-rs/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
gateway = 'https://devnet-gateway.multiversx.com'
admin = "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th"
pot_proposer = "erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx"
project_proposer = "erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8"
pot_donor = "erd1kyaqzaprcdnv4luvanah0gfxzzsnpaygsy6pytrexll2urtd05ts9vegu7"
project_donor = "erd18tudnj2z8vjh0339yu3vrkgzz2jpz8mjq0uhgnmklnap6z33qqeszq2yn4"
Loading
Loading