UNPKG

@bridgesplit/rwa-token-sdk

Version:

RWA Token SDK for the development of permissioned tokens on SVM blockchains.

28 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RwaClient = void 0; const AssetController_1 = require("./AssetController"); const IdentityRegistry_1 = require("./IdentityRegistry"); const PolicyEngine_1 = require("./PolicyEngine"); const DataRegistry_1 = require("./DataRegistry"); const anchor_1 = require("@coral-xyz/anchor"); /** * Represents a client for interacting with Real World Assets (RWA). */ class RwaClient { /** * Constructs a new instance of the RwaClient. * @param rwaConfig The configuration for the RWA client. * @param wallet Anchor wallet used for provider */ constructor(config, wallet) { this.config = config; this.provider = new anchor_1.AnchorProvider(config.connection, wallet, config.confirmationOptions); this.assetController = new AssetController_1.AssetController(this); this.dataRegistry = new DataRegistry_1.DataRegistry(this); this.identityRegistry = new IdentityRegistry_1.IdentityRegistry(this); this.policyEngine = new PolicyEngine_1.PolicyEngine(this); } } exports.RwaClient = RwaClient; //# sourceMappingURL=Client.js.map