Skip to content

Commit

Permalink
fix: add _transferOwnership() to proxy abi list (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre authored Nov 28, 2024
1 parent eba89a3 commit 43e8474
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-crabs-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@celo/contractkit": patch
---

fix: add transferOwnership() to proxy abi list
7 changes: 7 additions & 0 deletions docs/sdk/contractkit/modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
21 changes: 16 additions & 5 deletions docs/sdk/contractkit/modules/proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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)

___

Expand All @@ -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
Expand All @@ -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)

___

Expand All @@ -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)
17 changes: 17 additions & 0 deletions packages/sdk/contractkit/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43e8474

Please sign in to comment.