diff --git a/packages/shared/package.json b/packages/shared/package.json index 226ebab9a..2078cb98f 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@nucypher/shared", - "version": "0.1.0-rc.4", + "version": "0.1.0-rc.6", "keywords": [ "pre", "taco", diff --git a/packages/shared/src/contracts/ethers-typechain/Coordinator.ts b/packages/shared/src/contracts/ethers-typechain/Coordinator.ts index 39a4e9a54..1fc1d92f6 100644 --- a/packages/shared/src/contracts/ethers-typechain/Coordinator.ts +++ b/packages/shared/src/contracts/ethers-typechain/Coordinator.ts @@ -91,11 +91,12 @@ export interface CoordinatorInterface extends utils.Interface { 'getThresholdForRitualSize(uint16)': FunctionFragment; 'grantRole(bytes32,address)': FunctionFragment; 'hasRole(bytes32,address)': FunctionFragment; + 'initialize(uint32,uint16,address)': FunctionFragment; 'initiateRitual(address[],address,uint32,address)': FunctionFragment; 'isEncryptionAuthorized(uint32,bytes,bytes)': FunctionFragment; 'isInitiationPublic()': FunctionFragment; 'isProviderPublicKeySet(address)': FunctionFragment; - 'isRitualFinalized(uint32)': FunctionFragment; + 'isRitualActive(uint32)': FunctionFragment; 'makeInitiationPublic()': FunctionFragment; 'maxDkgSize()': FunctionFragment; 'numberOfRituals()': FunctionFragment; @@ -113,11 +114,11 @@ export interface CoordinatorInterface extends utils.Interface { 'setMaxDkgSize(uint16)': FunctionFragment; 'setProviderPublicKey((bytes32,bytes32,bytes32))': FunctionFragment; 'setReimbursementPool(address)': FunctionFragment; - 'setRitualAuthority(uint32,address)': FunctionFragment; 'setTimeout(uint32)': FunctionFragment; 'supportsInterface(bytes4)': FunctionFragment; 'timeout()': FunctionFragment; 'totalPendingFees()': FunctionFragment; + 'transferRitualAuthority(uint32,address)': FunctionFragment; 'withdrawTokens(address,uint256)': FunctionFragment; }; @@ -149,11 +150,12 @@ export interface CoordinatorInterface extends utils.Interface { | 'getThresholdForRitualSize' | 'grantRole' | 'hasRole' + | 'initialize' | 'initiateRitual' | 'isEncryptionAuthorized' | 'isInitiationPublic' | 'isProviderPublicKeySet' - | 'isRitualFinalized' + | 'isRitualActive' | 'makeInitiationPublic' | 'maxDkgSize' | 'numberOfRituals' @@ -171,11 +173,11 @@ export interface CoordinatorInterface extends utils.Interface { | 'setMaxDkgSize' | 'setProviderPublicKey' | 'setReimbursementPool' - | 'setRitualAuthority' | 'setTimeout' | 'supportsInterface' | 'timeout' | 'totalPendingFees' + | 'transferRitualAuthority' | 'withdrawTokens', ): FunctionFragment; @@ -280,6 +282,10 @@ export interface CoordinatorInterface extends utils.Interface { functionFragment: 'hasRole', values: [BytesLike, string], ): string; + encodeFunctionData( + functionFragment: 'initialize', + values: [BigNumberish, BigNumberish, string], + ): string; encodeFunctionData( functionFragment: 'initiateRitual', values: [string[], string, BigNumberish, string], @@ -297,7 +303,7 @@ export interface CoordinatorInterface extends utils.Interface { values: [string], ): string; encodeFunctionData( - functionFragment: 'isRitualFinalized', + functionFragment: 'isRitualActive', values: [BigNumberish], ): string; encodeFunctionData( @@ -365,10 +371,6 @@ export interface CoordinatorInterface extends utils.Interface { functionFragment: 'setReimbursementPool', values: [string], ): string; - encodeFunctionData( - functionFragment: 'setRitualAuthority', - values: [BigNumberish, string], - ): string; encodeFunctionData( functionFragment: 'setTimeout', values: [BigNumberish], @@ -382,6 +384,10 @@ export interface CoordinatorInterface extends utils.Interface { functionFragment: 'totalPendingFees', values?: undefined, ): string; + encodeFunctionData( + functionFragment: 'transferRitualAuthority', + values: [BigNumberish, string], + ): string; encodeFunctionData( functionFragment: 'withdrawTokens', values: [string, BigNumberish], @@ -482,6 +488,7 @@ export interface CoordinatorInterface extends utils.Interface { ): Result; decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result; decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result; + decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result; decodeFunctionResult( functionFragment: 'initiateRitual', data: BytesLike, @@ -499,7 +506,7 @@ export interface CoordinatorInterface extends utils.Interface { data: BytesLike, ): Result; decodeFunctionResult( - functionFragment: 'isRitualFinalized', + functionFragment: 'isRitualActive', data: BytesLike, ): Result; decodeFunctionResult( @@ -558,10 +565,6 @@ export interface CoordinatorInterface extends utils.Interface { functionFragment: 'setReimbursementPool', data: BytesLike, ): Result; - decodeFunctionResult( - functionFragment: 'setRitualAuthority', - data: BytesLike, - ): Result; decodeFunctionResult(functionFragment: 'setTimeout', data: BytesLike): Result; decodeFunctionResult( functionFragment: 'supportsInterface', @@ -572,6 +575,10 @@ export interface CoordinatorInterface extends utils.Interface { functionFragment: 'totalPendingFees', data: BytesLike, ): Result; + decodeFunctionResult( + functionFragment: 'transferRitualAuthority', + data: BytesLike, + ): Result; decodeFunctionResult( functionFragment: 'withdrawTokens', data: BytesLike, @@ -584,8 +591,11 @@ export interface CoordinatorInterface extends utils.Interface { 'DefaultAdminTransferCanceled()': EventFragment; 'DefaultAdminTransferScheduled(address,uint48)': EventFragment; 'EndRitual(uint32,bool)': EventFragment; + 'Initialized(uint64)': EventFragment; 'MaxDkgSizeChanged(uint16,uint16)': EventFragment; 'ParticipantPublicKeySet(uint32,address,(bytes32,bytes32,bytes32))': EventFragment; + 'ReimbursementPoolSet(address)': EventFragment; + 'RitualAuthorityTransferred(uint32,address,address)': EventFragment; 'RoleAdminChanged(bytes32,bytes32,bytes32)': EventFragment; 'RoleGranted(bytes32,address,address)': EventFragment; 'RoleRevoked(bytes32,address,address)': EventFragment; @@ -609,8 +619,11 @@ export interface CoordinatorInterface extends utils.Interface { nameOrSignatureOrTopic: 'DefaultAdminTransferScheduled', ): EventFragment; getEvent(nameOrSignatureOrTopic: 'EndRitual'): EventFragment; + getEvent(nameOrSignatureOrTopic: 'Initialized'): EventFragment; getEvent(nameOrSignatureOrTopic: 'MaxDkgSizeChanged'): EventFragment; getEvent(nameOrSignatureOrTopic: 'ParticipantPublicKeySet'): EventFragment; + getEvent(nameOrSignatureOrTopic: 'ReimbursementPoolSet'): EventFragment; + getEvent(nameOrSignatureOrTopic: 'RitualAuthorityTransferred'): EventFragment; getEvent(nameOrSignatureOrTopic: 'RoleAdminChanged'): EventFragment; getEvent(nameOrSignatureOrTopic: 'RoleGranted'): EventFragment; getEvent(nameOrSignatureOrTopic: 'RoleRevoked'): EventFragment; @@ -686,6 +699,13 @@ export type EndRitualEvent = TypedEvent< export type EndRitualEventFilter = TypedEventFilter; +export interface InitializedEventObject { + version: BigNumber; +} +export type InitializedEvent = TypedEvent<[BigNumber], InitializedEventObject>; + +export type InitializedEventFilter = TypedEventFilter; + export interface MaxDkgSizeChangedEventObject { oldSize: number; newSize: number; @@ -711,6 +731,30 @@ export type ParticipantPublicKeySetEvent = TypedEvent< export type ParticipantPublicKeySetEventFilter = TypedEventFilter; +export interface ReimbursementPoolSetEventObject { + pool: string; +} +export type ReimbursementPoolSetEvent = TypedEvent< + [string], + ReimbursementPoolSetEventObject +>; + +export type ReimbursementPoolSetEventFilter = + TypedEventFilter; + +export interface RitualAuthorityTransferredEventObject { + ritualId: number; + previousAuthority: string; + newAuthority: string; +} +export type RitualAuthorityTransferredEvent = TypedEvent< + [number, string, string], + RitualAuthorityTransferredEventObject +>; + +export type RitualAuthorityTransferredEventFilter = + TypedEventFilter; + export interface RoleAdminChangedEventObject { role: string; previousAdminRole: string; @@ -929,6 +973,13 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise<[boolean]>; + initialize( + _timeout: BigNumberish, + _maxDkgSize: BigNumberish, + _admin: string, + overrides?: Overrides & { from?: string }, + ): Promise; + initiateRitual( providers: string[], authority: string, @@ -951,7 +1002,7 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise<[boolean]>; - isRitualFinalized( + isRitualActive( ritualId: BigNumberish, overrides?: CallOverrides, ): Promise<[boolean]>; @@ -1062,12 +1113,6 @@ export interface Coordinator extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - setRitualAuthority( - ritualId: BigNumberish, - authority: string, - overrides?: Overrides & { from?: string }, - ): Promise; - setTimeout( newTimeout: BigNumberish, overrides?: Overrides & { from?: string }, @@ -1082,6 +1127,12 @@ export interface Coordinator extends BaseContract { totalPendingFees(overrides?: CallOverrides): Promise<[BigNumber]>; + transferRitualAuthority( + ritualId: BigNumberish, + newAuthority: string, + overrides?: Overrides & { from?: string }, + ): Promise; + withdrawTokens( token: string, amount: BigNumberish, @@ -1192,6 +1243,13 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; + initialize( + _timeout: BigNumberish, + _maxDkgSize: BigNumberish, + _admin: string, + overrides?: Overrides & { from?: string }, + ): Promise; + initiateRitual( providers: string[], authority: string, @@ -1214,7 +1272,7 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; - isRitualFinalized( + isRitualActive( ritualId: BigNumberish, overrides?: CallOverrides, ): Promise; @@ -1325,12 +1383,6 @@ export interface Coordinator extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - setRitualAuthority( - ritualId: BigNumberish, - authority: string, - overrides?: Overrides & { from?: string }, - ): Promise; - setTimeout( newTimeout: BigNumberish, overrides?: Overrides & { from?: string }, @@ -1345,6 +1397,12 @@ export interface Coordinator extends BaseContract { totalPendingFees(overrides?: CallOverrides): Promise; + transferRitualAuthority( + ritualId: BigNumberish, + newAuthority: string, + overrides?: Overrides & { from?: string }, + ): Promise; + withdrawTokens( token: string, amount: BigNumberish, @@ -1451,6 +1509,13 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; + initialize( + _timeout: BigNumberish, + _maxDkgSize: BigNumberish, + _admin: string, + overrides?: CallOverrides, + ): Promise; + initiateRitual( providers: string[], authority: string, @@ -1473,7 +1538,7 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; - isRitualFinalized( + isRitualActive( ritualId: BigNumberish, overrides?: CallOverrides, ): Promise; @@ -1516,7 +1581,7 @@ export interface Coordinator extends BaseContract { processPendingFee( ritualId: BigNumberish, overrides?: CallOverrides, - ): Promise; + ): Promise; renounceRole( role: BytesLike, @@ -1580,12 +1645,6 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; - setRitualAuthority( - ritualId: BigNumberish, - authority: string, - overrides?: CallOverrides, - ): Promise; - setTimeout( newTimeout: BigNumberish, overrides?: CallOverrides, @@ -1600,6 +1659,12 @@ export interface Coordinator extends BaseContract { totalPendingFees(overrides?: CallOverrides): Promise; + transferRitualAuthority( + ritualId: BigNumberish, + newAuthority: string, + overrides?: CallOverrides, + ): Promise; + withdrawTokens( token: string, amount: BigNumberish, @@ -1652,6 +1717,9 @@ export interface Coordinator extends BaseContract { successful?: null, ): EndRitualEventFilter; + 'Initialized(uint64)'(version?: null): InitializedEventFilter; + Initialized(version?: null): InitializedEventFilter; + 'MaxDkgSizeChanged(uint16,uint16)'( oldSize?: null, newSize?: null, @@ -1672,6 +1740,22 @@ export interface Coordinator extends BaseContract { publicKey?: null, ): ParticipantPublicKeySetEventFilter; + 'ReimbursementPoolSet(address)'( + pool?: string | null, + ): ReimbursementPoolSetEventFilter; + ReimbursementPoolSet(pool?: string | null): ReimbursementPoolSetEventFilter; + + 'RitualAuthorityTransferred(uint32,address,address)'( + ritualId?: BigNumberish | null, + previousAuthority?: string | null, + newAuthority?: string | null, + ): RitualAuthorityTransferredEventFilter; + RitualAuthorityTransferred( + ritualId?: BigNumberish | null, + previousAuthority?: string | null, + newAuthority?: string | null, + ): RitualAuthorityTransferredEventFilter; + 'RoleAdminChanged(bytes32,bytes32,bytes32)'( role?: BytesLike | null, previousAdminRole?: BytesLike | null, @@ -1853,6 +1937,13 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; + initialize( + _timeout: BigNumberish, + _maxDkgSize: BigNumberish, + _admin: string, + overrides?: Overrides & { from?: string }, + ): Promise; + initiateRitual( providers: string[], authority: string, @@ -1875,7 +1966,7 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; - isRitualFinalized( + isRitualActive( ritualId: BigNumberish, overrides?: CallOverrides, ): Promise; @@ -1951,12 +2042,6 @@ export interface Coordinator extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - setRitualAuthority( - ritualId: BigNumberish, - authority: string, - overrides?: Overrides & { from?: string }, - ): Promise; - setTimeout( newTimeout: BigNumberish, overrides?: Overrides & { from?: string }, @@ -1971,6 +2056,12 @@ export interface Coordinator extends BaseContract { totalPendingFees(overrides?: CallOverrides): Promise; + transferRitualAuthority( + ritualId: BigNumberish, + newAuthority: string, + overrides?: Overrides & { from?: string }, + ): Promise; + withdrawTokens( token: string, amount: BigNumberish, @@ -2089,6 +2180,13 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; + initialize( + _timeout: BigNumberish, + _maxDkgSize: BigNumberish, + _admin: string, + overrides?: Overrides & { from?: string }, + ): Promise; + initiateRitual( providers: string[], authority: string, @@ -2113,7 +2211,7 @@ export interface Coordinator extends BaseContract { overrides?: CallOverrides, ): Promise; - isRitualFinalized( + isRitualActive( ritualId: BigNumberish, overrides?: CallOverrides, ): Promise; @@ -2196,12 +2294,6 @@ export interface Coordinator extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - setRitualAuthority( - ritualId: BigNumberish, - authority: string, - overrides?: Overrides & { from?: string }, - ): Promise; - setTimeout( newTimeout: BigNumberish, overrides?: Overrides & { from?: string }, @@ -2216,6 +2308,12 @@ export interface Coordinator extends BaseContract { totalPendingFees(overrides?: CallOverrides): Promise; + transferRitualAuthority( + ritualId: BigNumberish, + newAuthority: string, + overrides?: Overrides & { from?: string }, + ): Promise; + withdrawTokens( token: string, amount: BigNumberish, diff --git a/packages/shared/src/contracts/ethers-typechain/GlobalAllowList.ts b/packages/shared/src/contracts/ethers-typechain/GlobalAllowList.ts index 3a98e9725..517a9d7f0 100644 --- a/packages/shared/src/contracts/ethers-typechain/GlobalAllowList.ts +++ b/packages/shared/src/contracts/ethers-typechain/GlobalAllowList.ts @@ -28,84 +28,26 @@ import type { export interface GlobalAllowListInterface extends utils.Interface { functions: { - 'DEFAULT_ADMIN_ROLE()': FunctionFragment; - 'acceptDefaultAdminTransfer()': FunctionFragment; 'authorize(uint32,address[])': FunctionFragment; - 'beginDefaultAdminTransfer(address)': FunctionFragment; - 'cancelDefaultAdminTransfer()': FunctionFragment; - 'changeDefaultAdminDelay(uint48)': FunctionFragment; 'coordinator()': FunctionFragment; 'deauthorize(uint32,address[])': FunctionFragment; - 'defaultAdmin()': FunctionFragment; - 'defaultAdminDelay()': FunctionFragment; - 'defaultAdminDelayIncreaseWait()': FunctionFragment; - 'getRoleAdmin(bytes32)': FunctionFragment; - 'grantRole(bytes32,address)': FunctionFragment; - 'hasRole(bytes32,address)': FunctionFragment; 'isAddressAuthorized(uint32,address)': FunctionFragment; 'isAuthorized(uint32,bytes,bytes)': FunctionFragment; - 'owner()': FunctionFragment; - 'pendingDefaultAdmin()': FunctionFragment; - 'pendingDefaultAdminDelay()': FunctionFragment; - 'renounceRole(bytes32,address)': FunctionFragment; - 'revokeRole(bytes32,address)': FunctionFragment; - 'rollbackDefaultAdminDelay()': FunctionFragment; - 'setCoordinator(address)': FunctionFragment; - 'supportsInterface(bytes4)': FunctionFragment; }; getFunction( nameOrSignatureOrTopic: - | 'DEFAULT_ADMIN_ROLE' - | 'acceptDefaultAdminTransfer' | 'authorize' - | 'beginDefaultAdminTransfer' - | 'cancelDefaultAdminTransfer' - | 'changeDefaultAdminDelay' | 'coordinator' | 'deauthorize' - | 'defaultAdmin' - | 'defaultAdminDelay' - | 'defaultAdminDelayIncreaseWait' - | 'getRoleAdmin' - | 'grantRole' - | 'hasRole' | 'isAddressAuthorized' - | 'isAuthorized' - | 'owner' - | 'pendingDefaultAdmin' - | 'pendingDefaultAdminDelay' - | 'renounceRole' - | 'revokeRole' - | 'rollbackDefaultAdminDelay' - | 'setCoordinator' - | 'supportsInterface', + | 'isAuthorized', ): FunctionFragment; - encodeFunctionData( - functionFragment: 'DEFAULT_ADMIN_ROLE', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'acceptDefaultAdminTransfer', - values?: undefined, - ): string; encodeFunctionData( functionFragment: 'authorize', values: [BigNumberish, string[]], ): string; - encodeFunctionData( - functionFragment: 'beginDefaultAdminTransfer', - values: [string], - ): string; - encodeFunctionData( - functionFragment: 'cancelDefaultAdminTransfer', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'changeDefaultAdminDelay', - values: [BigNumberish], - ): string; encodeFunctionData( functionFragment: 'coordinator', values?: undefined, @@ -114,30 +56,6 @@ export interface GlobalAllowListInterface extends utils.Interface { functionFragment: 'deauthorize', values: [BigNumberish, string[]], ): string; - encodeFunctionData( - functionFragment: 'defaultAdmin', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'defaultAdminDelay', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'defaultAdminDelayIncreaseWait', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'getRoleAdmin', - values: [BytesLike], - ): string; - encodeFunctionData( - functionFragment: 'grantRole', - values: [BytesLike, string], - ): string; - encodeFunctionData( - functionFragment: 'hasRole', - values: [BytesLike, string], - ): string; encodeFunctionData( functionFragment: 'isAddressAuthorized', values: [BigNumberish, string], @@ -146,57 +64,8 @@ export interface GlobalAllowListInterface extends utils.Interface { functionFragment: 'isAuthorized', values: [BigNumberish, BytesLike, BytesLike], ): string; - encodeFunctionData(functionFragment: 'owner', values?: undefined): string; - encodeFunctionData( - functionFragment: 'pendingDefaultAdmin', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'pendingDefaultAdminDelay', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'renounceRole', - values: [BytesLike, string], - ): string; - encodeFunctionData( - functionFragment: 'revokeRole', - values: [BytesLike, string], - ): string; - encodeFunctionData( - functionFragment: 'rollbackDefaultAdminDelay', - values?: undefined, - ): string; - encodeFunctionData( - functionFragment: 'setCoordinator', - values: [string], - ): string; - encodeFunctionData( - functionFragment: 'supportsInterface', - values: [BytesLike], - ): string; - decodeFunctionResult( - functionFragment: 'DEFAULT_ADMIN_ROLE', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'acceptDefaultAdminTransfer', - data: BytesLike, - ): Result; decodeFunctionResult(functionFragment: 'authorize', data: BytesLike): Result; - decodeFunctionResult( - functionFragment: 'beginDefaultAdminTransfer', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'cancelDefaultAdminTransfer', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'changeDefaultAdminDelay', - data: BytesLike, - ): Result; decodeFunctionResult( functionFragment: 'coordinator', data: BytesLike, @@ -205,24 +74,6 @@ export interface GlobalAllowListInterface extends utils.Interface { functionFragment: 'deauthorize', data: BytesLike, ): Result; - decodeFunctionResult( - functionFragment: 'defaultAdmin', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'defaultAdminDelay', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'defaultAdminDelayIncreaseWait', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'getRoleAdmin', - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result; - decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result; decodeFunctionResult( functionFragment: 'isAddressAuthorized', data: BytesLike, @@ -231,138 +82,26 @@ export interface GlobalAllowListInterface extends utils.Interface { functionFragment: 'isAuthorized', data: BytesLike, ): Result; - decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result; - decodeFunctionResult( - functionFragment: 'pendingDefaultAdmin', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'pendingDefaultAdminDelay', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'renounceRole', - data: BytesLike, - ): Result; - decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result; - decodeFunctionResult( - functionFragment: 'rollbackDefaultAdminDelay', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'setCoordinator', - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: 'supportsInterface', - data: BytesLike, - ): Result; events: { - 'DefaultAdminDelayChangeCanceled()': EventFragment; - 'DefaultAdminDelayChangeScheduled(uint48,uint48)': EventFragment; - 'DefaultAdminTransferCanceled()': EventFragment; - 'DefaultAdminTransferScheduled(address,uint48)': EventFragment; - 'RoleAdminChanged(bytes32,bytes32,bytes32)': EventFragment; - 'RoleGranted(bytes32,address,address)': EventFragment; - 'RoleRevoked(bytes32,address,address)': EventFragment; + 'AddressAuthorizationSet(uint32,address,bool)': EventFragment; }; - getEvent( - nameOrSignatureOrTopic: 'DefaultAdminDelayChangeCanceled', - ): EventFragment; - getEvent( - nameOrSignatureOrTopic: 'DefaultAdminDelayChangeScheduled', - ): EventFragment; - getEvent( - nameOrSignatureOrTopic: 'DefaultAdminTransferCanceled', - ): EventFragment; - getEvent( - nameOrSignatureOrTopic: 'DefaultAdminTransferScheduled', - ): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleAdminChanged'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleGranted'): EventFragment; - getEvent(nameOrSignatureOrTopic: 'RoleRevoked'): EventFragment; -} - -export interface DefaultAdminDelayChangeCanceledEventObject {} -export type DefaultAdminDelayChangeCanceledEvent = TypedEvent< - [], - DefaultAdminDelayChangeCanceledEventObject ->; - -export type DefaultAdminDelayChangeCanceledEventFilter = - TypedEventFilter; - -export interface DefaultAdminDelayChangeScheduledEventObject { - newDelay: number; - effectSchedule: number; -} -export type DefaultAdminDelayChangeScheduledEvent = TypedEvent< - [number, number], - DefaultAdminDelayChangeScheduledEventObject ->; - -export type DefaultAdminDelayChangeScheduledEventFilter = - TypedEventFilter; - -export interface DefaultAdminTransferCanceledEventObject {} -export type DefaultAdminTransferCanceledEvent = TypedEvent< - [], - DefaultAdminTransferCanceledEventObject ->; - -export type DefaultAdminTransferCanceledEventFilter = - TypedEventFilter; - -export interface DefaultAdminTransferScheduledEventObject { - newAdmin: string; - acceptSchedule: number; -} -export type DefaultAdminTransferScheduledEvent = TypedEvent< - [string, number], - DefaultAdminTransferScheduledEventObject ->; - -export type DefaultAdminTransferScheduledEventFilter = - TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; + getEvent(nameOrSignatureOrTopic: 'AddressAuthorizationSet'): EventFragment; } -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; +export interface AddressAuthorizationSetEventObject { + ritualId: number; + _address: string; + isAuthorized: boolean; } -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject +export type AddressAuthorizationSetEvent = TypedEvent< + [number, string, boolean], + AddressAuthorizationSetEventObject >; -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; +export type AddressAuthorizationSetEventFilter = + TypedEventFilter; export interface GlobalAllowList extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; @@ -391,32 +130,12 @@ export interface GlobalAllowList extends BaseContract { removeListener: OnEvent; functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - acceptDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - authorize( ritualId: BigNumberish, addresses: string[], overrides?: Overrides & { from?: string }, ): Promise; - beginDefaultAdminTransfer( - newAdmin: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - cancelDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - - changeDefaultAdminDelay( - newDelay: BigNumberish, - overrides?: Overrides & { from?: string }, - ): Promise; - coordinator(overrides?: CallOverrides): Promise<[string]>; deauthorize( @@ -425,26 +144,6 @@ export interface GlobalAllowList extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - defaultAdmin(overrides?: CallOverrides): Promise<[string]>; - - defaultAdminDelay(overrides?: CallOverrides): Promise<[number]>; - - defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<[number]>; - - getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>; - - grantRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - hasRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise<[boolean]>; - isAddressAuthorized( ritualId: BigNumberish, encryptor: string, @@ -457,70 +156,14 @@ export interface GlobalAllowList extends BaseContract { ciphertextHeader: BytesLike, overrides?: CallOverrides, ): Promise<[boolean]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingDefaultAdmin( - overrides?: CallOverrides, - ): Promise<[string, number] & { newAdmin: string; schedule: number }>; - - pendingDefaultAdminDelay( - overrides?: CallOverrides, - ): Promise<[number, number] & { newDelay: number; schedule: number }>; - - renounceRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - revokeRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - rollbackDefaultAdminDelay( - overrides?: Overrides & { from?: string }, - ): Promise; - - setCoordinator( - _coordinator: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - supportsInterface( - interfaceId: BytesLike, - overrides?: CallOverrides, - ): Promise<[boolean]>; }; - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - acceptDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - authorize( ritualId: BigNumberish, addresses: string[], overrides?: Overrides & { from?: string }, ): Promise; - beginDefaultAdminTransfer( - newAdmin: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - cancelDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - - changeDefaultAdminDelay( - newDelay: BigNumberish, - overrides?: Overrides & { from?: string }, - ): Promise; - coordinator(overrides?: CallOverrides): Promise; deauthorize( @@ -529,26 +172,6 @@ export interface GlobalAllowList extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - defaultAdmin(overrides?: CallOverrides): Promise; - - defaultAdminDelay(overrides?: CallOverrides): Promise; - - defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise; - - getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; - - grantRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - hasRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - isAddressAuthorized( ritualId: BigNumberish, encryptor: string, @@ -562,65 +185,13 @@ export interface GlobalAllowList extends BaseContract { overrides?: CallOverrides, ): Promise; - owner(overrides?: CallOverrides): Promise; - - pendingDefaultAdmin( - overrides?: CallOverrides, - ): Promise<[string, number] & { newAdmin: string; schedule: number }>; - - pendingDefaultAdminDelay( - overrides?: CallOverrides, - ): Promise<[number, number] & { newDelay: number; schedule: number }>; - - renounceRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - revokeRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - rollbackDefaultAdminDelay( - overrides?: Overrides & { from?: string }, - ): Promise; - - setCoordinator( - _coordinator: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - supportsInterface( - interfaceId: BytesLike, - overrides?: CallOverrides, - ): Promise; - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - acceptDefaultAdminTransfer(overrides?: CallOverrides): Promise; - authorize( ritualId: BigNumberish, addresses: string[], overrides?: CallOverrides, ): Promise; - beginDefaultAdminTransfer( - newAdmin: string, - overrides?: CallOverrides, - ): Promise; - - cancelDefaultAdminTransfer(overrides?: CallOverrides): Promise; - - changeDefaultAdminDelay( - newDelay: BigNumberish, - overrides?: CallOverrides, - ): Promise; - coordinator(overrides?: CallOverrides): Promise; deauthorize( @@ -629,26 +200,6 @@ export interface GlobalAllowList extends BaseContract { overrides?: CallOverrides, ): Promise; - defaultAdmin(overrides?: CallOverrides): Promise; - - defaultAdminDelay(overrides?: CallOverrides): Promise; - - defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise; - - getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; - - grantRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - - hasRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - isAddressAuthorized( ritualId: BigNumberish, encryptor: string, @@ -661,128 +212,28 @@ export interface GlobalAllowList extends BaseContract { ciphertextHeader: BytesLike, overrides?: CallOverrides, ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingDefaultAdmin( - overrides?: CallOverrides, - ): Promise<[string, number] & { newAdmin: string; schedule: number }>; - - pendingDefaultAdminDelay( - overrides?: CallOverrides, - ): Promise<[number, number] & { newDelay: number; schedule: number }>; - - renounceRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - - revokeRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - - rollbackDefaultAdminDelay(overrides?: CallOverrides): Promise; - - setCoordinator( - _coordinator: string, - overrides?: CallOverrides, - ): Promise; - - supportsInterface( - interfaceId: BytesLike, - overrides?: CallOverrides, - ): Promise; }; filters: { - 'DefaultAdminDelayChangeCanceled()'(): DefaultAdminDelayChangeCanceledEventFilter; - DefaultAdminDelayChangeCanceled(): DefaultAdminDelayChangeCanceledEventFilter; - - 'DefaultAdminDelayChangeScheduled(uint48,uint48)'( - newDelay?: null, - effectSchedule?: null, - ): DefaultAdminDelayChangeScheduledEventFilter; - DefaultAdminDelayChangeScheduled( - newDelay?: null, - effectSchedule?: null, - ): DefaultAdminDelayChangeScheduledEventFilter; - - 'DefaultAdminTransferCanceled()'(): DefaultAdminTransferCanceledEventFilter; - DefaultAdminTransferCanceled(): DefaultAdminTransferCanceledEventFilter; - - 'DefaultAdminTransferScheduled(address,uint48)'( - newAdmin?: string | null, - acceptSchedule?: null, - ): DefaultAdminTransferScheduledEventFilter; - DefaultAdminTransferScheduled( - newAdmin?: string | null, - acceptSchedule?: null, - ): DefaultAdminTransferScheduledEventFilter; - - 'RoleAdminChanged(bytes32,bytes32,bytes32)'( - role?: BytesLike | null, - previousAdminRole?: BytesLike | null, - newAdminRole?: BytesLike | null, - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: BytesLike | null, - previousAdminRole?: BytesLike | null, - newAdminRole?: BytesLike | null, - ): RoleAdminChangedEventFilter; - - 'RoleGranted(bytes32,address,address)'( - role?: BytesLike | null, - account?: string | null, - sender?: string | null, - ): RoleGrantedEventFilter; - RoleGranted( - role?: BytesLike | null, - account?: string | null, - sender?: string | null, - ): RoleGrantedEventFilter; - - 'RoleRevoked(bytes32,address,address)'( - role?: BytesLike | null, - account?: string | null, - sender?: string | null, - ): RoleRevokedEventFilter; - RoleRevoked( - role?: BytesLike | null, - account?: string | null, - sender?: string | null, - ): RoleRevokedEventFilter; + 'AddressAuthorizationSet(uint32,address,bool)'( + ritualId?: BigNumberish | null, + _address?: string | null, + isAuthorized?: null, + ): AddressAuthorizationSetEventFilter; + AddressAuthorizationSet( + ritualId?: BigNumberish | null, + _address?: string | null, + isAuthorized?: null, + ): AddressAuthorizationSetEventFilter; }; estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - acceptDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - authorize( ritualId: BigNumberish, addresses: string[], overrides?: Overrides & { from?: string }, ): Promise; - beginDefaultAdminTransfer( - newAdmin: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - cancelDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - - changeDefaultAdminDelay( - newDelay: BigNumberish, - overrides?: Overrides & { from?: string }, - ): Promise; - coordinator(overrides?: CallOverrides): Promise; deauthorize( @@ -791,31 +242,6 @@ export interface GlobalAllowList extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - defaultAdmin(overrides?: CallOverrides): Promise; - - defaultAdminDelay(overrides?: CallOverrides): Promise; - - defaultAdminDelayIncreaseWait( - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin( - role: BytesLike, - overrides?: CallOverrides, - ): Promise; - - grantRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - hasRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - isAddressAuthorized( ritualId: BigNumberish, encryptor: string, @@ -828,69 +254,15 @@ export interface GlobalAllowList extends BaseContract { ciphertextHeader: BytesLike, overrides?: CallOverrides, ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingDefaultAdmin(overrides?: CallOverrides): Promise; - - pendingDefaultAdminDelay(overrides?: CallOverrides): Promise; - - renounceRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - revokeRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - rollbackDefaultAdminDelay( - overrides?: Overrides & { from?: string }, - ): Promise; - - setCoordinator( - _coordinator: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - supportsInterface( - interfaceId: BytesLike, - overrides?: CallOverrides, - ): Promise; }; populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides, - ): Promise; - - acceptDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - authorize( ritualId: BigNumberish, addresses: string[], overrides?: Overrides & { from?: string }, ): Promise; - beginDefaultAdminTransfer( - newAdmin: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - cancelDefaultAdminTransfer( - overrides?: Overrides & { from?: string }, - ): Promise; - - changeDefaultAdminDelay( - newDelay: BigNumberish, - overrides?: Overrides & { from?: string }, - ): Promise; - coordinator(overrides?: CallOverrides): Promise; deauthorize( @@ -899,31 +271,6 @@ export interface GlobalAllowList extends BaseContract { overrides?: Overrides & { from?: string }, ): Promise; - defaultAdmin(overrides?: CallOverrides): Promise; - - defaultAdminDelay(overrides?: CallOverrides): Promise; - - defaultAdminDelayIncreaseWait( - overrides?: CallOverrides, - ): Promise; - - getRoleAdmin( - role: BytesLike, - overrides?: CallOverrides, - ): Promise; - - grantRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - hasRole( - role: BytesLike, - account: string, - overrides?: CallOverrides, - ): Promise; - isAddressAuthorized( ritualId: BigNumberish, encryptor: string, @@ -936,41 +283,5 @@ export interface GlobalAllowList extends BaseContract { ciphertextHeader: BytesLike, overrides?: CallOverrides, ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingDefaultAdmin( - overrides?: CallOverrides, - ): Promise; - - pendingDefaultAdminDelay( - overrides?: CallOverrides, - ): Promise; - - renounceRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - revokeRole( - role: BytesLike, - account: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - rollbackDefaultAdminDelay( - overrides?: Overrides & { from?: string }, - ): Promise; - - setCoordinator( - _coordinator: string, - overrides?: Overrides & { from?: string }, - ): Promise; - - supportsInterface( - interfaceId: BytesLike, - overrides?: CallOverrides, - ): Promise; }; } diff --git a/packages/shared/src/contracts/ethers-typechain/factories/Coordinator__factory.ts b/packages/shared/src/contracts/ethers-typechain/factories/Coordinator__factory.ts index 480569c4f..629ae8db6 100644 --- a/packages/shared/src/contracts/ethers-typechain/factories/Coordinator__factory.ts +++ b/packages/shared/src/contracts/ethers-typechain/factories/Coordinator__factory.ts @@ -17,32 +17,129 @@ const _abi = [ internalType: 'contract ITACoChildApplication', }, { - name: '_timeout', - type: 'uint32', - internalType: 'uint32', + name: '_currency', + type: 'address', + internalType: 'contract IERC20', }, { - name: '_maxDkgSize', - type: 'uint16', - internalType: 'uint16', + name: '_feeRatePerSecond', + type: 'uint256', + internalType: 'uint256', }, + ], + }, + { + type: 'error', + name: 'AccessControlBadConfirmation', + inputs: [], + }, + { + type: 'error', + name: 'AccessControlEnforcedDefaultAdminDelay', + inputs: [ { - name: '_admin', + name: 'schedule', + type: 'uint48', + internalType: 'uint48', + }, + ], + }, + { + type: 'error', + name: 'AccessControlEnforcedDefaultAdminRules', + inputs: [], + }, + { + type: 'error', + name: 'AccessControlInvalidDefaultAdmin', + inputs: [ + { + name: 'defaultAdmin', type: 'address', internalType: 'address', }, + ], + }, + { + type: 'error', + name: 'AccessControlUnauthorizedAccount', + inputs: [ { - name: '_currency', + name: 'account', type: 'address', - internalType: 'contract IERC20', + internalType: 'address', }, { - name: '_feeRatePerSecond', + name: 'neededRole', + type: 'bytes32', + internalType: 'bytes32', + }, + ], + }, + { + type: 'error', + name: 'AddressEmptyCode', + inputs: [ + { + name: 'target', + type: 'address', + internalType: 'address', + }, + ], + }, + { + type: 'error', + name: 'AddressInsufficientBalance', + inputs: [ + { + name: 'account', + type: 'address', + internalType: 'address', + }, + ], + }, + { + type: 'error', + name: 'FailedInnerCall', + inputs: [], + }, + { + type: 'error', + name: 'InvalidInitialization', + inputs: [], + }, + { + type: 'error', + name: 'NotInitializing', + inputs: [], + }, + { + type: 'error', + name: 'SafeCastOverflowedUintDowncast', + inputs: [ + { + name: 'bits', + type: 'uint8', + internalType: 'uint8', + }, + { + name: 'value', type: 'uint256', internalType: 'uint256', }, ], }, + { + type: 'error', + name: 'SafeERC20FailedOperation', + inputs: [ + { + name: 'token', + type: 'address', + internalType: 'address', + }, + ], + }, { type: 'event', name: 'AggregationPosted', @@ -137,6 +234,19 @@ const _abi = [ ], anonymous: false, }, + { + type: 'event', + name: 'Initialized', + inputs: [ + { + name: 'version', + type: 'uint64', + internalType: 'uint64', + indexed: false, + }, + ], + anonymous: false, + }, { type: 'event', name: 'MaxDkgSizeChanged', @@ -198,6 +308,44 @@ const _abi = [ ], anonymous: false, }, + { + type: 'event', + name: 'ReimbursementPoolSet', + inputs: [ + { + name: 'pool', + type: 'address', + internalType: 'address', + indexed: true, + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'RitualAuthorityTransferred', + inputs: [ + { + name: 'ritualId', + type: 'uint32', + internalType: 'uint32', + indexed: true, + }, + { + name: 'previousAuthority', + type: 'address', + internalType: 'address', + indexed: true, + }, + { + name: 'newAuthority', + type: 'address', + internalType: 'address', + indexed: true, + }, + ], + anonymous: false, + }, { type: 'event', name: 'RoleAdminChanged', @@ -863,6 +1011,29 @@ const _abi = [ }, ], }, + { + type: 'function', + name: 'initialize', + stateMutability: 'nonpayable', + inputs: [ + { + name: '_timeout', + type: 'uint32', + internalType: 'uint32', + }, + { + name: '_maxDkgSize', + type: 'uint16', + internalType: 'uint16', + }, + { + name: '_admin', + type: 'address', + internalType: 'address', + }, + ], + outputs: [], + }, { type: 'function', name: 'initiateRitual', @@ -960,7 +1131,7 @@ const _abi = [ }, { type: 'function', - name: 'isRitualFinalized', + name: 'isRitualActive', stateMutability: 'view', inputs: [ { @@ -1147,7 +1318,13 @@ const _abi = [ internalType: 'uint32', }, ], - outputs: [], + outputs: [ + { + name: 'refundableFee', + type: 'uint256', + internalType: 'uint256', + }, + ], }, { type: 'function', @@ -1334,24 +1511,6 @@ const _abi = [ ], outputs: [], }, - { - type: 'function', - name: 'setRitualAuthority', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'ritualId', - type: 'uint32', - internalType: 'uint32', - }, - { - name: 'authority', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - }, { type: 'function', name: 'setTimeout', @@ -1410,6 +1569,24 @@ const _abi = [ }, ], }, + { + type: 'function', + name: 'transferRitualAuthority', + stateMutability: 'nonpayable', + inputs: [ + { + name: 'ritualId', + type: 'uint32', + internalType: 'uint32', + }, + { + name: 'newAuthority', + type: 'address', + internalType: 'address', + }, + ], + outputs: [], + }, { type: 'function', name: 'withdrawTokens', diff --git a/packages/shared/src/contracts/ethers-typechain/factories/GlobalAllowList__factory.ts b/packages/shared/src/contracts/ethers-typechain/factories/GlobalAllowList__factory.ts index 0281a7744..d53e71fd1 100644 --- a/packages/shared/src/contracts/ethers-typechain/factories/GlobalAllowList__factory.ts +++ b/packages/shared/src/contracts/ethers-typechain/factories/GlobalAllowList__factory.ts @@ -19,158 +19,60 @@ const _abi = [ type: 'address', internalType: 'contract Coordinator', }, - { - name: '_admin', - type: 'address', - internalType: 'address', - }, - ], - }, - { - type: 'event', - name: 'DefaultAdminDelayChangeCanceled', - inputs: [], - anonymous: false, - }, - { - type: 'event', - name: 'DefaultAdminDelayChangeScheduled', - inputs: [ - { - name: 'newDelay', - type: 'uint48', - internalType: 'uint48', - indexed: false, - }, - { - name: 'effectSchedule', - type: 'uint48', - internalType: 'uint48', - indexed: false, - }, ], - anonymous: false, }, { - type: 'event', - name: 'DefaultAdminTransferCanceled', + type: 'error', + name: 'ECDSAInvalidSignature', inputs: [], - anonymous: false, }, { - type: 'event', - name: 'DefaultAdminTransferScheduled', - inputs: [ - { - name: 'newAdmin', - type: 'address', - internalType: 'address', - indexed: true, - }, - { - name: 'acceptSchedule', - type: 'uint48', - internalType: 'uint48', - indexed: false, - }, - ], - anonymous: false, - }, - { - type: 'event', - name: 'RoleAdminChanged', + type: 'error', + name: 'ECDSAInvalidSignatureLength', inputs: [ { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - indexed: true, - }, - { - name: 'previousAdminRole', - type: 'bytes32', - internalType: 'bytes32', - indexed: true, - }, - { - name: 'newAdminRole', - type: 'bytes32', - internalType: 'bytes32', - indexed: true, + name: 'length', + type: 'uint256', + internalType: 'uint256', }, ], - anonymous: false, }, { - type: 'event', - name: 'RoleGranted', + type: 'error', + name: 'ECDSAInvalidSignatureS', inputs: [ { - name: 'role', + name: 's', type: 'bytes32', internalType: 'bytes32', - indexed: true, - }, - { - name: 'account', - type: 'address', - internalType: 'address', - indexed: true, - }, - { - name: 'sender', - type: 'address', - internalType: 'address', - indexed: true, }, ], - anonymous: false, }, { type: 'event', - name: 'RoleRevoked', + name: 'AddressAuthorizationSet', inputs: [ { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', + name: 'ritualId', + type: 'uint32', + internalType: 'uint32', indexed: true, }, { - name: 'account', + name: '_address', type: 'address', internalType: 'address', indexed: true, }, { - name: 'sender', - type: 'address', - internalType: 'address', - indexed: true, + name: 'isAuthorized', + type: 'bool', + internalType: 'bool', + indexed: false, }, ], anonymous: false, }, - { - type: 'function', - name: 'DEFAULT_ADMIN_ROLE', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: '', - type: 'bytes32', - internalType: 'bytes32', - }, - ], - }, - { - type: 'function', - name: 'acceptDefaultAdminTransfer', - stateMutability: 'nonpayable', - inputs: [], - outputs: [], - }, { type: 'function', name: 'authorize', @@ -189,39 +91,6 @@ const _abi = [ ], outputs: [], }, - { - type: 'function', - name: 'beginDefaultAdminTransfer', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'newAdmin', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - }, - { - type: 'function', - name: 'cancelDefaultAdminTransfer', - stateMutability: 'nonpayable', - inputs: [], - outputs: [], - }, - { - type: 'function', - name: 'changeDefaultAdminDelay', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'newDelay', - type: 'uint48', - internalType: 'uint48', - }, - ], - outputs: [], - }, { type: 'function', name: 'coordinator', @@ -253,106 +122,6 @@ const _abi = [ ], outputs: [], }, - { - type: 'function', - name: 'defaultAdmin', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: '', - type: 'address', - internalType: 'address', - }, - ], - }, - { - type: 'function', - name: 'defaultAdminDelay', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: '', - type: 'uint48', - internalType: 'uint48', - }, - ], - }, - { - type: 'function', - name: 'defaultAdminDelayIncreaseWait', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: '', - type: 'uint48', - internalType: 'uint48', - }, - ], - }, - { - type: 'function', - name: 'getRoleAdmin', - stateMutability: 'view', - inputs: [ - { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - }, - ], - outputs: [ - { - name: '', - type: 'bytes32', - internalType: 'bytes32', - }, - ], - }, - { - type: 'function', - name: 'grantRole', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'account', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - }, - { - type: 'function', - name: 'hasRole', - stateMutability: 'view', - inputs: [ - { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'account', - type: 'address', - internalType: 'address', - }, - ], - outputs: [ - { - name: '', - type: 'bool', - internalType: 'bool', - }, - ], - }, { type: 'function', name: 'isAddressAuthorized', @@ -406,130 +175,6 @@ const _abi = [ }, ], }, - { - type: 'function', - name: 'owner', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: '', - type: 'address', - internalType: 'address', - }, - ], - }, - { - type: 'function', - name: 'pendingDefaultAdmin', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: 'newAdmin', - type: 'address', - internalType: 'address', - }, - { - name: 'schedule', - type: 'uint48', - internalType: 'uint48', - }, - ], - }, - { - type: 'function', - name: 'pendingDefaultAdminDelay', - stateMutability: 'view', - inputs: [], - outputs: [ - { - name: 'newDelay', - type: 'uint48', - internalType: 'uint48', - }, - { - name: 'schedule', - type: 'uint48', - internalType: 'uint48', - }, - ], - }, - { - type: 'function', - name: 'renounceRole', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'account', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - }, - { - type: 'function', - name: 'revokeRole', - stateMutability: 'nonpayable', - inputs: [ - { - name: 'role', - type: 'bytes32', - internalType: 'bytes32', - }, - { - name: 'account', - type: 'address', - internalType: 'address', - }, - ], - outputs: [], - }, - { - type: 'function', - name: 'rollbackDefaultAdminDelay', - stateMutability: 'nonpayable', - inputs: [], - outputs: [], - }, - { - type: 'function', - name: 'setCoordinator', - stateMutability: 'nonpayable', - inputs: [ - { - name: '_coordinator', - type: 'address', - internalType: 'contract Coordinator', - }, - ], - outputs: [], - }, - { - type: 'function', - name: 'supportsInterface', - stateMutability: 'view', - inputs: [ - { - name: 'interfaceId', - type: 'bytes4', - internalType: 'bytes4', - }, - ], - outputs: [ - { - name: '', - type: 'bool', - internalType: 'bool', - }, - ], - }, ] as const; export class GlobalAllowList__factory { diff --git a/packages/taco/package.json b/packages/taco/package.json index e3b71fb74..fec25bdb9 100644 --- a/packages/taco/package.json +++ b/packages/taco/package.json @@ -1,6 +1,6 @@ { "name": "@nucypher/taco", - "version": "0.1.0-rc.6", + "version": "0.1.0-rc.7", "keywords": [ "taco", "threshold", @@ -41,7 +41,7 @@ "dependencies": { "@ethersproject/abstract-signer": "^5.7.0", "@nucypher/nucypher-core": "*", - "@nucypher/shared": "^0.1.0-rc.4", + "@nucypher/shared": "^0.1.0-rc.6", "ethers": "^5.7.2", "semver": "^7.5.2", "zod": "^3.22.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fc5839e64..1ebdad9bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -535,7 +535,7 @@ importers: specifier: 0.13.0-alpha.1 version: 0.13.0-alpha.1 '@nucypher/shared': - specifier: ^0.1.0-rc.4 + specifier: ^0.1.0-rc.6 version: link:../shared ethers: specifier: ^5.7.2