|
|
@ -225,9 +225,15 @@ class ContextFunder { |
|
|
|
public readonly context: Contexts, |
|
|
|
public readonly context: Contexts, |
|
|
|
public readonly rolesToFund: FundableRole[], |
|
|
|
public readonly rolesToFund: FundableRole[], |
|
|
|
public readonly skipIgpClaim: boolean, |
|
|
|
public readonly skipIgpClaim: boolean, |
|
|
|
public readonly desiredBalancePerChain: KeyFunderConfig['desiredBalancePerChain'], |
|
|
|
public readonly desiredBalancePerChain: KeyFunderConfig< |
|
|
|
public readonly desiredKathyBalancePerChain: KeyFunderConfig['desiredKathyBalancePerChain'], |
|
|
|
ChainName[] |
|
|
|
public readonly igpClaimThresholdPerChain: KeyFunderConfig['igpClaimThresholdPerChain'], |
|
|
|
>['desiredBalancePerChain'], |
|
|
|
|
|
|
|
public readonly desiredKathyBalancePerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['desiredKathyBalancePerChain'], |
|
|
|
|
|
|
|
public readonly igpClaimThresholdPerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['igpClaimThresholdPerChain'], |
|
|
|
) { |
|
|
|
) { |
|
|
|
// At the moment, only blessed EVM chains are supported
|
|
|
|
// At the moment, only blessed EVM chains are supported
|
|
|
|
roleKeysPerChain = objFilter( |
|
|
|
roleKeysPerChain = objFilter( |
|
|
@ -266,9 +272,15 @@ class ContextFunder { |
|
|
|
multiProvider: MultiProvider, |
|
|
|
multiProvider: MultiProvider, |
|
|
|
contextsAndRolesToFund: ContextAndRolesMap, |
|
|
|
contextsAndRolesToFund: ContextAndRolesMap, |
|
|
|
skipIgpClaim: boolean, |
|
|
|
skipIgpClaim: boolean, |
|
|
|
desiredBalancePerChain: KeyFunderConfig['desiredBalancePerChain'], |
|
|
|
desiredBalancePerChain: KeyFunderConfig< |
|
|
|
desiredKathyBalancePerChain: KeyFunderConfig['desiredKathyBalancePerChain'], |
|
|
|
ChainName[] |
|
|
|
igpClaimThresholdPerChain: KeyFunderConfig['igpClaimThresholdPerChain'], |
|
|
|
>['desiredBalancePerChain'], |
|
|
|
|
|
|
|
desiredKathyBalancePerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['desiredKathyBalancePerChain'], |
|
|
|
|
|
|
|
igpClaimThresholdPerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['igpClaimThresholdPerChain'], |
|
|
|
filePath: string, |
|
|
|
filePath: string, |
|
|
|
) { |
|
|
|
) { |
|
|
|
logger.info({ filePath }, 'Reading identifiers and addresses from file'); |
|
|
|
logger.info({ filePath }, 'Reading identifiers and addresses from file'); |
|
|
@ -348,9 +360,15 @@ class ContextFunder { |
|
|
|
context: Contexts, |
|
|
|
context: Contexts, |
|
|
|
rolesToFund: FundableRole[], |
|
|
|
rolesToFund: FundableRole[], |
|
|
|
skipIgpClaim: boolean, |
|
|
|
skipIgpClaim: boolean, |
|
|
|
desiredBalancePerChain: KeyFunderConfig['desiredBalancePerChain'], |
|
|
|
desiredBalancePerChain: KeyFunderConfig< |
|
|
|
desiredKathyBalancePerChain: KeyFunderConfig['desiredKathyBalancePerChain'], |
|
|
|
ChainName[] |
|
|
|
igpClaimThresholdPerChain: KeyFunderConfig['igpClaimThresholdPerChain'], |
|
|
|
>['desiredBalancePerChain'], |
|
|
|
|
|
|
|
desiredKathyBalancePerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['desiredKathyBalancePerChain'], |
|
|
|
|
|
|
|
igpClaimThresholdPerChain: KeyFunderConfig< |
|
|
|
|
|
|
|
ChainName[] |
|
|
|
|
|
|
|
>['igpClaimThresholdPerChain'], |
|
|
|
) { |
|
|
|
) { |
|
|
|
// only roles that are fundable keys ie. relayer and kathy
|
|
|
|
// only roles that are fundable keys ie. relayer and kathy
|
|
|
|
const fundableRoleKeys: Record<FundableRole, Address> = { |
|
|
|
const fundableRoleKeys: Record<FundableRole, Address> = { |
|
|
|