Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 90 additions & 90 deletions src/constants/networkLimits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,36 +83,36 @@ export const MAINNET_LIMITS: NetworkLimits = {
"persistent_rent_rate_denominator": "1215",
"temp_rent_rate_denominator": "2430",
"live_soroban_state_size_window": [
"852368387",
"852824183",
"853370379",
"854373107",
"855134567",
"855241879",
"855738175",
"855963831",
"857061863",
"857988323",
"858394695",
"858972283",
"859329935",
"860093843",
"860946023",
"861117427",
"861482179",
"861798307",
"862696991",
"863647335",
"864136747",
"864698615",
"865138159",
"865952947",
"867058303",
"867821087",
"868364459",
"868734591",
"869476303",
"870443887"
"791250907",
"791853931",
"792884003",
"793576491",
"793784683",
"794567611",
"795141747",
"796258715",
"797308003",
"797401883",
"798072711",
"798567259",
"799465283",
"800436875",
"800518355",
"801253267",
"801852603",
"802838415",
"803847695",
"803835703",
"804492103",
"805041175",
"806080615",
"807022487",
"807265587",
"807946495",
"808582551",
"809626271",
"810414147",
"810618963"
],
"state_target_size_bytes": "3000000000",
"rent_fee_1kb_state_size_low": "-17000",
Expand Down Expand Up @@ -151,36 +151,36 @@ export const TESTNET_LIMITS: NetworkLimits = {
"persistent_rent_rate_denominator": "1215",
"temp_rent_rate_denominator": "2430",
"live_soroban_state_size_window": [
"846397241",
"847121857",
"847139333",
"847273481",
"847046109",
"847081249",
"847101749",
"847109945",
"847111325",
"847945132",
"847923494",
"847910066",
"848052948",
"848046756",
"848050024",
"848066836",
"848094724",
"848098856",
"848108156",
"848111940",
"848110876",
"848114900",
"848123372",
"848149900",
"851659787",
"851667547",
"851674891",
"851608707",
"851612027",
"851549795"
"854168996",
"854199456",
"854219060",
"854252520",
"854298192",
"854302940",
"854312008",
"854320276",
"854350732",
"855014558",
"855021910",
"855031634",
"854497753",
"854525577",
"854060849",
"854264693",
"854199717",
"851950165",
"851267749",
"851277737",
"851287165",
"851297885",
"851572207",
"852070717",
"853913745",
"854504559",
"854531839",
"856624623",
"856652419",
"856688267"
],
"state_target_size_bytes": "3000000000",
"rent_fee_1kb_state_size_low": "-17000",
Expand Down Expand Up @@ -219,36 +219,36 @@ export const FUTURENET_LIMITS: NetworkLimits = {
"persistent_rent_rate_denominator": "1215",
"temp_rent_rate_denominator": "2430",
"live_soroban_state_size_window": [
"65487329",
"65487329",
"65487329",
"65487329",
"65487329",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65232099",
"65231755",
"65231755",
"65231411",
"65230091",
"65230091",
"65230091"
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715",
"65228715"
],
"state_target_size_bytes": "3000000000",
"rent_fee_1kb_state_size_low": "-17000",
Expand Down
8 changes: 8 additions & 0 deletions src/helpers/formatContractInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ const formatFnInputs = (inputs: any) => {
return "";
}

// inputs is an array of {name, type} objects from parseContractMetadata
if (Array.isArray(inputs)) {
return inputs
.map((input: any) => `${input.name}: ${input.type}`)
.join(", ");
}

// Fallback for object format {paramName: {type}}
return Object.entries(inputs)
.map(([key, value]) => {
return `${key}: ${(value as any).type}`;
Expand Down
Loading