{ "p": "test", "v": "0.1", "op": "deploy", "name": "test_up2", "func": "fn valid_if(para: &[String]) -> bool { return para[0].as_bytes()[0] as char >= '0' && para[0].as_bytes()[0] as char <= '8' && get_brc20_tick(&get_ord_id(), 0) == \"abcd\" && get_brc20_amt(&get_ord_id(), 0) + get_brc20_current_supply(&get_ord_id(), 0) <= get_brc20_max_supply(&get_ord_id(), 0) && get_block_brc20a_len(get_block_number(), &get_tx_sender()) <= if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"punk\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"sats\") >= 1.0 { 144 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"sats\") >= 1.0 { 72 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"punk\") >= 1.0 { 72 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 { 36 } else { 18 } && get_brc20_amt(&get_ord_id(), 0) <= if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"punk\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"sats\") >= 1.0 { 40.0 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"sats\") >= 1.0 { 30.0 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 && get_brc20_balance(&get_tx_sender(), \"punk\") >= 1.0 { 30.0 } else if get_brc20_balance(&get_tx_sender(), \"amax\") >= 1.0 { 25.0 } else { 20.0 };}" }