//Withdraw unfreezed ONT deposited in this governance contract.
Withdraw unfreezed ONT deposited in this governance contract.
Withdraw unfreezed ONT deposited in this governance contract .
pub fn withdraw(addr: &Address, amt: U128, peer_pub_key: &str) -> bool {
        let mut sink = Sink::new(80);
        sink.write(WithdrawParam {
            addr,
            peer_pubkey_list: &[peer_pub_key],
            withdraw_list: &[amt.raw() as u32],
        });
        let mut sink_param = Sink::new(64);
        sink_param.write(VERSION);
        sink_param.write("withdraw");
        sink_param.write(sink.bytes());
        let output = call_contract(&GOV_CONTRACT_ADDRESS, sink_param.bytes());
        let mut source = Source::new(output.as_slice());
        source.read_bool().unwrap_or_default()
    }
pub fn withdraw ( addr : & Address , amt : U128 , peer_pub_key : & str ) -> bool { let mut sink = Sink :: new ( 80 ) ; sink . write ( WithdrawParam { addr , peer_pubkey_list : & [ peer_pub_key ] , withdraw_list : & [ amt . raw ( ) as u32 ] , } ) ; let mut sink_param = Sink :: new ( 64 ) ; sink_param . write ( VERSION ) ; sink_param . write ( " " ) ; sink_param . write ( sink . bytes ( ) ) ; let output = call_contract ( & GOV_CONTRACT_ADDRESS , sink_param . bytes ( ) ) ; let mut source = Source :: new ( output . as_slice ( ) ) ; source . read_bool ( ) . unwrap_or_default ( ) }
Withdraw unfreezed ONT deposited in this governance contract.
Withdraw unfreezed ONT deposited in this governance contract .
addr
&Address
amt
U128
peer_pub_key
&str