New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/chaind

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/chaind - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

6

CHANGELOG.md
# @0xsequence/chaind
## 0.16.0
### Minor Changes
- relayer as its own service separate from chaind
## 0.15.1

@@ -4,0 +10,0 @@

117

dist/0xsequence-chaind.cjs.dev.js

@@ -24,3 +24,3 @@ 'use strict';

/* eslint-disable */
// chaind v0.1.0 cc433c812330197c7087fb887d55bcd0eaaa8a05
// chaind v0.1.0 531b5f9feca9a458710a75e770b5ad8f4bdb77e2
// --

@@ -34,3 +34,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "cc433c812330197c7087fb887d55bcd0eaaa8a05"; //
const WebRPCSchemaHash = "531b5f9feca9a458710a75e770b5ad8f4bdb77e2"; //
// Types

@@ -149,115 +149,2 @@ //

this.sendMetaTxn = (args, headers) => {
return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
txnHash: _data.txnHash
};
});
});
};
this.getMetaTxnReceipt = (args, headers) => {
return this.fetch(this.url('GetMetaTxnReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
receipt: _data.receipt
};
});
});
};
this.getMetaTxnNonce = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNonce'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
nonce: _data.nonce
};
});
});
};
this.getSmartWalletContext = headers => {
return this.fetch(this.url('GetSmartWalletContext'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
data: _data.data
};
});
});
};
this.getChainID = headers => {
return this.fetch(this.url('GetChainID'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
chainID: _data.chainID
};
});
});
};
this.tokenFee = headers => {
return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
isFee: _data.isFee,
fee: _data.fee
};
});
});
};
this.getEstimatedTime = headers => {
return this.fetch(this.url('GetEstimatedTime'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
seconds: _data.seconds
};
});
});
};
this.updateMetaTxnGasLimits = (args, headers) => {
return this.fetch(this.url('UpdateMetaTxnGasLimits'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
payload: _data.payload
};
});
});
};
this.getMetaTxnNetworkFeeOptions = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNetworkFeeOptions'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
options: _data.options
};
});
});
};
this.pushMetaTxn = (args, headers) => {
return this.fetch(this.url('PushMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.getMetaTxn = (args, headers) => {
return this.fetch(this.url('GetMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
signedMetaTxn: _data.signedMetaTxn
};
});
});
};
this.hostname = hostname;

@@ -264,0 +151,0 @@ this.fetch = fetch;

@@ -24,3 +24,3 @@ 'use strict';

/* eslint-disable */
// chaind v0.1.0 cc433c812330197c7087fb887d55bcd0eaaa8a05
// chaind v0.1.0 531b5f9feca9a458710a75e770b5ad8f4bdb77e2
// --

@@ -34,3 +34,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "cc433c812330197c7087fb887d55bcd0eaaa8a05"; //
const WebRPCSchemaHash = "531b5f9feca9a458710a75e770b5ad8f4bdb77e2"; //
// Types

@@ -149,115 +149,2 @@ //

this.sendMetaTxn = (args, headers) => {
return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
txnHash: _data.txnHash
};
});
});
};
this.getMetaTxnReceipt = (args, headers) => {
return this.fetch(this.url('GetMetaTxnReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
receipt: _data.receipt
};
});
});
};
this.getMetaTxnNonce = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNonce'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
nonce: _data.nonce
};
});
});
};
this.getSmartWalletContext = headers => {
return this.fetch(this.url('GetSmartWalletContext'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
data: _data.data
};
});
});
};
this.getChainID = headers => {
return this.fetch(this.url('GetChainID'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
chainID: _data.chainID
};
});
});
};
this.tokenFee = headers => {
return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
isFee: _data.isFee,
fee: _data.fee
};
});
});
};
this.getEstimatedTime = headers => {
return this.fetch(this.url('GetEstimatedTime'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
seconds: _data.seconds
};
});
});
};
this.updateMetaTxnGasLimits = (args, headers) => {
return this.fetch(this.url('UpdateMetaTxnGasLimits'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
payload: _data.payload
};
});
});
};
this.getMetaTxnNetworkFeeOptions = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNetworkFeeOptions'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
options: _data.options
};
});
});
};
this.pushMetaTxn = (args, headers) => {
return this.fetch(this.url('PushMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.getMetaTxn = (args, headers) => {
return this.fetch(this.url('GetMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
signedMetaTxn: _data.signedMetaTxn
};
});
});
};
this.hostname = hostname;

@@ -264,0 +151,0 @@ this.fetch = fetch;

@@ -20,3 +20,3 @@ function _extends() {

/* eslint-disable */
// chaind v0.1.0 cc433c812330197c7087fb887d55bcd0eaaa8a05
// chaind v0.1.0 531b5f9feca9a458710a75e770b5ad8f4bdb77e2
// --

@@ -30,3 +30,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

const WebRPCSchemaHash = "cc433c812330197c7087fb887d55bcd0eaaa8a05"; //
const WebRPCSchemaHash = "531b5f9feca9a458710a75e770b5ad8f4bdb77e2"; //
// Types

@@ -145,115 +145,2 @@ //

this.sendMetaTxn = (args, headers) => {
return this.fetch(this.url('SendMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
txnHash: _data.txnHash
};
});
});
};
this.getMetaTxnReceipt = (args, headers) => {
return this.fetch(this.url('GetMetaTxnReceipt'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
receipt: _data.receipt
};
});
});
};
this.getMetaTxnNonce = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNonce'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
nonce: _data.nonce
};
});
});
};
this.getSmartWalletContext = headers => {
return this.fetch(this.url('GetSmartWalletContext'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
data: _data.data
};
});
});
};
this.getChainID = headers => {
return this.fetch(this.url('GetChainID'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
chainID: _data.chainID
};
});
});
};
this.tokenFee = headers => {
return this.fetch(this.url('TokenFee'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
isFee: _data.isFee,
fee: _data.fee
};
});
});
};
this.getEstimatedTime = headers => {
return this.fetch(this.url('GetEstimatedTime'), createHTTPRequest({}, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
seconds: _data.seconds
};
});
});
};
this.updateMetaTxnGasLimits = (args, headers) => {
return this.fetch(this.url('UpdateMetaTxnGasLimits'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
payload: _data.payload
};
});
});
};
this.getMetaTxnNetworkFeeOptions = (args, headers) => {
return this.fetch(this.url('GetMetaTxnNetworkFeeOptions'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
options: _data.options
};
});
});
};
this.pushMetaTxn = (args, headers) => {
return this.fetch(this.url('PushMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status
};
});
});
};
this.getMetaTxn = (args, headers) => {
return this.fetch(this.url('GetMetaTxn'), createHTTPRequest(args, headers)).then(res => {
return buildResponse(res).then(_data => {
return {
status: _data.status,
signedMetaTxn: _data.signedMetaTxn
};
});
});
};
this.hostname = hostname;

@@ -260,0 +147,0 @@ this.fetch = fetch;

export declare const WebRPCVersion = "v1";
export declare const WebRPCSchemaVersion = "v0.1.0";
export declare const WebRPCSchemaHash = "cc433c812330197c7087fb887d55bcd0eaaa8a05";
export declare const WebRPCSchemaHash = "531b5f9feca9a458710a75e770b5ad8f4bdb77e2";
export declare enum SortOrder {

@@ -31,22 +31,2 @@ DESC = "DESC",

}
export interface MetaTxn {
contract: string;
input: string;
digest?: string;
}
export interface TxnObj {
to: string;
objs: Array<TxnObj>;
txnStatus: string;
txnRevertReason: string;
logs?: Array<any>;
}
export interface MetaTxnReceipt {
id: string;
status: string;
revertReason: string;
gasUsed: number;
txnReceipt: string;
batch: TxnObj;
}
export interface TokenTransfer {

@@ -60,25 +40,2 @@ recipientAddress: string;

}
export interface SmartWalletContext {
factory: string;
module: string;
guestModule: string;
}
export interface MetaTxSigner {
address: string;
weight: number;
}
export interface MetaTxSig {
address: string;
signature: string;
digest?: string;
}
export interface WalletConfigImage {
imageHash: string;
threshold: number;
signers: Array<MetaTxSigner>;
}
export interface WalletImage {
walletAddress: string;
imageHash: string;
}
export interface Version {

@@ -113,13 +70,2 @@ webrpcVersion: string;

contractCall(args: ContractCallArgs, headers?: object): Promise<ContractCallReturn>;
sendMetaTxn(args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn>;
getMetaTxnReceipt(args: GetMetaTxnReceiptArgs, headers?: object): Promise<GetMetaTxnReceiptReturn>;
getMetaTxnNonce(args: GetMetaTxnNonceArgs, headers?: object): Promise<GetMetaTxnNonceReturn>;
getSmartWalletContext(headers?: object): Promise<GetSmartWalletContextReturn>;
getChainID(headers?: object): Promise<GetChainIDReturn>;
tokenFee(headers?: object): Promise<TokenFeeReturn>;
getEstimatedTime(headers?: object): Promise<GetEstimatedTimeReturn>;
updateMetaTxnGasLimits(args: UpdateMetaTxnGasLimitsArgs, headers?: object): Promise<UpdateMetaTxnGasLimitsReturn>;
getMetaTxnNetworkFeeOptions(args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object): Promise<GetMetaTxnNetworkFeeOptionsReturn>;
pushMetaTxn(args: PushMetaTxnArgs, headers?: object): Promise<PushMetaTxnReturn>;
getMetaTxn(args: GetMetaTxnArgs, headers?: object): Promise<GetMetaTxnReturn>;
}

@@ -190,71 +136,2 @@ export interface PingArgs {

}
export interface SendMetaTxnArgs {
call: MetaTxn;
}
export interface SendMetaTxnReturn {
status: boolean;
txnHash: string;
}
export interface GetMetaTxnReceiptArgs {
metaTxID: string;
}
export interface GetMetaTxnReceiptReturn {
receipt: MetaTxnReceipt;
}
export interface GetMetaTxnNonceArgs {
walletContractAddress: string;
space?: string;
}
export interface GetMetaTxnNonceReturn {
nonce: string;
}
export interface GetSmartWalletContextArgs {
}
export interface GetSmartWalletContextReturn {
data: SmartWalletContext;
}
export interface GetChainIDArgs {
}
export interface GetChainIDReturn {
chainID: number;
}
export interface TokenFeeArgs {
}
export interface TokenFeeReturn {
isFee: boolean;
fee: string;
}
export interface GetEstimatedTimeArgs {
}
export interface GetEstimatedTimeReturn {
seconds: number;
}
export interface UpdateMetaTxnGasLimitsArgs {
walletAddress: string;
payload: string;
}
export interface UpdateMetaTxnGasLimitsReturn {
payload: string;
}
export interface GetMetaTxnNetworkFeeOptionsArgs {
walletAddress: string;
payload: string;
signers: number;
}
export interface GetMetaTxnNetworkFeeOptionsReturn {
options: Array<string>;
}
export interface PushMetaTxnArgs {
call: MetaTxn;
}
export interface PushMetaTxnReturn {
status: boolean;
}
export interface GetMetaTxnArgs {
call: MetaTxn;
}
export interface GetMetaTxnReturn {
status: boolean;
signedMetaTxn: MetaTxn;
}
export declare class ChaindService implements ChaindService {

@@ -275,13 +152,2 @@ protected hostname: string;

contractCall: (args: ContractCallArgs, headers?: object | undefined) => Promise<ContractCallReturn>;
sendMetaTxn: (args: SendMetaTxnArgs, headers?: object | undefined) => Promise<SendMetaTxnReturn>;
getMetaTxnReceipt: (args: GetMetaTxnReceiptArgs, headers?: object | undefined) => Promise<GetMetaTxnReceiptReturn>;
getMetaTxnNonce: (args: GetMetaTxnNonceArgs, headers?: object | undefined) => Promise<GetMetaTxnNonceReturn>;
getSmartWalletContext: (headers?: object | undefined) => Promise<GetSmartWalletContextReturn>;
getChainID: (headers?: object | undefined) => Promise<GetChainIDReturn>;
tokenFee: (headers?: object | undefined) => Promise<TokenFeeReturn>;
getEstimatedTime: (headers?: object | undefined) => Promise<GetEstimatedTimeReturn>;
updateMetaTxnGasLimits: (args: UpdateMetaTxnGasLimitsArgs, headers?: object | undefined) => Promise<UpdateMetaTxnGasLimitsReturn>;
getMetaTxnNetworkFeeOptions: (args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object | undefined) => Promise<GetMetaTxnNetworkFeeOptionsReturn>;
pushMetaTxn: (args: PushMetaTxnArgs, headers?: object | undefined) => Promise<PushMetaTxnReturn>;
getMetaTxn: (args: GetMetaTxnArgs, headers?: object | undefined) => Promise<GetMetaTxnReturn>;
}

@@ -288,0 +154,0 @@ export interface WebRPCError extends Error {

{
"name": "@0xsequence/chaind",
"version": "0.15.1",
"version": "0.16.0",
"description": "chaind sub-package for Sequence",

@@ -5,0 +5,0 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/chaind",

/* eslint-disable */
// chaind v0.1.0 cc433c812330197c7087fb887d55bcd0eaaa8a05
// chaind v0.1.0 531b5f9feca9a458710a75e770b5ad8f4bdb77e2
// --

@@ -14,3 +14,3 @@ // This file has been generated by https://github.com/webrpc/webrpc using gen/typescript

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "cc433c812330197c7087fb887d55bcd0eaaa8a05"
export const WebRPCSchemaHash = "531b5f9feca9a458710a75e770b5ad8f4bdb77e2"

@@ -53,25 +53,2 @@

export interface MetaTxn {
contract: string
input: string
digest?: string
}
export interface TxnObj {
to: string
objs: Array<TxnObj>
txnStatus: string
txnRevertReason: string
logs?: Array<any>
}
export interface MetaTxnReceipt {
id: string
status: string
revertReason: string
gasUsed: number
txnReceipt: string
batch: TxnObj
}
export interface TokenTransfer {

@@ -87,30 +64,2 @@ recipientAddress: string

export interface SmartWalletContext {
factory: string
module: string
guestModule: string
}
export interface MetaTxSigner {
address: string
weight: number
}
export interface MetaTxSig {
address: string
signature: string
digest?: string
}
export interface WalletConfigImage {
imageHash: string
threshold: number
signers: Array<MetaTxSigner>
}
export interface WalletImage {
walletAddress: string
imageHash: string
}
export interface Version {

@@ -148,13 +97,2 @@ webrpcVersion: string

contractCall(args: ContractCallArgs, headers?: object): Promise<ContractCallReturn>
sendMetaTxn(args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn>
getMetaTxnReceipt(args: GetMetaTxnReceiptArgs, headers?: object): Promise<GetMetaTxnReceiptReturn>
getMetaTxnNonce(args: GetMetaTxnNonceArgs, headers?: object): Promise<GetMetaTxnNonceReturn>
getSmartWalletContext(headers?: object): Promise<GetSmartWalletContextReturn>
getChainID(headers?: object): Promise<GetChainIDReturn>
tokenFee(headers?: object): Promise<TokenFeeReturn>
getEstimatedTime(headers?: object): Promise<GetEstimatedTimeReturn>
updateMetaTxnGasLimits(args: UpdateMetaTxnGasLimitsArgs, headers?: object): Promise<UpdateMetaTxnGasLimitsReturn>
getMetaTxnNetworkFeeOptions(args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object): Promise<GetMetaTxnNetworkFeeOptionsReturn>
pushMetaTxn(args: PushMetaTxnArgs, headers?: object): Promise<PushMetaTxnReturn>
getMetaTxn(args: GetMetaTxnArgs, headers?: object): Promise<GetMetaTxnReturn>
}

@@ -235,84 +173,4 @@

}
export interface SendMetaTxnArgs {
call: MetaTxn
}
export interface SendMetaTxnReturn {
status: boolean
txnHash: string
}
export interface GetMetaTxnReceiptArgs {
metaTxID: string
}
export interface GetMetaTxnReceiptReturn {
receipt: MetaTxnReceipt
}
export interface GetMetaTxnNonceArgs {
walletContractAddress: string
space?: string
}
export interface GetMetaTxnNonceReturn {
nonce: string
}
export interface GetSmartWalletContextArgs {
}
export interface GetSmartWalletContextReturn {
data: SmartWalletContext
}
export interface GetChainIDArgs {
}
export interface GetChainIDReturn {
chainID: number
}
export interface TokenFeeArgs {
}
export interface TokenFeeReturn {
isFee: boolean
fee: string
}
export interface GetEstimatedTimeArgs {
}
export interface GetEstimatedTimeReturn {
seconds: number
}
export interface UpdateMetaTxnGasLimitsArgs {
walletAddress: string
payload: string
}
export interface UpdateMetaTxnGasLimitsReturn {
payload: string
}
export interface GetMetaTxnNetworkFeeOptionsArgs {
walletAddress: string
payload: string
signers: number
}
export interface GetMetaTxnNetworkFeeOptionsReturn {
options: Array<string>
}
export interface PushMetaTxnArgs {
call: MetaTxn
}
export interface PushMetaTxnReturn {
status: boolean
}
export interface GetMetaTxnArgs {
call: MetaTxn
}
export interface GetMetaTxnReturn {
status: boolean
signedMetaTxn: MetaTxn
}

@@ -451,141 +309,2 @@ //

sendMetaTxn = (args: SendMetaTxnArgs, headers?: object): Promise<SendMetaTxnReturn> => {
return this.fetch(
this.url('SendMetaTxn'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
txnHash: <string>(_data.txnHash)
}
})
})
}
getMetaTxnReceipt = (args: GetMetaTxnReceiptArgs, headers?: object): Promise<GetMetaTxnReceiptReturn> => {
return this.fetch(
this.url('GetMetaTxnReceipt'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
receipt: <MetaTxnReceipt>(_data.receipt)
}
})
})
}
getMetaTxnNonce = (args: GetMetaTxnNonceArgs, headers?: object): Promise<GetMetaTxnNonceReturn> => {
return this.fetch(
this.url('GetMetaTxnNonce'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
nonce: <string>(_data.nonce)
}
})
})
}
getSmartWalletContext = (headers?: object): Promise<GetSmartWalletContextReturn> => {
return this.fetch(
this.url('GetSmartWalletContext'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
data: <SmartWalletContext>(_data.data)
}
})
})
}
getChainID = (headers?: object): Promise<GetChainIDReturn> => {
return this.fetch(
this.url('GetChainID'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
chainID: <number>(_data.chainID)
}
})
})
}
tokenFee = (headers?: object): Promise<TokenFeeReturn> => {
return this.fetch(
this.url('TokenFee'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
isFee: <boolean>(_data.isFee),
fee: <string>(_data.fee)
}
})
})
}
getEstimatedTime = (headers?: object): Promise<GetEstimatedTimeReturn> => {
return this.fetch(
this.url('GetEstimatedTime'),
createHTTPRequest({}, headers)
).then((res) => {
return buildResponse(res).then(_data => {
return {
seconds: <number>(_data.seconds)
}
})
})
}
updateMetaTxnGasLimits = (args: UpdateMetaTxnGasLimitsArgs, headers?: object): Promise<UpdateMetaTxnGasLimitsReturn> => {
return this.fetch(
this.url('UpdateMetaTxnGasLimits'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
payload: <string>(_data.payload)
}
})
})
}
getMetaTxnNetworkFeeOptions = (args: GetMetaTxnNetworkFeeOptionsArgs, headers?: object): Promise<GetMetaTxnNetworkFeeOptionsReturn> => {
return this.fetch(
this.url('GetMetaTxnNetworkFeeOptions'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
options: <Array<string>>(_data.options)
}
})
})
}
pushMetaTxn = (args: PushMetaTxnArgs, headers?: object): Promise<PushMetaTxnReturn> => {
return this.fetch(
this.url('PushMetaTxn'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status)
}
})
})
}
getMetaTxn = (args: GetMetaTxnArgs, headers?: object): Promise<GetMetaTxnReturn> => {
return this.fetch(
this.url('GetMetaTxn'),
createHTTPRequest(args, headers)).then((res) => {
return buildResponse(res).then(_data => {
return {
status: <boolean>(_data.status),
signedMetaTxn: <MetaTxn>(_data.signedMetaTxn)
}
})
})
}
}

@@ -592,0 +311,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc