Add tests for referral stats, distribution contract, price oracle + SDK types - #570
Merged
Conversation
- tests_referral.rs: referral count increments on submission, returns 0 for unknown codes, and batch submissions count referrals correctly (also fixes an existing type error: ReferralCode::Present(..) instead of Some(..)) - tests_distribution.rs: set_distribution_contract as admin, rejects non-admin, notify_distribution_funding invoked during fund_invoice (also fixes broken initialize/submit_invoice call arity) - tests_new_features.rs: get_price_oracle defaults to None, set_price_oracle succeeds as admin and is reflected in get_price_oracle, rejects non-admin - sdk/src/types.ts: add TypeScript types for InvoiceNftMetadata, LpFundRequest, AppealRecord, DisputeRecord, TopPayerEntry, ReputationProfile, ContractStats Resolves Invoice-Liquidity-Network#492, Invoice-Liquidity-Network#493, Invoice-Liquidity-Network#494, Invoice-Liquidity-Network#564
|
@cristianooR7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…dk-types, preserving new invoice liquidity referral/distribution tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves
Closes #492
Closes #493
Closes #494
Closes #564
Note: fixed two pre-existing compile errors found while adding these tests (ReferralCode type mismatch in tests_referral.rs, wrong initialize/submit_invoice arity in tests_distribution.rs).