-
Notifications
You must be signed in to change notification settings - Fork 128
manta-farming #1141
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
Merged
Merged
manta-farming #1141
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
d66df3d
add farming
zqhxuyuan c006a34
clean
zqhxuyuan bce3c29
update origin
zqhxuyuan b040026
clean
zqhxuyuan 5d61914
comments and clean
zqhxuyuan 8cca668
Merge branch 'manta' into farming
Dengjianping 13794db
fix comments
zqhxuyuan 38962cd
Merge branch 'manta' into farming
zqhxuyuan 6162060
refactor reward calculation
zqhxuyuan 6124dfe
Merge remote-tracking branch 'origin/manta' into farming
zqhxuyuan 7e1664a
update version
zqhxuyuan 4497fdd
format
zqhxuyuan 2db5d5a
set non-native asset allow death
zqhxuyuan fcae992
refactor gauge too
zqhxuyuan b162343
refactor gauge rate
zqhxuyuan 1b4a908
add charge weight and refactor gauge add
zqhxuyuan 25ca1e5
rpc async
zqhxuyuan 16c0230
update tests
zqhxuyuan 04ef987
manta farming
zqhxuyuan cd8c224
add to manta
zqhxuyuan f08f9c2
merge
zqhxuyuan 4440e47
more tests
zqhxuyuan 00551cb
gauge error
zqhxuyuan 184438b
native token allowdeath
zqhxuyuan db1f76d
more tests
zqhxuyuan 44cb6a5
address comments
zqhxuyuan ee8a9a6
Merge branch 'manta' into farming
zqhxuyuan 23c4374
pid to pool_id and add min deposit
zqhxuyuan 5d5153c
event use pid
zqhxuyuan e6d5bc9
ensure retire limit not zero
zqhxuyuan 9e70eb0
retire limit
zqhxuyuan 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,63 @@ | ||
[package] | ||
authors = ['Manta Network'] | ||
description = 'Pallet implementing farming protocol.' | ||
edition = "2021" | ||
homepage = "https://manta.network" | ||
license = "GPL-3.0" | ||
name = "pallet-farming" | ||
repository = 'https://github.com/Manta-Network/Manta/' | ||
version = "4.2.0" | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false, features = ["derive"] } | ||
hex-literal = { version = "0.3.1" } | ||
log = { version = "0.4.16", default-features = false } | ||
scale-info = { version = "2.3.1", default-features = false, features = ["derive"] } | ||
|
||
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false, optional = true } | ||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37", default-features = false } | ||
|
||
manta-primitives = { path = '../../primitives/manta', default-features = false } | ||
orml-traits = { git = "https://github.com/manta-network/open-runtime-module-library.git", branch = "polkadot-v0.9.37", default-features = false } | ||
pallet-asset-manager = { path = "../asset-manager", default-features = false, optional = true } | ||
pallet-assets = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37", default-features = false, optional = true } | ||
xcm = { git = "https://github.com/paritytech/polkadot.git", branch = "release-v0.9.37", default-features = false, optional = true } | ||
|
||
[dev-dependencies] | ||
pallet-assets = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } | ||
pallet-balances = { git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.37" } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"codec/std", | ||
"log/std", | ||
"frame-benchmarking/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"manta-primitives/std", | ||
"scale-info/std", | ||
"pallet-assets/std", | ||
"pallet-asset-manager/std", | ||
"xcm/std", | ||
] | ||
|
||
runtime-benchmarks = [ | ||
"frame-benchmarking/runtime-benchmarks", | ||
"pallet-assets/runtime-benchmarks", | ||
"xcm", | ||
"pallet-asset-manager", | ||
] | ||
try-runtime = ["frame-support/try-runtime"] |
This file contains hidden or 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,22 @@ | ||
[package] | ||
authors = ['Manta Network'] | ||
edition = "2021" | ||
homepage = "https://manta.network" | ||
license = "GPL-3.0" | ||
name = "pallet-farming-rpc-api" | ||
repository = 'https://github.com/Manta-Network/Manta/' | ||
version = "4.2.0" | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false, features = ["derive"] } | ||
jsonrpsee = { version = "0.16.2", features = ["server", "macros"] } | ||
serde = { version = "1.0.140", features = ["derive"] } | ||
|
||
sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.37" } | ||
|
||
manta-primitives = { path = '../../../primitives/manta', default-features = false } | ||
pallet-farming-rpc-runtime-api = { path = "./runtime-api" } |
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.
Uh oh!
There was an error while loading. Please reload this page.