Skip to content

Commit

Permalink
Release 0.0.302
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 19, 2023
1 parent 7efbaef commit b75853c
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@syndicateio/syndicate-node",
"version": "0.0.286",
"version": "0.0.302",
"private": false,
"repository": "https://github.com/SyndicateProtocol/syndicate-node",
"main": "./index.js",
Expand Down
14 changes: 7 additions & 7 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

import * as core from "./core";
import { Wallet } from "./api/resources/wallet/client/Client";
import { Transact } from "./api/resources/transact/client/Client";
import { Wallet } from "./api/resources/wallet/client/Client";

export declare namespace SyndicateClient {
interface Options {
Expand All @@ -19,15 +19,15 @@ export declare namespace SyndicateClient {
export class SyndicateClient {
constructor(protected readonly _options: SyndicateClient.Options) {}

protected _wallet: Wallet | undefined;

public get wallet(): Wallet {
return (this._wallet ??= new Wallet(this._options));
}

protected _transact: Transact | undefined;

public get transact(): Transact {
return (this._transact ??= new Transact(this._options));
}

protected _wallet: Wallet | undefined;

public get wallet(): Wallet {
return (this._wallet ??= new Wallet(this._options));
}
}
2 changes: 1 addition & 1 deletion src/api/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as wallet from "./wallet";
export * as transact from "./transact";
export * as wallet from "./wallet";
2 changes: 1 addition & 1 deletion src/api/resources/transact/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Transact {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
body: await serializers.transact.SendTransactionRequest.jsonOrThrow(request, {
Expand Down
16 changes: 8 additions & 8 deletions src/api/resources/wallet/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
body: await serializers.wallet.CreateWalletRequest.jsonOrThrow(request, {
Expand Down Expand Up @@ -104,7 +104,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
body: await serializers.wallet.RetireWalletRequest.jsonOrThrow(request, {
Expand Down Expand Up @@ -167,7 +167,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down Expand Up @@ -212,7 +212,7 @@ export class Wallet {
* Gets a list of transaction requests for a project
* @throws {@link Syndicate.wallet.TransactionNotFoundError}
*/
public async getTransactionRequestsByProjects(
public async getTransactionRequestsByProject(
projectId: string,
request: Syndicate.wallet.GetRequestsByProjectIdRequest = {},
requestOptions?: Wallet.RequestOptions
Expand All @@ -238,7 +238,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -302,7 +302,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -387,7 +387,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -438,7 +438,7 @@ export class Wallet {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@syndicateio/syndicate-node",
"X-Fern-SDK-Version": "0.0.286",
"X-Fern-SDK-Version": "0.0.302",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
3 changes: 3 additions & 0 deletions src/api/resources/wallet/types/TransactionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export interface TransactionResponse {
invalid: boolean;
contractAddress: string;
functionSignature: string;
/** ABI encoded representation of the function name and parameters passed as input */
data: string;
/** Decoded function arguments passed as input to the contract's function identified by 'functionSignature' */
decodedData?: Record<string, unknown>;
value: string;
createdAt: Date;
updatedAt: Date;
Expand Down
2 changes: 1 addition & 1 deletion src/serialization/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as wallet from "./wallet";
export * as transact from "./transact";
export * as wallet from "./wallet";
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const TransactionResponse: core.serialization.ObjectSchema<
contractAddress: core.serialization.string(),
functionSignature: core.serialization.string(),
data: core.serialization.string(),
decodedData: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
value: core.serialization.string(),
createdAt: core.serialization.date(),
updatedAt: core.serialization.date(),
Expand All @@ -34,6 +35,7 @@ export declare namespace TransactionResponse {
contractAddress: string;
functionSignature: string;
data: string;
decodedData?: Record<string, unknown> | null;
value: string;
createdAt: string;
updatedAt: string;
Expand Down

0 comments on commit b75853c

Please sign in to comment.