@@ -1441,7 +1441,7 @@ describe('TransactionApi', () => {
1441
1441
const executedDateLte = faker . date . recent ( ) . toISOString ( ) ;
1442
1442
const limit = faker . number . int ( ) ;
1443
1443
const offset = faker . number . int ( ) ;
1444
- const getMultisigTransactionsUrl = `${ baseUrl } /api/v1 /safes/${ multisigTransaction . safe } /multisig-transactions/` ;
1444
+ const getMultisigTransactionsUrl = `${ baseUrl } /api/v2 /safes/${ multisigTransaction . safe } /multisig-transactions/` ;
1445
1445
const cacheDir = new CacheDir (
1446
1446
`${ chainId } _multisig_transactions_${ multisigTransaction . safe } ` ,
1447
1447
`${ ordering } _${ multisigTransaction . isExecuted } _${ multisigTransaction . trusted } _${ executedDateGte } _${ executedDateLte } _${ multisigTransaction . to } _${ multisigTransaction . value } _${ multisigTransaction . nonce } _${ multisigTransaction . nonce } _${ limit } _${ offset } ` ,
@@ -1502,7 +1502,7 @@ describe('TransactionApi', () => {
1502
1502
const executedDateLte = faker . date . recent ( ) . toISOString ( ) ;
1503
1503
const limit = faker . number . int ( ) ;
1504
1504
const offset = faker . number . int ( ) ;
1505
- const getMultisigTransactionsUrl = `${ baseUrl } /api/v1 /safes/${ multisigTransaction . safe } /multisig-transactions/` ;
1505
+ const getMultisigTransactionsUrl = `${ baseUrl } /api/v2 /safes/${ multisigTransaction . safe } /multisig-transactions/` ;
1506
1506
const statusCode = faker . internet . httpStatusCode ( {
1507
1507
types : [ 'clientError' , 'serverError' ] ,
1508
1508
} ) ;
@@ -1580,7 +1580,7 @@ describe('TransactionApi', () => {
1580
1580
describe ( 'getMultisigTransaction' , ( ) => {
1581
1581
it ( 'should return the multisig transaction retrieved' , async ( ) => {
1582
1582
const multisigTransaction = multisigTransactionBuilder ( ) . build ( ) ;
1583
- const getMultisigTransactionUrl = `${ baseUrl } /api/v1 /multisig-transactions/${ multisigTransaction . safeTxHash } /` ;
1583
+ const getMultisigTransactionUrl = `${ baseUrl } /api/v2 /multisig-transactions/${ multisigTransaction . safeTxHash } /` ;
1584
1584
const cacheDir = new CacheDir (
1585
1585
`${ chainId } _multisig_transaction_${ multisigTransaction . safeTxHash } ` ,
1586
1586
'' ,
@@ -1607,7 +1607,7 @@ describe('TransactionApi', () => {
1607
1607
[ 'standard' , new Error ( errorMessage ) ] ,
1608
1608
] ) ( `should forward a %s error` , async ( _ , error ) => {
1609
1609
const multisigTransaction = multisigTransactionBuilder ( ) . build ( ) ;
1610
- const getMultisigTransactionUrl = `${ baseUrl } /api/v1 /multisig-transactions/${ multisigTransaction . safeTxHash } /` ;
1610
+ const getMultisigTransactionUrl = `${ baseUrl } /api/v2 /multisig-transactions/${ multisigTransaction . safeTxHash } /` ;
1611
1611
const statusCode = faker . internet . httpStatusCode ( {
1612
1612
types : [ 'clientError' , 'serverError' ] ,
1613
1613
} ) ;
@@ -1644,7 +1644,7 @@ describe('TransactionApi', () => {
1644
1644
it ( 'should delete a transaction' , async ( ) => {
1645
1645
const safeTxHash = faker . string . hexadecimal ( ) ;
1646
1646
const signature = faker . string . hexadecimal ( ) ;
1647
- const deleteTransactionUrl = `${ baseUrl } /api/v1 /multisig-transactions/${ safeTxHash } ` ;
1647
+ const deleteTransactionUrl = `${ baseUrl } /api/v2 /multisig-transactions/${ safeTxHash } ` ;
1648
1648
networkService . delete . mockResolvedValueOnce ( {
1649
1649
status : 200 ,
1650
1650
data : rawify ( { } ) ,
@@ -1671,7 +1671,7 @@ describe('TransactionApi', () => {
1671
1671
] ) ( `should forward a %s error` , async ( _ , error ) => {
1672
1672
const safeTxHash = faker . string . hexadecimal ( ) ;
1673
1673
const signature = faker . string . hexadecimal ( ) ;
1674
- const deleteTransactionUrl = `${ baseUrl } /api/v1 /multisig-transactions/${ safeTxHash } ` ;
1674
+ const deleteTransactionUrl = `${ baseUrl } /api/v2 /multisig-transactions/${ safeTxHash } ` ;
1675
1675
const statusCode = faker . internet . httpStatusCode ( {
1676
1676
types : [ 'clientError' , 'serverError' ] ,
1677
1677
} ) ;
@@ -1791,7 +1791,7 @@ describe('TransactionApi', () => {
1791
1791
const allTransactionsPage = pageBuilder ( )
1792
1792
. with ( 'results' , [ multisigTransaction , creationTransaction ] )
1793
1793
. build ( ) ;
1794
- const getAllTransactionsUrl = `${ baseUrl } /api/v1 /safes/${ safeAddress } /all-transactions/` ;
1794
+ const getAllTransactionsUrl = `${ baseUrl } /api/v2 /safes/${ safeAddress } /all-transactions/` ;
1795
1795
const cacheDir = new CacheDir (
1796
1796
`${ chainId } _all_transactions_${ safeAddress } ` ,
1797
1797
`${ ordering } _${ executed } _${ queued } _${ limit } _${ offset } ` ,
@@ -1838,7 +1838,7 @@ describe('TransactionApi', () => {
1838
1838
const queued = faker . datatype . boolean ( ) ;
1839
1839
const limit = faker . number . int ( ) ;
1840
1840
const offset = faker . number . int ( ) ;
1841
- const getAllTransactionsUrl = `${ baseUrl } /api/v1 /safes/${ safeAddress } /all-transactions/` ;
1841
+ const getAllTransactionsUrl = `${ baseUrl } /api/v2 /safes/${ safeAddress } /all-transactions/` ;
1842
1842
const statusCode = faker . internet . httpStatusCode ( {
1843
1843
types : [ 'clientError' , 'serverError' ] ,
1844
1844
} ) ;
@@ -2315,7 +2315,7 @@ describe('TransactionApi', () => {
2315
2315
it ( 'should post multisig transaction' , async ( ) => {
2316
2316
const safeAddress = getAddress ( faker . finance . ethereumAddress ( ) ) ;
2317
2317
const proposeTransactionDto = proposeTransactionDtoBuilder ( ) . build ( ) ;
2318
- const postMultisigTransactionUrl = `${ baseUrl } /api/v1 /safes/${ safeAddress } /multisig-transactions/` ;
2318
+ const postMultisigTransactionUrl = `${ baseUrl } /api/v2 /safes/${ safeAddress } /multisig-transactions/` ;
2319
2319
networkService . post . mockResolvedValueOnce ( {
2320
2320
status : 200 ,
2321
2321
data : rawify ( { } ) ,
@@ -2344,7 +2344,7 @@ describe('TransactionApi', () => {
2344
2344
] ) ( `should forward a %s error` , async ( _ , error ) => {
2345
2345
const safeAddress = getAddress ( faker . finance . ethereumAddress ( ) ) ;
2346
2346
const proposeTransactionDto = proposeTransactionDtoBuilder ( ) . build ( ) ;
2347
- const postMultisigTransactionUrl = `${ baseUrl } /api/v1 /safes/${ safeAddress } /multisig-transactions/` ;
2347
+ const postMultisigTransactionUrl = `${ baseUrl } /api/v2 /safes/${ safeAddress } /multisig-transactions/` ;
2348
2348
const statusCode = faker . internet . httpStatusCode ( {
2349
2349
types : [ 'clientError' , 'serverError' ] ,
2350
2350
} ) ;
0 commit comments