Skip to content

Commit fa65843

Browse files
amilzdev-jodee
authored andcommitted
chore/update kora.toml
add token22 and cache to sample kora toml
1 parent 9dd8816 commit fa65843

File tree

3 files changed

+95
-6
lines changed

3 files changed

+95
-6
lines changed

docs/getting-started/demo/server/kora.toml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ rate_limit = 100
33
# Optional: Payment address to receive payment tokens (defaults to signer address)
44
# payment_address = "YourPaymentAddressPubkey11111111111111111111"
55

6+
[kora.cache]
7+
enabled = false
8+
default_ttl = 300
9+
account_ttl = 60
10+
611
[kora.enabled_methods]
712
liveness = false
813
estimate_transaction_fee = true
@@ -45,4 +50,32 @@ allow_token2022_transfers = true
4550
allow_assign = true
4651
allow_burn = true
4752
allow_close_account = true
48-
allow_approve = true
53+
allow_approve = true
54+
55+
[validation.price]
56+
type = "margin" # free / margin / fixed
57+
margin = 0.1 # Default margin (10%) for paid transaction validation
58+
59+
60+
[validation.token2022]
61+
blocked_mint_extensions = [
62+
# "confidential_transfer_mint", # Confidential transfer configuration for the mint
63+
# "confidential_mint_burn", # Confidential mint and burn configuration
64+
# "transfer_fee_config", # Transfer fee configuration
65+
# "mint_close_authority", # Authority allowed to close the mint
66+
# "interest_bearing_config", # Interest-bearing token configuration
67+
# "non_transferable", # Makes tokens non-transferable
68+
# "permanent_delegate", # Permanent delegate for the mint
69+
# "transfer_hook", # Block tokens with transfer hooks
70+
# "pausable", # Block pausable tokens
71+
]
72+
blocked_account_extensions = [
73+
# "confidential_transfer_account", # Confidential transfer state for the account
74+
# "non_transferable_account", # Non-transferable token account
75+
# "transfer_hook_account", # Transfer hook state for the account
76+
# "pausable_account", # Pausable token account state
77+
# "memo_transfer", # Requires memo for transfers
78+
# "cpi_guard", # Prevents certain CPI calls
79+
# "immutable_owner", # Account owner cannot be changed
80+
# "default_account_state", # Default state for new accounts
81+
]

docs/operators/deploy/sample/kora.toml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ rate_limit = 100
99
# Optional: HMAC secret for signed requests
1010
# hmac_secret = "your-hmac-secret-here"
1111

12+
[kora.cache]
13+
enabled = false
14+
default_ttl = 300
15+
account_ttl = 60
16+
1217
[validation]
1318
price_source = "Mock"
1419
max_allowed_lamports = 1000000
@@ -58,7 +63,35 @@ get_payer_signer = true
5863
type = "margin" # free / margin / fixed
5964
margin = 0.1 # Default margin (10%) for paid transaction validation
6065

61-
[kora.cache]
62-
enabled = false
63-
default_ttl = 300
64-
account_ttl = 60
66+
[validation.token2022]
67+
blocked_mint_extensions = [
68+
# "confidential_transfer_mint", # Confidential transfer configuration for the mint
69+
# "confidential_mint_burn", # Confidential mint and burn configuration
70+
# "transfer_fee_config", # Transfer fee configuration
71+
# "mint_close_authority", # Authority allowed to close the mint
72+
# "interest_bearing_config", # Interest-bearing token configuration
73+
# "non_transferable", # Makes tokens non-transferable
74+
# "permanent_delegate", # Permanent delegate for the mint
75+
# "transfer_hook", # Block tokens with transfer hooks
76+
# "pausable", # Block pausable tokens
77+
]
78+
blocked_account_extensions = [
79+
# "confidential_transfer_account", # Confidential transfer state for the account
80+
# "non_transferable_account", # Non-transferable token account
81+
# "transfer_hook_account", # Transfer hook state for the account
82+
# "pausable_account", # Pausable token account state
83+
# "memo_transfer", # Requires memo for transfers
84+
# "cpi_guard", # Prevents certain CPI calls
85+
# "immutable_owner", # Account owner cannot be changed
86+
# "default_account_state", # Default state for new accounts
87+
]
88+
89+
[metrics]
90+
enabled = true
91+
endpoint = "/metrics"
92+
port = 8080 # Same port as main server, or separate port like 9090
93+
scrape_interval = 60
94+
95+
[metrics.fee_payer_balance]
96+
enabled = true
97+
expiry_seconds = 30

kora.toml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,29 @@ allow_approve = true # Allow fee payer to approve tokens
6060
type = "margin" # free / margin / fixed
6161
margin = 0.1 # Default margin (10%) for paid transaction validation
6262

63+
[validation.token2022]
64+
blocked_mint_extensions = [
65+
# "confidential_transfer_mint", # Confidential transfer configuration for the mint
66+
# "confidential_mint_burn", # Confidential mint and burn configuration
67+
# "transfer_fee_config", # Transfer fee configuration
68+
# "mint_close_authority", # Authority allowed to close the mint
69+
# "interest_bearing_config", # Interest-bearing token configuration
70+
# "non_transferable", # Makes tokens non-transferable
71+
# "permanent_delegate", # Permanent delegate for the mint
72+
# "transfer_hook", # Block tokens with transfer hooks
73+
# "pausable", # Block pausable tokens
74+
]
75+
blocked_account_extensions = [
76+
# "confidential_transfer_account", # Confidential transfer state for the account
77+
# "non_transferable_account", # Non-transferable token account
78+
# "transfer_hook_account", # Transfer hook state for the account
79+
# "pausable_account", # Pausable token account state
80+
# "memo_transfer", # Requires memo for transfers
81+
# "cpi_guard", # Prevents certain CPI calls
82+
# "immutable_owner", # Account owner cannot be changed
83+
# "default_account_state", # Default state for new accounts
84+
]
85+
6386
[metrics]
6487
enabled = true
6588
endpoint = "/metrics"
@@ -68,4 +91,4 @@ scrape_interval = 60
6891

6992
[metrics.fee_payer_balance]
7093
enabled = true
71-
expiry_seconds = 30 # 30 seconds
94+
expiry_seconds = 30

0 commit comments

Comments
 (0)