@@ -23,15 +23,15 @@ import {
23
23
createProgramOutUtxo ,
24
24
} from "@lightprotocol/zk.js" ;
25
25
import { LightWasm , WasmFactory } from "@lightprotocol/account.rs" ;
26
- import { compareOutUtxos } from "../../../zk.js/tests/test-utils/compareUtxos " ;
26
+ import { compareOutUtxos } from "../../../zk.js/tests/test-utils/compare-utxos " ;
27
27
import {
28
28
Keypair as SolanaKeypair ,
29
29
Keypair ,
30
30
PublicKey ,
31
31
SystemProgram ,
32
32
} from "@solana/web3.js" ;
33
33
import { IDL } from "../target/types/streaming_payments" ;
34
- import { createUtxoDataHash } from "@lightprotocol/zk.js" ;
34
+ import { createDataHashWithDefaultHashingSchema } from "@lightprotocol/zk.js" ;
35
35
36
36
const path = require ( "path" ) ;
37
37
@@ -108,11 +108,11 @@ describe("Streaming Payments tests", () => {
108
108
lightWasm : WASM ,
109
109
assets : [ SystemProgram . programId ] ,
110
110
amounts : [ new BN ( 1_000_000 ) ] ,
111
- utxoData,
112
- pspIdl : IDL ,
113
- pspId : verifierProgramId ,
114
- utxoName : "utxo" ,
115
- utxoDataHash : createUtxoDataHash ( utxoData , WASM ) ,
111
+ data : utxoData ,
112
+ ownerIdl : IDL ,
113
+ owner : verifierProgramId ,
114
+ type : "utxo" ,
115
+ dataHash : createDataHashWithDefaultHashingSchema ( utxoData , WASM ) ,
116
116
} ) ;
117
117
const testInputsCompress = {
118
118
utxo : outputUtxoSol ,
@@ -127,14 +127,14 @@ describe("Streaming Payments tests", () => {
127
127
console . log ( "storeProgramUtxoResult: " , storeProgramUtxoResult ) ;
128
128
const programUtxoBalance : Map < string , ProgramUtxoBalance > =
129
129
await lightUser . syncStorage ( IDL ) ;
130
- const compressedUtxoCommitmentHash =
131
- testInputsCompress . utxo . outUtxo . utxoHash ;
130
+ const compressedUtxoCommitmentHash = testInputsCompress . utxo . hash ;
131
+
132
132
const inputUtxo = programUtxoBalance
133
133
. get ( verifierProgramId . toBase58 ( ) )
134
- . tokenBalances . get ( testInputsCompress . utxo . outUtxo . assets [ 0 ] . toBase58 ( ) )
135
- . utxos . get ( compressedUtxoCommitmentHash ) ;
134
+ . tokenBalances . get ( testInputsCompress . utxo . assets [ 0 ] . toBase58 ( ) )
135
+ . utxos . get ( compressedUtxoCommitmentHash . toString ( ) ) ;
136
136
137
- compareOutUtxos ( inputUtxo ! , testInputsCompress . utxo . outUtxo ) ;
137
+ compareOutUtxos ( inputUtxo ! , testInputsCompress . utxo ) ;
138
138
const circuitPath = path . join (
139
139
"build-circuit/streaming-payments/streamingPayments" ,
140
140
) ;
@@ -148,8 +148,7 @@ describe("Streaming Payments tests", () => {
148
148
path : circuitPath ,
149
149
verifierIdl : IDL ,
150
150
circuitName : "streamingPayments" ,
151
- // ts-ignore
152
- checkedInUtxos : [ { utxoName : "streamInUtxo" , utxo : inputUtxo } ] ,
151
+ checkedInUtxos : [ { type : "streamInUtxo" , utxo : inputUtxo } ] ,
153
152
} ;
154
153
155
154
const compressedTransaction = await createTransaction ( {
0 commit comments