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

fix: 🐛 fmt #555

Merged
merged 1 commit into from
Apr 21, 2022
Merged

fix: 🐛 fmt #555

merged 1 commit into from
Apr 21, 2022

Conversation

yooml
Copy link
Contributor

@yooml yooml commented Apr 21, 2022

No description provided.

@ark930 ark930 merged commit 3ec9400 into v0.9.40 Apr 21, 2022
@ark930 ark930 deleted the vtoken-minting-fix branch April 21, 2022 08:48
ark930 added a commit that referenced this pull request Apr 24, 2022
* first add slp pallet

* split kusama_agent from pallet<T>

* impl KusamaAgent initialize_delegator function

* basic setup for kusama_agent

* add set storage dispatchables

* remove unecessary getters in trait DeligatorManager and ValidatorManager

* add minimum and maximum constraints

* add minimumsAndMaximums constraints setter

* bond function implementation

* fix bond impl's call into call as derivative

* impl bond_extra function

* extract the common function construct_xcm_and_send_as_subaccount

* add storage ValidatorsByDelegator<T> and some maximum bounds

* delete currency_id as a param to pass to KSMAgent, and write initialize_delegator outer call

* change CurrencyId and Balance types from trait type endownment into trait type generic

* add bond_extra outer callable

* impl unbond function and outer callable

* add rebond impl

* change the way of currency matching agent struct

* fix decoding error

* add delegate implementation

* add redelegate implementation

* add implementation for undelegate

* add liquidize implementation

* add trait VtokenMintingOperator to act as the interface to interact with module VtokenMinting

* impl DelegatorManager trait

* impl callable set_delegators

* impl validatorManager trait

* add kill, transfer_back and transfer_to functions to StakingAgent trait

* implement transfer_to function of stakingAgent trait

* impl chill function of StakingAgent trait

* impl callable refund_currency_due_unbond

* impl move_fund_from_exit_to_entrance_account callable

* impl supplement_fee_reserve function in StakingFeeManager trait

* fix bond function payee param

* impl callable transfer_back

* impl callable chill

* impl callable transfer_to

* add update token_to_add and token_to_deduct functions

* fixes for callable origin

* slp mock setup

* impll some storage setters

* impl unbod_all and set_delegator_ledger callables

* ajustments for slp mock environment

* add slp to bifrost-kusama-runtime

* change cross-chain transfer module from xtokens to XcmExecutor

* fix local multilocation

* move some convert utility functions from agent to lib

* integration tests temp save

* integration tests temp save 2

* bond_extra_works

* move out delegator register frrom register_subaccount_index_0()

* Fix transfer fee location

* transfer_to_works

* Fix bond call

* unbond_works

* rebond_works

* fix add_validator

* register_validators

* temp save

* fix nominate

* delegate_works

* undelegate_works

* redelegate_works

* payout_works

* liquidize_works

* chill_works

* transfer_back_works

* supplement_fee_reserve_works

* tests

* new test

* Fix tests

* Bump serde_json from 1.0.78 to 1.0.79 (#496)

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.78 to 1.0.79.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.78...v1.0.79)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: 🎸 add pallet vtoken-minting

* feat: 🎸 define storage

* feat: 🎸 define Event and Error

* feat: 🎸 add tx logic

* feat: 🎸 add VtokenMintingOperator

* fix: 🐛 fix redeem

* feat: 🎸 impl rebond

* fix: 🐛 fix era

* feat: 🎸 update VtokenMintingOperator

* fix: 🐛 fix rebond

* feat: 🎸 add weights.rs

* fix: 🐛 fix hook

* feat: 🎸 add test

* fix: 🐛 fix mint & redeem test

* fix: 🐛 change Era to TimeUnit

* fix: 🐛 fix rebond test

* fix: 🐛 fix redeem

* feat: 🎸 add hook test

* fix: 🐛 fix

* fix: 🐛 fix name

* feat: 🎸 add Cargo.toml

* merge vtoken-minting and slp two modules

* fix slp cargo.toml

* vtoken-minting operater api testing

* add some assert_eq

* fix: 🐛 fix deduct_unlock_amount

* fix auto transfer from exit account to entrance account

* more tests

* add some more unit tests for slp

* fix slp integration test

* version change to 0.9.40

* fix: 🐛 fix unwrap

* fix: 🐛 fix match

* fix: 🐛 fix exchange rate calculation

* fix-vksm-ed

* fix-update-ongoing-time-unit

* first draft of frame

* first draft of frame

* expose interface to confirm xcm query response for outer calls

* add QueryResponse check functions

* simplify struct KusamaAgent generics

* fix: 🐛 change saturating_mul to checked_mul

* deal with xcm query response

* add query into update entry

* fix: 🐛 fix hook

* add auto delete ouutdated query

* feat: 🎸 add get_token_pool

* add update entry solution for liquidize

* add charging hosting fee function

* fix exit_account_balance ed

* split construct_xcm_message into with or without query_id functions

* fix on_initialize counter

* fix slp mock for ResponseManager

* slp integration tests fixed

* restrict the usage of transfer_to and transfer_back

* optimize ensure_authorized

* fix confirm and fail origin

* fixes

* temporarily banned Queries storage removing checking

* add transactional tag and put sending xcm to the last step of functions

* splict tune_vtoken_exchange_rate function and adjust the operation authority of some callables

* fix charge_host_fee_and_tune_vtoken_exchange_rate and add its unit tests

* fix: 🐛 fix

* feat: 🎸 add mint_without_tranfer

* feat: 🎸 add rebond_by_unlock_id

* feat: 🎸 add tests::rebond_by_unlock_id

* fix confirm_delegator_ledger_query_response and add integration test for it ffor i

* fix: 🐛 fix

* add integration test confirm_delegator_ledger_query_response_with_bond_extra_works

* fix: 🐛 fix

* fixes for confirm and fail functions and add some integration tests

* fix: 🐛 fix MinTimeUnit

* reduce the number of cloning

* add compact to numbers

* fix: 🐛 fix hook

* feat: 🎸 add currency_unlocking_total

* remove increase/decrease token_to_add and token_to_deduct

* fix: 🐛 fix

* fix: 🐛 fmt

* fix payout interest ledger update

* change set_delegator_ledger origin to include multisig account

* merge traits into only one trait StakingAgent

* fix private import

* prefer use contains_key to check value exists

* add DelegatorLatestTuneRecord and CurrencyTuneExchangeRateLimit storage

* fix transactional

* ensure source is located within BBifrost for do_transfer_to function in Kusama Agent

* refactor: 💡 add handle_on_initialize

* batch remarkWithEvent call with xcm calls that have query_id

* fix: 🐛 fmt

* fix: 🐛 fix

* add query_id hash to relevant events

* fix: 🐛 fix

* fix integrity test

* fix: 🐛 fmt (#555)

* Fix too large call data

* change percent to perrmill

* refactor: 💡 Fees

* fix: 🐛 fix

* fix: 🐛 fix vstoken-conversion

* fix: 🐛 fix

* fix: 🐛 fix MaximumUnlockId

* fx due era refund number perblock

Co-authored-by: ronyang <yrong1997@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yooml <ymlll0508@gmail.com>
Co-authored-by: Edwin Wang <lark930@gmail.com>
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.

2 participants