1.0.11 • Published 6 months ago

@open-social-protocol/osp-client-abstract v1.0.11

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 months ago

@open-social-protocol/osp-client-abstract

osp-client-abstract is a opensocial js sdk.

Installation

Use the package manager pnpm or npm to install osp-client-abstract.

pnpm add @open-social-protocol/osp-client-abstract

or

npm i @open-social-protocol/osp-client-abstract

Usage

import { AbstractClient } from "@abstract-foundation/agw-client";
import {
  AbstractWalletAdapter,
  Environment,
  OspClient,
} from "@open-social-protocol/osp-client-abstract";

// see https://docs.abs.xyz/abstract-global-wallet/agw-react/hooks/useAbstractClient
let abstractClient: AbstractClient;

async function main() {
  const ospClient = await OspClient.create({
    env: Environment.dev,
    app_id: "332586477308740133",
    storage: localStorage,
  });

  await ospClient.authentication.walletLogin(
    new AbstractWalletAdapter(abstractClient)
  );
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.0.8

9 months ago

1.1.0

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago