-
Notifications
You must be signed in to change notification settings - Fork 10
docs: add conditional sponsorship rules guide under sponsor gas #1013
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
docs: add conditional sponsorship rules guide under sponsor gas #1013
Conversation
🌿 Documentation Preview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bcb2221862
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
| * **Max transactions per user**: Limit number of sponsored transactions per user | ||
| * **Sender allowlist / blocklist**: Explicitly allow or deny sponsorship for selected senders | ||
|
|
||
| These limits are ideal for growth campaigns, onboarding credits, and controlled rollouts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| These limits are ideal for growth campaigns, onboarding credits, and controlled rollouts. |
|
|
||
| 1. Start with built-in limits for immediate spend protection | ||
| 2. Add webhook rules for business-specific checks | ||
| 3. Decide your failure mode (`approveOnFailure`) based on risk tolerance: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 3. Decide your failure mode (`approveOnFailure`) based on risk tolerance: |
| 1. Start with built-in limits for immediate spend protection | ||
| 2. Add webhook rules for business-specific checks | ||
| 3. Decide your failure mode (`approveOnFailure`) based on risk tolerance: | ||
| * Prefer uptime: set to `true` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Prefer uptime: set to `true` |
| 2. Add webhook rules for business-specific checks | ||
| 3. Decide your failure mode (`approveOnFailure`) based on risk tolerance: | ||
| * Prefer uptime: set to `true` | ||
| * Prefer strict control: set to `false` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * Prefer strict control: set to `false` |
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx
Outdated
Show resolved
Hide resolved
…sponsorship-rules.mdx
…sponsorship-rules.mdx
…sponsorship-rules.mdx
Motivation
Description
fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdxthat documents built-in policy limits, webhook-based custom rules, request/response examples, and recommended setup patterns.fern/wallets/pages/transactions/sponsor-gas/overview.mdx.fern/docs.ymlunder the Transactions → Sponsor gas section.Testing
pnpm -s prettier --checkagainst the changed files (fern/wallets/pages/transactions/sponsor-gas/conditional-sponsorship-rules.mdx,fern/wallets/pages/transactions/sponsor-gas/overview.mdx,fern/docs.yml) and it passed.pnpm -s fern:checkwhich failed in this environment due to external/network-related Fern telemetry and missing pre-generated specs unrelated to the docs edits, so it did not indicate issues with the content changes.Codex Task