()
| 685 | |
| 686 | #[test] |
| 687 | fn examples() { |
| 688 | assert_app_data!( |
| 689 | r#" |
| 690 | { |
| 691 | "appCode": "CoW Swap", |
| 692 | "environment": "production", |
| 693 | "version": "0.9.0" |
| 694 | } |
| 695 | "#, |
| 696 | ProtocolAppData::default(), |
| 697 | ); |
| 698 | |
| 699 | assert_app_data!( |
| 700 | r#" |
| 701 | { |
| 702 | "appCode": "CoW Swap", |
| 703 | "environment": "production", |
| 704 | "metadata": { |
| 705 | "quote": { |
| 706 | "slippageBips": "50" |
| 707 | }, |
| 708 | "orderClass": { |
| 709 | "orderClass": "market" |
| 710 | } |
| 711 | }, |
| 712 | "version": "0.9.0" |
| 713 | } |
| 714 | "#, |
| 715 | ProtocolAppData::default(), |
| 716 | ); |
| 717 | |
| 718 | assert_app_data!( |
| 719 | r#" |
| 720 | { |
| 721 | "appCode": "CoW Swap", |
| 722 | "environment": "production", |
| 723 | "metadata": { |
| 724 | "quote": { |
| 725 | "slippageBips": "50" |
| 726 | }, |
| 727 | "orderClass": { |
| 728 | "orderClass": "market" |
| 729 | }, |
| 730 | "hooks": { |
| 731 | "pre": [ |
| 732 | { |
| 733 | "target": "0x0000000000000000000000000000000000000000", |
| 734 | "callData": "0x", |
| 735 | "gasLimit": "0" |
| 736 | } |
| 737 | ], |
| 738 | "post": [ |
| 739 | { |
| 740 | "target": "0x0101010101010101010101010101010101010101", |
| 741 | "callData": "0x01", |
| 742 | "gasLimit": "1" |
| 743 | }, |
| 744 | { |
nothing calls this directly
no outgoing calls
no test coverage detected