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

@safe-global/relay-kit

Package Overview
Dependencies
Maintainers
7
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@safe-global/relay-kit - npm Package Compare versions

Comparing version 0.1.0-alpha.1 to 0.1.0-alpha.2

4

dist/src/GelatoRelayAdapter.d.ts
import { BigNumber } from '@ethersproject/bignumber';
import { RelayResponse } from '@gelatonetwork/relay-sdk';
import { RelayResponse, TransactionStatusResponse } from '@gelatonetwork/relay-sdk';
import { MetaTransactionOptions, RelayAdapter, RelayTransaction } from './types';

@@ -10,6 +10,6 @@ export declare class GelatoRelayAdapter implements RelayAdapter {

getEstimateFee(chainId: number, gasLimit: BigNumber, gasToken?: string): Promise<BigNumber>;
getTaskStatus(taskId: string): Promise<TransactionStatusResponse | undefined>;
sponsorTransaction(target: string, encodedTransaction: string, chainId: number): Promise<RelayResponse>;
payTransaction(target: string, encodedTransaction: string, chainId: number, options: MetaTransactionOptions): Promise<RelayResponse>;
relayTransaction({ target, encodedTransaction, chainId, options }: RelayTransaction): Promise<RelayResponse>;
checkTask(taskId: string): Promise<any>;
}

@@ -13,5 +13,2 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _GelatoRelayAdapter_gelatoRelay, _GelatoRelayAdapter_apiKey;

@@ -21,3 +18,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

const relay_sdk_1 = require("@gelatonetwork/relay-sdk");
const node_fetch_1 = __importDefault(require("node-fetch"));
const constants_1 = require("./constants");

@@ -42,2 +38,5 @@ class GelatoRelayAdapter {

}
async getTaskStatus(taskId) {
return await __classPrivateFieldGet(this, _GelatoRelayAdapter_gelatoRelay, "f").getTaskStatus(taskId);
}
async sponsorTransaction(target, encodedTransaction, chainId) {

@@ -77,8 +76,2 @@ if (!__classPrivateFieldGet(this, _GelatoRelayAdapter_apiKey, "f")) {

}
async checkTask(taskId) {
const url = `${constants_1.GELATO_RELAY_URL}/tasks/status/${taskId}`;
const apiCallResponse = await (0, node_fetch_1.default)(url);
const responseJson = await apiCallResponse.json();
return responseJson;
}
}

@@ -85,0 +78,0 @@ exports.GelatoRelayAdapter = GelatoRelayAdapter;

@@ -1,2 +0,2 @@

import { RelayResponse } from '@gelatonetwork/relay-sdk';
import { RelayResponse, TransactionStatusResponse } from '@gelatonetwork/relay-sdk';
import { BigNumber } from 'ethers';

@@ -11,2 +11,3 @@ export interface MetaTransactionOptions {

getEstimateFee(chainId: number, gasLimit: BigNumber, gasToken?: string): Promise<BigNumber>;
getTaskStatus(taskId: string): Promise<TransactionStatusResponse | undefined>;
relayTransaction(transaction: RelayTransaction): Promise<RelayResponse>;

@@ -13,0 +14,0 @@ }

{
"name": "@safe-global/relay-kit",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"description": "Relay library to abstract transaction gas fees",

@@ -37,11 +37,7 @@ "main": "dist/src/index.js",

},
"devDependencies": {
"@types/node-fetch": "^2.6.2"
},
"dependencies": {
"@gelatonetwork/relay-sdk": "^3.1.0",
"ethers": "^5.7.2",
"node-fetch": "^2.6.6"
"ethers": "^5.7.2"
},
"gitHead": "b35726279965db756d1e362e5c355c1ce837fa11"
"gitHead": "c01cdd1d0483aaa6780d948263320ff18862472d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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