Sundae
SundaeSwap DEX module.
AmountOut
dataclass
Bases: PlutusData
Minimum amount to receive.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
48 49 50 51 52 53 |
|
AtoB
dataclass
Bases: PlutusData
A to B swap direction.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
34 35 36 37 38 |
|
BtoA
dataclass
Bases: PlutusData
B to A swap direction.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
41 42 43 44 45 |
|
DepositConfig
dataclass
Bases: PlutusData
Deposit configuration.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
84 85 86 87 88 89 90 |
|
DepositPair
dataclass
Bases: PlutusData
Deposit pair.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
76 77 78 79 80 81 |
|
DepositPairQuantity
dataclass
Bases: PlutusData
Deposit pair quantity.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
67 68 69 70 71 72 73 |
|
LPFee
dataclass
Bases: PlutusData
Liquidity pool fee.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
378 379 380 381 382 383 384 |
|
LiquidityPoolAssets
dataclass
Bases: PlutusData
Liquidity pool assets.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
387 388 389 390 391 392 393 |
|
SundaeAddressWithDatum
dataclass
Bases: PlutusData
SundaeSwap address with datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
from_address(address: Address) -> SundaeAddressWithDatum
classmethod
Create a new address with datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
133 134 135 136 |
|
SundaeAddressWithDestination
dataclass
Bases: PlutusData
For now, destination is set to none, should be updated.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
|
from_address(address: Address) -> SundaeAddressWithDestination
classmethod
Create a new address with destination.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
167 168 169 170 171 |
|
SundaeOrderDatum
dataclass
Bases: OrderDatum
SundaeSwap order datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
|
address_source() -> Address
Get the source address.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
207 208 209 |
|
create_datum(ident: bytes, address_source: Address, in_assets: Assets, out_assets: Assets, fee: int) -> SundaeOrderDatum
classmethod
Create a new order datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
|
order_type() -> OrderType | None
Get the order type.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
221 222 223 224 225 226 227 228 229 230 231 |
|
requested_amount() -> Assets
Get the requested amount.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
211 212 213 214 215 216 217 218 219 |
|
SundaePoolDatum
dataclass
Bases: PoolDatum
SundaeSwap pool datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
396 397 398 399 400 401 402 403 404 405 406 |
|
SundaeSwapCPPState
Bases: AbstractConstantProductPoolState
SundaeSwap constant product pool state.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 |
|
pool_id: str
property
A unique identifier for the pool.
stake_address: Address
property
Get the stake address.
swap_forward: bool
property
Check if swap forwarding is enabled.
dex() -> str
classmethod
Get the DEX name.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
458 459 460 461 |
|
extract_pool_nft(values) -> Assets
classmethod
Extract the pool NFT.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
520 521 522 523 524 525 526 527 528 529 |
|
order_datum_class() -> type[SundaeOrderDatum]
classmethod
Get the order datum class.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
484 485 486 487 |
|
order_selector() -> list[str]
classmethod
Get the order selector.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
463 464 465 466 |
|
pool_datum_class() -> type[SundaePoolDatum]
classmethod
Get the pool datum class.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
489 490 491 492 |
|
pool_policy() -> list[str]
classmethod
Get the pool policy.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
531 532 533 534 |
|
post_init(values)
classmethod
Post initialization.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 |
|
skip_init(values) -> bool
classmethod
Skip the initialization process.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
|
swap_datum(address_source: Address, in_assets: Assets, out_assets: Assets, extra_assets: Assets | None = None, address_target: Address | None = None, datum_target: PlutusData | None = None) -> PlutusData
Create a swap datum.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 |
|
SundaeSwapV3CPPState
Bases: AbstractConstantProductPoolState
Source code in src/charli3_dendrite/dexs/amm/sundae.py
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
|
pool_id: str
property
A unique identifier for the pool.
SwapConfig
dataclass
Bases: PlutusData
Swap configuration.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
56 57 58 59 60 61 62 63 64 |
|
WithdrawConfig
dataclass
Bases: PlutusData
Withdraw configuration.
Source code in src/charli3_dendrite/dexs/amm/sundae.py
93 94 95 96 97 98 99 |
|