Skip to content

Commit

Permalink
Remove references to Exchange contract (#107)
Browse files Browse the repository at this point in the history
* Remove references to Exchange contract in ck

* update docs

---------

Co-authored-by: Aaron <aaron.deruvo@clabs.co>
Co-authored-by: Nicolas Brugneaux <nicolas.brugneaux@gmail.com>
3 people authored Feb 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c0357e0 commit b34439a
Showing 39 changed files with 213 additions and 2,300 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-moose-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/contractkit': major
---

Remove all references to now defunkt mento exchange contracts
36 changes: 17 additions & 19 deletions packages/docs/command-line-interface/exchange.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
`celocli exchange`
==================

Exchange Celo Dollars and CELO via the stability mechanism
Exchange Celo Dollars and CELO via Mento

* [`celocli exchange:celo`](#celocli-exchangecelo)
* [`celocli exchange:dollars`](#celocli-exchangedollars)
@@ -13,7 +13,7 @@ Exchange Celo Dollars and CELO via the stability mechanism

## `celocli exchange:celo`

Exchange CELO for StableTokens via the stability mechanism. (Note: this is the equivalent of the old exchange:gold)
Exchange CELO for StableTokens via Mento. (Note: this is the equivalent of the old exchange:gold)

```
USAGE
@@ -35,8 +35,8 @@ FLAGS
exchange for a StableToken
DESCRIPTION
Exchange CELO for StableTokens via the stability mechanism. (Note: this is the
equivalent of the old exchange:gold)
Exchange CELO for StableTokens via Mento. (Note: this is the equivalent of the old
exchange:gold)
EXAMPLES
celo --value 5000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d
@@ -48,7 +48,7 @@ _See code: [src/commands/exchange/celo.ts](https://github.com/celo-org/developer

## `celocli exchange:dollars`

Exchange Celo Dollars for CELO via the stability mechanism
Exchange Celo Dollars for CELO via Mento

```
USAGE
@@ -65,7 +65,7 @@ FLAGS
Dollars to exchange for CELO
DESCRIPTION
Exchange Celo Dollars for CELO via the stability mechanism
Exchange Celo Dollars for CELO via Mento
EXAMPLES
dollars --value 10000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d
@@ -77,7 +77,7 @@ _See code: [src/commands/exchange/dollars.ts](https://github.com/celo-org/develo

## `celocli exchange:euros`

Exchange Celo Euros for CELO via the stability mechanism
Exchange Celo Euros for CELO via Mento

```
USAGE
@@ -94,7 +94,7 @@ FLAGS
to exchange for CELO
DESCRIPTION
Exchange Celo Euros for CELO via the stability mechanism
Exchange Celo Euros for CELO via Mento
EXAMPLES
euros --value 10000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d
@@ -106,7 +106,7 @@ _See code: [src/commands/exchange/euros.ts](https://github.com/celo-org/develope

## `celocli exchange:gold`

Exchange CELO for StableTokens via the stability mechanism. *DEPRECATION WARNING* Use the "exchange:celo" command instead
Exchange CELO for StableTokens via Mento. *DEPRECATION WARNING* Use the "exchange:celo" command instead

```
USAGE
@@ -128,20 +128,18 @@ FLAGS
exchange for a StableToken
DESCRIPTION
Exchange CELO for StableTokens via the stability mechanism. *DEPRECATION WARNING* Use
the "exchange:celo" command instead
Exchange CELO for StableTokens via Mento. *DEPRECATION WARNING* Use the
"exchange:celo" command instead
EXAMPLES
gold --value 5000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d
gold --value 5000000000000 --forAtLeast 100000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d --stableToken cUSD
```

_See code: [src/commands/exchange/gold.ts](https://github.com/celo-org/developer-tooling/tree/master/packages/cli/src/commands/exchange/gold.ts)_

## `celocli exchange:reals`

Exchange Celo Brazilian Real (cREAL) for CELO via the stability mechanism
Exchange Celo Brazilian Real (cREAL) for CELO via Mento

```
USAGE
@@ -158,7 +156,7 @@ FLAGS
Brazilian Real to exchange for CELO
DESCRIPTION
Exchange Celo Brazilian Real (cREAL) for CELO via the stability mechanism
Exchange Celo Brazilian Real (cREAL) for CELO via Mento
EXAMPLES
reals --value 10000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d
@@ -170,7 +168,7 @@ _See code: [src/commands/exchange/reals.ts](https://github.com/celo-org/develope

## `celocli exchange:show`

Show the current exchange rates offered by the Exchange
Show the current exchange rates offered by the Broker

```
USAGE
@@ -182,7 +180,7 @@ FLAGS
--globalHelp View all available global flags
DESCRIPTION
Show the current exchange rates offered by the Exchange
Show the current exchange rates offered by the Broker
EXAMPLES
list
@@ -192,7 +190,7 @@ _See code: [src/commands/exchange/show.ts](https://github.com/celo-org/developer

## `celocli exchange:stable`

Exchange Stable Token for CELO via the stability mechanism
Exchange Stable Token for CELO via Mento

```
USAGE
@@ -213,7 +211,7 @@ FLAGS
Tokens to exchange for CELO
DESCRIPTION
Exchange Stable Token for CELO via the stability mechanism
Exchange Stable Token for CELO via Mento
EXAMPLES
stable --value 10000000000000 --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d --stableToken cStableTokenSymbol
4 changes: 1 addition & 3 deletions packages/docs/sdk/docs/contractkit/README.md
Original file line number Diff line number Diff line change
@@ -145,7 +145,6 @@ There are many core contracts.
- EpochRewardsWrapper
- Erc20Wrapper
- EscrowWrapper
- ExchangeWrapper
- FreezerWrapper
- GasPriceMinimumWrapper
- GoldTokenWrapper
@@ -195,7 +194,7 @@ Some user might want to access web3 native contract wrappers.
To do so, you can:

```ts
const web3Exchange = await kit._web3Contracts.getExchange()
const feeCurrencyWhitelist = await kit._web3Contracts.getFeeCurrencyWhitelist()
```

We expose native wrappers for all Celo core contracts.
@@ -206,7 +205,6 @@ The complete list of Celo Core contracts is:
- Attestations
- LockedGold
- Escrow
- Exchange
- FeeCurrencyWhitelist
- GasPriceMinimum
- GoldToken
Original file line number Diff line number Diff line change
@@ -26,8 +26,6 @@ A helper class to interact with all Celo tokens, ie CELO and stable tokens
- [getAddress](celo_tokens.CeloTokens.md#getaddress)
- [getAddresses](celo_tokens.CeloTokens.md#getaddresses)
- [getContract](celo_tokens.CeloTokens.md#getcontract)
- [getExchangeContract](celo_tokens.CeloTokens.md#getexchangecontract)
- [getExchangesConfigs](celo_tokens.CeloTokens.md#getexchangesconfigs)
- [getFeeCurrencyAddress](celo_tokens.CeloTokens.md#getfeecurrencyaddress)
- [getStablesConfigs](celo_tokens.CeloTokens.md#getstablesconfigs)
- [getWrapper](celo_tokens.CeloTokens.md#getwrapper)
@@ -55,7 +53,7 @@ A helper class to interact with all Celo tokens, ie CELO and stable tokens

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L62)
[packages/sdk/contractkit/src/celo-tokens.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L58)

## Properties

@@ -65,7 +63,7 @@ A helper class to interact with all Celo tokens, ie CELO and stable tokens

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L62)
[packages/sdk/contractkit/src/celo-tokens.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L58)

___

@@ -89,7 +87,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:272](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L272)
[packages/sdk/contractkit/src/celo-tokens.ts:248](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L248)

___

@@ -99,7 +97,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L62)
[packages/sdk/contractkit/src/celo-tokens.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L58)

## Methods

@@ -124,7 +122,7 @@ a promise resolving to an object containing the address's balance

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L70)
[packages/sdk/contractkit/src/celo-tokens.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L66)

___

@@ -156,7 +154,7 @@ an object containing the resolved value the call to fn for each

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:120](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L120)
[packages/sdk/contractkit/src/celo-tokens.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L106)

___

@@ -188,7 +186,7 @@ an object containing the resolved value the call to fn for each

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:143](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L143)
[packages/sdk/contractkit/src/celo-tokens.ts:129](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L129)

___

@@ -212,7 +210,7 @@ A promise resolving to the address of the token's contract

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:247](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L247)
[packages/sdk/contractkit/src/celo-tokens.ts:223](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L223)

___

@@ -230,7 +228,7 @@ an promise resolving to an object containing the address for each celo token pro

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:89](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L89)
[packages/sdk/contractkit/src/celo-tokens.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L85)

___

@@ -254,51 +252,7 @@ The contract for the token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:228](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L228)

___

### getExchangeContract

**getExchangeContract**(`token`): [`ExchangeContract`](../modules/base.md#exchangecontract)

Gets the exchange contract for the provided stable token

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `token` | [`StableToken`](../enums/celo_tokens.StableToken.md) | the stable token to get exchange contract of |

#### Returns

[`ExchangeContract`](../modules/base.md#exchangecontract)

The exchange contract for the token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:238](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L238)

___

### getExchangesConfigs

**getExchangesConfigs**(`humanReadable?`): `Promise`\<[`EachCeloToken`](../modules/celo_tokens.md#eachcelotoken)\<[`ExchangeConfig`](../interfaces/wrappers_Exchange.ExchangeConfig.md) \| \{ `lastBucketUpdate`: `string` ; `minimumReports`: `BigNumber` ; `reserveFraction`: `BigNumber` ; `spread`: `BigNumber` ; `updateFrequency`: `string` }\>\>

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `humanReadable` | `boolean` | `false` |

#### Returns

`Promise`\<[`EachCeloToken`](../modules/celo_tokens.md#eachcelotoken)\<[`ExchangeConfig`](../interfaces/wrappers_Exchange.ExchangeConfig.md) \| \{ `lastBucketUpdate`: `string` ; `minimumReports`: `BigNumber` ; `reserveFraction`: `BigNumber` ; `spread`: `BigNumber` ; `updateFrequency`: `string` }\>\>

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:103](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L103)
[packages/sdk/contractkit/src/celo-tokens.ts:213](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L213)

___

@@ -323,7 +277,7 @@ If not CELO, the address of the token's contract. If CELO, undefined.

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:255](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L255)
[packages/sdk/contractkit/src/celo-tokens.ts:231](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L231)

___

@@ -343,7 +297,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:93](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L93)
[packages/sdk/contractkit/src/celo-tokens.ts:89](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L89)

___

@@ -367,7 +321,7 @@ an promise resolving to the wrapper for the token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:216](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L216)
[packages/sdk/contractkit/src/celo-tokens.ts:201](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L201)

**getWrapper**(`token`): `Promise`\<[`GoldTokenWrapper`](wrappers_GoldTokenWrapper.GoldTokenWrapper.md)\>

@@ -383,7 +337,7 @@ an promise resolving to the wrapper for the token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:217](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L217)
[packages/sdk/contractkit/src/celo-tokens.ts:202](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L202)

**getWrapper**(`token`): `Promise`\<[`CeloTokenWrapper`](../modules/celo_tokens.md#celotokenwrapper)\>

@@ -399,7 +353,7 @@ an promise resolving to the wrapper for the token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:218](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L218)
[packages/sdk/contractkit/src/celo-tokens.ts:203](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L203)

___

@@ -417,7 +371,7 @@ an promise resolving to an object containing the wrapper for each celo token.

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:81](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L81)
[packages/sdk/contractkit/src/celo-tokens.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L77)

___

@@ -441,7 +395,7 @@ if token is a StableToken

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:267](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L267)
[packages/sdk/contractkit/src/celo-tokens.ts:243](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L243)

___

@@ -455,7 +409,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:176](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L176)
[packages/sdk/contractkit/src/celo-tokens.ts:162](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L162)

___

@@ -469,4 +423,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:193](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L193)
[packages/sdk/contractkit/src/celo-tokens.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L179)
Original file line number Diff line number Diff line change
@@ -41,7 +41,6 @@ Consider Using MiniWrapperCache, building your own, or if you only need one Wrap
- [getEpochRewards](contract_cache.WrapperCache.md#getepochrewards)
- [getErc20](contract_cache.WrapperCache.md#geterc20)
- [getEscrow](contract_cache.WrapperCache.md#getescrow)
- [getExchange](contract_cache.WrapperCache.md#getexchange)
- [getFederatedAttestations](contract_cache.WrapperCache.md#getfederatedattestations)
- [getFreezer](contract_cache.WrapperCache.md#getfreezer)
- [getGasPriceMinimum](contract_cache.WrapperCache.md#getgaspriceminimum)
@@ -76,7 +75,7 @@ Consider Using MiniWrapperCache, building your own, or if you only need one Wrap

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:124](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L124)
[packages/sdk/contractkit/src/contract-cache.ts:117](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L117)

## Properties

@@ -86,7 +85,7 @@ Consider Using MiniWrapperCache, building your own, or if you only need one Wrap

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L126)
[packages/sdk/contractkit/src/contract-cache.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L119)

___

@@ -96,7 +95,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L125)
[packages/sdk/contractkit/src/contract-cache.ts:118](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L118)

___

@@ -106,7 +105,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:127](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L127)
[packages/sdk/contractkit/src/contract-cache.ts:120](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L120)

## Methods

@@ -124,7 +123,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:130](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L130)
[packages/sdk/contractkit/src/contract-cache.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L123)

___

@@ -138,7 +137,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:133](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L133)
[packages/sdk/contractkit/src/contract-cache.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L126)

___

@@ -152,7 +151,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L136)
[packages/sdk/contractkit/src/contract-cache.ts:129](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L129)

___

@@ -185,7 +184,7 @@ Get Contract wrapper

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:200](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L200)
[packages/sdk/contractkit/src/contract-cache.ts:191](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L191)

___

@@ -199,7 +198,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:139](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L139)
[packages/sdk/contractkit/src/contract-cache.ts:132](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L132)

___

@@ -213,7 +212,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:142](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L142)
[packages/sdk/contractkit/src/contract-cache.ts:135](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L135)

___

@@ -227,7 +226,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:145](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L145)
[packages/sdk/contractkit/src/contract-cache.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L138)

___

@@ -241,7 +240,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:148](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L148)
[packages/sdk/contractkit/src/contract-cache.ts:141](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L141)

___

@@ -261,7 +260,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:151](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L151)
[packages/sdk/contractkit/src/contract-cache.ts:144](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L144)

___

@@ -275,31 +274,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:154](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L154)

___

### getExchange

**getExchange**(`stableToken?`): `Promise`\<[`ExchangeWrapper`](wrappers_Exchange.ExchangeWrapper.md)\>

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `stableToken` | [`StableToken`](../enums/celo_tokens.StableToken.md) | `StableToken.cUSD` |

#### Returns

`Promise`\<[`ExchangeWrapper`](wrappers_Exchange.ExchangeWrapper.md)\>

#### Implementation of

[ContractCacheType](../interfaces/basic_contract_cache_type.ContractCacheType.md).[getExchange](../interfaces/basic_contract_cache_type.ContractCacheType.md#getexchange)

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:157](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L157)
[packages/sdk/contractkit/src/contract-cache.ts:147](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L147)

___

@@ -313,7 +288,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:163](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L163)
[packages/sdk/contractkit/src/contract-cache.ts:154](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L154)

___

@@ -327,7 +302,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:160](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L160)
[packages/sdk/contractkit/src/contract-cache.ts:151](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L151)

___

@@ -341,7 +316,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:166](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L166)
[packages/sdk/contractkit/src/contract-cache.ts:157](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L157)

___

@@ -359,7 +334,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:169](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L169)
[packages/sdk/contractkit/src/contract-cache.ts:160](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L160)

___

@@ -373,7 +348,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:172](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L172)
[packages/sdk/contractkit/src/contract-cache.ts:163](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L163)

___

@@ -387,7 +362,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:175](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L175)
[packages/sdk/contractkit/src/contract-cache.ts:166](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L166)

___

@@ -407,7 +382,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:178](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L178)
[packages/sdk/contractkit/src/contract-cache.ts:169](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L169)

___

@@ -421,7 +396,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:181](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L181)
[packages/sdk/contractkit/src/contract-cache.ts:172](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L172)

___

@@ -435,7 +410,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:184](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L184)
[packages/sdk/contractkit/src/contract-cache.ts:175](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L175)

___

@@ -449,7 +424,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:187](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L187)
[packages/sdk/contractkit/src/contract-cache.ts:178](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L178)

___

@@ -473,7 +448,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:190](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L190)
[packages/sdk/contractkit/src/contract-cache.ts:181](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L181)

___

@@ -487,7 +462,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:193](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L193)
[packages/sdk/contractkit/src/contract-cache.ts:184](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L184)

___

@@ -513,4 +488,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:224](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L224)
[packages/sdk/contractkit/src/contract-cache.ts:215](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L215)
60 changes: 30 additions & 30 deletions packages/docs/sdk/docs/contractkit/classes/kit.ContractKit.md
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@

#### Defined in

[packages/sdk/contractkit/src/kit.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L114)
[packages/sdk/contractkit/src/kit.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L112)

## Properties

@@ -75,7 +75,7 @@ factory for core contract's native web3 wrappers

#### Defined in

[packages/sdk/contractkit/src/kit.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L105)
[packages/sdk/contractkit/src/kit.ts:103](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L103)

___

@@ -87,7 +87,7 @@ helper for interacting with CELO & stable tokens

#### Defined in

[packages/sdk/contractkit/src/kit.ts:109](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L109)
[packages/sdk/contractkit/src/kit.ts:107](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L107)

___

@@ -97,7 +97,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L114)
[packages/sdk/contractkit/src/kit.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L112)

___

@@ -109,7 +109,7 @@ factory for core contract's kit wrappers

#### Defined in

[packages/sdk/contractkit/src/kit.ts:107](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L107)
[packages/sdk/contractkit/src/kit.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L105)

___

@@ -123,7 +123,7 @@ no longer needed since gasPrice is available on node rpc

#### Defined in

[packages/sdk/contractkit/src/kit.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L112)
[packages/sdk/contractkit/src/kit.ts:110](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L110)

___

@@ -135,7 +135,7 @@ core contract's address registry

#### Defined in

[packages/sdk/contractkit/src/kit.ts:103](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L103)
[packages/sdk/contractkit/src/kit.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L101)

## Accessors

@@ -149,7 +149,7 @@ core contract's address registry

#### Defined in

[packages/sdk/contractkit/src/kit.ts:236](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L236)
[packages/sdk/contractkit/src/kit.ts:233](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L233)

`set` **defaultAccount**(`address`): `void`

@@ -165,7 +165,7 @@ core contract's address registry

#### Defined in

[packages/sdk/contractkit/src/kit.ts:232](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L232)
[packages/sdk/contractkit/src/kit.ts:229](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L229)

___

@@ -179,7 +179,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:252](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L252)
[packages/sdk/contractkit/src/kit.ts:249](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L249)

`set` **defaultFeeCurrency**(`address`): `void`

@@ -195,7 +195,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:248](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L248)
[packages/sdk/contractkit/src/kit.ts:245](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L245)

___

@@ -209,7 +209,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:244](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L244)
[packages/sdk/contractkit/src/kit.ts:241](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L241)

`set` **gasInflationFactor**(`factor`): `void`

@@ -225,7 +225,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:240](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L240)
[packages/sdk/contractkit/src/kit.ts:237](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L237)

___

@@ -239,7 +239,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:283](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L283)
[packages/sdk/contractkit/src/kit.ts:280](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L280)

## Methods

@@ -259,7 +259,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:228](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L228)
[packages/sdk/contractkit/src/kit.ts:225](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L225)

___

@@ -279,7 +279,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:219](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L219)
[packages/sdk/contractkit/src/kit.ts:216](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L216)

___

@@ -293,7 +293,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:204](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L204)
[packages/sdk/contractkit/src/kit.ts:201](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L201)

___

@@ -313,7 +313,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:209](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L209)
[packages/sdk/contractkit/src/kit.ts:206](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L206)

___

@@ -327,7 +327,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:190](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L190)
[packages/sdk/contractkit/src/kit.ts:187](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L187)

___

@@ -347,7 +347,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:214](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L214)
[packages/sdk/contractkit/src/kit.ts:211](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L211)

___

@@ -367,7 +367,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:142](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L142)
[packages/sdk/contractkit/src/kit.ts:140](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L140)

___

@@ -387,7 +387,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L125)
[packages/sdk/contractkit/src/kit.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L123)

___

@@ -401,7 +401,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:121](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L121)
[packages/sdk/contractkit/src/kit.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L119)

___

@@ -415,7 +415,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:256](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L256)
[packages/sdk/contractkit/src/kit.ts:253](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L253)

___

@@ -429,7 +429,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:260](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L260)
[packages/sdk/contractkit/src/kit.ts:257](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L257)

___

@@ -449,7 +449,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:264](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L264)
[packages/sdk/contractkit/src/kit.ts:261](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L261)

___

@@ -470,7 +470,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:268](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L268)
[packages/sdk/contractkit/src/kit.ts:265](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L265)

___

@@ -492,7 +492,7 @@ Set CeloToken to use to pay for gas fees

#### Defined in

[packages/sdk/contractkit/src/kit.ts:196](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L196)
[packages/sdk/contractkit/src/kit.ts:193](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L193)

___

@@ -513,7 +513,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:275](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L275)
[packages/sdk/contractkit/src/kit.ts:272](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L272)

___

@@ -527,4 +527,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:279](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L279)
[packages/sdk/contractkit/src/kit.ts:276](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L276)

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -30,8 +30,6 @@

[`EscrowWrapper`](wrappers_Escrow.EscrowWrapper.md)

[`ExchangeWrapper`](wrappers_Exchange.ExchangeWrapper.md)

[`FederatedAttestationsWrapper`](wrappers_FederatedAttestations.FederatedAttestationsWrapper.md)

[`FeeHandlerWrapper`](wrappers_FeeHandler.FeeHandlerWrapper.md)
1,137 changes: 0 additions & 1,137 deletions packages/docs/sdk/docs/contractkit/classes/wrappers_Exchange.ExchangeWrapper.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ ___

### methodIds

**methodIds**: `Record`\<``"initialized"`` \| ``"isOwner"`` \| ``"owner"`` \| ``"registry"`` \| ``"renounceOwnership"`` \| ``"setRegistry"`` \| ``"transferOwnership"`` \| ``"getVersionNumber"`` \| ``"initialize"`` \| ``"addToken"`` \| ``"removeToken"`` \| ``"transfer"`` \| ``"sell"`` \| ``"FIXED1_UINT"`` \| ``"MIN_BURN"`` \| ``"burnFraction"`` \| ``"celoToBeBurned"`` \| ``"feeBeneficiary"`` \| ``"lastLimitDay"`` \| ``"getTokenHandler"`` \| ``"getTokenActive"`` \| ``"getTokenMaxSlippage"`` \| ``"getTokenDailySellLimit"`` \| ``"getTokenCurrentDaySellLimit"`` \| ``"getTokenToDistribute"`` \| ``"getActiveTokens"`` \| ``"setFeeBeneficiary"`` \| ``"setBurnFraction"`` \| ``"activateToken"`` \| ``"deactivateToken"`` \| ``"setHandler"`` \| ``"distribute"`` \| ``"setMaxSplippage"`` \| ``"setDailySellLimit"`` \| ``"burnCelo"`` \| ``"distributeAll"`` \| ``"handleAll"`` \| ``"handle"`` \| ``"getPastBurnForToken"`` \| ``"dailySellLimitHit"``, `string`\>
**methodIds**: `Record`\<``"initialized"`` \| ``"isOwner"`` \| ``"owner"`` \| ``"registry"`` \| ``"renounceOwnership"`` \| ``"setRegistry"`` \| ``"transferOwnership"`` \| ``"getVersionNumber"`` \| ``"initialize"`` \| ``"addToken"`` \| ``"removeToken"`` \| ``"transfer"`` \| ``"FIXED1_UINT"`` \| ``"MIN_BURN"`` \| ``"burnFraction"`` \| ``"celoToBeBurned"`` \| ``"feeBeneficiary"`` \| ``"lastLimitDay"`` \| ``"getTokenHandler"`` \| ``"getTokenActive"`` \| ``"getTokenMaxSlippage"`` \| ``"getTokenDailySellLimit"`` \| ``"getTokenCurrentDaySellLimit"`` \| ``"getTokenToDistribute"`` \| ``"getActiveTokens"`` \| ``"setFeeBeneficiary"`` \| ``"setBurnFraction"`` \| ``"sell"`` \| ``"activateToken"`` \| ``"deactivateToken"`` \| ``"setHandler"`` \| ``"distribute"`` \| ``"setMaxSplippage"`` \| ``"setDailySellLimit"`` \| ``"burnCelo"`` \| ``"distributeAll"`` \| ``"handleAll"`` \| ``"handle"`` \| ``"getPastBurnForToken"`` \| ``"dailySellLimitHit"``, `string`\>

#### Inherited from

73 changes: 20 additions & 53 deletions packages/docs/sdk/docs/contractkit/enums/base.CeloContract.md
Original file line number Diff line number Diff line change
@@ -17,9 +17,6 @@
- [Election](base.CeloContract.md#election)
- [EpochRewards](base.CeloContract.md#epochrewards)
- [Escrow](base.CeloContract.md#escrow)
- [Exchange](base.CeloContract.md#exchange)
- [ExchangeBRL](base.CeloContract.md#exchangebrl)
- [ExchangeEUR](base.CeloContract.md#exchangeeur)
- [FederatedAttestations](base.CeloContract.md#federatedattestations)
- [FeeCurrencyWhitelist](base.CeloContract.md#feecurrencywhitelist)
- [FeeHandler](base.CeloContract.md#feehandler)
@@ -133,43 +130,13 @@ ___

___

### Exchange

**Exchange** = ``"Exchange"``

#### Defined in

[packages/sdk/contractkit/src/base.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L11)

___

### ExchangeBRL

**ExchangeBRL** = ``"ExchangeBRL"``

#### Defined in

[packages/sdk/contractkit/src/base.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L13)

___

### ExchangeEUR

**ExchangeEUR** = ``"ExchangeEUR"``

#### Defined in

[packages/sdk/contractkit/src/base.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L12)

___

### FederatedAttestations

**FederatedAttestations** = ``"FederatedAttestations"``

#### Defined in

[packages/sdk/contractkit/src/base.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L14)
[packages/sdk/contractkit/src/base.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L11)

___

@@ -179,7 +146,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L15)
[packages/sdk/contractkit/src/base.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L12)

___

@@ -189,7 +156,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L16)
[packages/sdk/contractkit/src/base.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L13)

___

@@ -199,7 +166,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L17)
[packages/sdk/contractkit/src/base.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L14)

___

@@ -209,7 +176,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L18)
[packages/sdk/contractkit/src/base.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L15)

___

@@ -219,7 +186,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L19)
[packages/sdk/contractkit/src/base.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L16)

___

@@ -229,7 +196,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L20)
[packages/sdk/contractkit/src/base.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L17)

___

@@ -239,7 +206,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L21)
[packages/sdk/contractkit/src/base.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L18)

___

@@ -249,7 +216,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L22)
[packages/sdk/contractkit/src/base.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L19)

___

@@ -259,7 +226,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L24)
[packages/sdk/contractkit/src/base.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L21)

___

@@ -269,7 +236,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L25)
[packages/sdk/contractkit/src/base.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L22)

___

@@ -279,7 +246,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L26)
[packages/sdk/contractkit/src/base.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L23)

___

@@ -289,7 +256,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L27)
[packages/sdk/contractkit/src/base.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L24)

___

@@ -299,7 +266,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L28)
[packages/sdk/contractkit/src/base.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L25)

___

@@ -309,7 +276,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L29)
[packages/sdk/contractkit/src/base.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L26)

___

@@ -319,7 +286,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L30)
[packages/sdk/contractkit/src/base.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L27)

___

@@ -329,7 +296,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L32)
[packages/sdk/contractkit/src/base.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L29)

___

@@ -339,7 +306,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L31)
[packages/sdk/contractkit/src/base.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L28)

___

@@ -349,7 +316,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L23)
[packages/sdk/contractkit/src/base.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L20)

___

@@ -359,4 +326,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L33)
[packages/sdk/contractkit/src/base.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L30)
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ to make a MiniContractKit or CeloTokens Class

- [getAccounts](basic_contract_cache_type.ContractCacheType.md#getaccounts)
- [getContract](basic_contract_cache_type.ContractCacheType.md#getcontract)
- [getExchange](basic_contract_cache_type.ContractCacheType.md#getexchange)
- [getGoldToken](basic_contract_cache_type.ContractCacheType.md#getgoldtoken)
- [getStableToken](basic_contract_cache_type.ContractCacheType.md#getstabletoken)

@@ -34,28 +33,12 @@ to make a MiniContractKit or CeloTokens Class

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L13)
[packages/sdk/contractkit/src/basic-contract-cache-type.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L12)

___

### getContract

**getContract**(`contract`): `Promise`\<[`ExchangeWrapper`](../classes/wrappers_Exchange.ExchangeWrapper.md)\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `contract` | [`Exchange`](../enums/base.CeloContract.md#exchange) \| [`ExchangeEUR`](../enums/base.CeloContract.md#exchangeeur) \| [`ExchangeBRL`](../enums/base.CeloContract.md#exchangebrl) |

#### Returns

`Promise`\<[`ExchangeWrapper`](../classes/wrappers_Exchange.ExchangeWrapper.md)\>

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L20)

**getContract**(`contract`): `Promise`\<[`StableTokenWrapper`](../classes/wrappers_StableTokenWrapper.StableTokenWrapper.md)\>

#### Parameters
@@ -70,7 +53,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L23)
[packages/sdk/contractkit/src/basic-contract-cache-type.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L18)

**getContract**(`contract`): `Promise`\<[`GoldTokenWrapper`](../classes/wrappers_GoldTokenWrapper.GoldTokenWrapper.md)\>

@@ -86,27 +69,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L24)

___

### getExchange

**getExchange**(`stableToken`): `Promise`\<[`ExchangeWrapper`](../classes/wrappers_Exchange.ExchangeWrapper.md)\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `stableToken` | [`StableToken`](../enums/celo_tokens.StableToken.md) |

#### Returns

`Promise`\<[`ExchangeWrapper`](../classes/wrappers_Exchange.ExchangeWrapper.md)\>

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L14)
[packages/sdk/contractkit/src/basic-contract-cache-type.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L19)

___

@@ -120,7 +83,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L16)
[packages/sdk/contractkit/src/basic-contract-cache-type.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L14)

___

@@ -140,4 +103,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/basic-contract-cache-type.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L18)
[packages/sdk/contractkit/src/basic-contract-cache-type.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/basic-contract-cache-type.ts#L16)
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
### Properties

- [contract](celo_tokens.StableTokenInfo.md#contract)
- [exchangeContract](celo_tokens.StableTokenInfo.md#exchangecontract)
- [symbol](celo_tokens.StableTokenInfo.md#symbol)

## Properties
@@ -34,16 +33,6 @@

___

### exchangeContract

**exchangeContract**: [`ExchangeContract`](../modules/base.md#exchangecontract)

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L23)

___

### symbol

**symbol**: [`CeloTokenType`](../modules/celo_tokens.md#celotokentype)
31 changes: 10 additions & 21 deletions packages/docs/sdk/docs/contractkit/interfaces/kit.NetworkConfig.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@
- [blockchainParameters](kit.NetworkConfig.md#blockchainparameters)
- [downtimeSlasher](kit.NetworkConfig.md#downtimeslasher)
- [election](kit.NetworkConfig.md#election)
- [exchanges](kit.NetworkConfig.md#exchanges)
- [gasPriceMinimum](kit.NetworkConfig.md#gaspriceminimum)
- [governance](kit.NetworkConfig.md#governance)
- [lockedGold](kit.NetworkConfig.md#lockedgold)
@@ -29,7 +28,7 @@

#### Defined in

[packages/sdk/contractkit/src/kit.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L74)
[packages/sdk/contractkit/src/kit.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L72)

___

@@ -39,7 +38,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:82](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L82)
[packages/sdk/contractkit/src/kit.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L80)

___

@@ -49,7 +48,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:81](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L81)
[packages/sdk/contractkit/src/kit.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L79)

___

@@ -59,16 +58,6 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L73)

___

### exchanges

**exchanges**: [`EachCeloToken`](../modules/celo_tokens.md#eachcelotoken)\<[`ExchangeConfig`](wrappers_Exchange.ExchangeConfig.md)\>

#### Defined in

[packages/sdk/contractkit/src/kit.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L71)

___
@@ -79,7 +68,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L78)
[packages/sdk/contractkit/src/kit.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L76)

___

@@ -89,7 +78,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L75)
[packages/sdk/contractkit/src/kit.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L73)

___

@@ -99,7 +88,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L76)
[packages/sdk/contractkit/src/kit.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L74)

___

@@ -109,7 +98,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L79)
[packages/sdk/contractkit/src/kit.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L77)

___

@@ -119,7 +108,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L77)
[packages/sdk/contractkit/src/kit.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L75)

___

@@ -129,7 +118,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L72)
[packages/sdk/contractkit/src/kit.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L70)

___

@@ -139,4 +128,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/kit.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L80)
[packages/sdk/contractkit/src/kit.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L78)

This file was deleted.

1 change: 0 additions & 1 deletion packages/docs/sdk/docs/contractkit/modules.md
Original file line number Diff line number Diff line change
@@ -45,7 +45,6 @@
- [wrappers/EpochRewards](modules/wrappers_EpochRewards.md)
- [wrappers/Erc20Wrapper](modules/wrappers_Erc20Wrapper.md)
- [wrappers/Escrow](modules/wrappers_Escrow.md)
- [wrappers/Exchange](modules/wrappers_Exchange.md)
- [wrappers/FederatedAttestations](modules/wrappers_FederatedAttestations.md)
- [wrappers/FeeHandler](modules/wrappers_FeeHandler.md)
- [wrappers/Freezer](modules/wrappers_Freezer.md)
27 changes: 8 additions & 19 deletions packages/docs/sdk/docs/contractkit/modules/base.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@

- [CeloToken](base.md#celotoken)
- [CeloTokenContract](base.md#celotokencontract)
- [ExchangeContract](base.md#exchangecontract)
- [StableTokenContract](base.md#stabletokencontract)

### Variables
@@ -40,7 +39,7 @@ Use CeloTokenContract instead

#### Defined in

[packages/sdk/contractkit/src/base.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L51)
[packages/sdk/contractkit/src/base.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L43)

___

@@ -50,17 +49,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L46)

___

### ExchangeContract

Ƭ **ExchangeContract**: [`Exchange`](../enums/base.CeloContract.md#exchange) \| [`ExchangeEUR`](../enums/base.CeloContract.md#exchangeeur) \| [`ExchangeBRL`](../enums/base.CeloContract.md#exchangebrl)

#### Defined in

[packages/sdk/contractkit/src/base.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L41)
[packages/sdk/contractkit/src/base.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L38)

___

@@ -70,7 +59,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L36)
[packages/sdk/contractkit/src/base.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L33)

## Variables

@@ -80,7 +69,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L53)
[packages/sdk/contractkit/src/base.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L45)

___

@@ -90,7 +79,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L64)
[packages/sdk/contractkit/src/base.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L56)

___

@@ -100,7 +89,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L55)
[packages/sdk/contractkit/src/base.ts:47](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L47)

## Functions

@@ -120,7 +109,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L58)
[packages/sdk/contractkit/src/base.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L50)

___

@@ -140,4 +129,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/base.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L61)
[packages/sdk/contractkit/src/base.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L53)
6 changes: 3 additions & 3 deletions packages/docs/sdk/docs/contractkit/modules/celo_tokens.md
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ Basic info for each supported celo token, including stable tokens

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L48)
[packages/sdk/contractkit/src/celo-tokens.ts:44](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L44)

___

@@ -91,7 +91,7 @@ Basic info for each stable token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L27)
[packages/sdk/contractkit/src/celo-tokens.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L26)

## Functions

@@ -111,4 +111,4 @@ Basic info for each stable token

#### Defined in

[packages/sdk/contractkit/src/celo-tokens.ts:275](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L275)
[packages/sdk/contractkit/src/celo-tokens.ts:251](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/celo-tokens.ts#L251)
Original file line number Diff line number Diff line change
@@ -20,4 +20,4 @@

#### Defined in

[packages/sdk/contractkit/src/contract-cache.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L72)
[packages/sdk/contractkit/src/contract-cache.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/contract-cache.ts#L68)
6 changes: 3 additions & 3 deletions packages/docs/sdk/docs/contractkit/modules/kit.md
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ options to pass to the Web3 HttpProvider constructor

#### Defined in

[packages/sdk/contractkit/src/kit.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L46)
[packages/sdk/contractkit/src/kit.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L45)

___

@@ -88,7 +88,7 @@ Creates a new instance of the `ContractKit` with a web3 instance

#### Defined in

[packages/sdk/contractkit/src/kit.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L66)
[packages/sdk/contractkit/src/kit.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L65)

___

@@ -116,4 +116,4 @@ wallet to reuse or add a wallet different than the default (example ledger-walle

#### Defined in

[packages/sdk/contractkit/src/kit.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L57)
[packages/sdk/contractkit/src/kit.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/kit.ts#L56)
Original file line number Diff line number Diff line change
@@ -20,4 +20,4 @@

#### Defined in

[packages/sdk/contractkit/src/mini-contract-cache.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/mini-contract-cache.ts#L61)
[packages/sdk/contractkit/src/mini-contract-cache.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/mini-contract-cache.ts#L45)
18 changes: 9 additions & 9 deletions packages/docs/sdk/docs/contractkit/modules/proxy.md
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L33)
[packages/sdk/contractkit/src/proxy.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L32)

___

@@ -36,7 +36,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L85)
[packages/sdk/contractkit/src/proxy.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L84)

___

@@ -46,7 +46,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:92](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L92)
[packages/sdk/contractkit/src/proxy.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L91)

___

@@ -56,7 +56,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L91)
[packages/sdk/contractkit/src/proxy.ts:90](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L90)

___

@@ -66,7 +66,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L65)
[packages/sdk/contractkit/src/proxy.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L64)

___

@@ -76,7 +76,7 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L49)
[packages/sdk/contractkit/src/proxy.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L48)

## Functions

@@ -88,15 +88,15 @@ ___

| Name | Type |
| :------ | :------ |
| `proxyContractName` | ``"AccountsProxy"`` \| ``"AttestationsProxy"`` \| ``"BlockchainParametersProxy"`` \| ``"DoubleSigningSlasherProxy"`` \| ``"DowntimeSlasherProxy"`` \| ``"ElectionProxy"`` \| ``"EpochRewardsProxy"`` \| ``"EscrowProxy"`` \| ``"ExchangeProxy"`` \| ``"ExchangeEURProxy"`` \| ``"ExchangeBRLProxy"`` \| ``"FederatedAttestationsProxy"`` \| ``"FeeCurrencyWhitelistProxy"`` \| ``"FeeHandlerProxy"`` \| ``"FreezerProxy"`` \| ``"GasPriceMinimumProxy"`` \| ``"GoldTokenProxy"`` \| ``"GovernanceProxy"`` \| ``"LockedGoldProxy"`` \| ``"MentoFeeHandlerSellerProxy"`` \| ``"UniswapFeeHandlerSellerProxy"`` \| ``"MultiSigProxy"`` \| ``"OdisPaymentsProxy"`` \| ``"RandomProxy"`` \| ``"RegistryProxy"`` \| ``"ReserveProxy"`` \| ``"SortedOraclesProxy"`` \| ``"StableTokenProxy"`` \| ``"StableTokenEURProxy"`` \| ``"StableTokenBRLProxy"`` \| ``"ValidatorsProxy"`` \| ``"ProxyProxy"`` |
| `proxyContractName` | ``"AccountsProxy"`` \| ``"AttestationsProxy"`` \| ``"BlockchainParametersProxy"`` \| ``"DoubleSigningSlasherProxy"`` \| ``"DowntimeSlasherProxy"`` \| ``"ElectionProxy"`` \| ``"EpochRewardsProxy"`` \| ``"EscrowProxy"`` \| ``"FederatedAttestationsProxy"`` \| ``"FeeCurrencyWhitelistProxy"`` \| ``"FeeHandlerProxy"`` \| ``"FreezerProxy"`` \| ``"GasPriceMinimumProxy"`` \| ``"GoldTokenProxy"`` \| ``"GovernanceProxy"`` \| ``"LockedGoldProxy"`` \| ``"MentoFeeHandlerSellerProxy"`` \| ``"UniswapFeeHandlerSellerProxy"`` \| ``"MultiSigProxy"`` \| ``"OdisPaymentsProxy"`` \| ``"RandomProxy"`` \| ``"RegistryProxy"`` \| ``"ReserveProxy"`` \| ``"SortedOraclesProxy"`` \| ``"StableTokenProxy"`` \| ``"StableTokenEURProxy"`` \| ``"StableTokenBRLProxy"`` \| ``"ValidatorsProxy"`` \| ``"ProxyProxy"`` |

#### Returns

`AbiItem`

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:132](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L132)
[packages/sdk/contractkit/src/proxy.ts:128](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L128)

___

@@ -117,4 +117,4 @@ ___

#### Defined in

[packages/sdk/contractkit/src/proxy.ts:142](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L142)
[packages/sdk/contractkit/src/proxy.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L138)
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@

#### Defined in

[packages/sdk/contractkit/src/web3-contract-cache.ts:88](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L88)
[packages/sdk/contractkit/src/web3-contract-cache.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L76)

## Variables

@@ -45,9 +45,6 @@
| `Election` | (`web3`: `default`, `address`: `string`) => `Election` |
| `EpochRewards` | (`web3`: `default`, `address`: `string`) => `EpochRewards` |
| `Escrow` | (`web3`: `default`, `address`: `string`) => `Escrow` |
| `Exchange` | (`web3`: `default`, `address`: `string`) => `Exchange` |
| `ExchangeBRL` | (`web3`: `default`, `address`: `string`) => `ExchangeBRL` |
| `ExchangeEUR` | (`web3`: `default`, `address`: `string`) => `ExchangeEUR` |
| `FederatedAttestations` | (`web3`: `default`, `address`: `string`) => `FederatedAttestations` |
| `FeeCurrencyWhitelist` | (`web3`: `default`, `address`: `string`) => `FeeCurrencyWhitelist` |
| `FeeHandler` | (`web3`: `default`, `address`: `string`) => `FeeHandler` |
@@ -71,4 +68,4 @@

#### Defined in

[packages/sdk/contractkit/src/web3-contract-cache.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L41)
[packages/sdk/contractkit/src/web3-contract-cache.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/web3-contract-cache.ts#L38)
27 changes: 0 additions & 27 deletions packages/docs/sdk/docs/contractkit/modules/wrappers_Exchange.md

This file was deleted.

4 changes: 1 addition & 3 deletions packages/sdk/contractkit/README.md
Original file line number Diff line number Diff line change
@@ -145,7 +145,6 @@ There are many core contracts.
- EpochRewardsWrapper
- Erc20Wrapper
- EscrowWrapper
- ExchangeWrapper
- FreezerWrapper
- GasPriceMinimumWrapper
- GoldTokenWrapper
@@ -197,7 +196,7 @@ Some user might want to access web3 native contract wrappers.
To do so, you can:

```ts
const web3Exchange = await kit._web3Contracts.getExchange()
const feeCurrencyWhitelist = await kit._web3Contracts.getFeeCurrencyWhitelist()
```

We expose native wrappers for all Celo core contracts.
@@ -208,7 +207,6 @@ The complete list of Celo Core contracts is:
- Attestations
- LockedGold
- Escrow
- Exchange
- FeeCurrencyWhitelist
- GasPriceMinimum
- GoldToken
8 changes: 0 additions & 8 deletions packages/sdk/contractkit/src/base.ts
Original file line number Diff line number Diff line change
@@ -8,9 +8,6 @@ export enum CeloContract {
EpochRewards = 'EpochRewards',
ERC20 = 'ERC20',
Escrow = 'Escrow',
Exchange = 'Exchange',
ExchangeEUR = 'ExchangeEUR',
ExchangeBRL = 'ExchangeBRL',
FederatedAttestations = 'FederatedAttestations',
FeeCurrencyWhitelist = 'FeeCurrencyWhitelist',
FeeHandler = 'FeeHandler',
@@ -38,11 +35,6 @@ export type StableTokenContract =
| CeloContract.StableTokenEUR
| CeloContract.StableTokenBRL

export type ExchangeContract =
| CeloContract.Exchange
| CeloContract.ExchangeEUR
| CeloContract.ExchangeBRL

export type CeloTokenContract = StableTokenContract | CeloContract.GoldToken
/**
* Deprecated alias for CeloTokenContract.
5 changes: 0 additions & 5 deletions packages/sdk/contractkit/src/basic-contract-cache-type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { StableToken } from '@celo/base'
import { CeloContract, CeloTokenContract } from './base'
import { AccountsWrapper } from './wrappers/Accounts'
import { ExchangeWrapper } from './wrappers/Exchange'
import { GoldTokenWrapper, GoldTokenWrapperType } from './wrappers/GoldTokenWrapper'
import { StableTokenWrapper } from './wrappers/StableTokenWrapper'

@@ -11,15 +10,11 @@ import { StableTokenWrapper } from './wrappers/StableTokenWrapper'
*/
export interface ContractCacheType {
getAccounts(): Promise<AccountsWrapper>
getExchange(stableToken: StableToken): Promise<ExchangeWrapper>

getGoldToken(): Promise<GoldTokenWrapper>

getStableToken(stableToken: StableToken): Promise<StableTokenWrapper>

getContract(
contract: CeloContract.Exchange | CeloContract.ExchangeEUR | CeloContract.ExchangeBRL
): Promise<ExchangeWrapper>
getContract(contract: CeloTokenContract): Promise<StableTokenWrapper>
getContract(contract: CeloContract.GoldToken): Promise<GoldTokenWrapperType>
}
2 changes: 1 addition & 1 deletion packages/sdk/contractkit/src/celo-tokens.test.ts
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ describe('CeloTokens', () => {
})

it('returns false if the contract is not a stable token contract', () => {
expect(celoTokens.isStableTokenContract(CeloContract.Exchange)).toEqual(false)
expect(celoTokens.isStableTokenContract(CeloContract.ERC20)).toEqual(false)
})
})
})
26 changes: 1 addition & 25 deletions packages/sdk/contractkit/src/celo-tokens.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CeloTokenType, StableToken, Token } from '@celo/base'
import { BigNumber } from 'bignumber.js'
import { AddressRegistry } from './address-registry'
import { CeloContract, CeloTokenContract, ExchangeContract, StableTokenContract } from './base'
import { CeloContract, CeloTokenContract, StableTokenContract } from './base'
import { ContractCacheType } from './basic-contract-cache-type'
import { GoldTokenWrapper } from './wrappers/GoldTokenWrapper'
import { StableTokenWrapper } from './wrappers/StableTokenWrapper'
@@ -20,7 +20,6 @@ export interface CeloTokenInfo {

export interface StableTokenInfo extends CeloTokenInfo {
contract: StableTokenContract
exchangeContract: ExchangeContract
}

/** Basic info for each stable token */
@@ -29,17 +28,14 @@ export const stableTokenInfos: {
} = {
[StableToken.cUSD]: {
contract: CeloContract.StableToken,
exchangeContract: CeloContract.Exchange,
symbol: StableToken.cUSD,
},
[StableToken.cEUR]: {
contract: CeloContract.StableTokenEUR,
exchangeContract: CeloContract.ExchangeEUR,
symbol: StableToken.cEUR,
},
[StableToken.cREAL]: {
contract: CeloContract.StableTokenBRL,
exchangeContract: CeloContract.ExchangeBRL,
symbol: StableToken.cREAL,
},
}
@@ -100,16 +96,6 @@ export class CeloTokens {
})
}

async getExchangesConfigs(humanReadable: boolean = false) {
return this.forStableCeloToken(async (info: StableTokenInfo) => {
const exchangeWrapper = await this.contracts.getContract(info.exchangeContract)
if (humanReadable) {
return exchangeWrapper.getHumanReadableConfig()
}
return exchangeWrapper.getConfig()
})
}

/**
* Runs fn for each celo token found in celoTokenInfos, and returns the
* value of each call in an object keyed by the token.
@@ -196,7 +182,6 @@ export class CeloTokens {
try {
// The registry add the valid addresses to a cache
await this.registry.addressFor(info.contract)
await this.registry.addressFor(info.exchangeContract)
return true
} catch {
// The contract was not deployed in the chain
@@ -230,15 +215,6 @@ export class CeloTokens {
return celoTokenInfos[token].contract
}

/**
* Gets the exchange contract for the provided stable token
* @param token the stable token to get exchange contract of
* @return The exchange contract for the token
*/
getExchangeContract(token: StableToken) {
return stableTokenInfos[token].exchangeContract
}

/**
* Gets the address of the contract for the provided token.
* @param token the token to get the (proxy) contract address for
2 changes: 0 additions & 2 deletions packages/sdk/contractkit/src/contract-cache.test.ts
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@ const TestedWrappers: ValidWrappers[] = [
CeloContract.GoldToken,
CeloContract.StableToken,
CeloContract.StableTokenEUR,
CeloContract.Exchange,
CeloContract.ExchangeEUR,
CeloContract.Validators,
CeloContract.LockedGold,
]
11 changes: 1 addition & 10 deletions packages/sdk/contractkit/src/contract-cache.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ import { ElectionWrapper } from './wrappers/Election'
import { EpochRewardsWrapper } from './wrappers/EpochRewards'
import { Erc20Wrapper } from './wrappers/Erc20Wrapper'
import { EscrowWrapper } from './wrappers/Escrow'
import { ExchangeWrapper } from './wrappers/Exchange'
import { FederatedAttestationsWrapper } from './wrappers/FederatedAttestations'
import { FreezerWrapper } from './wrappers/Freezer'
import { GasPriceMinimumWrapper } from './wrappers/GasPriceMinimum'
@@ -34,9 +33,6 @@ const WrapperFactories = {
[CeloContract.EpochRewards]: EpochRewardsWrapper,
[CeloContract.ERC20]: Erc20Wrapper,
[CeloContract.Escrow]: EscrowWrapper,
[CeloContract.Exchange]: ExchangeWrapper,
[CeloContract.ExchangeEUR]: ExchangeWrapper,
[CeloContract.ExchangeBRL]: ExchangeWrapper,
[CeloContract.FederatedAttestations]: FederatedAttestationsWrapper,
// [CeloContract.FeeCurrencyWhitelist]: FeeCurrencyWhitelistWrapper,
[CeloContract.Freezer]: FreezerWrapper,
@@ -86,9 +82,6 @@ interface WrapperCacheMap {
[CeloContract.EpochRewards]?: EpochRewardsWrapper
[CeloContract.ERC20]?: Erc20Wrapper<IERC20>
[CeloContract.Escrow]?: EscrowWrapper
[CeloContract.Exchange]?: ExchangeWrapper
[CeloContract.ExchangeEUR]?: ExchangeWrapper
[CeloContract.ExchangeBRL]?: ExchangeWrapper
[CeloContract.FederatedAttestations]?: FederatedAttestationsWrapper
// [CeloContract.FeeCurrencyWhitelist]?: FeeCurrencyWhitelistWrapper,
[CeloContract.Freezer]?: FreezerWrapper
@@ -154,9 +147,7 @@ export class WrapperCache implements ContractCacheType {
getEscrow(): Promise<EscrowWrapper> {
return this.getContract(CeloContract.Escrow)
}
getExchange(stableToken: StableToken = StableToken.cUSD) {
return this.getContract(stableTokenInfos[stableToken].exchangeContract)
}

getFreezer() {
return this.getContract(CeloContract.Freezer)
}
5 changes: 1 addition & 4 deletions packages/sdk/contractkit/src/kit.ts
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@ import { AttestationsConfig } from './wrappers/Attestations'
import { BlockchainParametersConfig } from './wrappers/BlockchainParameters'
import { DowntimeSlasherConfig } from './wrappers/DowntimeSlasher'
import { ElectionConfig } from './wrappers/Election'
import { ExchangeConfig } from './wrappers/Exchange'
import { GasPriceMinimumConfig } from './wrappers/GasPriceMinimum'
import { GovernanceConfig } from './wrappers/Governance'
import { LockedGoldConfig } from './wrappers/LockedGold'
@@ -68,7 +67,6 @@ export function newKitFromWeb3(web3: Web3, wallet: ReadOnlyWallet = new LocalWal
return new ContractKit(new Connection(web3, wallet))
}
export interface NetworkConfig {
exchanges: EachCeloToken<ExchangeConfig>
stableTokens: EachCeloToken<StableTokenConfig>
election: ElectionConfig
attestations: AttestationsConfig
@@ -141,7 +139,7 @@ export class ContractKit {

async getNetworkConfig(
humanReadable = false
): Promise<NetworkConfig | Record<CeloContract & 'exchanges' & 'stableTokens', unknown>> {
): Promise<NetworkConfig | Record<CeloContract & 'stableTokens', unknown>> {
const configContracts: ValidWrappers[] = [
CeloContract.Election,
CeloContract.Attestations,
@@ -181,7 +179,6 @@ export class ContractKit {
configArray.forEach((config, index) => (configMap[configContracts[index]] = config))

return {
exchanges: await this.celoTokens.getExchangesConfigs(humanReadable),
stableTokens: await this.celoTokens.getStablesConfigs(humanReadable),
...configMap,
}
21 changes: 1 addition & 20 deletions packages/sdk/contractkit/src/mini-contract-cache.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { newGasPriceMinimum } from '@celo/abis/web3/0.8/GasPriceMinimum'
import { newAccounts } from '@celo/abis/web3/Accounts'
import { newGoldToken } from '@celo/abis/web3/GoldToken'
import { newExchange } from '@celo/abis/web3/mento/Exchange'
import { newExchangeBRL } from '@celo/abis/web3/mento/ExchangeBRL'
import { newExchangeEUR } from '@celo/abis/web3/mento/ExchangeEUR'
import { newStableToken } from '@celo/abis/web3/mento/StableToken'
import { newStableTokenBRL } from '@celo/abis/web3/mento/StableTokenBRL'
import { newStableTokenEUR } from '@celo/abis/web3/mento/StableTokenEUR'
@@ -14,7 +11,6 @@ import { CeloContract } from './base'
import { ContractCacheType } from './basic-contract-cache-type'
import { stableTokenInfos } from './celo-tokens'
import { AccountsWrapper } from './wrappers/Accounts'
import { ExchangeWrapper } from './wrappers/Exchange'
import { GasPriceMinimumWrapper } from './wrappers/GasPriceMinimum'
import { GoldTokenWrapper } from './wrappers/GoldTokenWrapper'
import { StableTokenWrapper } from './wrappers/StableTokenWrapper'
@@ -32,18 +28,6 @@ const MINIMUM_CONTRACTS = {
newInstance: newGoldToken,
wrapper: GoldTokenWrapper,
},
[CeloContract.Exchange]: {
newInstance: newExchange,
wrapper: ExchangeWrapper,
},
[CeloContract.ExchangeEUR]: {
newInstance: newExchangeEUR,
wrapper: ExchangeWrapper,
},
[CeloContract.ExchangeBRL]: {
newInstance: newExchangeBRL,
wrapper: ExchangeWrapper,
},
[CeloContract.StableToken]: {
newInstance: newStableToken,
wrapper: StableTokenWrapper,
@@ -77,7 +61,7 @@ const contractsWhichRequireCache = new Set([
/**
* Alternative Contract Cache with Minimal Contracts
*
* Provides access to a subset of wrappers: {@link AccountsWrapper}, {@link ExchangeWrapper}, {@link GasPriceMinimumWrapper} and Celo Token contracts
* Provides access to a subset of wrappers: {@link AccountsWrapper}, {@link GasPriceMinimumWrapper} and Celo Token contracts
* Used internally by {@link MiniContractKit}
*
* @param connection – {@link Connection}
@@ -96,9 +80,6 @@ export class MiniContractCache implements ContractCacheType {
getAccounts(): Promise<AccountsWrapper> {
return this.getContract(CeloContract.Accounts)
}
getExchange(stableToken: StableToken = StableToken.cUSD): Promise<ExchangeWrapper> {
return this.getContract(stableTokenInfos[stableToken].exchangeContract)
}

getGoldToken(): Promise<GoldTokenWrapper> {
return this.getContract(CeloContract.GoldToken)
4 changes: 0 additions & 4 deletions packages/sdk/contractkit/src/proxy.ts
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ import { ABI as RegistryABI } from '@celo/abis/web3/Registry'
import { ABI as SortedOraclesABI } from '@celo/abis/web3/SortedOracles'
import { ABI as UniswapFeeHandlerSellerABI } from '@celo/abis/web3/UniswapFeeHandlerSeller'
import { ABI as ValidatorsABI } from '@celo/abis/web3/Validators'
import { ABI as ExchangeABI } from '@celo/abis/web3/mento/Exchange'
import { ABI as ReserveABI } from '@celo/abis/web3/mento/Reserve'
import { ABI as StableTokenABI } from '@celo/abis/web3/mento/StableToken'

@@ -103,9 +102,6 @@ const initializeAbiMap = {
ElectionProxy: findInitializeAbi(ElectionABI),
EpochRewardsProxy: findInitializeAbi(EpochRewardsABI),
EscrowProxy: findInitializeAbi(EscrowABI),
ExchangeProxy: findInitializeAbi(ExchangeABI),
ExchangeEURProxy: findInitializeAbi(ExchangeABI),
ExchangeBRLProxy: findInitializeAbi(ExchangeABI),
FederatedAttestationsProxy: findInitializeAbi(FederatedAttestationsABI),
FeeCurrencyWhitelistProxy: findInitializeAbi(FeeCurrencyWhitelistABI),
FeeHandlerProxy: findInitializeAbi(FeeHandlerABI),
16 changes: 1 addition & 15 deletions packages/sdk/contractkit/src/web3-contract-cache.ts
Original file line number Diff line number Diff line change
@@ -27,9 +27,6 @@ import { newRandom } from '@celo/abis/web3/Random'
import { newRegistry } from '@celo/abis/web3/Registry'
import { newSortedOracles } from '@celo/abis/web3/SortedOracles'
import { newValidators } from '@celo/abis/web3/Validators'
import { newExchange } from '@celo/abis/web3/mento/Exchange'
import { newExchangeBRL } from '@celo/abis/web3/mento/ExchangeBRL'
import { newExchangeEUR } from '@celo/abis/web3/mento/ExchangeEUR'
import { newReserve } from '@celo/abis/web3/mento/Reserve'
import { newStableToken } from '@celo/abis/web3/mento/StableToken'

@@ -48,9 +45,6 @@ export const ContractFactories = {
[CeloContract.EpochRewards]: newEpochRewards,
[CeloContract.ERC20]: newIERC20,
[CeloContract.Escrow]: newEscrow,
[CeloContract.Exchange]: newExchange,
[CeloContract.ExchangeEUR]: newExchangeEUR,
[CeloContract.ExchangeBRL]: newExchangeBRL,
[CeloContract.FederatedAttestations]: newFederatedAttestations,
[CeloContract.FeeCurrencyWhitelist]: newFeeCurrencyWhitelist,
[CeloContract.Freezer]: newFreezer,
@@ -79,12 +73,6 @@ const StableToContract = {
[StableToken.cREAL]: CeloContract.StableTokenBRL,
}

const StableToExchange = {
[StableToken.cEUR]: CeloContract.ExchangeEUR,
[StableToken.cUSD]: CeloContract.Exchange,
[StableToken.cREAL]: CeloContract.ExchangeBRL,
}

export type CFType = typeof ContractFactories
type ContractCacheMap = { [K in keyof CFType]?: ReturnType<CFType[K]> }

@@ -127,9 +115,7 @@ export class Web3ContractCache {
getEscrow() {
return this.getContract(CeloContract.Escrow)
}
getExchange(stableToken: StableToken = StableToken.cUSD) {
return this.getContract(StableToExchange[stableToken])
}

getFederatedAttestations() {
return this.getContract(CeloContract.FederatedAttestations)
}
181 changes: 0 additions & 181 deletions packages/sdk/contractkit/src/wrappers/Exchange.test.ts

This file was deleted.

346 changes: 0 additions & 346 deletions packages/sdk/contractkit/src/wrappers/Exchange.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/sdk/explorer/fixtures/contract.metadata.json
Original file line number Diff line number Diff line change
@@ -2827,13 +2827,6 @@
"dweb:/ipfs/QmRDDTXUqbA6dHfJe4ZS1442JDAfwoHq2eH9LHnQyzsh44"
]
},
"/home/bowd/Workspace/job/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IExchange.sol": {
"keccak256": "0xbfcf77e30fc62218decbb73297d5161b9c490f7e44f75158f1c79674e4b8b83c",
"urls": [
"bzz-raw://ad0caaddcb552a2c040e827e9336cdec7dfaf629cca9f30e5f5bc12645abde43",
"dweb:/ipfs/QmTjnGbfoSkZhNWhrbcYdLjF1LLqAJcviJ2ZKSMH9KWz95"
]
},
"/home/bowd/Workspace/job/celo/celo-monorepo/packages/protocol/contracts/stability/interfaces/IReserve.sol": {
"keccak256": "0x8da4d702b47a7e60981ca416f2d0f24a3c1dea9ab44f04b695c0fde02c84a38e",
"urls": [

0 comments on commit b34439a

Please sign in to comment.