-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add disable check specifically for proxy address (#489)
- Loading branch information
1 parent
8871bab
commit 800e241
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
packages-ts/starknet-gauntlet-ocr2/src/commands/proxy/disableAccessCheck.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ExecuteCommandConfig, makeExecuteCommand } from '@chainlink/starknet-gauntlet' | ||
import { CATEGORIES } from '../../lib/categories' | ||
import { ocr2ProxyLoader, CONTRACT_LIST } from '../../lib/contracts' | ||
|
||
type UserInput = {} | ||
|
||
type ContractInput = [] | ||
|
||
const makeUserInput = async (flags, args, env): Promise<UserInput> => { | ||
if (flags.input) return flags.input as UserInput | ||
return {} | ||
} | ||
|
||
const makeContractInput = async (input: UserInput): Promise<ContractInput> => { | ||
return [] | ||
} | ||
|
||
const commandConfig: ExecuteCommandConfig<UserInput, ContractInput> = { | ||
contractId: CONTRACT_LIST.PROXY, | ||
category: CATEGORIES.PROXY, | ||
action: 'disable_access_check', | ||
ux: { | ||
description: 'Disable access check at aggregator proxy', | ||
examples: [`${CATEGORIES.PROXY}:disable_access_check --network=<NETWORK> <AGGREGATOR_PROXY>`], | ||
}, | ||
makeUserInput, | ||
makeContractInput, | ||
validations: [], | ||
loadContract: ocr2ProxyLoader, | ||
} | ||
|
||
export default makeExecuteCommand(commandConfig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters