-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add profile cid to avatarRow * add CirclesData.getTokenInfo() * add Avatar.updateMetadata() to update the profile
- Loading branch information
Showing
16 changed files
with
249 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,55 @@ | ||
import { EventRow } from '../pagedQuery/eventRow'; | ||
|
||
/** | ||
* Contains basic information about a Circles avatar. | ||
*/ | ||
export interface AvatarRow extends EventRow { | ||
/** | ||
* The timestamp of the last change to the avatar. | ||
*/ | ||
timestamp: number; | ||
/** | ||
* The hash of the transaction that last changed the avatar. | ||
*/ | ||
transactionHash: string; | ||
/** | ||
* If the avatar is currently active in version 1 or 2. | ||
* | ||
* Note: An avatar that's active in v2 can still have a v1 token. See `hasV1` and `v1Token`. | ||
*/ | ||
version: number; | ||
type: string; | ||
/** | ||
* The type of the avatar. | ||
*/ | ||
type: 'human' | 'organization' | 'group'; | ||
/** | ||
* The address of the avatar. | ||
*/ | ||
avatar: string; | ||
tokenId: string; | ||
/** | ||
* The personal or group token address. | ||
* | ||
* Note: v1 tokens are erc20 and thus have a token address. v2 tokens are erc1155 and have a tokenId. | ||
* The v2 tokenId is always an encoded version of the avatar address. | ||
*/ | ||
tokenId?: string; | ||
/** | ||
* If the avatar is signed up at v1. | ||
*/ | ||
hasV1: boolean; | ||
v1Token: string; | ||
/** | ||
* If the avatar has a v1 token, this is the token address. | ||
*/ | ||
v1Token?: string; | ||
/** | ||
* The CIDv0 of the avatar's metadata (profile). | ||
*/ | ||
cidV0Digest?: string; | ||
|
||
// Currently only set in avatar initialization | ||
/** | ||
* If the avatar is stopped in v1. | ||
* | ||
* Note: This is only set during `Avatar` initialization. | ||
*/ | ||
v1Stopped?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { EventRow } from '../pagedQuery/eventRow'; | ||
|
||
export interface TokenInfoRow extends EventRow { | ||
timestamp: number; | ||
transactionHash: string; | ||
version: number; | ||
type: "human" | "group"; | ||
avatar: string; | ||
tokenId: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.