-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from nervosnetwork/rc/0.19.0
[ᚬmaster] Rc/v0.19.0
- Loading branch information
Showing
22 changed files
with
238 additions
and
160 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
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
11 changes: 11 additions & 0 deletions
11
core/src/main/java/org/nervos/ckb/methods/response/CkbScriptHash.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,11 @@ | ||
package org.nervos.ckb.methods.response; | ||
|
||
import org.nervos.ckb.methods.Response; | ||
|
||
/** Copyright © 2019 Nervos Foundation. All rights reserved. */ | ||
public class CkbScriptHash extends Response<String> { | ||
|
||
public String getScriptHash() { | ||
return result; | ||
} | ||
} |
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
19 changes: 7 additions & 12 deletions
19
core/src/main/java/org/nervos/ckb/methods/type/OutPoint.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 |
---|---|---|
@@ -1,24 +1,19 @@ | ||
package org.nervos.ckb.methods.type; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.nervos.ckb.methods.type.cell.CellOutPoint; | ||
|
||
/** Copyright © 2018 Nervos Foundation. All rights reserved. */ | ||
/** Copyright © 2019 Nervos Foundation. All rights reserved. */ | ||
public class OutPoint { | ||
|
||
@JsonProperty("block_hash") | ||
public String blockHash; | ||
@JsonProperty("tx_hash") | ||
public String txHash; | ||
|
||
public CellOutPoint cell; | ||
public String index; | ||
|
||
public OutPoint() {} | ||
|
||
public OutPoint(CellOutPoint cellOutPoint) { | ||
this.cell = cellOutPoint; | ||
} | ||
|
||
public OutPoint(String blockHash, CellOutPoint cellOutPoint) { | ||
this.blockHash = blockHash; | ||
this.cell = cellOutPoint; | ||
public OutPoint(String txHash, String index) { | ||
this.txHash = txHash; | ||
this.index = index; | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
core/src/main/java/org/nervos/ckb/methods/type/cell/CellDep.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,24 @@ | ||
package org.nervos.ckb.methods.type.cell; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.nervos.ckb.methods.type.OutPoint; | ||
|
||
/** Copyright © 2019 Nervos Foundation. All rights reserved. */ | ||
public class CellDep { | ||
|
||
public static final String CODE = "code"; | ||
public static final String DEP_GROUP = "dep_group"; | ||
|
||
@JsonProperty("out_point") | ||
public OutPoint outPoint; | ||
|
||
@JsonProperty("dep_type") | ||
public String depType; | ||
|
||
public CellDep() {} | ||
|
||
public CellDep(OutPoint outPoint, String depType) { | ||
this.outPoint = outPoint; | ||
this.depType = depType; | ||
} | ||
} |
Oops, something went wrong.