Skip to content

Commit

Permalink
Merge pull request #11 from galacticcouncil/feat/lbp
Browse files Browse the repository at this point in the history
feat: LBP pallet
  • Loading branch information
mrq1911 committed Jun 16, 2021
2 parents 6638654 + e56f03b commit dab2298
Show file tree
Hide file tree
Showing 11 changed files with 4,330 additions and 8 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -19,6 +19,10 @@ jobs:
outputs:
runner: ${{ steps.determine-runner.outputs.runner }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- id: determine-runner
name: Determine runner
run: if $IS_LOCAL; then echo "::set-output name=runner::${{ github.sha }}"; else echo "::set-output name=runner::ubuntu-latest"; fi;
Expand Down Expand Up @@ -79,6 +83,9 @@ jobs:
default: true
- name: Tests
run: time cargo test --all --release --verbose --locked
- name: Test benchmarks
run: cargo test --release --features runtime-benchmarks -p pallet-lbp
working-directory: node
- name: Build release
run: time cargo build --release --verbose
- name: Version info
Expand Down Expand Up @@ -107,8 +114,10 @@ jobs:
EC2_SECRET: ${{ secrets.EC2_PWD }}
S3_BACKEND_KEY_NAME: tf-state-${{ github.sha }}
steps:
- name: checkout code
uses: actions/checkout@v2.1.0
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: setup node
uses: actions/setup-node@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -29,6 +29,7 @@ rococo-local.json
rococo-local-raw.json
*.log

*.orig
scripts/polkadot-launch/
node_modules/
_actions/
Expand Down
47 changes: 45 additions & 2 deletions Cargo.lock

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

69 changes: 69 additions & 0 deletions pallets/lbp/Cargo.toml
@@ -0,0 +1,69 @@
[package]
authors = ['GalacticCouncil']
description = 'HydraDX Liquidity Bootstrapping Pool Pallet'
edition = '2018'
homepage = 'https://github.com/galacticcouncil/Basilisk-node'
license = 'Apache 2.0'
name = 'pallet-lbp'
repository = 'https://github.com/galacticcouncil/Basilisk-node'
version = '1.0.0'

[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']

[build-dependencies]
wasm-builder-runner = {package = 'substrate-wasm-builder-runner', version = '1.0.5'}

# alias "parity-scale-code" to "codec"
[dependencies.codec]
default-features = false
features = ['derive']
package = 'parity-scale-codec'
version = '2.0.0'

[dependencies]
primitive-types = {default-features = false, version = '0.8.0'}
serde = {features = ['derive'], optional = true, version = '1.0.101'}

hydra-dx-math = {default-features = false, version = "2.0.0"}

## Local dependencies
primitives = { default-features = false, version = '4.1.0' }

## ORML dependencies
orml-traits = {default-features = false, version = "0.4.1-dev"}

## Substrate dependencies
frame-benchmarking = {default-features = false, optional = true, version = '3.0.0'}
frame-support = {default-features = false, version = '3.0.0'}
frame-system = {default-features = false, version = '3.0.0'}
frame-system-benchmarking = {default-features = false, optional = true, version = '3.0.0'}
sp-std = {default-features = false, version = '3.0.0'}

# Needed for benchmarks
orml-tokens = {default-features = false, version = "0.4.1-dev"}
sp-core = {default-features = false, version = '3.0.0'}
sp-runtime = {default-features = false, version = '3.0.0'}

[dev-dependencies]
sp-io = {default-features = false, version = '3.0.0'}

[features]
default = ['std']
runtime-benchmarks = [
"frame-benchmarking",
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
]
std = [
'serde',
'codec/std',
'frame-support/std',
'frame-system/std',
'orml-tokens/std',
'orml-traits/std',
'sp-runtime/std',
'sp-core/std',
'sp-std/std',
'primitives/std',
]

0 comments on commit dab2298

Please sign in to comment.