diff --git a/Readme.md b/Readme.md
index bcce9d1..f210073 100644
--- a/Readme.md
+++ b/Readme.md
@@ -78,3 +78,21 @@ This subgraph has three types of files which tell the Graph Node to ingest event
This repository has these files created and ready to compile, so a user can start this subgraph on their own. The only thing that needs to be edited is the contract addresses in the subgraph.yaml file to change between Kovan, Ropsten or Mainnet.
We have provided a quick guide on how to start up the Lens-Protocol-Subgraph graph node. If these steps aren't descriptive enough, the [getting started guide](https://github.com/graphprotocol/graph-node/blob/master/docs/getting-started.md) has in depth details on running a subgraph.
+
+# Example Metadata
+
+```json
+{
+ "name": "post by Jeremy",
+ "description": "Coinbase's Q2 2022 compared to Q2 last year:\n\nRevenues down 60% from last year\nOperating expenses up 37%\nMonthly users up 2%\nhttps://twitter.com/JackFarley96/status/1557110166264455168/photo/1",
+ "content": "Coinbase's Q2 2022 compared to Q2 last year:\n\nRevenues down 60% from last year\nOperating expenses up 37%\nMonthly users up 2%\nhttps://twitter.com/JackFarley96/status/1557110166264455168/photo/1",
+ "external_url": null,
+ "image": null,
+ "imageMimeType": null,
+ "version": "1.0.0",
+ "appId": "iris",
+ "attributes": [],
+ "media": [],
+ "metadata_id": "6d35b871-070b-4f49-ae55-803c203d5681"
+}
+```
diff --git a/build/LensHub/LensHub.wasm b/build/LensHub/LensHub.wasm
index d732c20..bbe35b3 100644
Binary files a/build/LensHub/LensHub.wasm and b/build/LensHub/LensHub.wasm differ
diff --git a/build/schema.graphql b/build/schema.graphql
index 510943d..8ccede8 100644
--- a/build/schema.graphql
+++ b/build/schema.graphql
@@ -1,429 +1,429 @@
-type Approval @entity {
- id: ID!
- owner: Bytes! # address
- approved: Bytes! # address
- tokenId: BigInt! # uint256
-}
-
-type ApprovalForAll @entity {
- id: ID!
- owner: Bytes! # address
- operator: Bytes! # address
- approved: Boolean! # bool
-}
-
-type Transfer @entity {
- id: ID!
- from: Bytes! # address
- to: Bytes! # address
- tokenId: BigInt! # uint256
-}
-
-type Dispatcher @entity {
- id: ID!
- address: String!
- canUseRelay: Boolean!
-}
-
-type ProfileStats @entity {
- id: ID!
- totalFollowers: BigInt!
- totalFollowing: BigInt!
- totalPosts: BigInt!
- totalComments: BigInt!
- totalMirrors: BigInt!
- totalPublications: BigInt!
- totalCollects: BigInt!
-}
-
-type NftImage @entity {
- id: ID!
- contractAddress: String!
- tokenId: String!
- url: String!
- chainId: BigInt!
- verified: Boolean!
-}
-
-type Media @entity {
- id: ID!
- url: String!
- width: BigInt
- height: BigInt
- size: BigInt
- mimeType: String
-}
-
-type MediaSet @entity {
- id: ID!
- original: Media!
- small: Media
- medium: Media
-}
-
-enum ProfileMedia {
- NftImage
- MediaSet
-}
-
-type Erc20 @entity {
- id: ID!
- name: String!
- symbol: String!
- decimals: BigInt!
- address: String!
-}
-
-type ModuleFeeAmount @entity {
- id: ID!
- asset: Erc20!
- vaue: String!
-}
-
-type FeeFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
-}
-
-type ProfileFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
-}
-
-type RevertFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
-}
-
-enum FollowModule {
- FeeFollowModuleSettings
- ProfileFollowModuleSettings
- RevertFollowModuleSettings
-}
-
-type Attribute @entity {
- id: ID!
- displayType: String
- traitType: String
- key: String!
- value: String!
-}
-
-enum ReactionTypes {
- UPVOTE
- DOWNVOTE
-}
-
-type PublicationStats @entity {
- id: ID!
- totalAmountOfMirrors: BigInt!
- totalAmountOfCollects: BigInt!
- totalAmountOfComments: BigInt!
- totalUpvotes: BigInt!
- totalDownvotes: BigInt!
-}
-
-type Wallet @entity {
- id: ID!
- address: String!
- defaulProfile: Profile!
-}
-
-enum MetadataDisplayType {
- BigInt
- String
- String
-}
-
-type MetadataAttributeOutput @entity {
- id: ID!
- displayType: MetadataDisplayType
- traitType: String
- value: String
-}
+# type Approval @entity {
+# id: ID!
+# owner: Bytes! # address
+# approved: Bytes! # address
+# tokenId: BigInt! # uint256
+# }
+
+# type ApprovalForAll @entity {
+# id: ID!
+# owner: Bytes! # address
+# operator: Bytes! # address
+# approved: Boolean! # bool
+# }
+
+# type Transfer @entity {
+# id: ID!
+# from: Bytes! # address
+# to: Bytes! # address
+# tokenId: BigInt! # uint256
+# }
+
+# type Dispatcher @entity {
+# id: ID!
+# address: String!
+# canUseRelay: Boolean!
+# }
+
+# type ProfileStats @entity {
+# id: ID!
+# totalFollowers: BigInt!
+# totalFollowing: BigInt!
+# totalPosts: BigInt!
+# totalComments: BigInt!
+# totalMirrors: BigInt!
+# totalPublications: BigInt!
+# totalCollects: BigInt!
+# }
+
+# type NftImage @entity {
+# id: ID!
+# contractAddress: String!
+# tokenId: String!
+# url: String!
+# chainId: BigInt!
+# verified: Boolean!
+# }
+
+# type Media @entity {
+# id: ID!
+# url: String!
+# width: BigInt
+# height: BigInt
+# size: BigInt
+# mimeType: String
+# }
+
+# type MediaSet @entity {
+# id: ID!
+# original: Media!
+# small: Media
+# medium: Media
+# }
+
+# enum ProfileMedia {
+# NftImage
+# MediaSet
+# }
+
+# type Erc20 @entity {
+# id: ID!
+# name: String!
+# symbol: String!
+# decimals: BigInt!
+# address: String!
+# }
+
+# type ModuleFeeAmount @entity {
+# id: ID!
+# asset: Erc20!
+# vaue: String!
+# }
+
+# type FeeFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# }
+
+# type ProfileFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# }
+
+# type RevertFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# }
+
+# # enum FollowModule {
+# # FeeFollowModuleSettings
+# # ProfileFollowModuleSettings
+# # RevertFollowModuleSettings
+# # }
+
+# type Attribute @entity {
+# id: ID!
+# displayType: String
+# traitType: String
+# key: String!
+# value: String!
+# }
+
+# enum ReactionTypes {
+# UPVOTE
+# DOWNVOTE
+# }
+
+# type PublicationStats @entity {
+# id: ID!
+# totalAmountOfMirrors: BigInt!
+# totalAmountOfCollects: BigInt!
+# totalAmountOfComments: BigInt!
+# totalUpvotes: BigInt!
+# totalDownvotes: BigInt!
+# }
+
+# type Wallet @entity {
+# id: ID!
+# address: String!
+# defaulProfile: Profile!
+# }
+
+# enum MetadataDisplayType {
+# BigInt
+# String
+# String
+# }
+
+# type MetadataAttributeOutput @entity {
+# id: ID!
+# displayType: MetadataDisplayType
+# traitType: String
+# value: String
+# }
type MetadataOutput @entity {
- id: ID!
- name: String
- description: String
- content: String
- image: String
- cover: MediaSet
- media: [MediaSet!]!
- attributes: [MetadataAttributeOutput!]!
-}
-
-type ReactionFieldResolverRequest @entity {
- id: ID!
- profileId: BigInt
-}
-
-enum CollectModule {
- LimitedFeeCollectModule
- FeeCollectModule
- LimitedTimedFeeCollectModule
- TimedFeeCollectModule
- RevertCollectModule
- FreeCollectModule
-}
-
-type FreeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- followerOnly: Boolean!
-}
-
-type FeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
-}
-
-type LimitedFeeCollectModule @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- collectLimit: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
-}
-
-type LimitedTimedFeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- collectLimit: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
- endTimestamp: String!
-}
-
-type RevertCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
-}
-
-type TimedFeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
- endTimestamp: String!
-}
-
-enum ReferenceModule {
- FollowOnlyReferenceModule
-}
-
-type FollowOnlyReferenceModuleSettings @entity {
- id: ID!
- type: ReferenceModule!
- contractAddress: String!
-}
-
-# https://docs.lens.xyz/docs/events#profilecreated
-type Profile @entity {
- id: ID!
-
- createdAt: String!
-
- # Wallet address
- creator: String!
- mintedTo: String!
- handle: String!
- picture: ProfileMedia
-
- followModule: FollowModule
- followModuleReturnData: Bytes
-
- followNftUri: String
-
- # TODO: Combine to single superclass "Publication"
- posts: [Post!]!
- comments: [Comment!]!
- mirrors: [Mirror!]!
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- name: String
- bio: String
- followNftAddress: String
- metadata: String
- # handle: String!
- # picture: ProfileMedia
- coverPicture: ProfileMedia
- ownedBy: String!
- dispatcher: Dispatcher
- stats: ProfileStats
- # followModule: FollowModule
- isDefault: Boolean
- attributes: [Attribute!]
- isFollowedByMe: Boolean
- isFollowingMe: Boolean
-}
-
-# Mirrors should extend "Post"
-# https://docs.lens.xyz/docs/mirror
-type Mirror @entity {
- id: ID!
- profile: Profile!
- createdAt: String!
-
- referenceModule: ReferenceModule!
- referenceModuleReturnData: Bytes!
-
- profilePointed: Profile!
- publicationPointed: Post!
-
- # Address of user who collected
- collectedBy: String
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- stats: PublicationStats!
- metadata: MetadataOutput!
- onChainContentURI: String!
- appId: BigInt
- hidden: Boolean!
- collectNftAddress: String
- reaction: ReactionTypes
- hasCollectedByMe: Boolean!
-}
+ id: ID!
+ name: String
+ description: String
+ content: String
+ image: String
+ # cover: MediaSet
+ # media: [MediaSet!]!
+ # attributes: [MetadataAttributeOutput!]!
+}
+
+# type ReactionFieldResolverRequest @entity {
+# id: ID!
+# profileId: BigInt
+# }
+
+# enum CollectModule {
+# LimitedFeeCollectModule
+# FeeCollectModule
+# LimitedTimedFeeCollectModule
+# TimedFeeCollectModule
+# RevertCollectModule
+# FreeCollectModule
+# }
+
+# type FreeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# followerOnly: Boolean!
+# }
+
+# type FeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# }
+
+# type LimitedFeeCollectModule @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# collectLimit: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# }
+
+# type LimitedTimedFeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# collectLimit: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# endTimestamp: String!
+# }
+
+# type RevertCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# }
+
+# type TimedFeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# endTimestamp: String!
+# }
+
+# enum ReferenceModule {
+# FollowOnlyReferenceModule
+# }
+
+# type FollowOnlyReferenceModuleSettings @entity {
+# id: ID!
+# type: ReferenceModule!
+# contractAddress: String!
+# }
+
+# # https://docs.lens.xyz/docs/events#profilecreated
+# type Profile @entity {
+# id: ID!
+
+# createdAt: String!
+
+# # Wallet address
+# creator: String!
+# mintedTo: String!
+# handle: String!
+# picture: ProfileMedia
+
+# followModule: String
+# followModuleReturnData: Bytes
+
+# followNftUri: String
+
+# # TODO: Combine to single superclass "Publication"
+# # posts: [Post!]! @derivedFrom(field: "profile")
+# # comments: [Comment!]! @derivedFrom(field: "profile")
+# # mirrors: [Mirror!]! @derivedFrom(field: "profile")
+
+# # Additional fields that we want to remove
+# # TODO: Refactor & remove
+# name: String
+# bio: String
+# followNftAddress: String
+# metadata: String
+# # handle: String!
+# # picture: ProfileMedia
+# coverPicture: ProfileMedia
+# ownedBy: String!
+# dispatcher: Dispatcher
+# stats: ProfileStats
+# # followModule: FollowModule
+# isDefault: Boolean
+# attributes: [Attribute!]
+# isFollowedByMe: Boolean
+# isFollowingMe: Boolean
+# }
+
+# # Mirrors should extend "Post"
+# # https://docs.lens.xyz/docs/mirror
+# type Mirror @entity {
+# id: ID!
+# profile: Profile!
+# createdAt: String!
+
+# referenceModule: ReferenceModule!
+# referenceModuleReturnData: Bytes!
+
+# profilePointed: Profile!
+# publicationPointed: Post!
+
+# # Address of user who collected
+# collectedBy: String
+
+# # Additional fields that we want to remove
+# # TODO: Refactor & remove
+# stats: PublicationStats!
+# metadata: MetadataOutput!
+# onChainContentURI: String!
+# appId: BigInt
+# hidden: Boolean!
+# collectNftAddress: String
+# reaction: ReactionTypes
+# hasCollectedByMe: Boolean!
+# }
type Post @entity {
- id: ID!
- profile: Profile!
-
- onChainContentURI: String!
-
- # Address
- collectModule: CollectModule
- collectModuleReturnData: Bytes
-
- referenceModule: ReferenceModule
- referenceModuleReturnData: Bytes
-
- createdAt: String!
-
- # Address of user who collected
- collectedBy: String
-
- mirrors: [ID!]!
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- appId: String
- hidden: Boolean
- collectNftAddress: String
- # collectedBy: Wallet
- reaction: ReactionTypes
- hasCollectedByMe: Boolean
- stats: PublicationStats
- metadata: MetadataOutput
-}
-
-# TODO: We need to make "Comment" extend from "Publication"
-type Comment @entity {
- id: ID!
- profile: Profile!
- onChainContentURI: String!
- createdAt: String!
- mirrors: [ID!]!
-
- # Publication that comment points to
- publication: Post!
- # Reference module settings for this comment
- referenceModule: ReferenceModule
- # Collect module settings for this comment
- collectModule: CollectModule!
- # Profile that comment points to (may be different than comment author)
- profilePointed: Profile!
-
- # Address of user who collected
- collectedBy: String
-}
-
-type Owner @entity {
- id: ID!
- amount: BigDecimal!
- address: String!
-}
-
-type NFTContent @entity {
- id: ID!
- uri: String!
- metaType: String!
- animatedUrl: String
-}
-
-type NFT @entity {
- id: ID!
- contractName: String!
- contractAddress: String!
- symbol: String!
- tokenId: String!
- owners: [Owner!]!
- name: String!
- description: String!
- contentURI: String!
- originalContent: NFTContent!
- chainId: ID!
- collectionName: String!
- ercType: String!
-}
-
-# Handles
-#12
-
-# Retrieved from https://graphiql-online.com/voyager-view
-type ReservedClaimableHandle @entity {
- id: ID!
- # Requires custom "Handle" scalar type
- handle: String!
- source: String!
- expiry: String!
-}
-
-type ClaimableHandles @entity {
- id: ID!
- canClaimFreeTextHandle: Boolean!
- claimableHandles: [ReservedClaimableHandle!]!
-}
-
-# Address
-#13
-
-type TransactionReceipt @entity {
- id: ID!
- to: String!
- from: String!
- contractAddress: String
- transactionIndex: Int!
- root: String
- gasUsed: String!
- logsBloom: String!
- blockHash: String!
- transactionHash: String!
- blockNumber: Int!
- confirmations: Int!
- cumulativeGasUsed: String!
- effectiveGasPrice: String!
- byzantium: Boolean!
- type: Int!
- status: Int
-}
+ id: ID!
+ profile: String!
+
+ onChainContentURI: String!
+
+ # # Address
+ # collectModule: CollectModule
+ # collectModuleReturnData: Bytes
+
+ # referenceModule: ReferenceModule
+ # referenceModuleReturnData: Bytes
+
+ createdAt: String!
+
+ # Address of user who collected
+ collectedBy: String
+
+ # mirrors: [Mirror!]! @derivedFrom(field: "publicationPointed")
+
+ # # Additional fields that we want to remove
+ # # TODO: Refactor & remove
+ # appId: String
+ # hidden: Boolean
+ # collectNftAddress: String
+ # # collectedBy: Wallet
+ # reaction: ReactionTypes
+ # hasCollectedByMe: Boolean
+ # stats: PublicationStats
+ metadata: MetadataOutput
+}
+
+# # TODO: We need to make "Comment" extend from "Publication"
+# type Comment @entity {
+# id: ID!
+# profile: Profile!
+# onChainContentURI: String!
+# createdAt: String!
+# mirrors: [ID!]!
+
+# # Publication that comment points to
+# publication: Post!
+# # Reference module settings for this comment
+# referenceModule: ReferenceModule
+# # Collect module settings for this comment
+# collectModule: CollectModule!
+# # Profile that comment points to (may be different than comment author)
+# profilePointed: Profile!
+
+# # Address of user who collected
+# collectedBy: String
+# }
+
+# type Owner @entity {
+# id: ID!
+# amount: BigDecimal!
+# address: String!
+# }
+
+# type NFTContent @entity {
+# id: ID!
+# uri: String!
+# metaType: String!
+# animatedUrl: String
+# }
+
+# type NFT @entity {
+# id: ID!
+# contractName: String!
+# contractAddress: String!
+# symbol: String!
+# tokenId: String!
+# owners: [Owner!]!
+# name: String!
+# description: String!
+# contentURI: String!
+# originalContent: NFTContent!
+# chainId: ID!
+# collectionName: String!
+# ercType: String!
+# }
+
+# # Handles
+# #12
+
+# # Retrieved from https://graphiql-online.com/voyager-view
+# type ReservedClaimableHandle @entity {
+# id: ID!
+# # Requires custom "Handle" scalar type
+# handle: String!
+# source: String!
+# expiry: String!
+# }
+
+# type ClaimableHandles @entity {
+# id: ID!
+# canClaimFreeTextHandle: Boolean!
+# claimableHandles: [ReservedClaimableHandle!]!
+# }
+
+# # Address
+# #13
+
+# type TransactionReceipt @entity {
+# id: ID!
+# to: String!
+# from: String!
+# contractAddress: String
+# transactionIndex: Int!
+# root: String
+# gasUsed: String!
+# logsBloom: String!
+# blockHash: String!
+# transactionHash: String!
+# blockNumber: Int!
+# confirmations: Int!
+# cumulativeGasUsed: String!
+# effectiveGasPrice: String!
+# byzantium: Boolean!
+# type: Int!
+# status: Int
+# }
diff --git a/build/subgraph.yaml b/build/subgraph.yaml
index 07cac97..0a46823 100644
--- a/build/subgraph.yaml
+++ b/build/subgraph.yaml
@@ -1,4 +1,5 @@
specVersion: 0.0.5
+description: asdf
schema:
file: schema.graphql
dataSources:
@@ -11,7 +12,7 @@ dataSources:
startBlock: 28384641
mapping:
kind: ethereum/events
- apiVersion: 0.0.5
+ apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AdminChanged
@@ -21,18 +22,20 @@ dataSources:
- name: LensHub
file: LensHub/abis/LensHub.json
eventHandlers:
- - event: ProfileCreated(indexed uint256,indexed address,indexed
- address,string,string,address,bytes,string,uint256)
- handler: handleProfileCreated
- event: PostCreated(indexed uint256,indexed
uint256,string,address,bytes,address,bytes,uint256)
handler: handlePostCreated
- - event: CommentCreated(indexed uint256,indexed
- uint256,string,uint256,uint256,bytes,address,bytes,address,bytes,uint256)
- handler: handleCommentCreated
- - event: MirrorCreated(indexed uint256,indexed
- uint256,uint256,uint256,bytes,address,bytes,uint256)
- handler: handleMirrorCreated
- - event: Collected(indexed address,indexed uint256,indexed uint256,uint256,uint256,uint256)
- handler: handleCollected
file: LensHub/LensHub.wasm
+templates:
+ - name: MetadataTemplate
+ kind: file/ipfs
+ mapping:
+ apiVersion: 0.0.7
+ language: wasm/assemblyscript
+ file: templates/MetadataTemplate/MetadataTemplate.wasm
+ handler: handleMetadata
+ entities:
+ - MetadataOutput
+ abis:
+ - name: Token
+ file: MetadataTemplate/abis/LensHub.json
diff --git a/generated/TransparentUpgradeableProxy/TransparentUpgradeableProxy.ts b/generated/TransparentUpgradeableProxy/TransparentUpgradeableProxy.ts
deleted file mode 100644
index e872169..0000000
--- a/generated/TransparentUpgradeableProxy/TransparentUpgradeableProxy.ts
+++ /dev/null
@@ -1,330 +0,0 @@
-// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-
-import {
- ethereum,
- JSONValue,
- TypedMap,
- Entity,
- Bytes,
- Address,
- BigInt
-} from "@graphprotocol/graph-ts";
-
-export class AdminChanged extends ethereum.Event {
- get params(): AdminChanged__Params {
- return new AdminChanged__Params(this);
- }
-}
-
-export class AdminChanged__Params {
- _event: AdminChanged;
-
- constructor(event: AdminChanged) {
- this._event = event;
- }
-
- get previousAdmin(): Address {
- return this._event.parameters[0].value.toAddress();
- }
-
- get newAdmin(): Address {
- return this._event.parameters[1].value.toAddress();
- }
-}
-
-export class BeaconUpgraded extends ethereum.Event {
- get params(): BeaconUpgraded__Params {
- return new BeaconUpgraded__Params(this);
- }
-}
-
-export class BeaconUpgraded__Params {
- _event: BeaconUpgraded;
-
- constructor(event: BeaconUpgraded) {
- this._event = event;
- }
-
- get beacon(): Address {
- return this._event.parameters[0].value.toAddress();
- }
-}
-
-export class Upgraded extends ethereum.Event {
- get params(): Upgraded__Params {
- return new Upgraded__Params(this);
- }
-}
-
-export class Upgraded__Params {
- _event: Upgraded;
-
- constructor(event: Upgraded) {
- this._event = event;
- }
-
- get implementation(): Address {
- return this._event.parameters[0].value.toAddress();
- }
-}
-
-export class TransparentUpgradeableProxy extends ethereum.SmartContract {
- static bind(address: Address): TransparentUpgradeableProxy {
- return new TransparentUpgradeableProxy(
- "TransparentUpgradeableProxy",
- address
- );
- }
-
- admin(): Address {
- let result = super.call("admin", "admin():(address)", []);
-
- return result[0].toAddress();
- }
-
- try_admin(): ethereum.CallResult
{
- let result = super.tryCall("admin", "admin():(address)", []);
- if (result.reverted) {
- return new ethereum.CallResult();
- }
- let value = result.value;
- return ethereum.CallResult.fromValue(value[0].toAddress());
- }
-
- implementation(): Address {
- let result = super.call("implementation", "implementation():(address)", []);
-
- return result[0].toAddress();
- }
-
- try_implementation(): ethereum.CallResult {
- let result = super.tryCall(
- "implementation",
- "implementation():(address)",
- []
- );
- if (result.reverted) {
- return new ethereum.CallResult();
- }
- let value = result.value;
- return ethereum.CallResult.fromValue(value[0].toAddress());
- }
-}
-
-export class ConstructorCall extends ethereum.Call {
- get inputs(): ConstructorCall__Inputs {
- return new ConstructorCall__Inputs(this);
- }
-
- get outputs(): ConstructorCall__Outputs {
- return new ConstructorCall__Outputs(this);
- }
-}
-
-export class ConstructorCall__Inputs {
- _call: ConstructorCall;
-
- constructor(call: ConstructorCall) {
- this._call = call;
- }
-
- get _logic(): Address {
- return this._call.inputValues[0].value.toAddress();
- }
-
- get admin_(): Address {
- return this._call.inputValues[1].value.toAddress();
- }
-
- get _data(): Bytes {
- return this._call.inputValues[2].value.toBytes();
- }
-}
-
-export class ConstructorCall__Outputs {
- _call: ConstructorCall;
-
- constructor(call: ConstructorCall) {
- this._call = call;
- }
-}
-
-export class DefaultCall extends ethereum.Call {
- get inputs(): DefaultCall__Inputs {
- return new DefaultCall__Inputs(this);
- }
-
- get outputs(): DefaultCall__Outputs {
- return new DefaultCall__Outputs(this);
- }
-}
-
-export class DefaultCall__Inputs {
- _call: DefaultCall;
-
- constructor(call: DefaultCall) {
- this._call = call;
- }
-}
-
-export class DefaultCall__Outputs {
- _call: DefaultCall;
-
- constructor(call: DefaultCall) {
- this._call = call;
- }
-}
-
-export class AdminCall extends ethereum.Call {
- get inputs(): AdminCall__Inputs {
- return new AdminCall__Inputs(this);
- }
-
- get outputs(): AdminCall__Outputs {
- return new AdminCall__Outputs(this);
- }
-}
-
-export class AdminCall__Inputs {
- _call: AdminCall;
-
- constructor(call: AdminCall) {
- this._call = call;
- }
-}
-
-export class AdminCall__Outputs {
- _call: AdminCall;
-
- constructor(call: AdminCall) {
- this._call = call;
- }
-
- get admin_(): Address {
- return this._call.outputValues[0].value.toAddress();
- }
-}
-
-export class ChangeAdminCall extends ethereum.Call {
- get inputs(): ChangeAdminCall__Inputs {
- return new ChangeAdminCall__Inputs(this);
- }
-
- get outputs(): ChangeAdminCall__Outputs {
- return new ChangeAdminCall__Outputs(this);
- }
-}
-
-export class ChangeAdminCall__Inputs {
- _call: ChangeAdminCall;
-
- constructor(call: ChangeAdminCall) {
- this._call = call;
- }
-
- get newAdmin(): Address {
- return this._call.inputValues[0].value.toAddress();
- }
-}
-
-export class ChangeAdminCall__Outputs {
- _call: ChangeAdminCall;
-
- constructor(call: ChangeAdminCall) {
- this._call = call;
- }
-}
-
-export class ImplementationCall extends ethereum.Call {
- get inputs(): ImplementationCall__Inputs {
- return new ImplementationCall__Inputs(this);
- }
-
- get outputs(): ImplementationCall__Outputs {
- return new ImplementationCall__Outputs(this);
- }
-}
-
-export class ImplementationCall__Inputs {
- _call: ImplementationCall;
-
- constructor(call: ImplementationCall) {
- this._call = call;
- }
-}
-
-export class ImplementationCall__Outputs {
- _call: ImplementationCall;
-
- constructor(call: ImplementationCall) {
- this._call = call;
- }
-
- get implementation_(): Address {
- return this._call.outputValues[0].value.toAddress();
- }
-}
-
-export class UpgradeToCall extends ethereum.Call {
- get inputs(): UpgradeToCall__Inputs {
- return new UpgradeToCall__Inputs(this);
- }
-
- get outputs(): UpgradeToCall__Outputs {
- return new UpgradeToCall__Outputs(this);
- }
-}
-
-export class UpgradeToCall__Inputs {
- _call: UpgradeToCall;
-
- constructor(call: UpgradeToCall) {
- this._call = call;
- }
-
- get newImplementation(): Address {
- return this._call.inputValues[0].value.toAddress();
- }
-}
-
-export class UpgradeToCall__Outputs {
- _call: UpgradeToCall;
-
- constructor(call: UpgradeToCall) {
- this._call = call;
- }
-}
-
-export class UpgradeToAndCallCall extends ethereum.Call {
- get inputs(): UpgradeToAndCallCall__Inputs {
- return new UpgradeToAndCallCall__Inputs(this);
- }
-
- get outputs(): UpgradeToAndCallCall__Outputs {
- return new UpgradeToAndCallCall__Outputs(this);
- }
-}
-
-export class UpgradeToAndCallCall__Inputs {
- _call: UpgradeToAndCallCall;
-
- constructor(call: UpgradeToAndCallCall) {
- this._call = call;
- }
-
- get newImplementation(): Address {
- return this._call.inputValues[0].value.toAddress();
- }
-
- get data(): Bytes {
- return this._call.inputValues[1].value.toBytes();
- }
-}
-
-export class UpgradeToAndCallCall__Outputs {
- _call: UpgradeToAndCallCall;
-
- constructor(call: UpgradeToAndCallCall) {
- this._call = call;
- }
-}
diff --git a/generated/schema.ts b/generated/schema.ts
index 026151f..2bbaf9f 100644
--- a/generated/schema.ts
+++ b/generated/schema.ts
@@ -11,2964 +11,7 @@ import {
BigDecimal
} from "@graphprotocol/graph-ts";
-export class Approval extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Approval entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Approval must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Approval", id.toString(), this);
- }
- }
-
- static load(id: string): Approval | null {
- return changetype(store.get("Approval", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get owner(): Bytes {
- let value = this.get("owner");
- return value!.toBytes();
- }
-
- set owner(value: Bytes) {
- this.set("owner", Value.fromBytes(value));
- }
-
- get approved(): Bytes {
- let value = this.get("approved");
- return value!.toBytes();
- }
-
- set approved(value: Bytes) {
- this.set("approved", Value.fromBytes(value));
- }
-
- get tokenId(): BigInt {
- let value = this.get("tokenId");
- return value!.toBigInt();
- }
-
- set tokenId(value: BigInt) {
- this.set("tokenId", Value.fromBigInt(value));
- }
-}
-
-export class ApprovalForAll extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save ApprovalForAll entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ApprovalForAll must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ApprovalForAll", id.toString(), this);
- }
- }
-
- static load(id: string): ApprovalForAll | null {
- return changetype(store.get("ApprovalForAll", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get owner(): Bytes {
- let value = this.get("owner");
- return value!.toBytes();
- }
-
- set owner(value: Bytes) {
- this.set("owner", Value.fromBytes(value));
- }
-
- get operator(): Bytes {
- let value = this.get("operator");
- return value!.toBytes();
- }
-
- set operator(value: Bytes) {
- this.set("operator", Value.fromBytes(value));
- }
-
- get approved(): boolean {
- let value = this.get("approved");
- return value!.toBoolean();
- }
-
- set approved(value: boolean) {
- this.set("approved", Value.fromBoolean(value));
- }
-}
-
-export class Transfer extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Transfer entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Transfer must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Transfer", id.toString(), this);
- }
- }
-
- static load(id: string): Transfer | null {
- return changetype(store.get("Transfer", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get from(): Bytes {
- let value = this.get("from");
- return value!.toBytes();
- }
-
- set from(value: Bytes) {
- this.set("from", Value.fromBytes(value));
- }
-
- get to(): Bytes {
- let value = this.get("to");
- return value!.toBytes();
- }
-
- set to(value: Bytes) {
- this.set("to", Value.fromBytes(value));
- }
-
- get tokenId(): BigInt {
- let value = this.get("tokenId");
- return value!.toBigInt();
- }
-
- set tokenId(value: BigInt) {
- this.set("tokenId", Value.fromBigInt(value));
- }
-}
-
-export class Dispatcher extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Dispatcher entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Dispatcher must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Dispatcher", id.toString(), this);
- }
- }
-
- static load(id: string): Dispatcher | null {
- return changetype(store.get("Dispatcher", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get address(): string {
- let value = this.get("address");
- return value!.toString();
- }
-
- set address(value: string) {
- this.set("address", Value.fromString(value));
- }
-
- get canUseRelay(): boolean {
- let value = this.get("canUseRelay");
- return value!.toBoolean();
- }
-
- set canUseRelay(value: boolean) {
- this.set("canUseRelay", Value.fromBoolean(value));
- }
-}
-
-export class ProfileStats extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save ProfileStats entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ProfileStats must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ProfileStats", id.toString(), this);
- }
- }
-
- static load(id: string): ProfileStats | null {
- return changetype(store.get("ProfileStats", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get totalFollowers(): BigInt {
- let value = this.get("totalFollowers");
- return value!.toBigInt();
- }
-
- set totalFollowers(value: BigInt) {
- this.set("totalFollowers", Value.fromBigInt(value));
- }
-
- get totalFollowing(): BigInt {
- let value = this.get("totalFollowing");
- return value!.toBigInt();
- }
-
- set totalFollowing(value: BigInt) {
- this.set("totalFollowing", Value.fromBigInt(value));
- }
-
- get totalPosts(): BigInt {
- let value = this.get("totalPosts");
- return value!.toBigInt();
- }
-
- set totalPosts(value: BigInt) {
- this.set("totalPosts", Value.fromBigInt(value));
- }
-
- get totalComments(): BigInt {
- let value = this.get("totalComments");
- return value!.toBigInt();
- }
-
- set totalComments(value: BigInt) {
- this.set("totalComments", Value.fromBigInt(value));
- }
-
- get totalMirrors(): BigInt {
- let value = this.get("totalMirrors");
- return value!.toBigInt();
- }
-
- set totalMirrors(value: BigInt) {
- this.set("totalMirrors", Value.fromBigInt(value));
- }
-
- get totalPublications(): BigInt {
- let value = this.get("totalPublications");
- return value!.toBigInt();
- }
-
- set totalPublications(value: BigInt) {
- this.set("totalPublications", Value.fromBigInt(value));
- }
-
- get totalCollects(): BigInt {
- let value = this.get("totalCollects");
- return value!.toBigInt();
- }
-
- set totalCollects(value: BigInt) {
- this.set("totalCollects", Value.fromBigInt(value));
- }
-}
-
-export class NftImage extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save NftImage entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type NftImage must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("NftImage", id.toString(), this);
- }
- }
-
- static load(id: string): NftImage | null {
- return changetype(store.get("NftImage", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get tokenId(): string {
- let value = this.get("tokenId");
- return value!.toString();
- }
-
- set tokenId(value: string) {
- this.set("tokenId", Value.fromString(value));
- }
-
- get url(): string {
- let value = this.get("url");
- return value!.toString();
- }
-
- set url(value: string) {
- this.set("url", Value.fromString(value));
- }
-
- get chainId(): BigInt {
- let value = this.get("chainId");
- return value!.toBigInt();
- }
-
- set chainId(value: BigInt) {
- this.set("chainId", Value.fromBigInt(value));
- }
-
- get verified(): boolean {
- let value = this.get("verified");
- return value!.toBoolean();
- }
-
- set verified(value: boolean) {
- this.set("verified", Value.fromBoolean(value));
- }
-}
-
-export class Media extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Media entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Media must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Media", id.toString(), this);
- }
- }
-
- static load(id: string): Media | null {
- return changetype(store.get("Media", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get url(): string {
- let value = this.get("url");
- return value!.toString();
- }
-
- set url(value: string) {
- this.set("url", Value.fromString(value));
- }
-
- get width(): BigInt | null {
- let value = this.get("width");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBigInt();
- }
- }
-
- set width(value: BigInt | null) {
- if (!value) {
- this.unset("width");
- } else {
- this.set("width", Value.fromBigInt(value));
- }
- }
-
- get height(): BigInt | null {
- let value = this.get("height");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBigInt();
- }
- }
-
- set height(value: BigInt | null) {
- if (!value) {
- this.unset("height");
- } else {
- this.set("height", Value.fromBigInt(value));
- }
- }
-
- get size(): BigInt | null {
- let value = this.get("size");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBigInt();
- }
- }
-
- set size(value: BigInt | null) {
- if (!value) {
- this.unset("size");
- } else {
- this.set("size", Value.fromBigInt(value));
- }
- }
-
- get mimeType(): string | null {
- let value = this.get("mimeType");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set mimeType(value: string | null) {
- if (!value) {
- this.unset("mimeType");
- } else {
- this.set("mimeType", Value.fromString(value));
- }
- }
-}
-
-export class MediaSet extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save MediaSet entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type MediaSet must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("MediaSet", id.toString(), this);
- }
- }
-
- static load(id: string): MediaSet | null {
- return changetype(store.get("MediaSet", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get original(): string {
- let value = this.get("original");
- return value!.toString();
- }
-
- set original(value: string) {
- this.set("original", Value.fromString(value));
- }
-
- get small(): string | null {
- let value = this.get("small");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set small(value: string | null) {
- if (!value) {
- this.unset("small");
- } else {
- this.set("small", Value.fromString(value));
- }
- }
-
- get medium(): string | null {
- let value = this.get("medium");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set medium(value: string | null) {
- if (!value) {
- this.unset("medium");
- } else {
- this.set("medium", Value.fromString(value));
- }
- }
-}
-
-export class Erc20 extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Erc20 entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Erc20 must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Erc20", id.toString(), this);
- }
- }
-
- static load(id: string): Erc20 | null {
- return changetype(store.get("Erc20", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get name(): string {
- let value = this.get("name");
- return value!.toString();
- }
-
- set name(value: string) {
- this.set("name", Value.fromString(value));
- }
-
- get symbol(): string {
- let value = this.get("symbol");
- return value!.toString();
- }
-
- set symbol(value: string) {
- this.set("symbol", Value.fromString(value));
- }
-
- get decimals(): BigInt {
- let value = this.get("decimals");
- return value!.toBigInt();
- }
-
- set decimals(value: BigInt) {
- this.set("decimals", Value.fromBigInt(value));
- }
-
- get address(): string {
- let value = this.get("address");
- return value!.toString();
- }
-
- set address(value: string) {
- this.set("address", Value.fromString(value));
- }
-}
-
-export class ModuleFeeAmount extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save ModuleFeeAmount entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ModuleFeeAmount must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ModuleFeeAmount", id.toString(), this);
- }
- }
-
- static load(id: string): ModuleFeeAmount | null {
- return changetype(store.get("ModuleFeeAmount", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get asset(): string {
- let value = this.get("asset");
- return value!.toString();
- }
-
- set asset(value: string) {
- this.set("asset", Value.fromString(value));
- }
-
- get vaue(): string {
- let value = this.get("vaue");
- return value!.toString();
- }
-
- set vaue(value: string) {
- this.set("vaue", Value.fromString(value));
- }
-}
-
-export class FeeFollowModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save FeeFollowModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type FeeFollowModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("FeeFollowModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): FeeFollowModuleSettings | null {
- return changetype(
- store.get("FeeFollowModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get amount(): string {
- let value = this.get("amount");
- return value!.toString();
- }
-
- set amount(value: string) {
- this.set("amount", Value.fromString(value));
- }
-
- get recipient(): string {
- let value = this.get("recipient");
- return value!.toString();
- }
-
- set recipient(value: string) {
- this.set("recipient", Value.fromString(value));
- }
-}
-
-export class ProfileFollowModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save ProfileFollowModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ProfileFollowModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ProfileFollowModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): ProfileFollowModuleSettings | null {
- return changetype(
- store.get("ProfileFollowModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-}
-
-export class RevertFollowModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save RevertFollowModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type RevertFollowModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("RevertFollowModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): RevertFollowModuleSettings | null {
- return changetype(
- store.get("RevertFollowModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-}
-
-export class Attribute extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Attribute entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Attribute must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Attribute", id.toString(), this);
- }
- }
-
- static load(id: string): Attribute | null {
- return changetype(store.get("Attribute", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get displayType(): string | null {
- let value = this.get("displayType");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set displayType(value: string | null) {
- if (!value) {
- this.unset("displayType");
- } else {
- this.set("displayType", Value.fromString(value));
- }
- }
-
- get traitType(): string | null {
- let value = this.get("traitType");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set traitType(value: string | null) {
- if (!value) {
- this.unset("traitType");
- } else {
- this.set("traitType", Value.fromString(value));
- }
- }
-
- get key(): string {
- let value = this.get("key");
- return value!.toString();
- }
-
- set key(value: string) {
- this.set("key", Value.fromString(value));
- }
-
- get value(): string {
- let value = this.get("value");
- return value!.toString();
- }
-
- set value(value: string) {
- this.set("value", Value.fromString(value));
- }
-}
-
-export class PublicationStats extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save PublicationStats entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type PublicationStats must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("PublicationStats", id.toString(), this);
- }
- }
-
- static load(id: string): PublicationStats | null {
- return changetype(
- store.get("PublicationStats", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get totalAmountOfMirrors(): BigInt {
- let value = this.get("totalAmountOfMirrors");
- return value!.toBigInt();
- }
-
- set totalAmountOfMirrors(value: BigInt) {
- this.set("totalAmountOfMirrors", Value.fromBigInt(value));
- }
-
- get totalAmountOfCollects(): BigInt {
- let value = this.get("totalAmountOfCollects");
- return value!.toBigInt();
- }
-
- set totalAmountOfCollects(value: BigInt) {
- this.set("totalAmountOfCollects", Value.fromBigInt(value));
- }
-
- get totalAmountOfComments(): BigInt {
- let value = this.get("totalAmountOfComments");
- return value!.toBigInt();
- }
-
- set totalAmountOfComments(value: BigInt) {
- this.set("totalAmountOfComments", Value.fromBigInt(value));
- }
-
- get totalUpvotes(): BigInt {
- let value = this.get("totalUpvotes");
- return value!.toBigInt();
- }
-
- set totalUpvotes(value: BigInt) {
- this.set("totalUpvotes", Value.fromBigInt(value));
- }
-
- get totalDownvotes(): BigInt {
- let value = this.get("totalDownvotes");
- return value!.toBigInt();
- }
-
- set totalDownvotes(value: BigInt) {
- this.set("totalDownvotes", Value.fromBigInt(value));
- }
-}
-
-export class Wallet extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Wallet entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Wallet must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Wallet", id.toString(), this);
- }
- }
-
- static load(id: string): Wallet | null {
- return changetype(store.get("Wallet", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get address(): string {
- let value = this.get("address");
- return value!.toString();
- }
-
- set address(value: string) {
- this.set("address", Value.fromString(value));
- }
-
- get defaulProfile(): string {
- let value = this.get("defaulProfile");
- return value!.toString();
- }
-
- set defaulProfile(value: string) {
- this.set("defaulProfile", Value.fromString(value));
- }
-}
-
-export class MetadataAttributeOutput extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save MetadataAttributeOutput entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type MetadataAttributeOutput must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("MetadataAttributeOutput", id.toString(), this);
- }
- }
-
- static load(id: string): MetadataAttributeOutput | null {
- return changetype(
- store.get("MetadataAttributeOutput", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get displayType(): string | null {
- let value = this.get("displayType");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set displayType(value: string | null) {
- if (!value) {
- this.unset("displayType");
- } else {
- this.set("displayType", Value.fromString(value));
- }
- }
-
- get traitType(): string | null {
- let value = this.get("traitType");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set traitType(value: string | null) {
- if (!value) {
- this.unset("traitType");
- } else {
- this.set("traitType", Value.fromString(value));
- }
- }
-
- get value(): string | null {
- let value = this.get("value");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set value(value: string | null) {
- if (!value) {
- this.unset("value");
- } else {
- this.set("value", Value.fromString(value));
- }
- }
-}
-
-export class MetadataOutput extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save MetadataOutput entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type MetadataOutput must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("MetadataOutput", id.toString(), this);
- }
- }
-
- static load(id: string): MetadataOutput | null {
- return changetype(store.get("MetadataOutput", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get name(): string | null {
- let value = this.get("name");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set name(value: string | null) {
- if (!value) {
- this.unset("name");
- } else {
- this.set("name", Value.fromString(value));
- }
- }
-
- get description(): string | null {
- let value = this.get("description");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set description(value: string | null) {
- if (!value) {
- this.unset("description");
- } else {
- this.set("description", Value.fromString(value));
- }
- }
-
- get content(): string | null {
- let value = this.get("content");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set content(value: string | null) {
- if (!value) {
- this.unset("content");
- } else {
- this.set("content", Value.fromString(value));
- }
- }
-
- get image(): string | null {
- let value = this.get("image");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set image(value: string | null) {
- if (!value) {
- this.unset("image");
- } else {
- this.set("image", Value.fromString(value));
- }
- }
-
- get cover(): string | null {
- let value = this.get("cover");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set cover(value: string | null) {
- if (!value) {
- this.unset("cover");
- } else {
- this.set("cover", Value.fromString(value));
- }
- }
-
- get media(): Array {
- let value = this.get("media");
- return value!.toStringArray();
- }
-
- set media(value: Array) {
- this.set("media", Value.fromStringArray(value));
- }
-
- get attributes(): Array {
- let value = this.get("attributes");
- return value!.toStringArray();
- }
-
- set attributes(value: Array) {
- this.set("attributes", Value.fromStringArray(value));
- }
-}
-
-export class ReactionFieldResolverRequest extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save ReactionFieldResolverRequest entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ReactionFieldResolverRequest must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ReactionFieldResolverRequest", id.toString(), this);
- }
- }
-
- static load(id: string): ReactionFieldResolverRequest | null {
- return changetype(
- store.get("ReactionFieldResolverRequest", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get profileId(): BigInt | null {
- let value = this.get("profileId");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBigInt();
- }
- }
-
- set profileId(value: BigInt | null) {
- if (!value) {
- this.unset("profileId");
- } else {
- this.set("profileId", Value.fromBigInt(value));
- }
- }
-}
-
-export class FreeCollectModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save FreeCollectModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type FreeCollectModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("FreeCollectModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): FreeCollectModuleSettings | null {
- return changetype(
- store.get("FreeCollectModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get followerOnly(): boolean {
- let value = this.get("followerOnly");
- return value!.toBoolean();
- }
-
- set followerOnly(value: boolean) {
- this.set("followerOnly", Value.fromBoolean(value));
- }
-}
-
-export class FeeCollectModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save FeeCollectModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type FeeCollectModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("FeeCollectModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): FeeCollectModuleSettings | null {
- return changetype(
- store.get("FeeCollectModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get amount(): string {
- let value = this.get("amount");
- return value!.toString();
- }
-
- set amount(value: string) {
- this.set("amount", Value.fromString(value));
- }
-
- get recipient(): string {
- let value = this.get("recipient");
- return value!.toString();
- }
-
- set recipient(value: string) {
- this.set("recipient", Value.fromString(value));
- }
-
- get referralFee(): BigDecimal {
- let value = this.get("referralFee");
- return value!.toBigDecimal();
- }
-
- set referralFee(value: BigDecimal) {
- this.set("referralFee", Value.fromBigDecimal(value));
- }
-
- get followerOnly(): boolean {
- let value = this.get("followerOnly");
- return value!.toBoolean();
- }
-
- set followerOnly(value: boolean) {
- this.set("followerOnly", Value.fromBoolean(value));
- }
-}
-
-export class LimitedFeeCollectModule extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save LimitedFeeCollectModule entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type LimitedFeeCollectModule must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("LimitedFeeCollectModule", id.toString(), this);
- }
- }
-
- static load(id: string): LimitedFeeCollectModule | null {
- return changetype(
- store.get("LimitedFeeCollectModule", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get collectLimit(): string {
- let value = this.get("collectLimit");
- return value!.toString();
- }
-
- set collectLimit(value: string) {
- this.set("collectLimit", Value.fromString(value));
- }
-
- get amount(): string {
- let value = this.get("amount");
- return value!.toString();
- }
-
- set amount(value: string) {
- this.set("amount", Value.fromString(value));
- }
-
- get recipient(): string {
- let value = this.get("recipient");
- return value!.toString();
- }
-
- set recipient(value: string) {
- this.set("recipient", Value.fromString(value));
- }
-
- get referralFee(): BigDecimal {
- let value = this.get("referralFee");
- return value!.toBigDecimal();
- }
-
- set referralFee(value: BigDecimal) {
- this.set("referralFee", Value.fromBigDecimal(value));
- }
-
- get followerOnly(): boolean {
- let value = this.get("followerOnly");
- return value!.toBoolean();
- }
-
- set followerOnly(value: boolean) {
- this.set("followerOnly", Value.fromBoolean(value));
- }
-}
-
-export class LimitedTimedFeeCollectModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save LimitedTimedFeeCollectModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type LimitedTimedFeeCollectModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("LimitedTimedFeeCollectModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): LimitedTimedFeeCollectModuleSettings | null {
- return changetype(
- store.get("LimitedTimedFeeCollectModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get collectLimit(): string {
- let value = this.get("collectLimit");
- return value!.toString();
- }
-
- set collectLimit(value: string) {
- this.set("collectLimit", Value.fromString(value));
- }
-
- get amount(): string {
- let value = this.get("amount");
- return value!.toString();
- }
-
- set amount(value: string) {
- this.set("amount", Value.fromString(value));
- }
-
- get recipient(): string {
- let value = this.get("recipient");
- return value!.toString();
- }
-
- set recipient(value: string) {
- this.set("recipient", Value.fromString(value));
- }
-
- get referralFee(): BigDecimal {
- let value = this.get("referralFee");
- return value!.toBigDecimal();
- }
-
- set referralFee(value: BigDecimal) {
- this.set("referralFee", Value.fromBigDecimal(value));
- }
-
- get followerOnly(): boolean {
- let value = this.get("followerOnly");
- return value!.toBoolean();
- }
-
- set followerOnly(value: boolean) {
- this.set("followerOnly", Value.fromBoolean(value));
- }
-
- get endTimestamp(): string {
- let value = this.get("endTimestamp");
- return value!.toString();
- }
-
- set endTimestamp(value: string) {
- this.set("endTimestamp", Value.fromString(value));
- }
-}
-
-export class RevertCollectModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save RevertCollectModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type RevertCollectModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("RevertCollectModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): RevertCollectModuleSettings | null {
- return changetype(
- store.get("RevertCollectModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-}
-
-export class TimedFeeCollectModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save TimedFeeCollectModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type TimedFeeCollectModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("TimedFeeCollectModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): TimedFeeCollectModuleSettings | null {
- return changetype(
- store.get("TimedFeeCollectModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get amount(): string {
- let value = this.get("amount");
- return value!.toString();
- }
-
- set amount(value: string) {
- this.set("amount", Value.fromString(value));
- }
-
- get recipient(): string {
- let value = this.get("recipient");
- return value!.toString();
- }
-
- set recipient(value: string) {
- this.set("recipient", Value.fromString(value));
- }
-
- get referralFee(): BigDecimal {
- let value = this.get("referralFee");
- return value!.toBigDecimal();
- }
-
- set referralFee(value: BigDecimal) {
- this.set("referralFee", Value.fromBigDecimal(value));
- }
-
- get followerOnly(): boolean {
- let value = this.get("followerOnly");
- return value!.toBoolean();
- }
-
- set followerOnly(value: boolean) {
- this.set("followerOnly", Value.fromBoolean(value));
- }
-
- get endTimestamp(): string {
- let value = this.get("endTimestamp");
- return value!.toString();
- }
-
- set endTimestamp(value: string) {
- this.set("endTimestamp", Value.fromString(value));
- }
-}
-
-export class FollowOnlyReferenceModuleSettings extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save FollowOnlyReferenceModuleSettings entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type FollowOnlyReferenceModuleSettings must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("FollowOnlyReferenceModuleSettings", id.toString(), this);
- }
- }
-
- static load(id: string): FollowOnlyReferenceModuleSettings | null {
- return changetype(
- store.get("FollowOnlyReferenceModuleSettings", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get type(): string {
- let value = this.get("type");
- return value!.toString();
- }
-
- set type(value: string) {
- this.set("type", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-}
-
-export class Profile extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Profile entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Profile must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Profile", id.toString(), this);
- }
- }
-
- static load(id: string): Profile | null {
- return changetype(store.get("Profile", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get createdAt(): string {
- let value = this.get("createdAt");
- return value!.toString();
- }
-
- set createdAt(value: string) {
- this.set("createdAt", Value.fromString(value));
- }
-
- get creator(): string {
- let value = this.get("creator");
- return value!.toString();
- }
-
- set creator(value: string) {
- this.set("creator", Value.fromString(value));
- }
-
- get mintedTo(): string {
- let value = this.get("mintedTo");
- return value!.toString();
- }
-
- set mintedTo(value: string) {
- this.set("mintedTo", Value.fromString(value));
- }
-
- get handle(): string {
- let value = this.get("handle");
- return value!.toString();
- }
-
- set handle(value: string) {
- this.set("handle", Value.fromString(value));
- }
-
- get picture(): string | null {
- let value = this.get("picture");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set picture(value: string | null) {
- if (!value) {
- this.unset("picture");
- } else {
- this.set("picture", Value.fromString(value));
- }
- }
-
- get followModule(): string | null {
- let value = this.get("followModule");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set followModule(value: string | null) {
- if (!value) {
- this.unset("followModule");
- } else {
- this.set("followModule", Value.fromString(value));
- }
- }
-
- get followModuleReturnData(): Bytes | null {
- let value = this.get("followModuleReturnData");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBytes();
- }
- }
-
- set followModuleReturnData(value: Bytes | null) {
- if (!value) {
- this.unset("followModuleReturnData");
- } else {
- this.set("followModuleReturnData", Value.fromBytes(value));
- }
- }
-
- get followNftUri(): string | null {
- let value = this.get("followNftUri");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set followNftUri(value: string | null) {
- if (!value) {
- this.unset("followNftUri");
- } else {
- this.set("followNftUri", Value.fromString(value));
- }
- }
-
- get posts(): Array {
- let value = this.get("posts");
- return value!.toStringArray();
- }
-
- set posts(value: Array) {
- this.set("posts", Value.fromStringArray(value));
- }
-
- get comments(): Array {
- let value = this.get("comments");
- return value!.toStringArray();
- }
-
- set comments(value: Array) {
- this.set("comments", Value.fromStringArray(value));
- }
-
- get mirrors(): Array {
- let value = this.get("mirrors");
- return value!.toStringArray();
- }
-
- set mirrors(value: Array) {
- this.set("mirrors", Value.fromStringArray(value));
- }
-
- get name(): string | null {
- let value = this.get("name");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set name(value: string | null) {
- if (!value) {
- this.unset("name");
- } else {
- this.set("name", Value.fromString(value));
- }
- }
-
- get bio(): string | null {
- let value = this.get("bio");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set bio(value: string | null) {
- if (!value) {
- this.unset("bio");
- } else {
- this.set("bio", Value.fromString(value));
- }
- }
-
- get followNftAddress(): string | null {
- let value = this.get("followNftAddress");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set followNftAddress(value: string | null) {
- if (!value) {
- this.unset("followNftAddress");
- } else {
- this.set("followNftAddress", Value.fromString(value));
- }
- }
-
- get metadata(): string | null {
- let value = this.get("metadata");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set metadata(value: string | null) {
- if (!value) {
- this.unset("metadata");
- } else {
- this.set("metadata", Value.fromString(value));
- }
- }
-
- get coverPicture(): string | null {
- let value = this.get("coverPicture");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set coverPicture(value: string | null) {
- if (!value) {
- this.unset("coverPicture");
- } else {
- this.set("coverPicture", Value.fromString(value));
- }
- }
-
- get ownedBy(): string {
- let value = this.get("ownedBy");
- return value!.toString();
- }
-
- set ownedBy(value: string) {
- this.set("ownedBy", Value.fromString(value));
- }
-
- get dispatcher(): string | null {
- let value = this.get("dispatcher");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set dispatcher(value: string | null) {
- if (!value) {
- this.unset("dispatcher");
- } else {
- this.set("dispatcher", Value.fromString(value));
- }
- }
-
- get stats(): string | null {
- let value = this.get("stats");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set stats(value: string | null) {
- if (!value) {
- this.unset("stats");
- } else {
- this.set("stats", Value.fromString(value));
- }
- }
-
- get isDefault(): boolean {
- let value = this.get("isDefault");
- return value!.toBoolean();
- }
-
- set isDefault(value: boolean) {
- this.set("isDefault", Value.fromBoolean(value));
- }
-
- get attributes(): Array | null {
- let value = this.get("attributes");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toStringArray();
- }
- }
-
- set attributes(value: Array | null) {
- if (!value) {
- this.unset("attributes");
- } else {
- this.set("attributes", Value.fromStringArray(>value));
- }
- }
-
- get isFollowedByMe(): boolean {
- let value = this.get("isFollowedByMe");
- return value!.toBoolean();
- }
-
- set isFollowedByMe(value: boolean) {
- this.set("isFollowedByMe", Value.fromBoolean(value));
- }
-
- get isFollowingMe(): boolean {
- let value = this.get("isFollowingMe");
- return value!.toBoolean();
- }
-
- set isFollowingMe(value: boolean) {
- this.set("isFollowingMe", Value.fromBoolean(value));
- }
-}
-
-export class Mirror extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Mirror entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Mirror must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Mirror", id.toString(), this);
- }
- }
-
- static load(id: string): Mirror | null {
- return changetype(store.get("Mirror", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get profile(): string {
- let value = this.get("profile");
- return value!.toString();
- }
-
- set profile(value: string) {
- this.set("profile", Value.fromString(value));
- }
-
- get createdAt(): string {
- let value = this.get("createdAt");
- return value!.toString();
- }
-
- set createdAt(value: string) {
- this.set("createdAt", Value.fromString(value));
- }
-
- get referenceModule(): string {
- let value = this.get("referenceModule");
- return value!.toString();
- }
-
- set referenceModule(value: string) {
- this.set("referenceModule", Value.fromString(value));
- }
-
- get referenceModuleReturnData(): Bytes {
- let value = this.get("referenceModuleReturnData");
- return value!.toBytes();
- }
-
- set referenceModuleReturnData(value: Bytes) {
- this.set("referenceModuleReturnData", Value.fromBytes(value));
- }
-
- get profilePointed(): string {
- let value = this.get("profilePointed");
- return value!.toString();
- }
-
- set profilePointed(value: string) {
- this.set("profilePointed", Value.fromString(value));
- }
-
- get publicationPointed(): string {
- let value = this.get("publicationPointed");
- return value!.toString();
- }
-
- set publicationPointed(value: string) {
- this.set("publicationPointed", Value.fromString(value));
- }
-
- get collectedBy(): string | null {
- let value = this.get("collectedBy");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectedBy(value: string | null) {
- if (!value) {
- this.unset("collectedBy");
- } else {
- this.set("collectedBy", Value.fromString(value));
- }
- }
-
- get stats(): string {
- let value = this.get("stats");
- return value!.toString();
- }
-
- set stats(value: string) {
- this.set("stats", Value.fromString(value));
- }
-
- get metadata(): string {
- let value = this.get("metadata");
- return value!.toString();
- }
-
- set metadata(value: string) {
- this.set("metadata", Value.fromString(value));
- }
-
- get onChainContentURI(): string {
- let value = this.get("onChainContentURI");
- return value!.toString();
- }
-
- set onChainContentURI(value: string) {
- this.set("onChainContentURI", Value.fromString(value));
- }
-
- get appId(): BigInt | null {
- let value = this.get("appId");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBigInt();
- }
- }
-
- set appId(value: BigInt | null) {
- if (!value) {
- this.unset("appId");
- } else {
- this.set("appId", Value.fromBigInt(value));
- }
- }
-
- get hidden(): boolean {
- let value = this.get("hidden");
- return value!.toBoolean();
- }
-
- set hidden(value: boolean) {
- this.set("hidden", Value.fromBoolean(value));
- }
-
- get collectNftAddress(): string | null {
- let value = this.get("collectNftAddress");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectNftAddress(value: string | null) {
- if (!value) {
- this.unset("collectNftAddress");
- } else {
- this.set("collectNftAddress", Value.fromString(value));
- }
- }
-
- get reaction(): string | null {
- let value = this.get("reaction");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set reaction(value: string | null) {
- if (!value) {
- this.unset("reaction");
- } else {
- this.set("reaction", Value.fromString(value));
- }
- }
-
- get hasCollectedByMe(): boolean {
- let value = this.get("hasCollectedByMe");
- return value!.toBoolean();
- }
-
- set hasCollectedByMe(value: boolean) {
- this.set("hasCollectedByMe", Value.fromBoolean(value));
- }
-}
-
-export class Post extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Post entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Post must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Post", id.toString(), this);
- }
- }
-
- static load(id: string): Post | null {
- return changetype(store.get("Post", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get profile(): string {
- let value = this.get("profile");
- return value!.toString();
- }
-
- set profile(value: string) {
- this.set("profile", Value.fromString(value));
- }
-
- get onChainContentURI(): string {
- let value = this.get("onChainContentURI");
- return value!.toString();
- }
-
- set onChainContentURI(value: string) {
- this.set("onChainContentURI", Value.fromString(value));
- }
-
- get collectModule(): string | null {
- let value = this.get("collectModule");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectModule(value: string | null) {
- if (!value) {
- this.unset("collectModule");
- } else {
- this.set("collectModule", Value.fromString(value));
- }
- }
-
- get collectModuleReturnData(): Bytes | null {
- let value = this.get("collectModuleReturnData");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBytes();
- }
- }
-
- set collectModuleReturnData(value: Bytes | null) {
- if (!value) {
- this.unset("collectModuleReturnData");
- } else {
- this.set("collectModuleReturnData", Value.fromBytes(value));
- }
- }
-
- get referenceModule(): string | null {
- let value = this.get("referenceModule");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set referenceModule(value: string | null) {
- if (!value) {
- this.unset("referenceModule");
- } else {
- this.set("referenceModule", Value.fromString(value));
- }
- }
-
- get referenceModuleReturnData(): Bytes | null {
- let value = this.get("referenceModuleReturnData");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toBytes();
- }
- }
-
- set referenceModuleReturnData(value: Bytes | null) {
- if (!value) {
- this.unset("referenceModuleReturnData");
- } else {
- this.set("referenceModuleReturnData", Value.fromBytes(value));
- }
- }
-
- get createdAt(): string {
- let value = this.get("createdAt");
- return value!.toString();
- }
-
- set createdAt(value: string) {
- this.set("createdAt", Value.fromString(value));
- }
-
- get collectedBy(): string | null {
- let value = this.get("collectedBy");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectedBy(value: string | null) {
- if (!value) {
- this.unset("collectedBy");
- } else {
- this.set("collectedBy", Value.fromString(value));
- }
- }
-
- get mirrors(): Array {
- let value = this.get("mirrors");
- return value!.toStringArray();
- }
-
- set mirrors(value: Array) {
- this.set("mirrors", Value.fromStringArray(value));
- }
-
- get appId(): string | null {
- let value = this.get("appId");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set appId(value: string | null) {
- if (!value) {
- this.unset("appId");
- } else {
- this.set("appId", Value.fromString(value));
- }
- }
-
- get hidden(): boolean {
- let value = this.get("hidden");
- return value!.toBoolean();
- }
-
- set hidden(value: boolean) {
- this.set("hidden", Value.fromBoolean(value));
- }
-
- get collectNftAddress(): string | null {
- let value = this.get("collectNftAddress");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectNftAddress(value: string | null) {
- if (!value) {
- this.unset("collectNftAddress");
- } else {
- this.set("collectNftAddress", Value.fromString(value));
- }
- }
-
- get reaction(): string | null {
- let value = this.get("reaction");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set reaction(value: string | null) {
- if (!value) {
- this.unset("reaction");
- } else {
- this.set("reaction", Value.fromString(value));
- }
- }
-
- get hasCollectedByMe(): boolean {
- let value = this.get("hasCollectedByMe");
- return value!.toBoolean();
- }
-
- set hasCollectedByMe(value: boolean) {
- this.set("hasCollectedByMe", Value.fromBoolean(value));
- }
-
- get stats(): string | null {
- let value = this.get("stats");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set stats(value: string | null) {
- if (!value) {
- this.unset("stats");
- } else {
- this.set("stats", Value.fromString(value));
- }
- }
-
- get metadata(): string | null {
- let value = this.get("metadata");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set metadata(value: string | null) {
- if (!value) {
- this.unset("metadata");
- } else {
- this.set("metadata", Value.fromString(value));
- }
- }
-}
-
-export class Comment extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Comment entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Comment must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Comment", id.toString(), this);
- }
- }
-
- static load(id: string): Comment | null {
- return changetype(store.get("Comment", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get profile(): string {
- let value = this.get("profile");
- return value!.toString();
- }
-
- set profile(value: string) {
- this.set("profile", Value.fromString(value));
- }
-
- get onChainContentURI(): string {
- let value = this.get("onChainContentURI");
- return value!.toString();
- }
-
- set onChainContentURI(value: string) {
- this.set("onChainContentURI", Value.fromString(value));
- }
-
- get createdAt(): string {
- let value = this.get("createdAt");
- return value!.toString();
- }
-
- set createdAt(value: string) {
- this.set("createdAt", Value.fromString(value));
- }
-
- get mirrors(): Array {
- let value = this.get("mirrors");
- return value!.toStringArray();
- }
-
- set mirrors(value: Array) {
- this.set("mirrors", Value.fromStringArray(value));
- }
-
- get publication(): string {
- let value = this.get("publication");
- return value!.toString();
- }
-
- set publication(value: string) {
- this.set("publication", Value.fromString(value));
- }
-
- get referenceModule(): string | null {
- let value = this.get("referenceModule");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set referenceModule(value: string | null) {
- if (!value) {
- this.unset("referenceModule");
- } else {
- this.set("referenceModule", Value.fromString(value));
- }
- }
-
- get collectModule(): string {
- let value = this.get("collectModule");
- return value!.toString();
- }
-
- set collectModule(value: string) {
- this.set("collectModule", Value.fromString(value));
- }
-
- get profilePointed(): string {
- let value = this.get("profilePointed");
- return value!.toString();
- }
-
- set profilePointed(value: string) {
- this.set("profilePointed", Value.fromString(value));
- }
-
- get collectedBy(): string | null {
- let value = this.get("collectedBy");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set collectedBy(value: string | null) {
- if (!value) {
- this.unset("collectedBy");
- } else {
- this.set("collectedBy", Value.fromString(value));
- }
- }
-}
-
-export class Owner extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save Owner entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type Owner must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("Owner", id.toString(), this);
- }
- }
-
- static load(id: string): Owner | null {
- return changetype(store.get("Owner", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get amount(): BigDecimal {
- let value = this.get("amount");
- return value!.toBigDecimal();
- }
-
- set amount(value: BigDecimal) {
- this.set("amount", Value.fromBigDecimal(value));
- }
-
- get address(): string {
- let value = this.get("address");
- return value!.toString();
- }
-
- set address(value: string) {
- this.set("address", Value.fromString(value));
- }
-}
-
-export class NFTContent extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save NFTContent entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type NFTContent must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("NFTContent", id.toString(), this);
- }
- }
-
- static load(id: string): NFTContent | null {
- return changetype(store.get("NFTContent", id));
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get uri(): string {
- let value = this.get("uri");
- return value!.toString();
- }
-
- set uri(value: string) {
- this.set("uri", Value.fromString(value));
- }
-
- get metaType(): string {
- let value = this.get("metaType");
- return value!.toString();
- }
-
- set metaType(value: string) {
- this.set("metaType", Value.fromString(value));
- }
-
- get animatedUrl(): string | null {
- let value = this.get("animatedUrl");
- if (!value || value.kind == ValueKind.NULL) {
- return null;
- } else {
- return value.toString();
- }
- }
-
- set animatedUrl(value: string | null) {
- if (!value) {
- this.unset("animatedUrl");
- } else {
- this.set("animatedUrl", Value.fromString(value));
- }
- }
-}
-
-export class NFT extends Entity {
+export class MetadataOutput extends Entity {
constructor(id: string) {
super();
this.set("id", Value.fromString(id));
@@ -2976,18 +19,18 @@ export class NFT extends Entity {
save(): void {
let id = this.get("id");
- assert(id != null, "Cannot save NFT entity without an ID");
+ assert(id != null, "Cannot save MetadataOutput entity without an ID");
if (id) {
assert(
id.kind == ValueKind.STRING,
- `Entities of type NFT must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
+ `Entities of type MetadataOutput must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
);
- store.set("NFT", id.toString(), this);
+ store.set("MetadataOutput", id.toString(), this);
}
}
- static load(id: string): NFT | null {
- return changetype(store.get("NFT", id));
+ static load(id: string): MetadataOutput | null {
+ return changetype(store.get("MetadataOutput", id));
}
get id(): string {
@@ -2999,180 +42,76 @@ export class NFT extends Entity {
this.set("id", Value.fromString(value));
}
- get contractName(): string {
- let value = this.get("contractName");
- return value!.toString();
- }
-
- set contractName(value: string) {
- this.set("contractName", Value.fromString(value));
- }
-
- get contractAddress(): string {
- let value = this.get("contractAddress");
- return value!.toString();
- }
-
- set contractAddress(value: string) {
- this.set("contractAddress", Value.fromString(value));
- }
-
- get symbol(): string {
- let value = this.get("symbol");
- return value!.toString();
- }
-
- set symbol(value: string) {
- this.set("symbol", Value.fromString(value));
- }
-
- get tokenId(): string {
- let value = this.get("tokenId");
- return value!.toString();
- }
-
- set tokenId(value: string) {
- this.set("tokenId", Value.fromString(value));
- }
-
- get owners(): Array {
- let value = this.get("owners");
- return value!.toStringArray();
- }
-
- set owners(value: Array) {
- this.set("owners", Value.fromStringArray(value));
- }
-
- get name(): string {
+ get name(): string | null {
let value = this.get("name");
- return value!.toString();
+ if (!value || value.kind == ValueKind.NULL) {
+ return null;
+ } else {
+ return value.toString();
+ }
}
- set name(value: string) {
- this.set("name", Value.fromString(value));
+ set name(value: string | null) {
+ if (!value) {
+ this.unset("name");
+ } else {
+ this.set("name", Value.fromString(value));
+ }
}
- get description(): string {
+ get description(): string | null {
let value = this.get("description");
- return value!.toString();
- }
-
- set description(value: string) {
- this.set("description", Value.fromString(value));
- }
-
- get contentURI(): string {
- let value = this.get("contentURI");
- return value!.toString();
- }
-
- set contentURI(value: string) {
- this.set("contentURI", Value.fromString(value));
- }
-
- get originalContent(): string {
- let value = this.get("originalContent");
- return value!.toString();
- }
-
- set originalContent(value: string) {
- this.set("originalContent", Value.fromString(value));
- }
-
- get chainId(): string {
- let value = this.get("chainId");
- return value!.toString();
- }
-
- set chainId(value: string) {
- this.set("chainId", Value.fromString(value));
- }
-
- get collectionName(): string {
- let value = this.get("collectionName");
- return value!.toString();
- }
-
- set collectionName(value: string) {
- this.set("collectionName", Value.fromString(value));
- }
-
- get ercType(): string {
- let value = this.get("ercType");
- return value!.toString();
- }
-
- set ercType(value: string) {
- this.set("ercType", Value.fromString(value));
- }
-}
-
-export class ReservedClaimableHandle extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(
- id != null,
- "Cannot save ReservedClaimableHandle entity without an ID"
- );
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type ReservedClaimableHandle must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("ReservedClaimableHandle", id.toString(), this);
+ if (!value || value.kind == ValueKind.NULL) {
+ return null;
+ } else {
+ return value.toString();
}
}
- static load(id: string): ReservedClaimableHandle | null {
- return changetype(
- store.get("ReservedClaimableHandle", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
- return value!.toString();
- }
-
- set id(value: string) {
- this.set("id", Value.fromString(value));
- }
-
- get handle(): string {
- let value = this.get("handle");
- return value!.toString();
- }
-
- set handle(value: string) {
- this.set("handle", Value.fromString(value));
+ set description(value: string | null) {
+ if (!value) {
+ this.unset("description");
+ } else {
+ this.set("description", Value.fromString(value));
+ }
}
- get source(): string {
- let value = this.get("source");
- return value!.toString();
+ get content(): string | null {
+ let value = this.get("content");
+ if (!value || value.kind == ValueKind.NULL) {
+ return null;
+ } else {
+ return value.toString();
+ }
}
- set source(value: string) {
- this.set("source", Value.fromString(value));
+ set content(value: string | null) {
+ if (!value) {
+ this.unset("content");
+ } else {
+ this.set("content", Value.fromString(value));
+ }
}
- get expiry(): string {
- let value = this.get("expiry");
- return value!.toString();
+ get image(): string | null {
+ let value = this.get("image");
+ if (!value || value.kind == ValueKind.NULL) {
+ return null;
+ } else {
+ return value.toString();
+ }
}
- set expiry(value: string) {
- this.set("expiry", Value.fromString(value));
+ set image(value: string | null) {
+ if (!value) {
+ this.unset("image");
+ } else {
+ this.set("image", Value.fromString(value));
+ }
}
}
-export class ClaimableHandles extends Entity {
+export class Post extends Entity {
constructor(id: string) {
super();
this.set("id", Value.fromString(id));
@@ -3180,20 +119,18 @@ export class ClaimableHandles extends Entity {
save(): void {
let id = this.get("id");
- assert(id != null, "Cannot save ClaimableHandles entity without an ID");
+ assert(id != null, "Cannot save Post entity without an ID");
if (id) {
assert(
id.kind == ValueKind.STRING,
- `Entities of type ClaimableHandles must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
+ `Entities of type Post must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
);
- store.set("ClaimableHandles", id.toString(), this);
+ store.set("Post", id.toString(), this);
}
}
- static load(id: string): ClaimableHandles | null {
- return changetype(
- store.get("ClaimableHandles", id)
- );
+ static load(id: string): Post | null {
+ return changetype(store.get("Post", id));
}
get id(): string {
@@ -3205,78 +142,35 @@ export class ClaimableHandles extends Entity {
this.set("id", Value.fromString(value));
}
- get canClaimFreeTextHandle(): boolean {
- let value = this.get("canClaimFreeTextHandle");
- return value!.toBoolean();
- }
-
- set canClaimFreeTextHandle(value: boolean) {
- this.set("canClaimFreeTextHandle", Value.fromBoolean(value));
- }
-
- get claimableHandles(): Array {
- let value = this.get("claimableHandles");
- return value!.toStringArray();
- }
-
- set claimableHandles(value: Array) {
- this.set("claimableHandles", Value.fromStringArray(value));
- }
-}
-
-export class TransactionReceipt extends Entity {
- constructor(id: string) {
- super();
- this.set("id", Value.fromString(id));
- }
-
- save(): void {
- let id = this.get("id");
- assert(id != null, "Cannot save TransactionReceipt entity without an ID");
- if (id) {
- assert(
- id.kind == ValueKind.STRING,
- `Entities of type TransactionReceipt must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}`
- );
- store.set("TransactionReceipt", id.toString(), this);
- }
- }
-
- static load(id: string): TransactionReceipt | null {
- return changetype(
- store.get("TransactionReceipt", id)
- );
- }
-
- get id(): string {
- let value = this.get("id");
+ get profile(): string {
+ let value = this.get("profile");
return value!.toString();
}
- set id(value: string) {
- this.set("id", Value.fromString(value));
+ set profile(value: string) {
+ this.set("profile", Value.fromString(value));
}
- get to(): string {
- let value = this.get("to");
+ get onChainContentURI(): string {
+ let value = this.get("onChainContentURI");
return value!.toString();
}
- set to(value: string) {
- this.set("to", Value.fromString(value));
+ set onChainContentURI(value: string) {
+ this.set("onChainContentURI", Value.fromString(value));
}
- get from(): string {
- let value = this.get("from");
+ get createdAt(): string {
+ let value = this.get("createdAt");
return value!.toString();
}
- set from(value: string) {
- this.set("from", Value.fromString(value));
+ set createdAt(value: string) {
+ this.set("createdAt", Value.fromString(value));
}
- get contractAddress(): string | null {
- let value = this.get("contractAddress");
+ get collectedBy(): string | null {
+ let value = this.get("collectedBy");
if (!value || value.kind == ValueKind.NULL) {
return null;
} else {
@@ -3284,25 +178,16 @@ export class TransactionReceipt extends Entity {
}
}
- set contractAddress(value: string | null) {
+ set collectedBy(value: string | null) {
if (!value) {
- this.unset("contractAddress");
+ this.unset("collectedBy");
} else {
- this.set("contractAddress", Value.fromString(value));
+ this.set("collectedBy", Value.fromString(value));
}
}
- get transactionIndex(): i32 {
- let value = this.get("transactionIndex");
- return value!.toI32();
- }
-
- set transactionIndex(value: i32) {
- this.set("transactionIndex", Value.fromI32(value));
- }
-
- get root(): string | null {
- let value = this.get("root");
+ get metadata(): string | null {
+ let value = this.get("metadata");
if (!value || value.kind == ValueKind.NULL) {
return null;
} else {
@@ -3310,110 +195,11 @@ export class TransactionReceipt extends Entity {
}
}
- set root(value: string | null) {
+ set metadata(value: string | null) {
if (!value) {
- this.unset("root");
+ this.unset("metadata");
} else {
- this.set("root", Value.fromString(value));
+ this.set("metadata", Value.fromString(value));
}
}
-
- get gasUsed(): string {
- let value = this.get("gasUsed");
- return value!.toString();
- }
-
- set gasUsed(value: string) {
- this.set("gasUsed", Value.fromString(value));
- }
-
- get logsBloom(): string {
- let value = this.get("logsBloom");
- return value!.toString();
- }
-
- set logsBloom(value: string) {
- this.set("logsBloom", Value.fromString(value));
- }
-
- get blockHash(): string {
- let value = this.get("blockHash");
- return value!.toString();
- }
-
- set blockHash(value: string) {
- this.set("blockHash", Value.fromString(value));
- }
-
- get transactionHash(): string {
- let value = this.get("transactionHash");
- return value!.toString();
- }
-
- set transactionHash(value: string) {
- this.set("transactionHash", Value.fromString(value));
- }
-
- get blockNumber(): i32 {
- let value = this.get("blockNumber");
- return value!.toI32();
- }
-
- set blockNumber(value: i32) {
- this.set("blockNumber", Value.fromI32(value));
- }
-
- get confirmations(): i32 {
- let value = this.get("confirmations");
- return value!.toI32();
- }
-
- set confirmations(value: i32) {
- this.set("confirmations", Value.fromI32(value));
- }
-
- get cumulativeGasUsed(): string {
- let value = this.get("cumulativeGasUsed");
- return value!.toString();
- }
-
- set cumulativeGasUsed(value: string) {
- this.set("cumulativeGasUsed", Value.fromString(value));
- }
-
- get effectiveGasPrice(): string {
- let value = this.get("effectiveGasPrice");
- return value!.toString();
- }
-
- set effectiveGasPrice(value: string) {
- this.set("effectiveGasPrice", Value.fromString(value));
- }
-
- get byzantium(): boolean {
- let value = this.get("byzantium");
- return value!.toBoolean();
- }
-
- set byzantium(value: boolean) {
- this.set("byzantium", Value.fromBoolean(value));
- }
-
- get type(): i32 {
- let value = this.get("type");
- return value!.toI32();
- }
-
- set type(value: i32) {
- this.set("type", Value.fromI32(value));
- }
-
- get status(): i32 {
- let value = this.get("status");
- return value!.toI32();
- }
-
- set status(value: i32) {
- this.set("status", Value.fromI32(value));
- }
}
diff --git a/generated/templates.ts b/generated/templates.ts
new file mode 100644
index 0000000..96cf26d
--- /dev/null
+++ b/generated/templates.ts
@@ -0,0 +1,13 @@
+// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+
+import { DataSourceTemplate, DataSourceContext } from "@graphprotocol/graph-ts";
+
+export class MetadataTemplate extends DataSourceTemplate {
+ static create(cid: string): void {
+ DataSourceTemplate.create("MetadataTemplate", [cid]);
+ }
+
+ static createWithContext(cid: string, context: DataSourceContext): void {
+ DataSourceTemplate.createWithContext("MetadataTemplate", [cid], context);
+ }
+}
diff --git a/generated/templates/MetadataTemplate/Token.ts b/generated/templates/MetadataTemplate/Token.ts
new file mode 100644
index 0000000..e2d4517
--- /dev/null
+++ b/generated/templates/MetadataTemplate/Token.ts
@@ -0,0 +1,3961 @@
+// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+
+import {
+ ethereum,
+ JSONValue,
+ TypedMap,
+ Entity,
+ Bytes,
+ Address,
+ BigInt
+} from "@graphprotocol/graph-ts";
+
+export class Approval extends ethereum.Event {
+ get params(): Approval__Params {
+ return new Approval__Params(this);
+ }
+}
+
+export class Approval__Params {
+ _event: Approval;
+
+ constructor(event: Approval) {
+ this._event = event;
+ }
+
+ get owner(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get approved(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class ApprovalForAll extends ethereum.Event {
+ get params(): ApprovalForAll__Params {
+ return new ApprovalForAll__Params(this);
+ }
+}
+
+export class ApprovalForAll__Params {
+ _event: ApprovalForAll;
+
+ constructor(event: ApprovalForAll) {
+ this._event = event;
+ }
+
+ get owner(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get operator(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get approved(): boolean {
+ return this._event.parameters[2].value.toBoolean();
+ }
+}
+
+export class Transfer extends ethereum.Event {
+ get params(): Transfer__Params {
+ return new Transfer__Params(this);
+ }
+}
+
+export class Transfer__Params {
+ _event: Transfer;
+
+ constructor(event: Transfer) {
+ this._event = event;
+ }
+
+ get from(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class BaseInitialized extends ethereum.Event {
+ get params(): BaseInitialized__Params {
+ return new BaseInitialized__Params(this);
+ }
+}
+
+export class BaseInitialized__Params {
+ _event: BaseInitialized;
+
+ constructor(event: BaseInitialized) {
+ this._event = event;
+ }
+
+ get name(): string {
+ return this._event.parameters[0].value.toString();
+ }
+
+ get symbol(): string {
+ return this._event.parameters[1].value.toString();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class CollectModuleWhitelisted extends ethereum.Event {
+ get params(): CollectModuleWhitelisted__Params {
+ return new CollectModuleWhitelisted__Params(this);
+ }
+}
+
+export class CollectModuleWhitelisted__Params {
+ _event: CollectModuleWhitelisted;
+
+ constructor(event: CollectModuleWhitelisted) {
+ this._event = event;
+ }
+
+ get collectModule(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get whitelisted(): boolean {
+ return this._event.parameters[1].value.toBoolean();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class CollectNFTDeployed extends ethereum.Event {
+ get params(): CollectNFTDeployed__Params {
+ return new CollectNFTDeployed__Params(this);
+ }
+}
+
+export class CollectNFTDeployed__Params {
+ _event: CollectNFTDeployed;
+
+ constructor(event: CollectNFTDeployed) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get collectNFT(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class CollectNFTInitialized extends ethereum.Event {
+ get params(): CollectNFTInitialized__Params {
+ return new CollectNFTInitialized__Params(this);
+ }
+}
+
+export class CollectNFTInitialized__Params {
+ _event: CollectNFTInitialized;
+
+ constructor(event: CollectNFTInitialized) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class CollectNFTTransferred extends ethereum.Event {
+ get params(): CollectNFTTransferred__Params {
+ return new CollectNFTTransferred__Params(this);
+ }
+}
+
+export class CollectNFTTransferred__Params {
+ _event: CollectNFTTransferred;
+
+ constructor(event: CollectNFTTransferred) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get collectNFTId(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+
+ get from(): Address {
+ return this._event.parameters[3].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._event.parameters[4].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[5].value.toBigInt();
+ }
+}
+
+export class DefaultProfileSet extends ethereum.Event {
+ get params(): DefaultProfileSet__Params {
+ return new DefaultProfileSet__Params(this);
+ }
+}
+
+export class DefaultProfileSet__Params {
+ _event: DefaultProfileSet;
+
+ constructor(event: DefaultProfileSet) {
+ this._event = event;
+ }
+
+ get wallet(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class FollowNFTTransferred extends ethereum.Event {
+ get params(): FollowNFTTransferred__Params {
+ return new FollowNFTTransferred__Params(this);
+ }
+}
+
+export class FollowNFTTransferred__Params {
+ _event: FollowNFTTransferred;
+
+ constructor(event: FollowNFTTransferred) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get followNFTId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get from(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._event.parameters[3].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[4].value.toBigInt();
+ }
+}
+
+export class Collected extends ethereum.Event {
+ get params(): Collected__Params {
+ return new Collected__Params(this);
+ }
+}
+
+export class Collected__Params {
+ _event: Collected;
+
+ constructor(event: Collected) {
+ this._event = event;
+ }
+
+ get collector(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+
+ get rootProfileId(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+
+ get rootPubId(): BigInt {
+ return this._event.parameters[4].value.toBigInt();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[5].value.toBigInt();
+ }
+}
+
+export class CommentCreated extends ethereum.Event {
+ get params(): CommentCreated__Params {
+ return new CommentCreated__Params(this);
+ }
+}
+
+export class CommentCreated__Params {
+ _event: CommentCreated;
+
+ constructor(event: CommentCreated) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get contentURI(): string {
+ return this._event.parameters[2].value.toString();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this._event.parameters[4].value.toBigInt();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this._event.parameters[5].value.toBytes();
+ }
+
+ get collectModule(): Address {
+ return this._event.parameters[6].value.toAddress();
+ }
+
+ get collectModuleReturnData(): Bytes {
+ return this._event.parameters[7].value.toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this._event.parameters[8].value.toAddress();
+ }
+
+ get referenceModuleReturnData(): Bytes {
+ return this._event.parameters[9].value.toBytes();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[10].value.toBigInt();
+ }
+}
+
+export class DispatcherSet extends ethereum.Event {
+ get params(): DispatcherSet__Params {
+ return new DispatcherSet__Params(this);
+ }
+}
+
+export class DispatcherSet__Params {
+ _event: DispatcherSet;
+
+ constructor(event: DispatcherSet) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get dispatcher(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class EmergencyAdminSet extends ethereum.Event {
+ get params(): EmergencyAdminSet__Params {
+ return new EmergencyAdminSet__Params(this);
+ }
+}
+
+export class EmergencyAdminSet__Params {
+ _event: EmergencyAdminSet;
+
+ constructor(event: EmergencyAdminSet) {
+ this._event = event;
+ }
+
+ get caller(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get oldEmergencyAdmin(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get newEmergencyAdmin(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class FeeModuleBaseConstructed extends ethereum.Event {
+ get params(): FeeModuleBaseConstructed__Params {
+ return new FeeModuleBaseConstructed__Params(this);
+ }
+}
+
+export class FeeModuleBaseConstructed__Params {
+ _event: FeeModuleBaseConstructed;
+
+ constructor(event: FeeModuleBaseConstructed) {
+ this._event = event;
+ }
+
+ get moduleGlobals(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+}
+
+export class FollowModuleSet extends ethereum.Event {
+ get params(): FollowModuleSet__Params {
+ return new FollowModuleSet__Params(this);
+ }
+}
+
+export class FollowModuleSet__Params {
+ _event: FollowModuleSet;
+
+ constructor(event: FollowModuleSet) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get followModule(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get followModuleReturnData(): Bytes {
+ return this._event.parameters[2].value.toBytes();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class FollowModuleWhitelisted extends ethereum.Event {
+ get params(): FollowModuleWhitelisted__Params {
+ return new FollowModuleWhitelisted__Params(this);
+ }
+}
+
+export class FollowModuleWhitelisted__Params {
+ _event: FollowModuleWhitelisted;
+
+ constructor(event: FollowModuleWhitelisted) {
+ this._event = event;
+ }
+
+ get followModule(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get whitelisted(): boolean {
+ return this._event.parameters[1].value.toBoolean();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class FollowNFTDelegatedPowerChanged extends ethereum.Event {
+ get params(): FollowNFTDelegatedPowerChanged__Params {
+ return new FollowNFTDelegatedPowerChanged__Params(this);
+ }
+}
+
+export class FollowNFTDelegatedPowerChanged__Params {
+ _event: FollowNFTDelegatedPowerChanged;
+
+ constructor(event: FollowNFTDelegatedPowerChanged) {
+ this._event = event;
+ }
+
+ get delegate(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get newPower(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class FollowNFTDeployed extends ethereum.Event {
+ get params(): FollowNFTDeployed__Params {
+ return new FollowNFTDeployed__Params(this);
+ }
+}
+
+export class FollowNFTDeployed__Params {
+ _event: FollowNFTDeployed;
+
+ constructor(event: FollowNFTDeployed) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get followNFT(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class FollowNFTInitialized extends ethereum.Event {
+ get params(): FollowNFTInitialized__Params {
+ return new FollowNFTInitialized__Params(this);
+ }
+}
+
+export class FollowNFTInitialized__Params {
+ _event: FollowNFTInitialized;
+
+ constructor(event: FollowNFTInitialized) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+}
+
+export class FollowNFTTransferred1 extends ethereum.Event {
+ get params(): FollowNFTTransferred1__Params {
+ return new FollowNFTTransferred1__Params(this);
+ }
+}
+
+export class FollowNFTTransferred1__Params {
+ _event: FollowNFTTransferred1;
+
+ constructor(event: FollowNFTTransferred1) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get followNFTId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get from(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._event.parameters[3].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[4].value.toBigInt();
+ }
+}
+
+export class FollowNFTURISet extends ethereum.Event {
+ get params(): FollowNFTURISet__Params {
+ return new FollowNFTURISet__Params(this);
+ }
+}
+
+export class FollowNFTURISet__Params {
+ _event: FollowNFTURISet;
+
+ constructor(event: FollowNFTURISet) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get followNFTURI(): string {
+ return this._event.parameters[1].value.toString();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class Followed extends ethereum.Event {
+ get params(): Followed__Params {
+ return new Followed__Params(this);
+ }
+}
+
+export class Followed__Params {
+ _event: Followed;
+
+ constructor(event: Followed) {
+ this._event = event;
+ }
+
+ get follower(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get profileIds(): Array {
+ return this._event.parameters[1].value.toBigIntArray();
+ }
+
+ get followModuleDatas(): Array {
+ return this._event.parameters[2].value.toBytesArray();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class FollowsApproved extends ethereum.Event {
+ get params(): FollowsApproved__Params {
+ return new FollowsApproved__Params(this);
+ }
+}
+
+export class FollowsApproved__Params {
+ _event: FollowsApproved;
+
+ constructor(event: FollowsApproved) {
+ this._event = event;
+ }
+
+ get owner(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get addresses(): Array {
+ return this._event.parameters[2].value.toAddressArray();
+ }
+
+ get approved(): Array {
+ return this._event.parameters[3].value.toBooleanArray();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[4].value.toBigInt();
+ }
+}
+
+export class GovernanceSet extends ethereum.Event {
+ get params(): GovernanceSet__Params {
+ return new GovernanceSet__Params(this);
+ }
+}
+
+export class GovernanceSet__Params {
+ _event: GovernanceSet;
+
+ constructor(event: GovernanceSet) {
+ this._event = event;
+ }
+
+ get caller(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get prevGovernance(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get newGovernance(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class MirrorCreated extends ethereum.Event {
+ get params(): MirrorCreated__Params {
+ return new MirrorCreated__Params(this);
+ }
+}
+
+export class MirrorCreated__Params {
+ _event: MirrorCreated;
+
+ constructor(event: MirrorCreated) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this._event.parameters[4].value.toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this._event.parameters[5].value.toAddress();
+ }
+
+ get referenceModuleReturnData(): Bytes {
+ return this._event.parameters[6].value.toBytes();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[7].value.toBigInt();
+ }
+}
+
+export class ModuleBaseConstructed extends ethereum.Event {
+ get params(): ModuleBaseConstructed__Params {
+ return new ModuleBaseConstructed__Params(this);
+ }
+}
+
+export class ModuleBaseConstructed__Params {
+ _event: ModuleBaseConstructed;
+
+ constructor(event: ModuleBaseConstructed) {
+ this._event = event;
+ }
+
+ get hub(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+}
+
+export class ModuleGlobalsCurrencyWhitelisted extends ethereum.Event {
+ get params(): ModuleGlobalsCurrencyWhitelisted__Params {
+ return new ModuleGlobalsCurrencyWhitelisted__Params(this);
+ }
+}
+
+export class ModuleGlobalsCurrencyWhitelisted__Params {
+ _event: ModuleGlobalsCurrencyWhitelisted;
+
+ constructor(event: ModuleGlobalsCurrencyWhitelisted) {
+ this._event = event;
+ }
+
+ get currency(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get prevWhitelisted(): boolean {
+ return this._event.parameters[1].value.toBoolean();
+ }
+
+ get whitelisted(): boolean {
+ return this._event.parameters[2].value.toBoolean();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class ModuleGlobalsGovernanceSet extends ethereum.Event {
+ get params(): ModuleGlobalsGovernanceSet__Params {
+ return new ModuleGlobalsGovernanceSet__Params(this);
+ }
+}
+
+export class ModuleGlobalsGovernanceSet__Params {
+ _event: ModuleGlobalsGovernanceSet;
+
+ constructor(event: ModuleGlobalsGovernanceSet) {
+ this._event = event;
+ }
+
+ get prevGovernance(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get newGovernance(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class ModuleGlobalsTreasuryFeeSet extends ethereum.Event {
+ get params(): ModuleGlobalsTreasuryFeeSet__Params {
+ return new ModuleGlobalsTreasuryFeeSet__Params(this);
+ }
+}
+
+export class ModuleGlobalsTreasuryFeeSet__Params {
+ _event: ModuleGlobalsTreasuryFeeSet;
+
+ constructor(event: ModuleGlobalsTreasuryFeeSet) {
+ this._event = event;
+ }
+
+ get prevTreasuryFee(): i32 {
+ return this._event.parameters[0].value.toI32();
+ }
+
+ get newTreasuryFee(): i32 {
+ return this._event.parameters[1].value.toI32();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class ModuleGlobalsTreasurySet extends ethereum.Event {
+ get params(): ModuleGlobalsTreasurySet__Params {
+ return new ModuleGlobalsTreasurySet__Params(this);
+ }
+}
+
+export class ModuleGlobalsTreasurySet__Params {
+ _event: ModuleGlobalsTreasurySet;
+
+ constructor(event: ModuleGlobalsTreasurySet) {
+ this._event = event;
+ }
+
+ get prevTreasury(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get newTreasury(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class PostCreated extends ethereum.Event {
+ get params(): PostCreated__Params {
+ return new PostCreated__Params(this);
+ }
+}
+
+export class PostCreated__Params {
+ _event: PostCreated;
+
+ constructor(event: PostCreated) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._event.parameters[1].value.toBigInt();
+ }
+
+ get contentURI(): string {
+ return this._event.parameters[2].value.toString();
+ }
+
+ get collectModule(): Address {
+ return this._event.parameters[3].value.toAddress();
+ }
+
+ get collectModuleReturnData(): Bytes {
+ return this._event.parameters[4].value.toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this._event.parameters[5].value.toAddress();
+ }
+
+ get referenceModuleReturnData(): Bytes {
+ return this._event.parameters[6].value.toBytes();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[7].value.toBigInt();
+ }
+}
+
+export class ProfileCreated extends ethereum.Event {
+ get params(): ProfileCreated__Params {
+ return new ProfileCreated__Params(this);
+ }
+}
+
+export class ProfileCreated__Params {
+ _event: ProfileCreated;
+
+ constructor(event: ProfileCreated) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get creator(): Address {
+ return this._event.parameters[1].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._event.parameters[2].value.toAddress();
+ }
+
+ get handle(): string {
+ return this._event.parameters[3].value.toString();
+ }
+
+ get imageURI(): string {
+ return this._event.parameters[4].value.toString();
+ }
+
+ get followModule(): Address {
+ return this._event.parameters[5].value.toAddress();
+ }
+
+ get followModuleReturnData(): Bytes {
+ return this._event.parameters[6].value.toBytes();
+ }
+
+ get followNFTURI(): string {
+ return this._event.parameters[7].value.toString();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[8].value.toBigInt();
+ }
+}
+
+export class ProfileCreatorWhitelisted extends ethereum.Event {
+ get params(): ProfileCreatorWhitelisted__Params {
+ return new ProfileCreatorWhitelisted__Params(this);
+ }
+}
+
+export class ProfileCreatorWhitelisted__Params {
+ _event: ProfileCreatorWhitelisted;
+
+ constructor(event: ProfileCreatorWhitelisted) {
+ this._event = event;
+ }
+
+ get profileCreator(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get whitelisted(): boolean {
+ return this._event.parameters[1].value.toBoolean();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class ProfileImageURISet extends ethereum.Event {
+ get params(): ProfileImageURISet__Params {
+ return new ProfileImageURISet__Params(this);
+ }
+}
+
+export class ProfileImageURISet__Params {
+ _event: ProfileImageURISet;
+
+ constructor(event: ProfileImageURISet) {
+ this._event = event;
+ }
+
+ get profileId(): BigInt {
+ return this._event.parameters[0].value.toBigInt();
+ }
+
+ get imageURI(): string {
+ return this._event.parameters[1].value.toString();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class ReferenceModuleWhitelisted extends ethereum.Event {
+ get params(): ReferenceModuleWhitelisted__Params {
+ return new ReferenceModuleWhitelisted__Params(this);
+ }
+}
+
+export class ReferenceModuleWhitelisted__Params {
+ _event: ReferenceModuleWhitelisted;
+
+ constructor(event: ReferenceModuleWhitelisted) {
+ this._event = event;
+ }
+
+ get referenceModule(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get whitelisted(): boolean {
+ return this._event.parameters[1].value.toBoolean();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[2].value.toBigInt();
+ }
+}
+
+export class StateSet extends ethereum.Event {
+ get params(): StateSet__Params {
+ return new StateSet__Params(this);
+ }
+}
+
+export class StateSet__Params {
+ _event: StateSet;
+
+ constructor(event: StateSet) {
+ this._event = event;
+ }
+
+ get caller(): Address {
+ return this._event.parameters[0].value.toAddress();
+ }
+
+ get prevState(): i32 {
+ return this._event.parameters[1].value.toI32();
+ }
+
+ get newState(): i32 {
+ return this._event.parameters[2].value.toI32();
+ }
+
+ get timestamp(): BigInt {
+ return this._event.parameters[3].value.toBigInt();
+ }
+}
+
+export class Token__getProfileResultValue0Struct extends ethereum.Tuple {
+ get pubCount(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get followModule(): Address {
+ return this[1].toAddress();
+ }
+
+ get followNFT(): Address {
+ return this[2].toAddress();
+ }
+
+ get handle(): string {
+ return this[3].toString();
+ }
+
+ get imageURI(): string {
+ return this[4].toString();
+ }
+
+ get followNFTURI(): string {
+ return this[5].toString();
+ }
+}
+
+export class Token__getPubResultValue0Struct extends ethereum.Tuple {
+ get profileIdPointed(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this[1].toBigInt();
+ }
+
+ get contentURI(): string {
+ return this[2].toString();
+ }
+
+ get referenceModule(): Address {
+ return this[3].toAddress();
+ }
+
+ get collectModule(): Address {
+ return this[4].toAddress();
+ }
+
+ get collectNFT(): Address {
+ return this[5].toAddress();
+ }
+}
+
+export class Token__getPubPointerResult {
+ value0: BigInt;
+ value1: BigInt;
+
+ constructor(value0: BigInt, value1: BigInt) {
+ this.value0 = value0;
+ this.value1 = value1;
+ }
+
+ toMap(): TypedMap {
+ let map = new TypedMap();
+ map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0));
+ map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1));
+ return map;
+ }
+
+ getValue0(): BigInt {
+ return this.value0;
+ }
+
+ getValue1(): BigInt {
+ return this.value1;
+ }
+}
+
+export class Token__tokenDataOfResultValue0Struct extends ethereum.Tuple {
+ get owner(): Address {
+ return this[0].toAddress();
+ }
+
+ get mintTimestamp(): BigInt {
+ return this[1].toBigInt();
+ }
+}
+
+export class Token extends ethereum.SmartContract {
+ static bind(address: Address): Token {
+ return new Token("Token", address);
+ }
+
+ balanceOf(owner: Address): BigInt {
+ let result = super.call("balanceOf", "balanceOf(address):(uint256)", [
+ ethereum.Value.fromAddress(owner)
+ ]);
+
+ return result[0].toBigInt();
+ }
+
+ try_balanceOf(owner: Address): ethereum.CallResult {
+ let result = super.tryCall("balanceOf", "balanceOf(address):(uint256)", [
+ ethereum.Value.fromAddress(owner)
+ ]);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ getApproved(tokenId: BigInt): Address {
+ let result = super.call("getApproved", "getApproved(uint256):(address)", [
+ ethereum.Value.fromUnsignedBigInt(tokenId)
+ ]);
+
+ return result[0].toAddress();
+ }
+
+ try_getApproved(tokenId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getApproved",
+ "getApproved(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(tokenId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getCollectModule(profileId: BigInt, pubId: BigInt): Address {
+ let result = super.call(
+ "getCollectModule",
+ "getCollectModule(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return result[0].toAddress();
+ }
+
+ try_getCollectModule(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getCollectModule",
+ "getCollectModule(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getCollectNFT(profileId: BigInt, pubId: BigInt): Address {
+ let result = super.call(
+ "getCollectNFT",
+ "getCollectNFT(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return result[0].toAddress();
+ }
+
+ try_getCollectNFT(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getCollectNFT",
+ "getCollectNFT(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getContentURI(profileId: BigInt, pubId: BigInt): string {
+ let result = super.call(
+ "getContentURI",
+ "getContentURI(uint256,uint256):(string)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return result[0].toString();
+ }
+
+ try_getContentURI(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getContentURI",
+ "getContentURI(uint256,uint256):(string)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ getDispatcher(profileId: BigInt): Address {
+ let result = super.call(
+ "getDispatcher",
+ "getDispatcher(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+
+ return result[0].toAddress();
+ }
+
+ try_getDispatcher(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getDispatcher",
+ "getDispatcher(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getDomainSeparator(): Bytes {
+ let result = super.call(
+ "getDomainSeparator",
+ "getDomainSeparator():(bytes32)",
+ []
+ );
+
+ return result[0].toBytes();
+ }
+
+ try_getDomainSeparator(): ethereum.CallResult {
+ let result = super.tryCall(
+ "getDomainSeparator",
+ "getDomainSeparator():(bytes32)",
+ []
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBytes());
+ }
+
+ getFollowModule(profileId: BigInt): Address {
+ let result = super.call(
+ "getFollowModule",
+ "getFollowModule(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+
+ return result[0].toAddress();
+ }
+
+ try_getFollowModule(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getFollowModule",
+ "getFollowModule(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getFollowNFT(profileId: BigInt): Address {
+ let result = super.call("getFollowNFT", "getFollowNFT(uint256):(address)", [
+ ethereum.Value.fromUnsignedBigInt(profileId)
+ ]);
+
+ return result[0].toAddress();
+ }
+
+ try_getFollowNFT(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getFollowNFT",
+ "getFollowNFT(uint256):(address)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getFollowNFTURI(profileId: BigInt): string {
+ let result = super.call(
+ "getFollowNFTURI",
+ "getFollowNFTURI(uint256):(string)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+
+ return result[0].toString();
+ }
+
+ try_getFollowNFTURI(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getFollowNFTURI",
+ "getFollowNFTURI(uint256):(string)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ getGovernance(): Address {
+ let result = super.call("getGovernance", "getGovernance():(address)", []);
+
+ return result[0].toAddress();
+ }
+
+ try_getGovernance(): ethereum.CallResult {
+ let result = super.tryCall(
+ "getGovernance",
+ "getGovernance():(address)",
+ []
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getHandle(profileId: BigInt): string {
+ let result = super.call("getHandle", "getHandle(uint256):(string)", [
+ ethereum.Value.fromUnsignedBigInt(profileId)
+ ]);
+
+ return result[0].toString();
+ }
+
+ try_getHandle(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall("getHandle", "getHandle(uint256):(string)", [
+ ethereum.Value.fromUnsignedBigInt(profileId)
+ ]);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ getProfile(profileId: BigInt): Token__getProfileResultValue0Struct {
+ let result = super.call(
+ "getProfile",
+ "getProfile(uint256):((uint256,address,address,string,string,string))",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+
+ return changetype(result[0].toTuple());
+ }
+
+ try_getProfile(
+ profileId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getProfile",
+ "getProfile(uint256):((uint256,address,address,string,string,string))",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(
+ changetype(value[0].toTuple())
+ );
+ }
+
+ getProfileIdByHandle(handle: string): BigInt {
+ let result = super.call(
+ "getProfileIdByHandle",
+ "getProfileIdByHandle(string):(uint256)",
+ [ethereum.Value.fromString(handle)]
+ );
+
+ return result[0].toBigInt();
+ }
+
+ try_getProfileIdByHandle(handle: string): ethereum.CallResult {
+ let result = super.tryCall(
+ "getProfileIdByHandle",
+ "getProfileIdByHandle(string):(uint256)",
+ [ethereum.Value.fromString(handle)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ getPub(profileId: BigInt, pubId: BigInt): Token__getPubResultValue0Struct {
+ let result = super.call(
+ "getPub",
+ "getPub(uint256,uint256):((uint256,uint256,string,address,address,address))",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return changetype(result[0].toTuple());
+ }
+
+ try_getPub(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getPub",
+ "getPub(uint256,uint256):((uint256,uint256,string,address,address,address))",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(
+ changetype(value[0].toTuple())
+ );
+ }
+
+ getPubCount(profileId: BigInt): BigInt {
+ let result = super.call("getPubCount", "getPubCount(uint256):(uint256)", [
+ ethereum.Value.fromUnsignedBigInt(profileId)
+ ]);
+
+ return result[0].toBigInt();
+ }
+
+ try_getPubCount(profileId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getPubCount",
+ "getPubCount(uint256):(uint256)",
+ [ethereum.Value.fromUnsignedBigInt(profileId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ getPubPointer(profileId: BigInt, pubId: BigInt): Token__getPubPointerResult {
+ let result = super.call(
+ "getPubPointer",
+ "getPubPointer(uint256,uint256):(uint256,uint256)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return new Token__getPubPointerResult(
+ result[0].toBigInt(),
+ result[1].toBigInt()
+ );
+ }
+
+ try_getPubPointer(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getPubPointer",
+ "getPubPointer(uint256,uint256):(uint256,uint256)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(
+ new Token__getPubPointerResult(value[0].toBigInt(), value[1].toBigInt())
+ );
+ }
+
+ getPubType(profileId: BigInt, pubId: BigInt): i32 {
+ let result = super.call(
+ "getPubType",
+ "getPubType(uint256,uint256):(uint8)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return result[0].toI32();
+ }
+
+ try_getPubType(profileId: BigInt, pubId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "getPubType",
+ "getPubType(uint256,uint256):(uint8)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toI32());
+ }
+
+ getReferenceModule(profileId: BigInt, pubId: BigInt): Address {
+ let result = super.call(
+ "getReferenceModule",
+ "getReferenceModule(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+
+ return result[0].toAddress();
+ }
+
+ try_getReferenceModule(
+ profileId: BigInt,
+ pubId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "getReferenceModule",
+ "getReferenceModule(uint256,uint256):(address)",
+ [
+ ethereum.Value.fromUnsignedBigInt(profileId),
+ ethereum.Value.fromUnsignedBigInt(pubId)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ getState(): i32 {
+ let result = super.call("getState", "getState():(uint8)", []);
+
+ return result[0].toI32();
+ }
+
+ try_getState(): ethereum.CallResult {
+ let result = super.tryCall("getState", "getState():(uint8)", []);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toI32());
+ }
+
+ isApprovedForAll(owner: Address, operator: Address): boolean {
+ let result = super.call(
+ "isApprovedForAll",
+ "isApprovedForAll(address,address):(bool)",
+ [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(operator)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_isApprovedForAll(
+ owner: Address,
+ operator: Address
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "isApprovedForAll",
+ "isApprovedForAll(address,address):(bool)",
+ [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(operator)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ isCollectModuleWhitelisted(collectModule: Address): boolean {
+ let result = super.call(
+ "isCollectModuleWhitelisted",
+ "isCollectModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(collectModule)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_isCollectModuleWhitelisted(
+ collectModule: Address
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "isCollectModuleWhitelisted",
+ "isCollectModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(collectModule)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ isFollowModuleWhitelisted(followModule: Address): boolean {
+ let result = super.call(
+ "isFollowModuleWhitelisted",
+ "isFollowModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(followModule)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_isFollowModuleWhitelisted(
+ followModule: Address
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "isFollowModuleWhitelisted",
+ "isFollowModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(followModule)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ isProfileCreatorWhitelisted(profileCreator: Address): boolean {
+ let result = super.call(
+ "isProfileCreatorWhitelisted",
+ "isProfileCreatorWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(profileCreator)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_isProfileCreatorWhitelisted(
+ profileCreator: Address
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "isProfileCreatorWhitelisted",
+ "isProfileCreatorWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(profileCreator)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ isReferenceModuleWhitelisted(referenceModule: Address): boolean {
+ let result = super.call(
+ "isReferenceModuleWhitelisted",
+ "isReferenceModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(referenceModule)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_isReferenceModuleWhitelisted(
+ referenceModule: Address
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "isReferenceModuleWhitelisted",
+ "isReferenceModuleWhitelisted(address):(bool)",
+ [ethereum.Value.fromAddress(referenceModule)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ mintTimestampOf(tokenId: BigInt): BigInt {
+ let result = super.call(
+ "mintTimestampOf",
+ "mintTimestampOf(uint256):(uint256)",
+ [ethereum.Value.fromUnsignedBigInt(tokenId)]
+ );
+
+ return result[0].toBigInt();
+ }
+
+ try_mintTimestampOf(tokenId: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "mintTimestampOf",
+ "mintTimestampOf(uint256):(uint256)",
+ [ethereum.Value.fromUnsignedBigInt(tokenId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ name(): string {
+ let result = super.call("name", "name():(string)", []);
+
+ return result[0].toString();
+ }
+
+ try_name(): ethereum.CallResult {
+ let result = super.tryCall("name", "name():(string)", []);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ ownerOf(tokenId: BigInt): Address {
+ let result = super.call("ownerOf", "ownerOf(uint256):(address)", [
+ ethereum.Value.fromUnsignedBigInt(tokenId)
+ ]);
+
+ return result[0].toAddress();
+ }
+
+ try_ownerOf(tokenId: BigInt): ethereum.CallResult {
+ let result = super.tryCall("ownerOf", "ownerOf(uint256):(address)", [
+ ethereum.Value.fromUnsignedBigInt(tokenId)
+ ]);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toAddress());
+ }
+
+ sigNonces(param0: Address): BigInt {
+ let result = super.call("sigNonces", "sigNonces(address):(uint256)", [
+ ethereum.Value.fromAddress(param0)
+ ]);
+
+ return result[0].toBigInt();
+ }
+
+ try_sigNonces(param0: Address): ethereum.CallResult {
+ let result = super.tryCall("sigNonces", "sigNonces(address):(uint256)", [
+ ethereum.Value.fromAddress(param0)
+ ]);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ supportsInterface(interfaceId: Bytes): boolean {
+ let result = super.call(
+ "supportsInterface",
+ "supportsInterface(bytes4):(bool)",
+ [ethereum.Value.fromFixedBytes(interfaceId)]
+ );
+
+ return result[0].toBoolean();
+ }
+
+ try_supportsInterface(interfaceId: Bytes): ethereum.CallResult {
+ let result = super.tryCall(
+ "supportsInterface",
+ "supportsInterface(bytes4):(bool)",
+ [ethereum.Value.fromFixedBytes(interfaceId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBoolean());
+ }
+
+ symbol(): string {
+ let result = super.call("symbol", "symbol():(string)", []);
+
+ return result[0].toString();
+ }
+
+ try_symbol(): ethereum.CallResult {
+ let result = super.tryCall("symbol", "symbol():(string)", []);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ tokenByIndex(index: BigInt): BigInt {
+ let result = super.call("tokenByIndex", "tokenByIndex(uint256):(uint256)", [
+ ethereum.Value.fromUnsignedBigInt(index)
+ ]);
+
+ return result[0].toBigInt();
+ }
+
+ try_tokenByIndex(index: BigInt): ethereum.CallResult {
+ let result = super.tryCall(
+ "tokenByIndex",
+ "tokenByIndex(uint256):(uint256)",
+ [ethereum.Value.fromUnsignedBigInt(index)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ tokenDataOf(tokenId: BigInt): Token__tokenDataOfResultValue0Struct {
+ let result = super.call(
+ "tokenDataOf",
+ "tokenDataOf(uint256):((address,uint96))",
+ [ethereum.Value.fromUnsignedBigInt(tokenId)]
+ );
+
+ return changetype(
+ result[0].toTuple()
+ );
+ }
+
+ try_tokenDataOf(
+ tokenId: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "tokenDataOf",
+ "tokenDataOf(uint256):((address,uint96))",
+ [ethereum.Value.fromUnsignedBigInt(tokenId)]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(
+ changetype(value[0].toTuple())
+ );
+ }
+
+ tokenOfOwnerByIndex(owner: Address, index: BigInt): BigInt {
+ let result = super.call(
+ "tokenOfOwnerByIndex",
+ "tokenOfOwnerByIndex(address,uint256):(uint256)",
+ [
+ ethereum.Value.fromAddress(owner),
+ ethereum.Value.fromUnsignedBigInt(index)
+ ]
+ );
+
+ return result[0].toBigInt();
+ }
+
+ try_tokenOfOwnerByIndex(
+ owner: Address,
+ index: BigInt
+ ): ethereum.CallResult {
+ let result = super.tryCall(
+ "tokenOfOwnerByIndex",
+ "tokenOfOwnerByIndex(address,uint256):(uint256)",
+ [
+ ethereum.Value.fromAddress(owner),
+ ethereum.Value.fromUnsignedBigInt(index)
+ ]
+ );
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+
+ tokenURI(tokenId: BigInt): string {
+ let result = super.call("tokenURI", "tokenURI(uint256):(string)", [
+ ethereum.Value.fromUnsignedBigInt(tokenId)
+ ]);
+
+ return result[0].toString();
+ }
+
+ try_tokenURI(tokenId: BigInt): ethereum.CallResult {
+ let result = super.tryCall("tokenURI", "tokenURI(uint256):(string)", [
+ ethereum.Value.fromUnsignedBigInt(tokenId)
+ ]);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toString());
+ }
+
+ totalSupply(): BigInt {
+ let result = super.call("totalSupply", "totalSupply():(uint256)", []);
+
+ return result[0].toBigInt();
+ }
+
+ try_totalSupply(): ethereum.CallResult {
+ let result = super.tryCall("totalSupply", "totalSupply():(uint256)", []);
+ if (result.reverted) {
+ return new ethereum.CallResult();
+ }
+ let value = result.value;
+ return ethereum.CallResult.fromValue(value[0].toBigInt());
+ }
+}
+
+export class ConstructorCall extends ethereum.Call {
+ get inputs(): ConstructorCall__Inputs {
+ return new ConstructorCall__Inputs(this);
+ }
+
+ get outputs(): ConstructorCall__Outputs {
+ return new ConstructorCall__Outputs(this);
+ }
+}
+
+export class ConstructorCall__Inputs {
+ _call: ConstructorCall;
+
+ constructor(call: ConstructorCall) {
+ this._call = call;
+ }
+
+ get followNFTImpl(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get collectNFTImpl(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+}
+
+export class ConstructorCall__Outputs {
+ _call: ConstructorCall;
+
+ constructor(call: ConstructorCall) {
+ this._call = call;
+ }
+}
+
+export class ApproveCall extends ethereum.Call {
+ get inputs(): ApproveCall__Inputs {
+ return new ApproveCall__Inputs(this);
+ }
+
+ get outputs(): ApproveCall__Outputs {
+ return new ApproveCall__Outputs(this);
+ }
+}
+
+export class ApproveCall__Inputs {
+ _call: ApproveCall;
+
+ constructor(call: ApproveCall) {
+ this._call = call;
+ }
+
+ get to(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[1].value.toBigInt();
+ }
+}
+
+export class ApproveCall__Outputs {
+ _call: ApproveCall;
+
+ constructor(call: ApproveCall) {
+ this._call = call;
+ }
+}
+
+export class BurnCall extends ethereum.Call {
+ get inputs(): BurnCall__Inputs {
+ return new BurnCall__Inputs(this);
+ }
+
+ get outputs(): BurnCall__Outputs {
+ return new BurnCall__Outputs(this);
+ }
+}
+
+export class BurnCall__Inputs {
+ _call: BurnCall;
+
+ constructor(call: BurnCall) {
+ this._call = call;
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+}
+
+export class BurnCall__Outputs {
+ _call: BurnCall;
+
+ constructor(call: BurnCall) {
+ this._call = call;
+ }
+}
+
+export class BurnWithSigCall extends ethereum.Call {
+ get inputs(): BurnWithSigCall__Inputs {
+ return new BurnWithSigCall__Inputs(this);
+ }
+
+ get outputs(): BurnWithSigCall__Outputs {
+ return new BurnWithSigCall__Outputs(this);
+ }
+}
+
+export class BurnWithSigCall__Inputs {
+ _call: BurnWithSigCall;
+
+ constructor(call: BurnWithSigCall) {
+ this._call = call;
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get sig(): BurnWithSigCallSigStruct {
+ return changetype(
+ this._call.inputValues[1].value.toTuple()
+ );
+ }
+}
+
+export class BurnWithSigCall__Outputs {
+ _call: BurnWithSigCall;
+
+ constructor(call: BurnWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class BurnWithSigCallSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class CollectCall extends ethereum.Call {
+ get inputs(): CollectCall__Inputs {
+ return new CollectCall__Inputs(this);
+ }
+
+ get outputs(): CollectCall__Outputs {
+ return new CollectCall__Outputs(this);
+ }
+}
+
+export class CollectCall__Inputs {
+ _call: CollectCall;
+
+ constructor(call: CollectCall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._call.inputValues[1].value.toBigInt();
+ }
+
+ get data(): Bytes {
+ return this._call.inputValues[2].value.toBytes();
+ }
+}
+
+export class CollectCall__Outputs {
+ _call: CollectCall;
+
+ constructor(call: CollectCall) {
+ this._call = call;
+ }
+}
+
+export class CollectWithSigCall extends ethereum.Call {
+ get inputs(): CollectWithSigCall__Inputs {
+ return new CollectWithSigCall__Inputs(this);
+ }
+
+ get outputs(): CollectWithSigCall__Outputs {
+ return new CollectWithSigCall__Outputs(this);
+ }
+}
+
+export class CollectWithSigCall__Inputs {
+ _call: CollectWithSigCall;
+
+ constructor(call: CollectWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): CollectWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class CollectWithSigCall__Outputs {
+ _call: CollectWithSigCall;
+
+ constructor(call: CollectWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class CollectWithSigCallVarsStruct extends ethereum.Tuple {
+ get collector(): Address {
+ return this[0].toAddress();
+ }
+
+ get profileId(): BigInt {
+ return this[1].toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this[2].toBigInt();
+ }
+
+ get data(): Bytes {
+ return this[3].toBytes();
+ }
+
+ get sig(): CollectWithSigCallVarsSigStruct {
+ return changetype(this[4].toTuple());
+ }
+}
+
+export class CollectWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class CommentCall extends ethereum.Call {
+ get inputs(): CommentCall__Inputs {
+ return new CommentCall__Inputs(this);
+ }
+
+ get outputs(): CommentCall__Outputs {
+ return new CommentCall__Outputs(this);
+ }
+}
+
+export class CommentCall__Inputs {
+ _call: CommentCall;
+
+ constructor(call: CommentCall) {
+ this._call = call;
+ }
+
+ get vars(): CommentCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class CommentCall__Outputs {
+ _call: CommentCall;
+
+ constructor(call: CommentCall) {
+ this._call = call;
+ }
+}
+
+export class CommentCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get contentURI(): string {
+ return this[1].toString();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this[2].toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this[3].toBigInt();
+ }
+
+ get collectModule(): Address {
+ return this[4].toAddress();
+ }
+
+ get collectModuleData(): Bytes {
+ return this[5].toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this[6].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[7].toBytes();
+ }
+}
+
+export class CommentWithSigCall extends ethereum.Call {
+ get inputs(): CommentWithSigCall__Inputs {
+ return new CommentWithSigCall__Inputs(this);
+ }
+
+ get outputs(): CommentWithSigCall__Outputs {
+ return new CommentWithSigCall__Outputs(this);
+ }
+}
+
+export class CommentWithSigCall__Inputs {
+ _call: CommentWithSigCall;
+
+ constructor(call: CommentWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): CommentWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class CommentWithSigCall__Outputs {
+ _call: CommentWithSigCall;
+
+ constructor(call: CommentWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class CommentWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get contentURI(): string {
+ return this[1].toString();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this[2].toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this[3].toBigInt();
+ }
+
+ get collectModule(): Address {
+ return this[4].toAddress();
+ }
+
+ get collectModuleData(): Bytes {
+ return this[5].toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this[6].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[7].toBytes();
+ }
+
+ get sig(): CommentWithSigCallVarsSigStruct {
+ return changetype(this[8].toTuple());
+ }
+}
+
+export class CommentWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class CreateProfileCall extends ethereum.Call {
+ get inputs(): CreateProfileCall__Inputs {
+ return new CreateProfileCall__Inputs(this);
+ }
+
+ get outputs(): CreateProfileCall__Outputs {
+ return new CreateProfileCall__Outputs(this);
+ }
+}
+
+export class CreateProfileCall__Inputs {
+ _call: CreateProfileCall;
+
+ constructor(call: CreateProfileCall) {
+ this._call = call;
+ }
+
+ get vars(): CreateProfileCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class CreateProfileCall__Outputs {
+ _call: CreateProfileCall;
+
+ constructor(call: CreateProfileCall) {
+ this._call = call;
+ }
+}
+
+export class CreateProfileCallVarsStruct extends ethereum.Tuple {
+ get to(): Address {
+ return this[0].toAddress();
+ }
+
+ get handle(): string {
+ return this[1].toString();
+ }
+
+ get imageURI(): string {
+ return this[2].toString();
+ }
+
+ get followModule(): Address {
+ return this[3].toAddress();
+ }
+
+ get followModuleData(): Bytes {
+ return this[4].toBytes();
+ }
+
+ get followNFTURI(): string {
+ return this[5].toString();
+ }
+}
+
+export class EmitCollectNFTTransferEventCall extends ethereum.Call {
+ get inputs(): EmitCollectNFTTransferEventCall__Inputs {
+ return new EmitCollectNFTTransferEventCall__Inputs(this);
+ }
+
+ get outputs(): EmitCollectNFTTransferEventCall__Outputs {
+ return new EmitCollectNFTTransferEventCall__Outputs(this);
+ }
+}
+
+export class EmitCollectNFTTransferEventCall__Inputs {
+ _call: EmitCollectNFTTransferEventCall;
+
+ constructor(call: EmitCollectNFTTransferEventCall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get pubId(): BigInt {
+ return this._call.inputValues[1].value.toBigInt();
+ }
+
+ get collectNFTId(): BigInt {
+ return this._call.inputValues[2].value.toBigInt();
+ }
+
+ get from(): Address {
+ return this._call.inputValues[3].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._call.inputValues[4].value.toAddress();
+ }
+}
+
+export class EmitCollectNFTTransferEventCall__Outputs {
+ _call: EmitCollectNFTTransferEventCall;
+
+ constructor(call: EmitCollectNFTTransferEventCall) {
+ this._call = call;
+ }
+}
+
+export class EmitFollowNFTTransferEventCall extends ethereum.Call {
+ get inputs(): EmitFollowNFTTransferEventCall__Inputs {
+ return new EmitFollowNFTTransferEventCall__Inputs(this);
+ }
+
+ get outputs(): EmitFollowNFTTransferEventCall__Outputs {
+ return new EmitFollowNFTTransferEventCall__Outputs(this);
+ }
+}
+
+export class EmitFollowNFTTransferEventCall__Inputs {
+ _call: EmitFollowNFTTransferEventCall;
+
+ constructor(call: EmitFollowNFTTransferEventCall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get followNFTId(): BigInt {
+ return this._call.inputValues[1].value.toBigInt();
+ }
+
+ get from(): Address {
+ return this._call.inputValues[2].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._call.inputValues[3].value.toAddress();
+ }
+}
+
+export class EmitFollowNFTTransferEventCall__Outputs {
+ _call: EmitFollowNFTTransferEventCall;
+
+ constructor(call: EmitFollowNFTTransferEventCall) {
+ this._call = call;
+ }
+}
+
+export class FollowCall extends ethereum.Call {
+ get inputs(): FollowCall__Inputs {
+ return new FollowCall__Inputs(this);
+ }
+
+ get outputs(): FollowCall__Outputs {
+ return new FollowCall__Outputs(this);
+ }
+}
+
+export class FollowCall__Inputs {
+ _call: FollowCall;
+
+ constructor(call: FollowCall) {
+ this._call = call;
+ }
+
+ get profileIds(): Array {
+ return this._call.inputValues[0].value.toBigIntArray();
+ }
+
+ get datas(): Array {
+ return this._call.inputValues[1].value.toBytesArray();
+ }
+}
+
+export class FollowCall__Outputs {
+ _call: FollowCall;
+
+ constructor(call: FollowCall) {
+ this._call = call;
+ }
+}
+
+export class FollowWithSigCall extends ethereum.Call {
+ get inputs(): FollowWithSigCall__Inputs {
+ return new FollowWithSigCall__Inputs(this);
+ }
+
+ get outputs(): FollowWithSigCall__Outputs {
+ return new FollowWithSigCall__Outputs(this);
+ }
+}
+
+export class FollowWithSigCall__Inputs {
+ _call: FollowWithSigCall;
+
+ constructor(call: FollowWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): FollowWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class FollowWithSigCall__Outputs {
+ _call: FollowWithSigCall;
+
+ constructor(call: FollowWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class FollowWithSigCallVarsStruct extends ethereum.Tuple {
+ get follower(): Address {
+ return this[0].toAddress();
+ }
+
+ get profileIds(): Array {
+ return this[1].toBigIntArray();
+ }
+
+ get datas(): Array {
+ return this[2].toBytesArray();
+ }
+
+ get sig(): FollowWithSigCallVarsSigStruct {
+ return changetype(this[3].toTuple());
+ }
+}
+
+export class FollowWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class InitializeCall extends ethereum.Call {
+ get inputs(): InitializeCall__Inputs {
+ return new InitializeCall__Inputs(this);
+ }
+
+ get outputs(): InitializeCall__Outputs {
+ return new InitializeCall__Outputs(this);
+ }
+}
+
+export class InitializeCall__Inputs {
+ _call: InitializeCall;
+
+ constructor(call: InitializeCall) {
+ this._call = call;
+ }
+
+ get name(): string {
+ return this._call.inputValues[0].value.toString();
+ }
+
+ get symbol(): string {
+ return this._call.inputValues[1].value.toString();
+ }
+
+ get newGovernance(): Address {
+ return this._call.inputValues[2].value.toAddress();
+ }
+}
+
+export class InitializeCall__Outputs {
+ _call: InitializeCall;
+
+ constructor(call: InitializeCall) {
+ this._call = call;
+ }
+}
+
+export class MirrorCall extends ethereum.Call {
+ get inputs(): MirrorCall__Inputs {
+ return new MirrorCall__Inputs(this);
+ }
+
+ get outputs(): MirrorCall__Outputs {
+ return new MirrorCall__Outputs(this);
+ }
+}
+
+export class MirrorCall__Inputs {
+ _call: MirrorCall;
+
+ constructor(call: MirrorCall) {
+ this._call = call;
+ }
+
+ get vars(): MirrorCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class MirrorCall__Outputs {
+ _call: MirrorCall;
+
+ constructor(call: MirrorCall) {
+ this._call = call;
+ }
+}
+
+export class MirrorCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this[1].toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this[2].toBigInt();
+ }
+
+ get referenceModule(): Address {
+ return this[3].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[4].toBytes();
+ }
+}
+
+export class MirrorWithSigCall extends ethereum.Call {
+ get inputs(): MirrorWithSigCall__Inputs {
+ return new MirrorWithSigCall__Inputs(this);
+ }
+
+ get outputs(): MirrorWithSigCall__Outputs {
+ return new MirrorWithSigCall__Outputs(this);
+ }
+}
+
+export class MirrorWithSigCall__Inputs {
+ _call: MirrorWithSigCall;
+
+ constructor(call: MirrorWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): MirrorWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class MirrorWithSigCall__Outputs {
+ _call: MirrorWithSigCall;
+
+ constructor(call: MirrorWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class MirrorWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get profileIdPointed(): BigInt {
+ return this[1].toBigInt();
+ }
+
+ get pubIdPointed(): BigInt {
+ return this[2].toBigInt();
+ }
+
+ get referenceModule(): Address {
+ return this[3].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[4].toBytes();
+ }
+
+ get sig(): MirrorWithSigCallVarsSigStruct {
+ return changetype(this[5].toTuple());
+ }
+}
+
+export class MirrorWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class PermitCall extends ethereum.Call {
+ get inputs(): PermitCall__Inputs {
+ return new PermitCall__Inputs(this);
+ }
+
+ get outputs(): PermitCall__Outputs {
+ return new PermitCall__Outputs(this);
+ }
+}
+
+export class PermitCall__Inputs {
+ _call: PermitCall;
+
+ constructor(call: PermitCall) {
+ this._call = call;
+ }
+
+ get spender(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[1].value.toBigInt();
+ }
+
+ get sig(): PermitCallSigStruct {
+ return changetype(
+ this._call.inputValues[2].value.toTuple()
+ );
+ }
+}
+
+export class PermitCall__Outputs {
+ _call: PermitCall;
+
+ constructor(call: PermitCall) {
+ this._call = call;
+ }
+}
+
+export class PermitCallSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class PermitForAllCall extends ethereum.Call {
+ get inputs(): PermitForAllCall__Inputs {
+ return new PermitForAllCall__Inputs(this);
+ }
+
+ get outputs(): PermitForAllCall__Outputs {
+ return new PermitForAllCall__Outputs(this);
+ }
+}
+
+export class PermitForAllCall__Inputs {
+ _call: PermitForAllCall;
+
+ constructor(call: PermitForAllCall) {
+ this._call = call;
+ }
+
+ get owner(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get operator(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+
+ get approved(): boolean {
+ return this._call.inputValues[2].value.toBoolean();
+ }
+
+ get sig(): PermitForAllCallSigStruct {
+ return changetype(
+ this._call.inputValues[3].value.toTuple()
+ );
+ }
+}
+
+export class PermitForAllCall__Outputs {
+ _call: PermitForAllCall;
+
+ constructor(call: PermitForAllCall) {
+ this._call = call;
+ }
+}
+
+export class PermitForAllCallSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class PostCall extends ethereum.Call {
+ get inputs(): PostCall__Inputs {
+ return new PostCall__Inputs(this);
+ }
+
+ get outputs(): PostCall__Outputs {
+ return new PostCall__Outputs(this);
+ }
+}
+
+export class PostCall__Inputs {
+ _call: PostCall;
+
+ constructor(call: PostCall) {
+ this._call = call;
+ }
+
+ get vars(): PostCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class PostCall__Outputs {
+ _call: PostCall;
+
+ constructor(call: PostCall) {
+ this._call = call;
+ }
+}
+
+export class PostCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get contentURI(): string {
+ return this[1].toString();
+ }
+
+ get collectModule(): Address {
+ return this[2].toAddress();
+ }
+
+ get collectModuleData(): Bytes {
+ return this[3].toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this[4].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[5].toBytes();
+ }
+}
+
+export class PostWithSigCall extends ethereum.Call {
+ get inputs(): PostWithSigCall__Inputs {
+ return new PostWithSigCall__Inputs(this);
+ }
+
+ get outputs(): PostWithSigCall__Outputs {
+ return new PostWithSigCall__Outputs(this);
+ }
+}
+
+export class PostWithSigCall__Inputs {
+ _call: PostWithSigCall;
+
+ constructor(call: PostWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): PostWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class PostWithSigCall__Outputs {
+ _call: PostWithSigCall;
+
+ constructor(call: PostWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class PostWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get contentURI(): string {
+ return this[1].toString();
+ }
+
+ get collectModule(): Address {
+ return this[2].toAddress();
+ }
+
+ get collectModuleData(): Bytes {
+ return this[3].toBytes();
+ }
+
+ get referenceModule(): Address {
+ return this[4].toAddress();
+ }
+
+ get referenceModuleData(): Bytes {
+ return this[5].toBytes();
+ }
+
+ get sig(): PostWithSigCallVarsSigStruct {
+ return changetype(this[6].toTuple());
+ }
+}
+
+export class PostWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class SafeTransferFromCall extends ethereum.Call {
+ get inputs(): SafeTransferFromCall__Inputs {
+ return new SafeTransferFromCall__Inputs(this);
+ }
+
+ get outputs(): SafeTransferFromCall__Outputs {
+ return new SafeTransferFromCall__Outputs(this);
+ }
+}
+
+export class SafeTransferFromCall__Inputs {
+ _call: SafeTransferFromCall;
+
+ constructor(call: SafeTransferFromCall) {
+ this._call = call;
+ }
+
+ get from(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[2].value.toBigInt();
+ }
+}
+
+export class SafeTransferFromCall__Outputs {
+ _call: SafeTransferFromCall;
+
+ constructor(call: SafeTransferFromCall) {
+ this._call = call;
+ }
+}
+
+export class SafeTransferFrom1Call extends ethereum.Call {
+ get inputs(): SafeTransferFrom1Call__Inputs {
+ return new SafeTransferFrom1Call__Inputs(this);
+ }
+
+ get outputs(): SafeTransferFrom1Call__Outputs {
+ return new SafeTransferFrom1Call__Outputs(this);
+ }
+}
+
+export class SafeTransferFrom1Call__Inputs {
+ _call: SafeTransferFrom1Call;
+
+ constructor(call: SafeTransferFrom1Call) {
+ this._call = call;
+ }
+
+ get from(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[2].value.toBigInt();
+ }
+
+ get _data(): Bytes {
+ return this._call.inputValues[3].value.toBytes();
+ }
+}
+
+export class SafeTransferFrom1Call__Outputs {
+ _call: SafeTransferFrom1Call;
+
+ constructor(call: SafeTransferFrom1Call) {
+ this._call = call;
+ }
+}
+
+export class SetApprovalForAllCall extends ethereum.Call {
+ get inputs(): SetApprovalForAllCall__Inputs {
+ return new SetApprovalForAllCall__Inputs(this);
+ }
+
+ get outputs(): SetApprovalForAllCall__Outputs {
+ return new SetApprovalForAllCall__Outputs(this);
+ }
+}
+
+export class SetApprovalForAllCall__Inputs {
+ _call: SetApprovalForAllCall;
+
+ constructor(call: SetApprovalForAllCall) {
+ this._call = call;
+ }
+
+ get operator(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get approved(): boolean {
+ return this._call.inputValues[1].value.toBoolean();
+ }
+}
+
+export class SetApprovalForAllCall__Outputs {
+ _call: SetApprovalForAllCall;
+
+ constructor(call: SetApprovalForAllCall) {
+ this._call = call;
+ }
+}
+
+export class SetDispatcherCall extends ethereum.Call {
+ get inputs(): SetDispatcherCall__Inputs {
+ return new SetDispatcherCall__Inputs(this);
+ }
+
+ get outputs(): SetDispatcherCall__Outputs {
+ return new SetDispatcherCall__Outputs(this);
+ }
+}
+
+export class SetDispatcherCall__Inputs {
+ _call: SetDispatcherCall;
+
+ constructor(call: SetDispatcherCall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get dispatcher(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+}
+
+export class SetDispatcherCall__Outputs {
+ _call: SetDispatcherCall;
+
+ constructor(call: SetDispatcherCall) {
+ this._call = call;
+ }
+}
+
+export class SetDispatcherWithSigCall extends ethereum.Call {
+ get inputs(): SetDispatcherWithSigCall__Inputs {
+ return new SetDispatcherWithSigCall__Inputs(this);
+ }
+
+ get outputs(): SetDispatcherWithSigCall__Outputs {
+ return new SetDispatcherWithSigCall__Outputs(this);
+ }
+}
+
+export class SetDispatcherWithSigCall__Inputs {
+ _call: SetDispatcherWithSigCall;
+
+ constructor(call: SetDispatcherWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): SetDispatcherWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class SetDispatcherWithSigCall__Outputs {
+ _call: SetDispatcherWithSigCall;
+
+ constructor(call: SetDispatcherWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class SetDispatcherWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get dispatcher(): Address {
+ return this[1].toAddress();
+ }
+
+ get sig(): SetDispatcherWithSigCallVarsSigStruct {
+ return changetype(this[2].toTuple());
+ }
+}
+
+export class SetDispatcherWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class SetEmergencyAdminCall extends ethereum.Call {
+ get inputs(): SetEmergencyAdminCall__Inputs {
+ return new SetEmergencyAdminCall__Inputs(this);
+ }
+
+ get outputs(): SetEmergencyAdminCall__Outputs {
+ return new SetEmergencyAdminCall__Outputs(this);
+ }
+}
+
+export class SetEmergencyAdminCall__Inputs {
+ _call: SetEmergencyAdminCall;
+
+ constructor(call: SetEmergencyAdminCall) {
+ this._call = call;
+ }
+
+ get newEmergencyAdmin(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+}
+
+export class SetEmergencyAdminCall__Outputs {
+ _call: SetEmergencyAdminCall;
+
+ constructor(call: SetEmergencyAdminCall) {
+ this._call = call;
+ }
+}
+
+export class SetFollowModuleCall extends ethereum.Call {
+ get inputs(): SetFollowModuleCall__Inputs {
+ return new SetFollowModuleCall__Inputs(this);
+ }
+
+ get outputs(): SetFollowModuleCall__Outputs {
+ return new SetFollowModuleCall__Outputs(this);
+ }
+}
+
+export class SetFollowModuleCall__Inputs {
+ _call: SetFollowModuleCall;
+
+ constructor(call: SetFollowModuleCall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get followModule(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+
+ get followModuleData(): Bytes {
+ return this._call.inputValues[2].value.toBytes();
+ }
+}
+
+export class SetFollowModuleCall__Outputs {
+ _call: SetFollowModuleCall;
+
+ constructor(call: SetFollowModuleCall) {
+ this._call = call;
+ }
+}
+
+export class SetFollowModuleWithSigCall extends ethereum.Call {
+ get inputs(): SetFollowModuleWithSigCall__Inputs {
+ return new SetFollowModuleWithSigCall__Inputs(this);
+ }
+
+ get outputs(): SetFollowModuleWithSigCall__Outputs {
+ return new SetFollowModuleWithSigCall__Outputs(this);
+ }
+}
+
+export class SetFollowModuleWithSigCall__Inputs {
+ _call: SetFollowModuleWithSigCall;
+
+ constructor(call: SetFollowModuleWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): SetFollowModuleWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class SetFollowModuleWithSigCall__Outputs {
+ _call: SetFollowModuleWithSigCall;
+
+ constructor(call: SetFollowModuleWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class SetFollowModuleWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get followModule(): Address {
+ return this[1].toAddress();
+ }
+
+ get followModuleData(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get sig(): SetFollowModuleWithSigCallVarsSigStruct {
+ return changetype(
+ this[3].toTuple()
+ );
+ }
+}
+
+export class SetFollowModuleWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class SetFollowNFTURICall extends ethereum.Call {
+ get inputs(): SetFollowNFTURICall__Inputs {
+ return new SetFollowNFTURICall__Inputs(this);
+ }
+
+ get outputs(): SetFollowNFTURICall__Outputs {
+ return new SetFollowNFTURICall__Outputs(this);
+ }
+}
+
+export class SetFollowNFTURICall__Inputs {
+ _call: SetFollowNFTURICall;
+
+ constructor(call: SetFollowNFTURICall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get followNFTURI(): string {
+ return this._call.inputValues[1].value.toString();
+ }
+}
+
+export class SetFollowNFTURICall__Outputs {
+ _call: SetFollowNFTURICall;
+
+ constructor(call: SetFollowNFTURICall) {
+ this._call = call;
+ }
+}
+
+export class SetFollowNFTURIWithSigCall extends ethereum.Call {
+ get inputs(): SetFollowNFTURIWithSigCall__Inputs {
+ return new SetFollowNFTURIWithSigCall__Inputs(this);
+ }
+
+ get outputs(): SetFollowNFTURIWithSigCall__Outputs {
+ return new SetFollowNFTURIWithSigCall__Outputs(this);
+ }
+}
+
+export class SetFollowNFTURIWithSigCall__Inputs {
+ _call: SetFollowNFTURIWithSigCall;
+
+ constructor(call: SetFollowNFTURIWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): SetFollowNFTURIWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class SetFollowNFTURIWithSigCall__Outputs {
+ _call: SetFollowNFTURIWithSigCall;
+
+ constructor(call: SetFollowNFTURIWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class SetFollowNFTURIWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get followNFTURI(): string {
+ return this[1].toString();
+ }
+
+ get sig(): SetFollowNFTURIWithSigCallVarsSigStruct {
+ return changetype(
+ this[2].toTuple()
+ );
+ }
+}
+
+export class SetFollowNFTURIWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class SetGovernanceCall extends ethereum.Call {
+ get inputs(): SetGovernanceCall__Inputs {
+ return new SetGovernanceCall__Inputs(this);
+ }
+
+ get outputs(): SetGovernanceCall__Outputs {
+ return new SetGovernanceCall__Outputs(this);
+ }
+}
+
+export class SetGovernanceCall__Inputs {
+ _call: SetGovernanceCall;
+
+ constructor(call: SetGovernanceCall) {
+ this._call = call;
+ }
+
+ get newGovernance(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+}
+
+export class SetGovernanceCall__Outputs {
+ _call: SetGovernanceCall;
+
+ constructor(call: SetGovernanceCall) {
+ this._call = call;
+ }
+}
+
+export class SetProfileImageURICall extends ethereum.Call {
+ get inputs(): SetProfileImageURICall__Inputs {
+ return new SetProfileImageURICall__Inputs(this);
+ }
+
+ get outputs(): SetProfileImageURICall__Outputs {
+ return new SetProfileImageURICall__Outputs(this);
+ }
+}
+
+export class SetProfileImageURICall__Inputs {
+ _call: SetProfileImageURICall;
+
+ constructor(call: SetProfileImageURICall) {
+ this._call = call;
+ }
+
+ get profileId(): BigInt {
+ return this._call.inputValues[0].value.toBigInt();
+ }
+
+ get imageURI(): string {
+ return this._call.inputValues[1].value.toString();
+ }
+}
+
+export class SetProfileImageURICall__Outputs {
+ _call: SetProfileImageURICall;
+
+ constructor(call: SetProfileImageURICall) {
+ this._call = call;
+ }
+}
+
+export class SetProfileImageURIWithSigCall extends ethereum.Call {
+ get inputs(): SetProfileImageURIWithSigCall__Inputs {
+ return new SetProfileImageURIWithSigCall__Inputs(this);
+ }
+
+ get outputs(): SetProfileImageURIWithSigCall__Outputs {
+ return new SetProfileImageURIWithSigCall__Outputs(this);
+ }
+}
+
+export class SetProfileImageURIWithSigCall__Inputs {
+ _call: SetProfileImageURIWithSigCall;
+
+ constructor(call: SetProfileImageURIWithSigCall) {
+ this._call = call;
+ }
+
+ get vars(): SetProfileImageURIWithSigCallVarsStruct {
+ return changetype(
+ this._call.inputValues[0].value.toTuple()
+ );
+ }
+}
+
+export class SetProfileImageURIWithSigCall__Outputs {
+ _call: SetProfileImageURIWithSigCall;
+
+ constructor(call: SetProfileImageURIWithSigCall) {
+ this._call = call;
+ }
+}
+
+export class SetProfileImageURIWithSigCallVarsStruct extends ethereum.Tuple {
+ get profileId(): BigInt {
+ return this[0].toBigInt();
+ }
+
+ get imageURI(): string {
+ return this[1].toString();
+ }
+
+ get sig(): SetProfileImageURIWithSigCallVarsSigStruct {
+ return changetype(
+ this[2].toTuple()
+ );
+ }
+}
+
+export class SetProfileImageURIWithSigCallVarsSigStruct extends ethereum.Tuple {
+ get v(): i32 {
+ return this[0].toI32();
+ }
+
+ get r(): Bytes {
+ return this[1].toBytes();
+ }
+
+ get s(): Bytes {
+ return this[2].toBytes();
+ }
+
+ get deadline(): BigInt {
+ return this[3].toBigInt();
+ }
+}
+
+export class SetStateCall extends ethereum.Call {
+ get inputs(): SetStateCall__Inputs {
+ return new SetStateCall__Inputs(this);
+ }
+
+ get outputs(): SetStateCall__Outputs {
+ return new SetStateCall__Outputs(this);
+ }
+}
+
+export class SetStateCall__Inputs {
+ _call: SetStateCall;
+
+ constructor(call: SetStateCall) {
+ this._call = call;
+ }
+
+ get newState(): i32 {
+ return this._call.inputValues[0].value.toI32();
+ }
+}
+
+export class SetStateCall__Outputs {
+ _call: SetStateCall;
+
+ constructor(call: SetStateCall) {
+ this._call = call;
+ }
+}
+
+export class TransferFromCall extends ethereum.Call {
+ get inputs(): TransferFromCall__Inputs {
+ return new TransferFromCall__Inputs(this);
+ }
+
+ get outputs(): TransferFromCall__Outputs {
+ return new TransferFromCall__Outputs(this);
+ }
+}
+
+export class TransferFromCall__Inputs {
+ _call: TransferFromCall;
+
+ constructor(call: TransferFromCall) {
+ this._call = call;
+ }
+
+ get from(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get to(): Address {
+ return this._call.inputValues[1].value.toAddress();
+ }
+
+ get tokenId(): BigInt {
+ return this._call.inputValues[2].value.toBigInt();
+ }
+}
+
+export class TransferFromCall__Outputs {
+ _call: TransferFromCall;
+
+ constructor(call: TransferFromCall) {
+ this._call = call;
+ }
+}
+
+export class WhitelistCollectModuleCall extends ethereum.Call {
+ get inputs(): WhitelistCollectModuleCall__Inputs {
+ return new WhitelistCollectModuleCall__Inputs(this);
+ }
+
+ get outputs(): WhitelistCollectModuleCall__Outputs {
+ return new WhitelistCollectModuleCall__Outputs(this);
+ }
+}
+
+export class WhitelistCollectModuleCall__Inputs {
+ _call: WhitelistCollectModuleCall;
+
+ constructor(call: WhitelistCollectModuleCall) {
+ this._call = call;
+ }
+
+ get collectModule(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get whitelist(): boolean {
+ return this._call.inputValues[1].value.toBoolean();
+ }
+}
+
+export class WhitelistCollectModuleCall__Outputs {
+ _call: WhitelistCollectModuleCall;
+
+ constructor(call: WhitelistCollectModuleCall) {
+ this._call = call;
+ }
+}
+
+export class WhitelistFollowModuleCall extends ethereum.Call {
+ get inputs(): WhitelistFollowModuleCall__Inputs {
+ return new WhitelistFollowModuleCall__Inputs(this);
+ }
+
+ get outputs(): WhitelistFollowModuleCall__Outputs {
+ return new WhitelistFollowModuleCall__Outputs(this);
+ }
+}
+
+export class WhitelistFollowModuleCall__Inputs {
+ _call: WhitelistFollowModuleCall;
+
+ constructor(call: WhitelistFollowModuleCall) {
+ this._call = call;
+ }
+
+ get followModule(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get whitelist(): boolean {
+ return this._call.inputValues[1].value.toBoolean();
+ }
+}
+
+export class WhitelistFollowModuleCall__Outputs {
+ _call: WhitelistFollowModuleCall;
+
+ constructor(call: WhitelistFollowModuleCall) {
+ this._call = call;
+ }
+}
+
+export class WhitelistProfileCreatorCall extends ethereum.Call {
+ get inputs(): WhitelistProfileCreatorCall__Inputs {
+ return new WhitelistProfileCreatorCall__Inputs(this);
+ }
+
+ get outputs(): WhitelistProfileCreatorCall__Outputs {
+ return new WhitelistProfileCreatorCall__Outputs(this);
+ }
+}
+
+export class WhitelistProfileCreatorCall__Inputs {
+ _call: WhitelistProfileCreatorCall;
+
+ constructor(call: WhitelistProfileCreatorCall) {
+ this._call = call;
+ }
+
+ get profileCreator(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get whitelist(): boolean {
+ return this._call.inputValues[1].value.toBoolean();
+ }
+}
+
+export class WhitelistProfileCreatorCall__Outputs {
+ _call: WhitelistProfileCreatorCall;
+
+ constructor(call: WhitelistProfileCreatorCall) {
+ this._call = call;
+ }
+}
+
+export class WhitelistReferenceModuleCall extends ethereum.Call {
+ get inputs(): WhitelistReferenceModuleCall__Inputs {
+ return new WhitelistReferenceModuleCall__Inputs(this);
+ }
+
+ get outputs(): WhitelistReferenceModuleCall__Outputs {
+ return new WhitelistReferenceModuleCall__Outputs(this);
+ }
+}
+
+export class WhitelistReferenceModuleCall__Inputs {
+ _call: WhitelistReferenceModuleCall;
+
+ constructor(call: WhitelistReferenceModuleCall) {
+ this._call = call;
+ }
+
+ get referenceModule(): Address {
+ return this._call.inputValues[0].value.toAddress();
+ }
+
+ get whitelist(): boolean {
+ return this._call.inputValues[1].value.toBoolean();
+ }
+}
+
+export class WhitelistReferenceModuleCall__Outputs {
+ _call: WhitelistReferenceModuleCall;
+
+ constructor(call: WhitelistReferenceModuleCall) {
+ this._call = call;
+ }
+}
diff --git a/package.json b/package.json
index d6672db..b7d610b 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,8 @@
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 Nazeeh21/Lens-Protocol-Matic"
},
"dependencies": {
- "@graphprotocol/graph-cli": "0.30.0",
- "@graphprotocol/graph-ts": "0.27.0"
+ "@graphprotocol/graph-cli": "0.36.1",
+ "@graphprotocol/graph-ts": "0.29.0",
+ "assemblyscript-regex": "^1.6.4"
}
}
diff --git a/schema.graphql b/schema.graphql
index a5dc997..8ccede8 100644
--- a/schema.graphql
+++ b/schema.graphql
@@ -1,148 +1,148 @@
-type Approval @entity {
- id: ID!
- owner: Bytes! # address
- approved: Bytes! # address
- tokenId: BigInt! # uint256
-}
-
-type ApprovalForAll @entity {
- id: ID!
- owner: Bytes! # address
- operator: Bytes! # address
- approved: Boolean! # bool
-}
-
-type Transfer @entity {
- id: ID!
- from: Bytes! # address
- to: Bytes! # address
- tokenId: BigInt! # uint256
-}
-
-type Dispatcher @entity {
- id: ID!
- address: String!
- canUseRelay: Boolean!
-}
-
-type ProfileStats @entity {
- id: ID!
- totalFollowers: BigInt!
- totalFollowing: BigInt!
- totalPosts: BigInt!
- totalComments: BigInt!
- totalMirrors: BigInt!
- totalPublications: BigInt!
- totalCollects: BigInt!
-}
-
-type NftImage @entity {
- id: ID!
- contractAddress: String!
- tokenId: String!
- url: String!
- chainId: BigInt!
- verified: Boolean!
-}
-
-type Media @entity {
- id: ID!
- url: String!
- width: BigInt
- height: BigInt
- size: BigInt
- mimeType: String
-}
-
-type MediaSet @entity {
- id: ID!
- original: Media!
- small: Media
- medium: Media
-}
-
-enum ProfileMedia {
- NftImage
- MediaSet
-}
-
-type Erc20 @entity {
- id: ID!
- name: String!
- symbol: String!
- decimals: BigInt!
- address: String!
-}
-
-type ModuleFeeAmount @entity {
- id: ID!
- asset: Erc20!
- vaue: String!
-}
-
-type FeeFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
-}
-
-type ProfileFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
-}
-
-type RevertFollowModuleSettings @entity {
- id: ID!
- contractAddress: String!
-}
-
-enum FollowModule {
- FeeFollowModuleSettings
- ProfileFollowModuleSettings
- RevertFollowModuleSettings
-}
-
-type Attribute @entity {
- id: ID!
- displayType: String
- traitType: String
- key: String!
- value: String!
-}
-
-enum ReactionTypes {
- UPVOTE
- DOWNVOTE
-}
-
-type PublicationStats @entity {
- id: ID!
- totalAmountOfMirrors: BigInt!
- totalAmountOfCollects: BigInt!
- totalAmountOfComments: BigInt!
- totalUpvotes: BigInt!
- totalDownvotes: BigInt!
-}
-
-type Wallet @entity {
- id: ID!
- address: String!
- defaulProfile: Profile!
-}
-
-enum MetadataDisplayType {
- BigInt
- String
- String
-}
-
-type MetadataAttributeOutput @entity {
- id: ID!
- displayType: MetadataDisplayType
- traitType: String
- value: String
-}
+# type Approval @entity {
+# id: ID!
+# owner: Bytes! # address
+# approved: Bytes! # address
+# tokenId: BigInt! # uint256
+# }
+
+# type ApprovalForAll @entity {
+# id: ID!
+# owner: Bytes! # address
+# operator: Bytes! # address
+# approved: Boolean! # bool
+# }
+
+# type Transfer @entity {
+# id: ID!
+# from: Bytes! # address
+# to: Bytes! # address
+# tokenId: BigInt! # uint256
+# }
+
+# type Dispatcher @entity {
+# id: ID!
+# address: String!
+# canUseRelay: Boolean!
+# }
+
+# type ProfileStats @entity {
+# id: ID!
+# totalFollowers: BigInt!
+# totalFollowing: BigInt!
+# totalPosts: BigInt!
+# totalComments: BigInt!
+# totalMirrors: BigInt!
+# totalPublications: BigInt!
+# totalCollects: BigInt!
+# }
+
+# type NftImage @entity {
+# id: ID!
+# contractAddress: String!
+# tokenId: String!
+# url: String!
+# chainId: BigInt!
+# verified: Boolean!
+# }
+
+# type Media @entity {
+# id: ID!
+# url: String!
+# width: BigInt
+# height: BigInt
+# size: BigInt
+# mimeType: String
+# }
+
+# type MediaSet @entity {
+# id: ID!
+# original: Media!
+# small: Media
+# medium: Media
+# }
+
+# enum ProfileMedia {
+# NftImage
+# MediaSet
+# }
+
+# type Erc20 @entity {
+# id: ID!
+# name: String!
+# symbol: String!
+# decimals: BigInt!
+# address: String!
+# }
+
+# type ModuleFeeAmount @entity {
+# id: ID!
+# asset: Erc20!
+# vaue: String!
+# }
+
+# type FeeFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# }
+
+# type ProfileFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# }
+
+# type RevertFollowModuleSettings @entity {
+# id: ID!
+# contractAddress: String!
+# }
+
+# # enum FollowModule {
+# # FeeFollowModuleSettings
+# # ProfileFollowModuleSettings
+# # RevertFollowModuleSettings
+# # }
+
+# type Attribute @entity {
+# id: ID!
+# displayType: String
+# traitType: String
+# key: String!
+# value: String!
+# }
+
+# enum ReactionTypes {
+# UPVOTE
+# DOWNVOTE
+# }
+
+# type PublicationStats @entity {
+# id: ID!
+# totalAmountOfMirrors: BigInt!
+# totalAmountOfCollects: BigInt!
+# totalAmountOfComments: BigInt!
+# totalUpvotes: BigInt!
+# totalDownvotes: BigInt!
+# }
+
+# type Wallet @entity {
+# id: ID!
+# address: String!
+# defaulProfile: Profile!
+# }
+
+# enum MetadataDisplayType {
+# BigInt
+# String
+# String
+# }
+
+# type MetadataAttributeOutput @entity {
+# id: ID!
+# displayType: MetadataDisplayType
+# traitType: String
+# value: String
+# }
type MetadataOutput @entity {
id: ID!
@@ -150,280 +150,280 @@ type MetadataOutput @entity {
description: String
content: String
image: String
- cover: MediaSet
- media: [MediaSet!]!
- attributes: [MetadataAttributeOutput!]!
-}
-
-type ReactionFieldResolverRequest @entity {
- id: ID!
- profileId: BigInt
-}
-
-enum CollectModule {
- LimitedFeeCollectModule
- FeeCollectModule
- LimitedTimedFeeCollectModule
- TimedFeeCollectModule
- RevertCollectModule
- FreeCollectModule
-}
-
-type FreeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- followerOnly: Boolean!
-}
-
-type FeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
-}
-
-type LimitedFeeCollectModule @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- collectLimit: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
-}
-
-type LimitedTimedFeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- collectLimit: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
- endTimestamp: String!
-}
-
-type RevertCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
-}
-
-type TimedFeeCollectModuleSettings @entity {
- id: ID!
- type: CollectModule!
- contractAddress: String!
- amount: ModuleFeeAmount!
- recipient: String!
- referralFee: BigDecimal!
- followerOnly: Boolean!
- endTimestamp: String!
-}
-
-enum ReferenceModule {
- FollowOnlyReferenceModule
-}
-
-type FollowOnlyReferenceModuleSettings @entity {
- id: ID!
- type: ReferenceModule!
- contractAddress: String!
-}
-
-# https://docs.lens.xyz/docs/events#profilecreated
-type Profile @entity {
- id: ID!
-
- createdAt: String!
-
- # Wallet address
- creator: String!
- mintedTo: String!
- handle: String!
- picture: ProfileMedia
-
- followModule: FollowModule
- followModuleReturnData: Bytes
-
- followNftUri: String
-
- # TODO: Combine to single superclass "Publication"
- posts: [Post!]!
- comments: [Comment!]!
- mirrors: [Mirror!]!
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- name: String
- bio: String
- followNftAddress: String
- metadata: String
- # handle: String!
- # picture: ProfileMedia
- coverPicture: ProfileMedia
- ownedBy: String!
- dispatcher: Dispatcher
- stats: ProfileStats
- # followModule: FollowModule
- isDefault: Boolean
- attributes: [Attribute!]
- isFollowedByMe: Boolean
- isFollowingMe: Boolean
-}
-
-# Mirrors should extend "Post"
-# https://docs.lens.xyz/docs/mirror
-type Mirror @entity {
- id: ID!
- profile: Profile!
- createdAt: String!
-
- referenceModule: ReferenceModule!
- referenceModuleReturnData: Bytes!
-
- profilePointed: Profile!
- publicationPointed: Post!
-
- # Address of user who collected
- collectedBy: String
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- stats: PublicationStats!
- metadata: MetadataOutput!
- onChainContentURI: String!
- appId: BigInt
- hidden: Boolean!
- collectNftAddress: String
- reaction: ReactionTypes
- hasCollectedByMe: Boolean!
-}
+ # cover: MediaSet
+ # media: [MediaSet!]!
+ # attributes: [MetadataAttributeOutput!]!
+}
+
+# type ReactionFieldResolverRequest @entity {
+# id: ID!
+# profileId: BigInt
+# }
+
+# enum CollectModule {
+# LimitedFeeCollectModule
+# FeeCollectModule
+# LimitedTimedFeeCollectModule
+# TimedFeeCollectModule
+# RevertCollectModule
+# FreeCollectModule
+# }
+
+# type FreeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# followerOnly: Boolean!
+# }
+
+# type FeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# }
+
+# type LimitedFeeCollectModule @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# collectLimit: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# }
+
+# type LimitedTimedFeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# collectLimit: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# endTimestamp: String!
+# }
+
+# type RevertCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# }
+
+# type TimedFeeCollectModuleSettings @entity {
+# id: ID!
+# type: CollectModule!
+# contractAddress: String!
+# amount: ModuleFeeAmount!
+# recipient: String!
+# referralFee: BigDecimal!
+# followerOnly: Boolean!
+# endTimestamp: String!
+# }
+
+# enum ReferenceModule {
+# FollowOnlyReferenceModule
+# }
+
+# type FollowOnlyReferenceModuleSettings @entity {
+# id: ID!
+# type: ReferenceModule!
+# contractAddress: String!
+# }
+
+# # https://docs.lens.xyz/docs/events#profilecreated
+# type Profile @entity {
+# id: ID!
+
+# createdAt: String!
+
+# # Wallet address
+# creator: String!
+# mintedTo: String!
+# handle: String!
+# picture: ProfileMedia
+
+# followModule: String
+# followModuleReturnData: Bytes
+
+# followNftUri: String
+
+# # TODO: Combine to single superclass "Publication"
+# # posts: [Post!]! @derivedFrom(field: "profile")
+# # comments: [Comment!]! @derivedFrom(field: "profile")
+# # mirrors: [Mirror!]! @derivedFrom(field: "profile")
+
+# # Additional fields that we want to remove
+# # TODO: Refactor & remove
+# name: String
+# bio: String
+# followNftAddress: String
+# metadata: String
+# # handle: String!
+# # picture: ProfileMedia
+# coverPicture: ProfileMedia
+# ownedBy: String!
+# dispatcher: Dispatcher
+# stats: ProfileStats
+# # followModule: FollowModule
+# isDefault: Boolean
+# attributes: [Attribute!]
+# isFollowedByMe: Boolean
+# isFollowingMe: Boolean
+# }
+
+# # Mirrors should extend "Post"
+# # https://docs.lens.xyz/docs/mirror
+# type Mirror @entity {
+# id: ID!
+# profile: Profile!
+# createdAt: String!
+
+# referenceModule: ReferenceModule!
+# referenceModuleReturnData: Bytes!
+
+# profilePointed: Profile!
+# publicationPointed: Post!
+
+# # Address of user who collected
+# collectedBy: String
+
+# # Additional fields that we want to remove
+# # TODO: Refactor & remove
+# stats: PublicationStats!
+# metadata: MetadataOutput!
+# onChainContentURI: String!
+# appId: BigInt
+# hidden: Boolean!
+# collectNftAddress: String
+# reaction: ReactionTypes
+# hasCollectedByMe: Boolean!
+# }
type Post @entity {
id: ID!
- profile: Profile!
+ profile: String!
onChainContentURI: String!
- # Address
- collectModule: CollectModule
- collectModuleReturnData: Bytes
+ # # Address
+ # collectModule: CollectModule
+ # collectModuleReturnData: Bytes
- referenceModule: ReferenceModule
- referenceModuleReturnData: Bytes
+ # referenceModule: ReferenceModule
+ # referenceModuleReturnData: Bytes
createdAt: String!
# Address of user who collected
collectedBy: String
- mirrors: [ID!]!
-
- # Additional fields that we want to remove
- # TODO: Refactor & remove
- appId: String
- hidden: Boolean
- collectNftAddress: String
- # collectedBy: Wallet
- reaction: ReactionTypes
- hasCollectedByMe: Boolean
- stats: PublicationStats
+ # mirrors: [Mirror!]! @derivedFrom(field: "publicationPointed")
+
+ # # Additional fields that we want to remove
+ # # TODO: Refactor & remove
+ # appId: String
+ # hidden: Boolean
+ # collectNftAddress: String
+ # # collectedBy: Wallet
+ # reaction: ReactionTypes
+ # hasCollectedByMe: Boolean
+ # stats: PublicationStats
metadata: MetadataOutput
}
-# TODO: We need to make "Comment" extend from "Publication"
-type Comment @entity {
- id: ID!
- profile: Profile!
- onChainContentURI: String!
- createdAt: String!
- mirrors: [ID!]!
-
- # Publication that comment points to
- publication: Post!
- # Reference module settings for this comment
- referenceModule: ReferenceModule
- # Collect module settings for this comment
- collectModule: CollectModule!
- # Profile that comment points to (may be different than comment author)
- profilePointed: Profile!
-
- # Address of user who collected
- collectedBy: String
-}
-
-type Owner @entity {
- id: ID!
- amount: BigDecimal!
- address: String!
-}
-
-type NFTContent @entity {
- id: ID!
- uri: String!
- metaType: String!
- animatedUrl: String
-}
-
-type NFT @entity {
- id: ID!
- contractName: String!
- contractAddress: String!
- symbol: String!
- tokenId: String!
- owners: [Owner!]!
- name: String!
- description: String!
- contentURI: String!
- originalContent: NFTContent!
- chainId: ID!
- collectionName: String!
- ercType: String!
-}
-
-# Handles
-#12
-
-# Retrieved from https://graphiql-online.com/voyager-view
-type ReservedClaimableHandle @entity {
- id: ID!
- # Requires custom "Handle" scalar type
- handle: String!
- source: String!
- expiry: String!
-}
-
-type ClaimableHandles @entity {
- id: ID!
- canClaimFreeTextHandle: Boolean!
- claimableHandles: [ReservedClaimableHandle!]!
-}
-
-# Address
-#13
-
-type TransactionReceipt @entity {
- id: ID!
- to: String!
- from: String!
- contractAddress: String
- transactionIndex: Int!
- root: String
- gasUsed: String!
- logsBloom: String!
- blockHash: String!
- transactionHash: String!
- blockNumber: Int!
- confirmations: Int!
- cumulativeGasUsed: String!
- effectiveGasPrice: String!
- byzantium: Boolean!
- type: Int!
- status: Int
-}
+# # TODO: We need to make "Comment" extend from "Publication"
+# type Comment @entity {
+# id: ID!
+# profile: Profile!
+# onChainContentURI: String!
+# createdAt: String!
+# mirrors: [ID!]!
+
+# # Publication that comment points to
+# publication: Post!
+# # Reference module settings for this comment
+# referenceModule: ReferenceModule
+# # Collect module settings for this comment
+# collectModule: CollectModule!
+# # Profile that comment points to (may be different than comment author)
+# profilePointed: Profile!
+
+# # Address of user who collected
+# collectedBy: String
+# }
+
+# type Owner @entity {
+# id: ID!
+# amount: BigDecimal!
+# address: String!
+# }
+
+# type NFTContent @entity {
+# id: ID!
+# uri: String!
+# metaType: String!
+# animatedUrl: String
+# }
+
+# type NFT @entity {
+# id: ID!
+# contractName: String!
+# contractAddress: String!
+# symbol: String!
+# tokenId: String!
+# owners: [Owner!]!
+# name: String!
+# description: String!
+# contentURI: String!
+# originalContent: NFTContent!
+# chainId: ID!
+# collectionName: String!
+# ercType: String!
+# }
+
+# # Handles
+# #12
+
+# # Retrieved from https://graphiql-online.com/voyager-view
+# type ReservedClaimableHandle @entity {
+# id: ID!
+# # Requires custom "Handle" scalar type
+# handle: String!
+# source: String!
+# expiry: String!
+# }
+
+# type ClaimableHandles @entity {
+# id: ID!
+# canClaimFreeTextHandle: Boolean!
+# claimableHandles: [ReservedClaimableHandle!]!
+# }
+
+# # Address
+# #13
+
+# type TransactionReceipt @entity {
+# id: ID!
+# to: String!
+# from: String!
+# contractAddress: String
+# transactionIndex: Int!
+# root: String
+# gasUsed: String!
+# logsBloom: String!
+# blockHash: String!
+# transactionHash: String!
+# blockNumber: Int!
+# confirmations: Int!
+# cumulativeGasUsed: String!
+# effectiveGasPrice: String!
+# byzantium: Boolean!
+# type: Int!
+# status: Int
+# }
diff --git a/src/lens-hub.ts b/src/lens-hub.ts
index 3a49ecb..72ee46c 100644
--- a/src/lens-hub.ts
+++ b/src/lens-hub.ts
@@ -1,86 +1,72 @@
import { log } from "@graphprotocol/graph-ts";
-import {
- Approval as ApprovalEvent,
- ApprovalForAll as ApprovalForAllEvent,
- Collected,
- CommentCreated,
- MirrorCreated,
- PostCreated,
- ProfileCreated,
- Transfer as TransferEvent,
-} from "../generated/LensHub/LensHub";
-import {
- Approval,
- ApprovalForAll,
- Comment,
- Mirror,
- Post,
- Profile,
- Transfer,
-} from "../generated/schema";
-
-export function handleApproval(event: ApprovalEvent): void {
- let entity = new Approval(
- event.transaction.hash.toHex() + "-" + event.logIndex.toString()
- );
- entity.owner = event.params.owner;
- entity.approved = event.params.approved;
- entity.tokenId = event.params.tokenId;
- entity.save();
-}
-
-export function handleApprovalForAll(event: ApprovalForAllEvent): void {
- let entity = new ApprovalForAll(
- event.transaction.hash.toHex() + "-" + event.logIndex.toString()
- );
- entity.owner = event.params.owner;
- entity.operator = event.params.operator;
- entity.approved = event.params.approved;
- entity.save();
-}
-
-export function handleTransfer(event: TransferEvent): void {
- let entity = new Transfer(
- event.transaction.hash.toHex() + "-" + event.logIndex.toString()
- );
- entity.from = event.params.from;
- entity.to = event.params.to;
- entity.tokenId = event.params.tokenId;
- entity.save();
-}
-
-export function handleProfileCreated(event: ProfileCreated): void {
- let profile = Profile.load(event.params.profileId.toString());
- log.info("Trigger Fired", []);
-
- if (!profile) {
- profile = new Profile(event.params.profileId.toString());
-
- profile.handle = event.params.handle.toString();
- profile.creator = event.params.creator.toHexString();
- profile.mintedTo = event.params.to.toHexString();
- profile.picture = event.params.imageURI.toString();
-
- profile.createdAt = event.params.timestamp.toString();
-
- // Newly set follow module, can be zero address
- profile.followModule = event.params.followModule.toHexString();
- profile.followModuleReturnData = event.params.followModuleReturnData;
-
- profile.followNftUri = event.params.followNFTURI;
-
- // Superfluous legacy fields
- // TODO: Refactor and remove
- profile.metadata = event.params.followNFTURI;
- profile.handle = event.params.handle;
- profile.ownedBy = event.params.creator.toHexString();
- profile.isDefault = true;
- profile.isFollowedByMe = false;
- // End of legacy fields
-
- profile.save();
- }
-}
+import { Match, RegExp } from "assemblyscript-regex";
+
+import { PostCreated } from "../generated/LensHub/LensHub";
+import { Post } from "../generated/schema";
+import { MetadataTemplate } from "../generated/templates";
+
+// export function handleApproval(event: ApprovalEvent): void {
+// let entity = new Approval(
+// event.transaction.hash.toHex() + "-" + event.logIndex.toString()
+// );
+// entity.owner = event.params.owner;
+// entity.approved = event.params.approved;
+// entity.tokenId = event.params.tokenId;
+// entity.save();
+// }
+
+// export function handleApprovalForAll(event: ApprovalForAllEvent): void {
+// let entity = new ApprovalForAll(
+// event.transaction.hash.toHex() + "-" + event.logIndex.toString()
+// );
+// entity.owner = event.params.owner;
+// entity.operator = event.params.operator;
+// entity.approved = event.params.approved;
+// entity.save();
+// }
+
+// export function handleTransfer(event: TransferEvent): void {
+// let entity = new Transfer(
+// event.transaction.hash.toHex() + "-" + event.logIndex.toString()
+// );
+// entity.from = event.params.from;
+// entity.to = event.params.to;
+// entity.tokenId = event.params.tokenId;
+// entity.save();
+// }
+
+// export function handleProfileCreated(event: ProfileCreated): void {
+// let profile = Profile.load(event.params.profileId.toString());
+// log.info("Trigger Fired", []);
+
+// if (!profile) {
+// profile = new Profile(event.params.profileId.toString());
+
+// profile.handle = event.params.handle.toString();
+// profile.creator = event.params.creator.toHexString();
+// profile.mintedTo = event.params.to.toHexString();
+// profile.picture = event.params.imageURI.toString();
+
+// profile.createdAt = event.params.timestamp.toString();
+
+// // Newly set follow module, can be zero address
+// profile.followModule = event.params.followModule.toHexString();
+// profile.followModuleReturnData = event.params.followModuleReturnData;
+
+// profile.followNftUri = event.params.followNFTURI;
+
+// // Superfluous legacy fields
+// // TODO: Refactor and remove
+// profile.metadata = event.params.followNFTURI;
+// profile.handle = event.params.handle;
+// profile.ownedBy = event.params.creator.toHexString();
+// profile.isDefault = true;
+// profile.isFollowedByMe = false;
+// // End of legacy fields
+
+// profile.save();
+// }
+// }
export function handlePostCreated(event: PostCreated): void {
let post = Post.load(event.params.pubId.toString());
@@ -92,98 +78,113 @@ export function handlePostCreated(event: PostCreated): void {
post.createdAt = event.params.timestamp.toString();
post.profile = event.params.profileId.toString();
- post.collectModule = event.params.collectModule.toHexString();
- post.collectModuleReturnData = event.params.collectModuleReturnData;
-
- post.referenceModule = event.params.referenceModule.toHexString();
- post.referenceModuleReturnData = event.params.referenceModuleReturnData;
-
- // Legacy field, consider to refactor and remove
- post.collectNftAddress = event.params.collectModule.toHexString();
-
- post.save();
- }
-
- let profile = Profile.load(event.params.profileId.toString());
- if (profile) {
- profile.posts = (profile.posts || []).concat([post.id]);
- profile.save();
- }
-}
-
-export function handleCommentCreated(event: CommentCreated): void {
- let comment = Comment.load(event.params.pubId.toString());
+ let regex = new RegExp("(Q[a-zA-Z0-9]{45})", "g");
+ let match: Match | null = regex.exec(event.params.contentURI);
- if (!comment) {
- comment = new Comment(event.params.pubId.toString());
- comment.createdAt = event.params.timestamp.toString();
- comment.profile = event.params.profileId.toString();
- comment.onChainContentURI = event.params.contentURI.toString();
+ if (match != null) {
+ let ipfsHash = match.matches[0];
+ post.metadata = ipfsHash;
- comment.collectModule = event.params.collectModule.toString();
- comment.referenceModule = event.params.referenceModule.toString();
- comment.publication = event.params.pubIdPointed.toString();
- comment.profilePointed = event.params.profileIdPointed.toString();
- comment.save();
- }
+ log.warning("IPFS detected, IPFS Hash: {}", [ipfsHash]);
- let profile = Profile.load(event.params.profileId.toString());
- if (profile) {
- profile.comments = (profile.comments || []).concat([comment.id]);
- profile.save();
- }
-}
+ MetadataTemplate.create(ipfsHash);
+ } else {
+ log.warning("No IPFS detected, IPFS Hash: {}", [post.onChainContentURI]);
+ }
-export function handleMirrorCreated(event: MirrorCreated): void {
- let mirror = Mirror.load(event.params.pubId.toString());
+ // post.collectModule = event.params.collectModule.toHexString();
+ // post.collectModuleReturnData = event.params.collectModuleReturnData;
- if (!mirror) {
- mirror = new Mirror(event.params.pubId.toString());
- mirror.profile = event.params.profileId.toString();
- mirror.profilePointed = event.params.profileIdPointed.toString();
- mirror.createdAt = event.params.timestamp.toString();
+ // post.referenceModule = event.params.referenceModule.toHexString();
+ // post.referenceModuleReturnData = event.params.referenceModuleReturnData;
- mirror.referenceModule = event.params.referenceModule.toString();
- mirror.referenceModuleReturnData = event.params.referenceModuleReturnData;
- mirror.publicationPointed = event.params.pubIdPointed.toString();
- mirror.save();
- }
+ // // Legacy field, consider to refactor and remove
+ // post.collectNftAddress = event.params.collectModule.toHexString();
- // Add publication mirrors
- let post = Post.load(event.params.pubIdPointed.toString());
- if (post) {
- const newMirrors = (post.mirrors || []).concat([mirror.id]);
- post.mirrors = newMirrors;
post.save();
}
- let comment = Comment.load(event.params.pubIdPointed.toString());
- if (comment) {
- comment.mirrors = (comment.mirrors || []).concat([
- event.params.pubId.toString(),
- ]);
- comment.save();
- }
-}
-
-// https://docs.lens.xyz/docs/events#collected
-export function handleCollected(event: Collected): void {
- // Revisit "pubId" to maybe use "rootPubId" instead
- let post = Post.load(event.params.pubId.toString());
- if (post) {
- post.collectedBy = event.params.collector.toHexString();
- post.save();
- }
-
- let comment = Comment.load(event.params.pubId.toString());
- if (comment) {
- comment.collectedBy = event.params.collector.toHexString();
- comment.save();
- }
-
- let mirror = Mirror.load(event.params.pubId.toString());
- if (mirror) {
- mirror.collectedBy = event.params.collector.toHexString();
- mirror.save();
- }
+ // let profile = Profile.load(event.params.profileId.toString());
+ // if (profile) {
+ // profile.posts = (profile.posts || []).concat([post.id]);
+ // profile.save();
+ // }
}
+// }
+
+// export function handleCommentCreated(event: CommentCreated): void {
+// let comment = Comment.load(event.params.pubId.toString());
+
+// if (!comment) {
+// comment = new Comment(event.params.pubId.toString());
+// comment.createdAt = event.params.timestamp.toString();
+// comment.profile = event.params.profileId.toString();
+// comment.onChainContentURI = event.params.contentURI.toString();
+
+// comment.collectModule = event.params.collectModule.toString();
+// comment.referenceModule = event.params.referenceModule.toString();
+// comment.publication = event.params.pubIdPointed.toString();
+// comment.profilePointed = event.params.profileIdPointed.toString();
+// comment.save();
+// }
+
+// let profile = Profile.load(event.params.profileId.toString());
+// if (profile) {
+// profile.comments = (profile.comments || []).concat([comment.id]);
+// profile.save();
+// }
+// }
+
+// export function handleMirrorCreated(event: MirrorCreated): void {
+// let mirror = Mirror.load(event.params.pubId.toString());
+
+// if (!mirror) {
+// mirror = new Mirror(event.params.pubId.toString());
+// mirror.profile = event.params.profileId.toString();
+// mirror.profilePointed = event.params.profileIdPointed.toString();
+// mirror.createdAt = event.params.timestamp.toString();
+
+// mirror.referenceModule = event.params.referenceModule.toString();
+// mirror.referenceModuleReturnData = event.params.referenceModuleReturnData;
+// mirror.publicationPointed = event.params.pubIdPointed.toString();
+// mirror.save();
+// }
+
+// // Add publication mirrors
+// let post = Post.load(event.params.pubIdPointed.toString());
+// if (post) {
+// const newMirrors = (post.mirrors || []).concat([mirror.id]);
+// post.mirrors = newMirrors;
+// post.save();
+// }
+
+// let comment = Comment.load(event.params.pubIdPointed.toString());
+// if (comment) {
+// comment.mirrors = (comment.mirrors || []).concat([
+// event.params.pubId.toString(),
+// ]);
+// comment.save();
+// }
+// }
+
+// // https://docs.lens.xyz/docs/events#collected
+// export function handleCollected(event: Collected): void {
+// // Revisit "pubId" to maybe use "rootPubId" instead
+// let post = Post.load(event.params.pubId.toString());
+// if (post) {
+// post.collectedBy = event.params.collector.toHexString();
+// post.save();
+// }
+
+// let comment = Comment.load(event.params.pubId.toString());
+// if (comment) {
+// comment.collectedBy = event.params.collector.toHexString();
+// comment.save();
+// }
+
+// let mirror = Mirror.load(event.params.pubId.toString());
+// if (mirror) {
+// mirror.collectedBy = event.params.collector.toHexString();
+// mirror.save();
+// }
+// }
diff --git a/src/metadata.ts b/src/metadata.ts
new file mode 100644
index 0000000..6e13ea1
--- /dev/null
+++ b/src/metadata.ts
@@ -0,0 +1,23 @@
+import { json, Bytes, dataSource } from "@graphprotocol/graph-ts";
+import { MetadataOutput } from "../generated/schema";
+
+export function handleMetadata(content: Bytes): void {
+ let metadata = new MetadataOutput(dataSource.stringParam());
+ const value = json.fromBytes(content).toObject();
+
+ if (value) {
+ const image = value.get("image");
+ const name = value.get("name");
+ const description = value.get("description");
+ const content = value.get("content");
+
+ if (name && image && description && content) {
+ metadata.name = name.toString();
+ metadata.image = image.toString();
+ metadata.description = description.toString();
+ metadata.content = content.toString();
+ }
+
+ metadata.save();
+ }
+}
diff --git a/subgraph.yaml b/subgraph.yaml
index cdace1c..6404f78 100644
--- a/subgraph.yaml
+++ b/subgraph.yaml
@@ -1,4 +1,5 @@
specVersion: 0.0.5
+description: asdf
schema:
file: ./schema.graphql
dataSources:
@@ -11,7 +12,7 @@ dataSources:
startBlock: 28384641
mapping:
kind: ethereum/events
- apiVersion: 0.0.5
+ apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AdminChanged
@@ -27,14 +28,27 @@ dataSources:
# handler: handleBeaconUpgraded
# - event: Upgraded(indexed address)
# handler: handleUpgraded
- - event: ProfileCreated(indexed uint256,indexed address,indexed address,string,string,address,bytes,string,uint256)
- handler: handleProfileCreated
+ # - event: ProfileCreated(indexed uint256,indexed address,indexed address,string,string,address,bytes,string,uint256)
+ # handler: handleProfileCreated
- event: PostCreated(indexed uint256,indexed uint256,string,address,bytes,address,bytes,uint256)
handler: handlePostCreated
- - event: CommentCreated(indexed uint256,indexed uint256,string,uint256,uint256,bytes,address,bytes,address,bytes,uint256)
- handler: handleCommentCreated
- - event: MirrorCreated(indexed uint256,indexed uint256,uint256,uint256,bytes,address,bytes,uint256)
- handler: handleMirrorCreated
- - event: Collected(indexed address,indexed uint256,indexed uint256,uint256,uint256,uint256)
- handler: handleCollected
+ # - event: CommentCreated(indexed uint256,indexed uint256,string,uint256,uint256,bytes,address,bytes,address,bytes,uint256)
+ # handler: handleCommentCreated
+ # - event: MirrorCreated(indexed uint256,indexed uint256,uint256,uint256,bytes,address,bytes,uint256)
+ # handler: handleMirrorCreated
+ # - event: Collected(indexed address,indexed uint256,indexed uint256,uint256,uint256,uint256)
+ # handler: handleCollected
file: ./src/lens-hub.ts
+templates:
+ - name: MetadataTemplate
+ kind: file/ipfs
+ mapping:
+ apiVersion: 0.0.7
+ language: wasm/assemblyscript
+ file: ./src/metadata.ts
+ handler: handleMetadata
+ entities:
+ - MetadataOutput
+ abis:
+ - name: Token
+ file: ./abis/LensHub.json
diff --git a/yarn.lock b/yarn.lock
index 34de586..878fa55 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -206,16 +206,27 @@
"@ethersproject/properties" "^5.6.0"
"@ethersproject/strings" "^5.6.1"
-"@graphprotocol/graph-cli@0.30.0":
- version "0.30.0"
- resolved "https://registry.yarnpkg.com/@graphprotocol/graph-cli/-/graph-cli-0.30.0.tgz#ed660426b10a319f5724b1e58336f66b795ef3a9"
- integrity sha512-dpj3cy6/49+MKcQxtuZoiFVW/GwiFD+2p12I3Ly59vNtO0rxP/PoEXp9T3SRFkcxyFEOD74IGA3mcHOkYi0jDg==
- dependencies:
+"@float-capital/float-subgraph-uncrashable@^0.0.0-alpha.4":
+ version "0.0.0-internal-testing.5"
+ resolved "https://registry.yarnpkg.com/@float-capital/float-subgraph-uncrashable/-/float-subgraph-uncrashable-0.0.0-internal-testing.5.tgz#060f98440f6e410812766c5b040952d2d02e2b73"
+ integrity sha512-yZ0H5e3EpAYKokX/AbtplzlvSxEJY7ZfpvQyDzyODkks0hakAAlDG6fQu1SlDJMWorY7bbq1j7fCiFeTWci6TA==
+ dependencies:
+ "@rescript/std" "9.0.0"
+ graphql "^16.6.0"
+ graphql-import-node "^0.0.5"
+ js-yaml "^4.1.0"
+
+"@graphprotocol/graph-cli@0.36.1":
+ version "0.36.1"
+ resolved "https://registry.yarnpkg.com/@graphprotocol/graph-cli/-/graph-cli-0.36.1.tgz#025546d368985c9b0ce42064926bdf72dc54e6be"
+ integrity sha512-JTiIyPBxLKBOliC7Mdci8A+ApzOmfuGRHNQukgZVWn2+ktld/d/hPLghEKIgE+Fy4z8hCWa865oPUHV6r/J4+Q==
+ dependencies:
+ "@float-capital/float-subgraph-uncrashable" "^0.0.0-alpha.4"
assemblyscript "0.19.10"
binary-install-raw "0.0.13"
chalk "3.0.0"
chokidar "3.5.1"
- debug "4.1.1"
+ debug "4.3.1"
docker-compose "0.23.4"
dockerode "2.5.8"
fs-extra "9.0.0"
@@ -224,7 +235,7 @@
graphql "15.5.0"
immutable "3.8.2"
ipfs-http-client "34.0.0"
- jayson "3.2.0"
+ jayson "3.6.6"
js-yaml "3.13.1"
node-fetch "2.6.0"
pkginfo "0.4.1"
@@ -237,13 +248,18 @@
which "2.0.2"
yaml "1.9.2"
-"@graphprotocol/graph-ts@0.27.0":
- version "0.27.0"
- resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.27.0.tgz#948fe1716f6082964a01a63a19bcbf9ac44e06ff"
- integrity sha512-r1SPDIZVQiGMxcY8rhFSM0y7d/xAbQf5vHMWUf59js1KgoyWpM6P3tczZqmQd7JTmeyNsDGIPzd9FeaxllsU4w==
+"@graphprotocol/graph-ts@0.29.0":
+ version "0.29.0"
+ resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.29.0.tgz#0b9fb72dece2dccf921f6f11518c7fec3830ab79"
+ integrity sha512-9rCouklL2CjlqtywcwSw++MzjBWlmm6274j4s5HokjOTxr64ER7SCKx+2iCqVV0/S7ivc63MzIHlCLSCjPjbiA==
dependencies:
assemblyscript "0.19.10"
+"@rescript/std@9.0.0":
+ version "9.0.0"
+ resolved "https://registry.yarnpkg.com/@rescript/std/-/std-9.0.0.tgz#df53f3fa5911cb4e85bd66b92e9e58ddf3e4a7e1"
+ integrity sha512-zGzFsgtZ44mgL4Xef2gOy1hrRVdrs9mcxCOOKZrIPsmbZW14yTkaF591GXxpQvjXiHtgZ/iA9qLyWH6oSReIxQ==
+
"@types/bn.js@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-5.1.0.tgz#32c5d271503a12653c62cf4d2b45e6eab8cebc68"
@@ -258,17 +274,17 @@
dependencies:
"@types/node" "*"
-"@types/connect@^3.4.32":
+"@types/connect@^3.4.33":
version "3.4.35"
resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.35.tgz#5fcf6ae445e4021d1fc2219a4873cc73a3bb2ad1"
integrity sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==
dependencies:
"@types/node" "*"
-"@types/express-serve-static-core@^4.16.9":
- version "4.17.29"
- resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.29.tgz#2a1795ea8e9e9c91b4a4bbe475034b20c1ec711c"
- integrity sha512-uMd++6dMKS32EOuw1Uli3e3BPgdLIXmezcfHv7N4c1s3gkhikBplORPpMq3fuWkxncZN1reb16d5n8yhQ80x7Q==
+"@types/express-serve-static-core@^4.17.9":
+ version "4.17.33"
+ resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.33.tgz#de35d30a9d637dc1450ad18dd583d75d5733d543"
+ integrity sha512-TPBqmR/HRYI3eC2E5hmiivIzv+bidAfXofM+sbonAGvyDhySGw9/PQZFt2BLOrjUUR++4eJVpx6KnLQK1Fk9tA==
dependencies:
"@types/node" "*"
"@types/qs" "*"
@@ -281,10 +297,10 @@
dependencies:
"@types/node" "*"
-"@types/lodash@^4.14.139":
- version "4.14.182"
- resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
- integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
+"@types/lodash@^4.14.159":
+ version "4.14.191"
+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa"
+ integrity sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==
"@types/node@*":
version "18.0.3"
@@ -296,7 +312,7 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
-"@types/node@^12.7.7":
+"@types/node@^12.12.54":
version "12.20.55"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.55.tgz#c329cbd434c42164f846b909bd6f85b5537f6240"
integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==
@@ -335,6 +351,13 @@
dependencies:
"@types/node" "*"
+"@types/ws@^7.4.4":
+ version "7.4.7"
+ resolved "https://registry.yarnpkg.com/@types/ws/-/ws-7.4.7.tgz#f7c390a36f7a0679aa69de2d501319f4f8d9b702"
+ integrity sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==
+ dependencies:
+ "@types/node" "*"
+
JSONStream@1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"
@@ -343,7 +366,7 @@ JSONStream@1.3.2:
jsonparse "^1.2.0"
through ">=2.2.7 <3"
-JSONStream@^1.3.1:
+JSONStream@^1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==
@@ -425,6 +448,11 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"
+argparse@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
+ integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
+
asap@~2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
@@ -452,6 +480,11 @@ asn1@~0.2.3:
dependencies:
safer-buffer "~2.1.0"
+assemblyscript-regex@^1.6.4:
+ version "1.6.4"
+ resolved "https://registry.yarnpkg.com/assemblyscript-regex/-/assemblyscript-regex-1.6.4.tgz#b0755b470fc817fdb0957b9d7b5f473b6474e809"
+ integrity sha512-LiuyzuPMASyZLRgZrIktyLyZjxihEhHkzfRHv8FPDnLhBn8WefFe45jGF6Ug06/0rMMdNNRuQS3qXVLy9YyO6g==
+
assemblyscript@0.19.10:
version "0.19.10"
resolved "https://registry.yarnpkg.com/assemblyscript/-/assemblyscript-0.19.10.tgz#7ede6d99c797a219beb4fa4614c3eab9e6343c8e"
@@ -883,7 +916,7 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
dependencies:
delayed-stream "~1.0.0"
-commander@^2.12.2, commander@^2.15.0:
+commander@^2.15.0, commander@^2.20.3:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
@@ -970,12 +1003,12 @@ dashdash@^1.12.0:
dependencies:
assert-plus "^1.0.0"
-debug@4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
- integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
+debug@4.3.1:
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee"
+ integrity sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==
dependencies:
- ms "^2.1.1"
+ ms "2.1.2"
debug@^3.2.6:
version "3.2.7"
@@ -1003,6 +1036,11 @@ defaults@^1.0.3:
dependencies:
clone "^1.0.2"
+delay@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/delay/-/delay-5.0.0.tgz#137045ef1b96e5071060dd5be60bf9334436bd1d"
+ integrity sha512-ReEBKkIfe4ya47wlPYf/gu5ib6yUG0/Aez0JQZQz94kiWtRQvZIQbTiehsnwHvLSWJnQdhVeqYue7Id1dKr0qw==
+
delayed-stream@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
@@ -1431,11 +1469,21 @@ graceful-fs@^4.1.6, graceful-fs@^4.2.0:
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
+graphql-import-node@^0.0.5:
+ version "0.0.5"
+ resolved "https://registry.yarnpkg.com/graphql-import-node/-/graphql-import-node-0.0.5.tgz#caf76a6cece10858b14f27cce935655398fc1bf0"
+ integrity sha512-OXbou9fqh9/Lm7vwXT0XoRN9J5+WCYKnbiTalgFDvkQERITRmcfncZs6aVABedd5B85yQU5EULS4a5pnbpuI0Q==
+
graphql@15.5.0:
version "15.5.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-15.5.0.tgz#39d19494dbe69d1ea719915b578bf920344a69d5"
integrity sha512-OmaM7y0kaK31NKG31q4YbD2beNYa6jBBKtMFT6gLYJljHLJr42IqJ8KX08u3Li/0ifzTU5HjmoOOrwa5BRLeDA==
+graphql@^16.6.0:
+ version "16.6.0"
+ resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.6.0.tgz#c2dcffa4649db149f6282af726c8c83f1c7c5fdb"
+ integrity sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==
+
har-schema@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
@@ -1832,6 +1880,11 @@ iso-url@~0.4.6, iso-url@~0.4.7:
resolved "https://registry.yarnpkg.com/iso-url/-/iso-url-0.4.7.tgz#de7e48120dae46921079fe78f325ac9e9217a385"
integrity sha512-27fFRDnPAMnHGLq36bWTpKET+eiXct3ENlCcdcMdk+mjXrb2kw3mhBUg1B7ewAC0kVzlOPhADzQgz1SE6Tglog==
+isomorphic-ws@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc"
+ integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==
+
isstream@~0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -1844,22 +1897,26 @@ iterable-ndjson@^1.1.0:
dependencies:
string_decoder "^1.2.0"
-jayson@3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/jayson/-/jayson-3.2.0.tgz#df6d8139cd9f6ee2f56c8c2deaee448da7eccf1b"
- integrity sha512-DZQnwA57GcStw4soSYB2VntWXFfoWvmSarlaWePDYOWhjxT72PBM4atEBomaTaS1uqk3jFC9UO9AyWjlujo3xw==
- dependencies:
- "@types/connect" "^3.4.32"
- "@types/express-serve-static-core" "^4.16.9"
- "@types/lodash" "^4.14.139"
- "@types/node" "^12.7.7"
- JSONStream "^1.3.1"
- commander "^2.12.2"
+jayson@3.6.6:
+ version "3.6.6"
+ resolved "https://registry.yarnpkg.com/jayson/-/jayson-3.6.6.tgz#189984f624e398f831bd2be8e8c80eb3abf764a1"
+ integrity sha512-f71uvrAWTtrwoww6MKcl9phQTC+56AopLyEenWvKVAIMz+q0oVGj6tenLZ7Z6UiPBkJtKLj4kt0tACllFQruGQ==
+ dependencies:
+ "@types/connect" "^3.4.33"
+ "@types/express-serve-static-core" "^4.17.9"
+ "@types/lodash" "^4.14.159"
+ "@types/node" "^12.12.54"
+ "@types/ws" "^7.4.4"
+ JSONStream "^1.3.5"
+ commander "^2.20.3"
+ delay "^5.0.0"
es6-promisify "^5.0.0"
eyes "^0.1.8"
+ isomorphic-ws "^4.0.1"
json-stringify-safe "^5.0.1"
- lodash "^4.17.15"
- uuid "^3.2.1"
+ lodash "^4.17.20"
+ uuid "^8.3.2"
+ ws "^7.4.5"
js-sha3@0.8.0, js-sha3@^0.8.0, js-sha3@~0.8.0:
version "0.8.0"
@@ -1879,6 +1936,13 @@ js-yaml@3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"
+js-yaml@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602"
+ integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==
+ dependencies:
+ argparse "^2.0.1"
+
jsbn@~0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
@@ -2091,7 +2155,7 @@ lodash.upperfirst@^4.3.1:
resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce"
integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg==
-lodash@^4.17.14, lodash@^4.17.15:
+lodash@^4.17.14, lodash@^4.17.20:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
@@ -3260,11 +3324,16 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1:
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
-uuid@^3.2.1, uuid@^3.3.2:
+uuid@^3.3.2:
version "3.4.0"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
+uuid@^8.3.2:
+ version "8.3.2"
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
+ integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
+
varint@^5.0.0, varint@~5.0.0:
version "5.0.2"
resolved "https://registry.yarnpkg.com/varint/-/varint-5.0.2.tgz#5b47f8a947eb668b848e034dcfa87d0ff8a7f7a4"
@@ -3337,6 +3406,11 @@ wrappy@1:
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
+ws@^7.4.5:
+ version "7.5.9"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591"
+ integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==
+
xtend@^4.0.0:
version "4.0.2"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"