Class Badge

Hierarchy

  • Badge

Constructors

Methods

  • Parameters

    • badgeAccount: PublicKey
    • issuer: PublicKey
    • schema: PublicKey
    • holder: PublicKey
    • signer: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Parameters

    • metadataUri: string
    • issuer: PublicKey
    • schema: PublicKey
    • holderProfile: PublicKey
    • updateAuthority: PublicKey
    • authority: PublicKey

    Returns Promise<{
        badgePDA: PublicKey;
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
    }>

  • Parameters

    • authority: PublicKey

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        issuerPDA: PublicKey;
    }>

  • Parameters

    • metadataUri: string
    • authority: PublicKey

    Returns Promise<{
        instructionMethodBuilder: MethodsBuilder<GplCore, Object>;
        schemaPDA: PublicKey;
    }>

  • Parameters

    • issuerAccount: PublicKey
    • authority: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Parameters

    • schemaAccount: PublicKey
    • authority: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Returns Promise<GraphQLBadge[]>

  • Parameters

    • userAccount: PublicKey

    Returns Promise<DecodeStruct<{
        fields: [{
            name: "issuer";
            type: "publicKey";
        }, {
            name: "holder";
            type: "publicKey";
        }, {
            name: "updateAuthority";
            type: "publicKey";
        }, {
            name: "schema";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "verified";
            type: "bool";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toProfile";
            type: "publicKey";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "profile";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }, {
            name: "replyTo";
            type: {
                option: "publicKey";
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "screenName";
            type: "publicKey";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toPost";
            type: "publicKey";
        }, {
            name: "reactionType";
            type: "string";
        }];
        kind: "struct";
    }, DecodedHelper<[{
        name: "PostError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ProfileMetadataError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ConnectionError";
        type: {
            kind: "enum";
            variants: [{
                name: "CannotConnectToSelf";
            }];
        };
    }], EmptyDefined>>>

  • Parameters

    • holder: string

    Returns Promise<GraphQLBadge[]>

  • Parameters

    • issuer: string

    Returns Promise<GraphQLBadge[]>

  • Parameters

    • credentialId: string

    Returns Promise<any>

  • Parameters

    • issuerGatewayId: string

    Returns Promise<any>

  • Parameters

    • userWallet: any

    Returns Promise<any>

  • Parameters

    • issuerAccount: PublicKey

    Returns Promise<DecodeStruct<{
        fields: [{
            name: "issuer";
            type: "publicKey";
        }, {
            name: "holder";
            type: "publicKey";
        }, {
            name: "updateAuthority";
            type: "publicKey";
        }, {
            name: "schema";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "verified";
            type: "bool";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toProfile";
            type: "publicKey";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "profile";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }, {
            name: "replyTo";
            type: {
                option: "publicKey";
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "screenName";
            type: "publicKey";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toPost";
            type: "publicKey";
        }, {
            name: "reactionType";
            type: "string";
        }];
        kind: "struct";
    }, DecodedHelper<[{
        name: "PostError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ProfileMetadataError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ConnectionError";
        type: {
            kind: "enum";
            variants: [{
                name: "CannotConnectToSelf";
            }];
        };
    }], EmptyDefined>>>

  • Parameters

    • address: string

    Returns Promise<GraphQLIssuer>

  • Parameters

    • authority: string

    Returns Promise<GraphQLIssuer[]>

  • Parameters

    • schemaAccount: PublicKey

    Returns Promise<DecodeStruct<{
        fields: [{
            name: "issuer";
            type: "publicKey";
        }, {
            name: "holder";
            type: "publicKey";
        }, {
            name: "updateAuthority";
            type: "publicKey";
        }, {
            name: "schema";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "verified";
            type: "bool";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toProfile";
            type: "publicKey";
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "profile";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }, {
            name: "replyTo";
            type: {
                option: "publicKey";
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "authority";
            type: "publicKey";
        }, {
            name: "metadataUri";
            type: "string";
        }, {
            name: "screenName";
            type: "publicKey";
        }, {
            name: "randomHash";
            type: {
                array: ["u8", 32];
            };
        }];
        kind: "struct";
    } | {
        fields: [{
            name: "fromProfile";
            type: "publicKey";
        }, {
            name: "toPost";
            type: "publicKey";
        }, {
            name: "reactionType";
            type: "string";
        }];
        kind: "struct";
    }, DecodedHelper<[{
        name: "PostError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ProfileMetadataError";
        type: {
            kind: "enum";
            variants: [{
                name: "URITooLong";
            }];
        };
    }, {
        name: "ConnectionError";
        type: {
            kind: "enum";
            variants: [{
                name: "CannotConnectToSelf";
            }];
        };
    }], EmptyDefined>>>

  • Parameters

    • metadataUri: string
    • badgeAccount: PublicKey
    • issuer: PublicKey
    • schema: PublicKey
    • signer: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Parameters

    • metadataUri: string
    • authority: PublicKey
    • schemaAccount: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

  • Parameters

    • issuerAccount: PublicKey
    • signer: PublicKey

    Returns Promise<MethodsBuilder<GplCore, Object>>

Generated using TypeDoc