File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
packages/sources/lido-por
test/integration/__snapshots__ Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @chainlink/lido-por-adapter ' : patch
3
+ ---
4
+
5
+ Add default ripcord false to response
Original file line number Diff line number Diff line change
1
+ import { EndpointContext } from '@chainlink/external-adapter-framework/adapter'
2
+ import { calculateHttpRequestKey } from '@chainlink/external-adapter-framework/cache'
1
3
import { TransportDependencies } from '@chainlink/external-adapter-framework/transports'
2
- import { ethers } from 'ethers'
3
- import { TimestampedAdapterResponse , sleep } from '@chainlink/external-adapter-framework/util'
4
4
import { SubscriptionTransport } from '@chainlink/external-adapter-framework/transports/abstract/subscription'
5
- import { EndpointContext } from '@chainlink/external-adapter-framework/adapter '
6
- import { BaseEndpointTypes , inputParameters } from '../endpoint/reserve '
5
+ import { TimestampedAdapterResponse , sleep } from '@chainlink/external-adapter-framework/util '
6
+ import { Requester } from '@chainlink/external-adapter-framework/util/requester '
7
7
import { AdapterError } from '@chainlink/external-adapter-framework/validation/error'
8
+ import { ethers } from 'ethers'
9
+ import { BaseEndpointTypes , inputParameters } from '../endpoint/reserve'
8
10
import {
9
11
EthereumClResponse ,
10
- parseBeaconBalance ,
11
12
getBufferedEther ,
12
13
getWithdrawalCredential ,
14
+ parseBeaconBalance ,
13
15
} from './util'
14
- import { Requester } from '@chainlink/external-adapter-framework/util/requester'
15
- import { calculateHttpRequestKey } from '@chainlink/external-adapter-framework/cache'
16
16
17
17
type RequestParams = typeof inputParameters . validated
18
18
@@ -100,6 +100,7 @@ export class BalanceTransport extends SubscriptionTransport<BaseEndpointTypes> {
100
100
return {
101
101
data : {
102
102
result : balance ,
103
+ ripcord : false ,
103
104
} ,
104
105
result : balance ,
105
106
timestamps : {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ exports[`execute reserve endpoint should return success 1`] = `
17
17
{
18
18
" data" : {
19
19
" result" : " 800" ,
20
+ " ripcord" : false ,
20
21
},
21
22
" result" : " 800" ,
22
23
" statusCode" : 200 ,
You can’t perform that action at this time.
0 commit comments