File tree Expand file tree Collapse file tree 27 files changed +465
-0
lines changed
pallets/pallet-bonded-coins/src Expand file tree Collapse file tree 27 files changed +465
-0
lines changed Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
118use frame_benchmarking:: v2:: * ;
219use frame_support:: traits:: fungibles:: roles:: Inspect as InspectRoles ;
320use sp_core:: U256 ;
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119/// Implementation of the [Logarithmic Market Scoring Rule (LMSR)](https://mason.gmu.edu/~rhanson/mktscore.pdf) bonding curve.
220///
321/// This module provides an LMSR bonding curve implementation, which determines
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119/// Curve Module
220///
321/// This module defines various curve types and their associated parameters used
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119/// Polynomial Bonding Curve Implementation.
220///
321/// This module provides an implementation of a polynomial bonding curve.
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119/// Square Root Bonding Curve Implementation.
220///
321/// This module provides an implementation of a square root bonding curve, with
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119#![ cfg_attr( not( feature = "std" ) , no_std) ]
220
321pub use pallet:: * ;
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
118use frame_support:: Hashable ;
219use parity_scale_codec:: Codec ;
320use substrate_fixed:: traits:: { FixedSigned , FixedUnsigned } ;
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
118use crate :: {
219 curves:: { balance_to_fixed, fixed_to_balance} ,
320 mock:: runtime:: Float ,
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
18+
119use std:: str:: FromStr ;
220
321use crate :: {
Original file line number Diff line number Diff line change 1+ // KILT Blockchain – https://botlabs.org
2+ // Copyright (C) 2019-2024 BOTLabs GmbH
3+
4+ // The KILT Blockchain is free software: you can redistribute it and/or modify
5+ // it under the terms of the GNU General Public License as published by
6+ // the Free Software Foundation, either version 3 of the License, or
7+ // (at your option) any later version.
8+
9+ // The KILT Blockchain is distributed in the hope that it will be useful,
10+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ // GNU General Public License for more details.
13+
14+ // You should have received a copy of the GNU General Public License
15+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+ // If you feel like getting in touch with us, you can do so at info@botlabs.org
118mod arithmetic;
219mod lmsr;
320mod polynomial;
You can’t perform that action at this time.
0 commit comments