-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added get_transaction_schedule plus fixes.
- Loading branch information
Showing
8 changed files
with
158 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
src/main/java/client/domain/response/chain/transaction/ScheduledTransaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package client.domain.response.chain.transaction; | ||
|
||
import client.domain.common.transaction.PackedTransaction; | ||
|
||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class ScheduledTransaction { | ||
|
||
private String trx_id; | ||
|
||
private String sender; | ||
|
||
private String sender_id; | ||
|
||
private String payer; | ||
|
||
private String delay_until; | ||
|
||
private String expiration; | ||
|
||
private String published; | ||
|
||
private PackedTransaction transaction; | ||
|
||
public String getTrx_id() { | ||
return trx_id; | ||
} | ||
|
||
public void setTrx_id(String trx_id) { | ||
this.trx_id = trx_id; | ||
} | ||
|
||
public String getSender() { | ||
return sender; | ||
} | ||
|
||
public void setSender(String sender) { | ||
this.sender = sender; | ||
} | ||
|
||
public String getSender_id() { | ||
return sender_id; | ||
} | ||
|
||
public void setSender_id(String sender_id) { | ||
this.sender_id = sender_id; | ||
} | ||
|
||
public String getPayer() { | ||
return payer; | ||
} | ||
|
||
public void setPayer(String payer) { | ||
this.payer = payer; | ||
} | ||
|
||
public String getDelay_until() { | ||
return delay_until; | ||
} | ||
|
||
public void setDelay_until(String delay_until) { | ||
this.delay_until = delay_until; | ||
} | ||
|
||
public String getExpiration() { | ||
return expiration; | ||
} | ||
|
||
public void setExpiration(String expiration) { | ||
this.expiration = expiration; | ||
} | ||
|
||
public String getPublished() { | ||
return published; | ||
} | ||
|
||
public void setPublished(String published) { | ||
this.published = published; | ||
} | ||
|
||
public PackedTransaction getTransaction() { | ||
return transaction; | ||
} | ||
|
||
public void setTransaction(PackedTransaction transaction) { | ||
this.transaction = transaction; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/client/domain/response/chain/transaction/ScheduledTransactionResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package client.domain.response.chain.transaction; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Objects; | ||
|
||
public class ScheduledTransactionResponse { | ||
|
||
private ArrayList<ScheduledTransaction> transactions; | ||
|
||
private String more; | ||
|
||
|
||
public String getMore() { | ||
return more; | ||
} | ||
|
||
public void setMore(String more) { | ||
this.more = more; | ||
} | ||
|
||
public ArrayList<ScheduledTransaction> getTransactions() { | ||
return transactions; | ||
} | ||
|
||
public void setTransactions(ArrayList<ScheduledTransaction> transactions) { | ||
this.transactions = transactions; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when i update this commit , field name data be to hex_data , throw error : {"code":500,"message":"Internal Service Error","error":{"code":3010010,"name":"packed_transaction_type_exception","what":"Invalid packed transaction","details":[{"message":"Failed to deserialize data for liantongct12:mypropose","file":"abi_serializer.hpp","line_number":492,"method":"extract"},{"message":"Failed to deserialize variant","file":"abi_serializer.hpp","line_number":610,"method":"from_variant"},{"message":"Invalid packed transaction","file":"chain_plugin.cpp","line_number":1457,"method":"push_transaction"}]}}