99 verifyMembership ,
1010 verifyNonMembership
1111} from "./ics23" ;
12- import { IavlSpec , TendermintSpec } from "./proofs" ;
12+ import { iavlSpec , tendermintSpec } from "./proofs" ;
1313
1414describe ( "calculateExistenceRoot" , ( ) => {
1515 interface RefData {
@@ -61,58 +61,58 @@ describe("calculateExistenceRoot", () => {
6161 }
6262
6363 it ( "should parse iavl left" , ( ) => {
64- validateTestVector ( "../testdata/iavl/exist_left.json" , IavlSpec ) ;
64+ validateTestVector ( "../testdata/iavl/exist_left.json" , iavlSpec ) ;
6565 } ) ;
6666 it ( "should parse iavl right" , ( ) => {
67- validateTestVector ( "../testdata/iavl/exist_right.json" , IavlSpec ) ;
67+ validateTestVector ( "../testdata/iavl/exist_right.json" , iavlSpec ) ;
6868 } ) ;
6969 it ( "should parse iavl middle" , ( ) => {
70- validateTestVector ( "../testdata/iavl/exist_middle.json" , IavlSpec ) ;
70+ validateTestVector ( "../testdata/iavl/exist_middle.json" , iavlSpec ) ;
7171 } ) ;
7272 it ( "should parse iavl left - nonexist" , ( ) => {
73- validateTestVector ( "../testdata/iavl/nonexist_left.json" , IavlSpec ) ;
73+ validateTestVector ( "../testdata/iavl/nonexist_left.json" , iavlSpec ) ;
7474 } ) ;
7575 it ( "should parse iavl right - nonexist" , ( ) => {
76- validateTestVector ( "../testdata/iavl/nonexist_right.json" , IavlSpec ) ;
76+ validateTestVector ( "../testdata/iavl/nonexist_right.json" , iavlSpec ) ;
7777 } ) ;
7878 it ( "should parse iavl middle - nonexist" , ( ) => {
79- validateTestVector ( "../testdata/iavl/nonexist_middle.json" , IavlSpec ) ;
79+ validateTestVector ( "../testdata/iavl/nonexist_middle.json" , iavlSpec ) ;
8080 } ) ;
8181
8282 it ( "should parse tendermint left" , ( ) => {
8383 validateTestVector (
8484 "../testdata/tendermint/exist_left.json" ,
85- TendermintSpec
85+ tendermintSpec
8686 ) ;
8787 } ) ;
8888 it ( "should parse tendermint right" , ( ) => {
8989 validateTestVector (
9090 "../testdata/tendermint/exist_right.json" ,
91- TendermintSpec
91+ tendermintSpec
9292 ) ;
9393 } ) ;
9494 it ( "should parse tendermint middle" , ( ) => {
9595 validateTestVector (
9696 "../testdata/tendermint/exist_middle.json" ,
97- TendermintSpec
97+ tendermintSpec
9898 ) ;
9999 } ) ;
100100 it ( "should parse tendermint left - nonexist" , ( ) => {
101101 validateTestVector (
102102 "../testdata/tendermint/nonexist_left.json" ,
103- TendermintSpec
103+ tendermintSpec
104104 ) ;
105105 } ) ;
106106 it ( "should parse tendermint right - nonexist" , ( ) => {
107107 validateTestVector (
108108 "../testdata/tendermint/nonexist_right.json" ,
109- TendermintSpec
109+ tendermintSpec
110110 ) ;
111111 } ) ;
112112 it ( "should parse tendermint middle - nonexist" , ( ) => {
113113 validateTestVector (
114114 "../testdata/tendermint/nonexist_middle.json" ,
115- TendermintSpec
115+ tendermintSpec
116116 ) ;
117117 } ) ;
118118
@@ -172,7 +172,7 @@ describe("calculateExistenceRoot", () => {
172172 "../testdata/iavl/nonexist_right.json" ,
173173 "../testdata/iavl/nonexist_middle.json"
174174 ] ) ;
175- validateBatch ( proof , IavlSpec , data [ 0 ] ) ;
175+ validateBatch ( proof , iavlSpec , data [ 0 ] ) ;
176176 } ) ;
177177
178178 it ( "should validate iavl batch nonexist" , ( ) => {
@@ -184,7 +184,7 @@ describe("calculateExistenceRoot", () => {
184184 "../testdata/iavl/nonexist_right.json" ,
185185 "../testdata/iavl/nonexist_middle.json"
186186 ] ) ;
187- validateBatch ( proof , IavlSpec , data [ 5 ] ) ;
187+ validateBatch ( proof , iavlSpec , data [ 5 ] ) ;
188188 } ) ;
189189
190190 it ( "should validate compressed iavl batch exist" , ( ) => {
@@ -205,7 +205,7 @@ describe("calculateExistenceRoot", () => {
205205 expect ( origBin ) . toEqual ( origBin2 ) ;
206206 expect ( origBin ) . not . toEqual ( smallBin ) ;
207207
208- validateBatch ( small , IavlSpec , data [ 0 ] ) ;
208+ validateBatch ( small , iavlSpec , data [ 0 ] ) ;
209209 } ) ;
210210
211211 it ( "should validate compressed iavl batch nonexist" , ( ) => {
@@ -226,7 +226,7 @@ describe("calculateExistenceRoot", () => {
226226 expect ( origBin ) . toEqual ( origBin2 ) ;
227227 expect ( origBin ) . not . toEqual ( smallBin ) ;
228228
229- validateBatch ( small , IavlSpec , data [ 5 ] ) ;
229+ validateBatch ( small , iavlSpec , data [ 5 ] ) ;
230230 } ) ;
231231
232232 it ( "should validate tendermint batch exist" , ( ) => {
@@ -238,7 +238,7 @@ describe("calculateExistenceRoot", () => {
238238 "../testdata/tendermint/nonexist_right.json" ,
239239 "../testdata/tendermint/nonexist_middle.json"
240240 ] ) ;
241- validateBatch ( proof , TendermintSpec , data [ 2 ] ) ;
241+ validateBatch ( proof , tendermintSpec , data [ 2 ] ) ;
242242 } ) ;
243243
244244 it ( "should validate tendermint batch nonexist" , ( ) => {
@@ -250,6 +250,6 @@ describe("calculateExistenceRoot", () => {
250250 "../testdata/tendermint/nonexist_right.json" ,
251251 "../testdata/tendermint/nonexist_middle.json"
252252 ] ) ;
253- validateBatch ( proof , TendermintSpec , data [ 3 ] ) ;
253+ validateBatch ( proof , tendermintSpec , data [ 3 ] ) ;
254254 } ) ;
255255} ) ;
0 commit comments