-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy pathkora.toml
More file actions
97 lines (88 loc) · 3.89 KB
/
kora.toml
File metadata and controls
97 lines (88 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[kora]
rate_limit = 100
# Optional: Payment address to receive payment tokens (defaults to signer address)
# payment_address = "YourPaymentAddressPubkey11111111111111111111"
[kora.auth]
# Optional: API key for simple authentication
# api_key = "your-api-key-here"
# Optional: HMAC secret for signed requests
# hmac_secret = "your-hmac-secret-here"
[kora.cache]
enabled = false
default_ttl = 300
account_ttl = 60
[validation]
price_source = "Mock"
max_allowed_lamports = 1000000
max_signatures = 10
allowed_programs = [
"11111111111111111111111111111111", # System Program
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", # Token Program
"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL", # Associated Token Program
"AddressLookupTab1e1111111111111111111111111", # Address Lookup Table Program
"ComputeBudget11111111111111111111111111111111", # Compute Budget Program
]
allowed_tokens = [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # mainnet USDC
"So11111111111111111111111111111111111111112", # SOL
"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU", # devnet USDC
]
allowed_spl_paid_tokens = [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # mainnet USDC
"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU", # devnet USDC
]
disallowed_accounts = []
# Fee payer policy controls what actions the fee payer can perform
# All default to false for security
[validation.fee_payer_policy]
allow_sol_transfers = true # Allow fee payer to be source in SOL transfers
allow_spl_transfers = true # Allow fee payer to be source in SPL token transfers
allow_token2022_transfers = true # Allow fee payer to be source in Token2022 transfers
allow_assign = true # Allow fee payer to use Assign instruction
allow_burn = true # Allow fee payer to burn tokens from their accounts
allow_close_account = true # Allow fee payer to close their token accounts
allow_approve = true # Allow fee payer to approve tokens from their accounts
[kora.enabled_methods]
liveness = false
estimate_transaction_fee = true
get_supported_tokens = true
sign_transaction = true
sign_and_send_transaction = true
transfer_transaction = true
get_blockhash = true
get_config = true
sign_transaction_if_paid = true
get_payer_signer = true
[validation.price]
type = "margin" # free / margin / fixed
margin = 0.1 # # 10% margin (0.1 = 10%, 1.0 = 100%)
[validation.token2022]
blocked_mint_extensions = [
# "confidential_transfer_mint", # Confidential transfer configuration for the mint
# "confidential_mint_burn", # Confidential mint and burn configuration
# "transfer_fee_config", # Transfer fee configuration
# "mint_close_authority", # Authority allowed to close the mint
# "interest_bearing_config", # Interest-bearing token configuration
# "non_transferable", # Makes tokens non-transferable
# "permanent_delegate", # Permanent delegate for the mint
# "transfer_hook", # Block tokens with transfer hooks
# "pausable", # Block pausable tokens
]
blocked_account_extensions = [
# "confidential_transfer_account", # Confidential transfer state for the account
# "non_transferable_account", # Non-transferable token account
# "transfer_hook_account", # Transfer hook state for the account
# "pausable_account", # Pausable token account state
# "memo_transfer", # Requires memo for transfers
# "cpi_guard", # Prevents certain CPI calls
# "immutable_owner", # Account owner cannot be changed
# "default_account_state", # Default state for new accounts
]
[metrics]
enabled = true
endpoint = "/metrics"
port = 8080 # Same port as main server, or separate port like 9090
scrape_interval = 60
[metrics.fee_payer_balance]
enabled = true
expiry_seconds = 30