Skip to content

Commit

Permalink
feat(js-sdk): add transfer def in Platform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Jan 20, 2025
1 parent 9bca0cd commit 9dad661
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/js-dash-sdk/src/SDK/Client/Platform/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import createAssetLockTransaction from './createAssetLockTransaction';

import broadcastDocument from './methods/documents/broadcast';
import createDocument from './methods/documents/create';
import transferDocument from './methods/documents/transfer';
import updatePriceDocument from './methods/documents/updatePrice';
import purchaseDocument from './methods/documents/purchase';
import getDocument from './methods/documents/get';

import publishContract from './methods/contracts/publish';
Expand Down Expand Up @@ -58,6 +61,9 @@ export interface PlatformOpts {
interface Records {
broadcast: Function,
create: Function,
transfer: Function,
updatePrice: Function,
purchase: Function,
get: Function,
}

Expand Down Expand Up @@ -165,6 +171,9 @@ export class Platform {
this.documents = {
broadcast: broadcastDocument.bind(this),
create: createDocument.bind(this),
transfer: transferDocument.bind(this),
updatePrice: updatePriceDocument.bind(this),
purchase: purchaseDocument.bind(this),
get: getDocument.bind(this),
};
this.contracts = {
Expand Down

0 comments on commit 9dad661

Please sign in to comment.