From 555a98b5fd8552668b22db28327505d04cca0df1 Mon Sep 17 00:00:00 2001 From: Nelson Taveras <4562733+nvtaveras@users.noreply.github.com> Date: Wed, 27 Nov 2024 13:50:55 +0100 Subject: [PATCH 1/3] fix: add transferOwnership() to proxy abi list --- packages/sdk/contractkit/src/proxy.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 From b19ab23dfc88fbf8665e49e06ffd60cd8a989286 Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Wed, 27 Nov 2024 17:30:49 +0100 Subject: [PATCH 2/3] Create dirty-crabs-trade.md --- .changeset/dirty-crabs-trade.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/dirty-crabs-trade.md 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 From 7c9eb4b2e6c220143c3b6b0809545979bca8cecd Mon Sep 17 00:00:00 2001 From: Leszek Stachowski Date: Thu, 28 Nov 2024 16:09:20 +0100 Subject: [PATCH 3/3] docs --- docs/sdk/contractkit/modules/index.md | 7 +++++++ docs/sdk/contractkit/modules/proxy.md | 21 ++++++++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) 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)