@btc-vision/btc-runtime 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,6 +33,12 @@ export class BlockchainEnvironment {
|
|
|
33
33
|
|
|
34
34
|
constructor() {}
|
|
35
35
|
|
|
36
|
+
private _timestamp: u64 = 0;
|
|
37
|
+
|
|
38
|
+
public get timestamp(): u64 {
|
|
39
|
+
return this._timestamp;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
private _contract: Potential<() => OP_NET> = null;
|
|
37
43
|
|
|
38
44
|
public get contract(): OP_NET {
|
|
@@ -104,6 +110,8 @@ export class BlockchainEnvironment {
|
|
|
104
110
|
|
|
105
111
|
this._owner = reader.readAddress();
|
|
106
112
|
this._contractAddress = reader.readAddress();
|
|
113
|
+
|
|
114
|
+
this._timestamp = reader.readU64();
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
public call(destinationContract: Address, calldata: BytesWriter): BytesReader {
|