Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Jan 5, 2023
1 parent 7afa663 commit dc74364
Show file tree
Hide file tree
Showing 19 changed files with 75 additions and 60 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
@@ -1,5 +1,5 @@
# Masa SDK
- v0.8.0 / [Exports](modules.md)
- v0.9.0 / [Exports](modules.md)

---

Expand Down
10 changes: 5 additions & 5 deletions docs/classes/Masa.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / Masa
- v0.9.0](../README.md) / [Exports](../modules.md) / Masa

# Class: Masa

Expand All @@ -20,7 +20,7 @@
- [identity](Masa.md#identity)
- [metadata](Masa.md#metadata)
- [session](Masa.md#session)
- [soulNames](Masa.md#soulnames)
- [soulName](Masa.md#soulname)
- [twoFA](Masa.md#twofa)
- [utils](Masa.md#utils)

Expand Down Expand Up @@ -89,7 +89,7 @@ ___
| Name | Type |
| :------ | :------ |
| `retrieve` | (`url`: `string`, `additionalHeaders?`: `Record`<`string`, `string`\>) => `Promise`<`undefined` \| [`IIdentity`](../interfaces/IIdentity.md) \| [`ICreditScore`](../interfaces/ICreditScore.md) \| [`I2FA`](../interfaces/I2FA.md)\> |
| `store` | (`soulName`: `string`) => `Promise`<`undefined` \| { `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` }\> |
| `store` | (`soulName`: `string`, `receiver`: `string`, `duration`: `number`) => `Promise`<`undefined` \| { `authorityAddress`: `string` ; `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` ; `signature`: `string` }\> |

___

Expand All @@ -99,9 +99,9 @@ ___

___

### soulNames
### soulName

`Readonly` **soulNames**: [`MasaSoulNames`](MasaSoulNames.md)
`Readonly` **soulName**: [`MasaSoulName`](MasaSoulName.md)

___

Expand Down
8 changes: 5 additions & 3 deletions docs/classes/MasaClient.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / MasaClient
- v0.9.0](../README.md) / [Exports](../modules.md) / MasaClient

# Class: MasaClient

Expand Down Expand Up @@ -175,17 +175,19 @@ ___

### storeMetadata

**storeMetadata**(`soulName`): `Promise`<`undefined` \| { `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` }\>
**storeMetadata**(`soulName`, `receiver`, `duration`): `Promise`<`undefined` \| { `authorityAddress`: `string` ; `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` ; `signature`: `string` }\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `soulName` | `string` |
| `receiver` | `string` |
| `duration` | `number` |

#### Returns

`Promise`<`undefined` \| { `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` }\>
`Promise`<`undefined` \| { `authorityAddress`: `string` ; `imageResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `imageTransaction`: `default` ; `metadataResponse`: { `data`: `any` ; `status`: `number` ; `statusText`: `string` } ; `metadataTransaction`: `default` ; `signature`: `string` }\>

___

Expand Down
47 changes: 14 additions & 33 deletions docs/classes/MasaContracts.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / MasaContracts
- v0.9.0](../README.md) / [Exports](../modules.md) / MasaContracts

# Class: MasaContracts

Expand All @@ -26,7 +26,6 @@
- [purchaseIdentity](MasaContracts.md#purchaseidentity)
- [purchaseIdentityAndName](MasaContracts.md#purchaseidentityandname)
- [purchaseName](MasaContracts.md#purchasename)
- [queryLink](MasaContracts.md#querylink)

## Constructors

Expand Down Expand Up @@ -115,16 +114,16 @@ ___

### getPaymentInformation

**getPaymentInformation**(`name`, `paymentMethod`, `duration?`, `signer`): `Promise`<{ `formattedPrice`: `string` ; `paymentAddress`: `string` ; `price`: `BigNumber` }\>
**getPaymentInformation**(`signer`, `paymentMethod`, `nameLength`, `duration?`): `Promise`<{ `formattedPrice`: `string` ; `paymentAddress`: `string` ; `price`: `BigNumber` }\>

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `name` | `string` | `undefined` |
| `signer` | `Signer` | `undefined` |
| `paymentMethod` | [`PaymentMethod`](../modules.md#paymentmethod) | `undefined` |
| `nameLength` | `number` | `undefined` |
| `duration` | `number` | `1` |
| `signer` | `Signer` | `undefined` |

#### Returns

Expand Down Expand Up @@ -203,17 +202,20 @@ ___

### purchaseIdentityAndName

**purchaseIdentityAndName**(`signer`, `name`, `paymentMethod`, `duration?`, `metadataURL`): `Promise`<`ContractTransaction`\>
**purchaseIdentityAndName**(`signer`, `paymentMethod`, `name`, `nameLength`, `duration?`, `metadataURL`, `authorityAddress`, `signature`): `Promise`<`ContractTransaction`\>

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `signer` | `Signer` | `undefined` |
| `name` | `string` | `undefined` |
| `paymentMethod` | [`PaymentMethod`](../modules.md#paymentmethod) | `undefined` |
| `name` | `string` | `undefined` |
| `nameLength` | `number` | `undefined` |
| `duration` | `number` | `1` |
| `metadataURL` | `string` | `undefined` |
| `authorityAddress` | `string` | `undefined` |
| `signature` | `string` | `undefined` |

#### Returns

Expand All @@ -223,42 +225,21 @@ ___

### purchaseName

**purchaseName**(`signer`, `name`, `paymentMethod`, `duration?`, `metadataURL`): `Promise`<`ContractTransaction`\>
**purchaseName**(`signer`, `paymentMethod`, `name`, `nameLength`, `duration?`, `metadataURL`, `authorityAddress`, `signature`): `Promise`<`ContractTransaction`\>

#### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `signer` | `Signer` | `undefined` |
| `name` | `string` | `undefined` |
| `paymentMethod` | [`PaymentMethod`](../modules.md#paymentmethod) | `undefined` |
| `name` | `string` | `undefined` |
| `nameLength` | `number` | `undefined` |
| `duration` | `number` | `1` |
| `metadataURL` | `string` | `undefined` |
| `authorityAddress` | `string` | `undefined` |
| `signature` | `string` | `undefined` |

#### Returns

`Promise`<`ContractTransaction`\>

___

### queryLink

**queryLink**(`signer`, `tokenAddress`, `paymentMethod`, `readerIdentityId`, `ownerIdentityId`, `tokenId`, `signatureDate`, `expirationDate`, `signature`): `Promise`<`string`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `signer` | `Signer` |
| `tokenAddress` | `string` |
| `paymentMethod` | [`PaymentMethod`](../modules.md#paymentmethod) |
| `readerIdentityId` | `BigNumber` |
| `ownerIdentityId` | `BigNumber` |
| `tokenId` | `BigNumber` |
| `signatureDate` | `number` |
| `expirationDate` | `number` |
| `signature` | `string` |

#### Returns

`Promise`<`string`\>
2 changes: 1 addition & 1 deletion docs/interfaces/Addresses.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / Addresses
- v0.9.0](../README.md) / [Exports](../modules.md) / Addresses

# Interface: Addresses

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/Attribute.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / Attribute
- v0.9.0](../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
- v0.8.0](../README.md) / [Exports](../modules.md) / BaseResult
- v0.9.0](../README.md) / [Exports](../modules.md) / BaseResult

# Interface: BaseResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/Create2FAResult.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / Create2FAResult
- v0.9.0](../README.md) / [Exports](../modules.md) / Create2FAResult

# Interface: Create2FAResult

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

# Interface: CreateSoulNameResult

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/I2fa.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / I2FA
- v0.9.0](../README.md) / [Exports](../modules.md) / I2FA

# Interface: I2FA

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

# Interface: ICreditScore

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/IIdentity.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / IIdentity
- v0.9.0](../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
- v0.8.0](../README.md) / [Exports](../modules.md) / IIdentityContracts
- v0.9.0](../README.md) / [Exports](../modules.md) / IIdentityContracts

# Interface: IIdentityContracts

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ISession.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / ISession
- v0.9.0](../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
- v0.8.0](../README.md) / [Exports](../modules.md) / ISoulName
- v0.9.0](../README.md) / [Exports](../modules.md) / ISoulName

# Interface: ISoulName

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

# Interface: LoadContractArgs

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

# Interface: MasaArgs

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/MasaConfig.md
@@ -1,5 +1,5 @@
[# Masa SDK
- v0.8.0](../README.md) / [Exports](../modules.md) / MasaConfig
- v0.9.0](../README.md) / [Exports](../modules.md) / MasaConfig

# Interface: MasaConfig

Expand Down
40 changes: 36 additions & 4 deletions docs/modules.md
@@ -1,8 +1,8 @@
[# Masa SDK
- v0.8.0](README.md) / Exports
- v0.9.0](README.md) / Exports

# # Masa SDK
- v0.8.0
- v0.9.0

## Table of contents

Expand All @@ -18,7 +18,7 @@
- [MasaIdentity](classes/MasaIdentity.md)
- [MasaSession](classes/MasaSession.md)
- [MasaSoulLinker](classes/MasaSoulLinker.md)
- [MasaSoulNames](classes/MasaSoulNames.md)
- [MasaSoulName](classes/MasaSoulName.md)

### Interfaces

Expand Down Expand Up @@ -51,6 +51,7 @@

### Variables

- [ErrorMessage](modules.md#errormessage)
- [Templates](modules.md#templates)
- [addresses](modules.md#addresses)
- [environments](modules.md#environments)
Expand All @@ -66,6 +67,7 @@
- [burnIdentityById](modules.md#burnidentitybyid)
- [burnSoulName](modules.md#burnsoulname)
- [burnSoulNameByName](modules.md#burnsoulnamebyname)
- [calculateSoulNameLength](modules.md#calculatesoulnamelength)
- [checkAllowlist](modules.md#checkallowlist)
- [checkLogin](modules.md#checklogin)
- [create2FA](modules.md#create2fa)
Expand Down Expand Up @@ -176,6 +178,18 @@ ___

## Variables

### ErrorMessage

`Const` **ErrorMessage**: `Object`

#### Type declaration

| Name | Type |
| :------ | :------ |
| `NoIdentity` | (`address?`: `string`) => `string` |

___

### Templates

`Const` **Templates**: `Object`
Expand Down Expand Up @@ -356,6 +370,22 @@ ___

___

### calculateSoulNameLength

**calculateSoulNameLength**(`soulName`): `number`

#### Parameters

| Name | Type |
| :------ | :------ |
| `soulName` | `string` |

#### Returns

`number`

___

### checkAllowlist

**checkAllowlist**(`masa`): `Promise`<`boolean`\>
Expand Down Expand Up @@ -974,14 +1004,15 @@ ___

### purchaseIdentityWithSoulName

**purchaseIdentityWithSoulName**(`masa`, `soulName`, `duration`, `paymentMethod`): `Promise`<`void`\>
**purchaseIdentityWithSoulName**(`masa`, `soulName`, `soulNameLength`, `duration`, `paymentMethod`): `Promise`<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `masa` | [`Masa`](classes/Masa.md) |
| `soulName` | `string` |
| `soulNameLength` | `number` |
| `duration` | `number` |
| `paymentMethod` | [`PaymentMethod`](modules.md#paymentmethod) |

Expand Down Expand Up @@ -1156,6 +1187,7 @@ ___
| Name | Type |
| :------ | :------ |
| `isValid` | `boolean` |
| `length` | `number` |
| `message?` | `string` |

___
Expand Down

0 comments on commit dc74364

Please sign in to comment.