Skip to content

Commit

Permalink
add rpc api : easyTransferAssert
Browse files Browse the repository at this point in the history
  • Loading branch information
zergweak committed Jan 24, 2019
1 parent 62ac79a commit 23bbd1a
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions api/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ service Wallet {
};
};


//Please use CreateTransaction2 instead of this function.
rpc CreateTransaction (TransferContract) returns (Transaction) {
option (google.api.http) = {
Expand Down Expand Up @@ -552,6 +551,12 @@ service Wallet {
};
};
//Warning: do not invoke this interface provided by others.
rpc EasyTransferAssert (EasyTransferAssertMessage) returns (EasyTransferResponse) {
};
//Warning: do not invoke this interface provided by others.
rpc EasyTransferAssertByPrivate (EasyTransferAssertByPrivateMessage) returns (EasyTransferResponse) {
};
//Warning: do not invoke this interface provided by others.
rpc EasyTransfer (EasyTransferMessage) returns (EasyTransferResponse) {
option (google.api.http) = {
post: "/wallet/easytransfer"
Expand Down Expand Up @@ -832,7 +837,6 @@ message DelegatedResourceList {
repeated DelegatedResource delegatedResource = 1;
}


// Gossip node list
message NodeList {
repeated Node nodes = 1;
Expand Down Expand Up @@ -920,12 +924,26 @@ message EasyTransferMessage {
int64 amount = 3;
}

message EasyTransferAssertMessage {
bytes passPhrase = 1;
bytes toAddress = 2;
string assertId = 3;
int64 amount = 4;
}

message EasyTransferByPrivateMessage {
bytes privateKey = 1;
bytes toAddress = 2;
int64 amount = 3;
}

message EasyTransferAssertByPrivateMessage {
bytes privateKey = 1;
bytes toAddress = 2;
string assertId = 3;
int64 amount = 4;
}

message EasyTransferResponse {
Transaction transaction = 1;
Return result = 2;
Expand Down

0 comments on commit 23bbd1a

Please sign in to comment.