@aztec/aztec.js 0.82.1 → 0.82.2-alpha-testnet.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proven_tx.d.ts","sourceRoot":"","sources":["../../src/contract/proven_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;GAEG;AACH,qBAAa,QAAS,SAAQ,EAAE;IAClB,SAAS,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"proven_tx.d.ts","sourceRoot":"","sources":["../../src/contract/proven_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC;;GAEG;AACH,qBAAa,QAAS,SAAQ,EAAE;IAClB,SAAS,CAAC,MAAM,EAAE,MAAM;gBAAd,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;IAK5C,SAAS,CAAC,cAAc,IAAI,EAAE;IAI9B;;OAEG;IACI,IAAI,IAAI,MAAM;CAOtB"}
|
|
@@ -7,11 +7,15 @@ import { SentTx } from './sent_tx.js';
|
|
|
7
7
|
constructor(wallet, tx){
|
|
8
8
|
super(tx.data, tx.clientIvcProof, tx.contractClassLogs, tx.publicFunctionCalldata), this.wallet = wallet;
|
|
9
9
|
}
|
|
10
|
+
// Clone the TX data to get a serializable object.
|
|
11
|
+
getPlainDataTx() {
|
|
12
|
+
return new Tx(this.data, this.clientIvcProof, this.contractClassLogs, this.publicFunctionCalldata);
|
|
13
|
+
}
|
|
10
14
|
/**
|
|
11
15
|
* Sends the transaction to the network via the provided wallet.
|
|
12
16
|
*/ send() {
|
|
13
17
|
const promise = (()=>{
|
|
14
|
-
return this.wallet.sendTx(this);
|
|
18
|
+
return this.wallet.sendTx(this.getPlainDataTx());
|
|
15
19
|
})();
|
|
16
20
|
return new SentTx(this.wallet, promise);
|
|
17
21
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec.js",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
|
|
4
|
-
"version": "0.82.
|
|
4
|
+
"version": "0.82.2-alpha-testnet.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dest/index.js",
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
]
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@aztec/constants": "0.82.
|
|
84
|
-
"@aztec/entrypoints": "0.82.
|
|
85
|
-
"@aztec/ethereum": "0.82.
|
|
86
|
-
"@aztec/foundation": "0.82.
|
|
87
|
-
"@aztec/l1-artifacts": "0.82.
|
|
88
|
-
"@aztec/protocol-contracts": "0.82.
|
|
89
|
-
"@aztec/stdlib": "0.82.
|
|
83
|
+
"@aztec/constants": "0.82.2-alpha-testnet.2",
|
|
84
|
+
"@aztec/entrypoints": "0.82.2-alpha-testnet.2",
|
|
85
|
+
"@aztec/ethereum": "0.82.2-alpha-testnet.2",
|
|
86
|
+
"@aztec/foundation": "0.82.2-alpha-testnet.2",
|
|
87
|
+
"@aztec/l1-artifacts": "0.82.2-alpha-testnet.2",
|
|
88
|
+
"@aztec/protocol-contracts": "0.82.2-alpha-testnet.2",
|
|
89
|
+
"@aztec/stdlib": "0.82.2-alpha-testnet.2",
|
|
90
90
|
"axios": "^1.7.2",
|
|
91
91
|
"tslib": "^2.4.0",
|
|
92
92
|
"viem": "2.23.7"
|
|
@@ -11,12 +11,17 @@ export class ProvenTx extends Tx {
|
|
|
11
11
|
super(tx.data, tx.clientIvcProof, tx.contractClassLogs, tx.publicFunctionCalldata);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
// Clone the TX data to get a serializable object.
|
|
15
|
+
protected getPlainDataTx(): Tx {
|
|
16
|
+
return new Tx(this.data, this.clientIvcProof, this.contractClassLogs, this.publicFunctionCalldata);
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* Sends the transaction to the network via the provided wallet.
|
|
16
21
|
*/
|
|
17
22
|
public send(): SentTx {
|
|
18
23
|
const promise = (() => {
|
|
19
|
-
return this.wallet.sendTx(this);
|
|
24
|
+
return this.wallet.sendTx(this.getPlainDataTx());
|
|
20
25
|
})();
|
|
21
26
|
|
|
22
27
|
return new SentTx(this.wallet, promise);
|