diff --git a/.changeset/dirty-crabs-trade.md b/.changeset/dirty-crabs-trade.md new file mode 100644 index 000000000..758e92d4a --- /dev/null +++ b/.changeset/dirty-crabs-trade.md @@ -0,0 +1,5 @@ +--- +"@celo/contractkit": patch +--- + +fix: add transferOwnership() to proxy abi list diff --git a/docs/sdk/contractkit/modules/index.md b/docs/sdk/contractkit/modules/index.md index 4539901cc..ca65e4422 100644 --- a/docs/sdk/contractkit/modules/index.md +++ b/docs/sdk/contractkit/modules/index.md @@ -25,6 +25,7 @@ - [SET\_AND\_INITIALIZE\_IMPLEMENTATION\_ABI](index.md#set_and_initialize_implementation_abi) - [SET\_IMPLEMENTATION\_ABI](index.md#set_implementation_abi) - [StableToken](index.md#stabletoken) +- [TRANSFER\_OWNERSHIP\_ABI](index.md#transfer_ownership_abi) - [Token](index.md#token) - [getInitializeAbiOfImplementation](index.md#getinitializeabiofimplementation) - [newKit](index.md#newkit) @@ -156,6 +157,12 @@ Re-exports [StableToken](../enums/celo_tokens.StableToken.md) ___ +### TRANSFER\_OWNERSHIP\_ABI + +Re-exports [TRANSFER_OWNERSHIP_ABI](proxy.md#transfer_ownership_abi) + +___ + ### Token Re-exports [Token](../enums/celo_tokens.Token.md) diff --git a/docs/sdk/contractkit/modules/proxy.md b/docs/sdk/contractkit/modules/proxy.md index b76cd596e..65cd895ad 100644 --- a/docs/sdk/contractkit/modules/proxy.md +++ b/docs/sdk/contractkit/modules/proxy.md @@ -12,6 +12,7 @@ - [PROXY\_SET\_IMPLEMENTATION\_SIGNATURE](proxy.md#proxy_set_implementation_signature) - [SET\_AND\_INITIALIZE\_IMPLEMENTATION\_ABI](proxy.md#set_and_initialize_implementation_abi) - [SET\_IMPLEMENTATION\_ABI](proxy.md#set_implementation_abi) +- [TRANSFER\_OWNERSHIP\_ABI](proxy.md#transfer_ownership_abi) ### Functions @@ -36,7 +37,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/proxy.ts:89](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L89) +[packages/sdk/contractkit/src/proxy.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L105) ___ @@ -46,7 +47,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/proxy.ts:96](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L96) +[packages/sdk/contractkit/src/proxy.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L113) ___ @@ -56,7 +57,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/proxy.ts:95](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L95) +[packages/sdk/contractkit/src/proxy.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L112) ___ @@ -78,6 +79,16 @@ ___ [packages/sdk/contractkit/src/proxy.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L53) +___ + +### TRANSFER\_OWNERSHIP\_ABI + +• `Const` **TRANSFER\_OWNERSHIP\_ABI**: `ABIDefinition` + +#### Defined in + +[packages/sdk/contractkit/src/proxy.ts:89](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L89) + ## Functions ### getInitializeAbiOfImplementation @@ -96,7 +107,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/proxy.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L138) +[packages/sdk/contractkit/src/proxy.ts:155](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L155) ___ @@ -117,4 +128,4 @@ ___ #### Defined in -[packages/sdk/contractkit/src/proxy.ts:148](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L148) +[packages/sdk/contractkit/src/proxy.ts:165](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L165) diff --git a/packages/sdk/contractkit/src/proxy.ts b/packages/sdk/contractkit/src/proxy.ts index ed6607acc..36e00286b 100644 --- a/packages/sdk/contractkit/src/proxy.ts +++ b/packages/sdk/contractkit/src/proxy.ts @@ -86,10 +86,27 @@ export const SET_AND_INITIALIZE_IMPLEMENTATION_ABI: ABIDefinition = { signature: '0x03386ba3', } +export const TRANSFER_OWNERSHIP_ABI: ABIDefinition = { + constant: false, + inputs: [ + { + name: 'newOwner', + type: 'address', + }, + ], + name: '_transferOwnership', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + signature: '0xd29d44ee', +} + export const PROXY_ABI: ABIDefinition[] = [ GET_IMPLEMENTATION_ABI, SET_IMPLEMENTATION_ABI, SET_AND_INITIALIZE_IMPLEMENTATION_ABI, + TRANSFER_OWNERSHIP_ABI, ] export const PROXY_SET_IMPLEMENTATION_SIGNATURE = SET_IMPLEMENTATION_ABI.signature