Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed May 19, 2023
1 parent 330809d commit 72830da
Show file tree
Hide file tree
Showing 59 changed files with 89 additions and 69 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v2.1.1](https://github.com/masa-finance/masa-sdk/compare/v2.1.0...v2.1.1)

> 19 May 2023
- support protocol fee in price calculation for soul name [`fbaf1b6`](https://github.com/masa-finance/masa-sdk/commit/fbaf1b64493eabebfb26f08d2a508260b8238954)

#### [v2.1.0](https://github.com/masa-finance/masa-sdk/compare/v2.0.4...v2.1.0)

> 17 May 2023
- update contracts [`0fd5151`](https://github.com/masa-finance/masa-sdk/commit/0fd5151c573f4c21811cb75fa50971e48beefb9a)

#### [v2.0.4](https://github.com/masa-finance/masa-sdk/compare/v2.0.3...v2.0.4)

> 17 May 2023
- update docs [`4529a4a`](https://github.com/masa-finance/masa-sdk/commit/4529a4a4c9367714cd435933f55c3801063b30e5)
- added comments [`8d17a0a`](https://github.com/masa-finance/masa-sdk/commit/8d17a0a69d79e036bf3220d3879da9b2cc9ccf57)
- prettier [`9189a53`](https://github.com/masa-finance/masa-sdk/commit/9189a5387b39005f72325fbcc9b99d166bc54e85)

#### [v2.0.3](https://github.com/masa-finance/masa-sdk/compare/v2.0.2...v2.0.3)

> 15 May 2023
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/ContractFactory.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ContractFactory
- v2.1.1](../README.md) / [Exports](../modules.md) / ContractFactory

# Class: ContractFactory

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/CreditScore.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / CreditScore
- v2.1.1](../README.md) / [Exports](../modules.md) / CreditScore

# Class: CreditScore

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/ERC20__factory.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ERC20\_\_factory
- v2.1.1](../README.md) / [Exports](../modules.md) / ERC20\_\_factory

# Class: ERC20\_\_factory

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Green.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / Green
- v2.1.1](../README.md) / [Exports](../modules.md) / Green

# Class: Green

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Identity.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / Identity
- v2.1.1](../README.md) / [Exports](../modules.md) / Identity

# Class: Identity

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/Masa.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / Masa
- v2.1.1](../README.md) / [Exports](../modules.md) / Masa

# Class: Masa

Expand Down
6 changes: 3 additions & 3 deletions docs/classes/MasaAccount.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaAccount
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaAccount

# Class: MasaAccount

Expand Down Expand Up @@ -53,7 +53,7 @@ MasaBase.masa

### getBalances

**getBalances**(`address?`): `Promise`<`Partial`<{ `CELO`: `undefined` \| `number` ; `CreditScore`: `undefined` \| `number` ; `ETH`: `undefined` \| `number` ; `G$`: `undefined` \| `number` ; `Green`: `undefined` \| `number` ; `Identity`: `undefined` \| `number` ; `MASA`: `undefined` \| `number` ; `Native`: `undefined` \| `number` ; `SoulName`: `undefined` \| `number` ; `USDC`: `undefined` \| `number` ; `WETH`: `undefined` \| `number` ; `cUSD`: `undefined` \| `number` }\>\>
**getBalances**(`address?`): `Promise`<`Partial`<{ `BNB`: `undefined` \| `number` ; `CELO`: `undefined` \| `number` ; `CreditScore`: `undefined` \| `number` ; `ETH`: `undefined` \| `number` ; `G$`: `undefined` \| `number` ; `Green`: `undefined` \| `number` ; `Identity`: `undefined` \| `number` ; `MASA`: `undefined` \| `number` ; `MATIC`: `undefined` \| `number` ; `Native`: `undefined` \| `number` ; `SoulName`: `undefined` \| `number` ; `USDC`: `undefined` \| `number` ; `WETH`: `undefined` \| `number` ; `cUSD`: `undefined` \| `number` }\>\>

#### Parameters

Expand All @@ -63,4 +63,4 @@ MasaBase.masa

#### Returns

`Promise`<`Partial`<{ `CELO`: `undefined` \| `number` ; `CreditScore`: `undefined` \| `number` ; `ETH`: `undefined` \| `number` ; `G$`: `undefined` \| `number` ; `Green`: `undefined` \| `number` ; `Identity`: `undefined` \| `number` ; `MASA`: `undefined` \| `number` ; `Native`: `undefined` \| `number` ; `SoulName`: `undefined` \| `number` ; `USDC`: `undefined` \| `number` ; `WETH`: `undefined` \| `number` ; `cUSD`: `undefined` \| `number` }\>\>
`Promise`<`Partial`<{ `BNB`: `undefined` \| `number` ; `CELO`: `undefined` \| `number` ; `CreditScore`: `undefined` \| `number` ; `ETH`: `undefined` \| `number` ; `G$`: `undefined` \| `number` ; `Green`: `undefined` \| `number` ; `Identity`: `undefined` \| `number` ; `MASA`: `undefined` \| `number` ; `MATIC`: `undefined` \| `number` ; `Native`: `undefined` \| `number` ; `SoulName`: `undefined` \| `number` ; `USDC`: `undefined` \| `number` ; `WETH`: `undefined` \| `number` ; `cUSD`: `undefined` \| `number` }\>\>
2 changes: 1 addition & 1 deletion docs/classes/MasaArweave.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaArweave
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaArweave

# Class: MasaArweave

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaClient.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaClient
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaClient

# Class: MasaClient

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaContracts.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaContracts
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaContracts

# Class: MasaContracts

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaCreditScore.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaCreditScore
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaCreditScore

# Class: MasaCreditScore

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaGreen.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaGreen
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaGreen

# Class: MasaGreen

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaIdentity.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaIdentity
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaIdentity

# Class: MasaIdentity

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaModuleBase.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaModuleBase
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaModuleBase

# Class: MasaModuleBase

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaSBT.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaSBT
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaSBT

# Class: MasaSBT

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaSession.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaSession
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaSession

# Class: MasaSession

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaSoulLinker.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaSoulLinker
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaSoulLinker

# Class: MasaSoulLinker

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/MasaSoulName.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaSoulName
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaSoulName

# Class: MasaSoulName

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/SBT.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / SBT
- v2.1.1](../README.md) / [Exports](../modules.md) / SBT

# Class: SBT

Expand Down
2 changes: 1 addition & 1 deletion docs/classes/SoulLinker.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / SoulLinker
- v2.1.1](../README.md) / [Exports](../modules.md) / SoulLinker

# Class: SoulLinker

Expand Down
6 changes: 3 additions & 3 deletions docs/classes/SoulName.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / SoulName
- v2.1.1](../README.md) / [Exports](../modules.md) / SoulName

# Class: SoulName

Expand Down Expand Up @@ -196,7 +196,7 @@ ___

### getPrice

**getPrice**(`paymentMethod`, `nameLength`, `duration?`, `slippage?`): `Promise`<{ `formattedPrice`: `string` ; `paymentAddress`: `string` ; `price`: `BigNumber` }\>
**getPrice**(`paymentMethod`, `nameLength`, `duration?`, `slippage?`): `Promise`<{ `formattedMintFee`: `string` ; `formattedPrice`: `string` ; `formattedProtocolFee`: `string` ; `mintFee`: `BigNumber` ; `paymentAddress`: `string` ; `price`: `BigNumber` ; `protocolFee`: `BigNumber` }\>

Get price for minting a soul name

Expand All @@ -211,7 +211,7 @@ Get price for minting a soul name

#### Returns

`Promise`<{ `formattedPrice`: `string` ; `paymentAddress`: `string` ; `price`: `BigNumber` }\>
`Promise`<{ `formattedMintFee`: `string` ; `formattedPrice`: `string` ; `formattedProtocolFee`: `string` ; `mintFee`: `BigNumber` ; `paymentAddress`: `string` ; `price`: `BigNumber` ; `protocolFee`: `BigNumber` }\>

___

Expand Down
2 changes: 1 addition & 1 deletion docs/enums/SoulNameErrorCodes.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / SoulNameErrorCodes
- v2.1.1](../README.md) / [Exports](../modules.md) / SoulNameErrorCodes

# Enumeration: SoulNameErrorCodes

Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/Addresses.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / Addresses
- v2.1.1](../README.md) / [Exports](../modules.md) / Addresses

# Interface: Addresses

Expand Down Expand Up @@ -55,4 +55,4 @@ ___

### tokens

`Optional` **tokens**: `Partial`<{ `CELO`: `string` ; `ETH`: `string` ; `G$`: `string` ; `MASA`: `string` ; `USDC`: `string` ; `WETH`: `string` ; `cUSD`: `string` }\>
`Optional` **tokens**: `Partial`<{ `BNB`: `string` ; `CELO`: `string` ; `ETH`: `string` ; `G$`: `string` ; `MASA`: `string` ; `MATIC`: `string` ; `USDC`: `string` ; `WETH`: `string` ; `cUSD`: `string` }\>
2 changes: 1 addition & 1 deletion docs/interfaces/ApprovalEventObject.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ApprovalEventObject
- v2.1.1](../README.md) / [Exports](../modules.md) / ApprovalEventObject

# Interface: ApprovalEventObject

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/Attribute.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / Attribute
- v2.1.1](../README.md) / [Exports](../modules.md) / Attribute

# Interface: Attribute

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/BaseResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / BaseResult
- v2.1.1](../README.md) / [Exports](../modules.md) / BaseResult

# Interface: BaseResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ChallengeResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ChallengeResult
- v2.1.1](../README.md) / [Exports](../modules.md) / ChallengeResult

# Interface: ChallengeResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ChallengeResultWithCookie.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ChallengeResultWithCookie
- v2.1.1](../README.md) / [Exports](../modules.md) / ChallengeResultWithCookie

# Interface: ChallengeResultWithCookie

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ContractInfo.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ContractInfo
- v2.1.1](../README.md) / [Exports](../modules.md) / ContractInfo

# Interface: ContractInfo

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/CreateSoulNameResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / CreateSoulNameResult
- v2.1.1](../README.md) / [Exports](../modules.md) / CreateSoulNameResult

# Interface: CreateSoulNameResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/CreditScoreDetails.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / CreditScoreDetails
- v2.1.1](../README.md) / [Exports](../modules.md) / CreditScoreDetails

# Interface: CreditScoreDetails

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ERC20.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ERC20
- v2.1.1](../README.md) / [Exports](../modules.md) / ERC20

# Interface: ERC20

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ERC20Interface.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ERC20Interface
- v2.1.1](../README.md) / [Exports](../modules.md) / ERC20Interface

# Interface: ERC20Interface

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/GenerateCreditScoreResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / GenerateCreditScoreResult
- v2.1.1](../README.md) / [Exports](../modules.md) / GenerateCreditScoreResult

# Interface: GenerateCreditScoreResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/GenerateGreenResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / GenerateGreenResult
- v2.1.1](../README.md) / [Exports](../modules.md) / GenerateGreenResult

# Interface: GenerateGreenResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/GreenDetails.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / GreenDetails
- v2.1.1](../README.md) / [Exports](../modules.md) / GreenDetails

# Interface: GreenDetails

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ICreditScore.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ICreditScore
- v2.1.1](../README.md) / [Exports](../modules.md) / ICreditScore

# Interface: ICreditScore

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IGreen.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / IGreen
- v2.1.1](../README.md) / [Exports](../modules.md) / IGreen

# Interface: IGreen

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IIdentity.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / IIdentity
- v2.1.1](../README.md) / [Exports](../modules.md) / IIdentity

# Interface: IIdentity

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IIdentityContracts.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / IIdentityContracts
- v2.1.1](../README.md) / [Exports](../modules.md) / IIdentityContracts

# Interface: IIdentityContracts

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IPassport.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / IPassport
- v2.1.1](../README.md) / [Exports](../modules.md) / IPassport

# Interface: IPassport

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ISession.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ISession
- v2.1.1](../README.md) / [Exports](../modules.md) / ISession

# Interface: ISession

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ISoulName.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / ISoulName
- v2.1.1](../README.md) / [Exports](../modules.md) / ISoulName

# Interface: ISoulName

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IdentityDetails.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / IdentityDetails
- v2.1.1](../README.md) / [Exports](../modules.md) / IdentityDetails

# Interface: IdentityDetails

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/LoadContractArgs.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / LoadContractArgs
- v2.1.1](../README.md) / [Exports](../modules.md) / LoadContractArgs

# Interface: LoadContractArgs

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/LogoutResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / LogoutResult
- v2.1.1](../README.md) / [Exports](../modules.md) / LogoutResult

# Interface: LogoutResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/MasaArgs.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v2.0.3](../README.md) / [Exports](../modules.md) / MasaArgs
- v2.1.1](../README.md) / [Exports](../modules.md) / MasaArgs

# Interface: MasaArgs

Expand Down

0 comments on commit 72830da

Please sign in to comment.