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

@0xsequence/relayer

Package Overview
Dependencies
Maintainers
5
Versions
522
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/relayer - npm Package Compare versions

Comparing version 0.0.0-202179214752 to 0.0.0-202182421357

50

CHANGELOG.md
# @0xsequence/relayer
## 0.0.0-202179214752
## 0.0.0-202182421357
### Patch Changes
- new relayer
- next
- @0xsequence/config@0.0.0-202182421357
- @0xsequence/transactions@0.0.0-202182421357
## 0.28.0
### Minor Changes
- extension provider
### Patch Changes
- Updated dependencies [undefined]
- @0xsequence/abi@0.28.0
- @0xsequence/chaind@0.28.0
- @0xsequence/config@0.28.0
- @0xsequence/transactions@0.28.0
- @0xsequence/utils@0.28.0
## 0.27.1
### Patch Changes
- fix waitReceipt polling logic
## 0.27.0
### Minor Changes
- Add requireFreshSigner lib to sessions
### Patch Changes
- Updated dependencies [undefined]
- @0xsequence/abi@0.27.0
- @0xsequence/chaind@0.27.0
- @0xsequence/config@0.27.0
- @0xsequence/transactions@0.27.0
- @0xsequence/utils@0.27.0
## 0.26.0
### Minor Changes
- update relayer client bindings
provide the wallet's address for calls to SendMetaTxn
modify the semantics of Relayer.getNonce() to allow relayers to select nonce spaces for clients
## 0.25.1

@@ -10,0 +56,0 @@

@@ -1,1 +0,11 @@

export * from "./declarations/src/index";
// are you seeing an error that a default export doesn't exist but your source file has a default export?
// you should run `yarn` or `yarn preconstruct dev` if preconstruct dev isn't in your postinstall hook
// curious why you need to?
// this file exists so that you can import from the entrypoint normally
// except that it points to your source file and you don't need to run build constantly
// which means we need to re-export all of the modules from your source file
// and since export * doesn't include default exports, we need to read your source file
// to check for a default export and re-export it if it exists
// it's not ideal, but it works pretty well ¯\_(ツ)_/¯
export * from "../src/index";

21

dist/0xsequence-relayer.cjs.js

@@ -1,7 +0,16 @@

'use strict';
"use strict";
// this file might look strange and you might be wondering what it's for
// it's lets you import your source files by importing this entrypoint
// as you would import it if it was built with preconstruct build
// this file is slightly different to some others though
// it has a require hook which compiles your code with Babel
// this means that you don't have to set up @babel/register or anything like that
// but you can still require this module and it'll be compiled
if (process.env.NODE_ENV === "production") {
module.exports = require("./0xsequence-relayer.cjs.prod.js");
} else {
module.exports = require("./0xsequence-relayer.cjs.dev.js");
}
// this bit of code imports the require hook and registers it
let unregister = require("../../../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", "..");
// this re-exports the source file
module.exports = require("../src/index.ts");
unregister();
{
"name": "@0xsequence/relayer",
"version": "0.0.0-202179214752",
"version": "0.0.0-202182421357",
"description": "relayer sub-package for Sequence",

@@ -20,7 +20,7 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer",

"dependencies": {
"@0xsequence/abi": "^0.25.1",
"@0xsequence/chaind": "^0.25.1",
"@0xsequence/config": "^0.25.1",
"@0xsequence/transactions": "^0.25.1",
"@0xsequence/utils": "^0.25.1",
"@0xsequence/abi": "^0.28.0",
"@0xsequence/chaind": "^0.28.0",
"@0xsequence/config": "^0.0.0-202182421357",
"@0xsequence/transactions": "^0.0.0-202182421357",
"@0xsequence/utils": "^0.28.0",
"@ethersproject/providers": "^5.0.24",

@@ -27,0 +27,0 @@ "ethers": "^5.0.32",

@@ -24,7 +24,3 @@ import { TransactionResponse } from '@ethersproject/providers'

const FAILED_STATUSES = [
proto.ETHTxnStatus.FAILED,
proto.ETHTxnStatus.PARTIALLY_FAILED,
proto.ETHTxnStatus.DROPPED
]
const FAILED_STATUSES = [proto.ETHTxnStatus.FAILED, proto.ETHTxnStatus.PARTIALLY_FAILED, proto.ETHTxnStatus.DROPPED]

@@ -49,3 +45,3 @@ export interface RpcRelayerOptions extends BaseRelayerOptions {

if (typeof metaTxnHash !== 'string') {
console.log("computing id", metaTxnHash.config, metaTxnHash.context, metaTxnHash.chainId, ...metaTxnHash.transactions)
console.log('computing id', metaTxnHash.config, metaTxnHash.context, metaTxnHash.chainId, ...metaTxnHash.transactions)
return this.waitReceipt(

@@ -60,5 +56,10 @@ computeMetaTxnHash(addressOf(metaTxnHash.config, metaTxnHash.context), metaTxnHash.chainId, ...metaTxnHash.transactions)

// TODO: remove check for 'UNKNOWN' status when 'QUEUED' status is supported
// TODO: fix backend to not return literal 'null' txnReceipt
while (
(!result.receipt.txnReceipt || result.receipt.txnReceipt === 'null') &&
(result.receipt.status === 'UNKNOWN' || result.receipt.status === 'QUEUED')
!result.receipt ||
!result.receipt.txnReceipt ||
result.receipt.txnReceipt === 'null' ||
result.receipt.status === 'UNKNOWN' ||
result.receipt.status === 'QUEUED' ||
result.receipt.status === 'SENT'
) {

@@ -95,3 +96,3 @@ await new Promise(r => setTimeout(r, wait))

threshold: config.threshold,
chainId: config.chainId,
chainId: config.chainId
},

@@ -98,0 +99,0 @@ payload: encoded

/* eslint-disable */
// sequence-relayer v0.4.0 bd3705af98733b4e18f366d63a03999ffdc0c403
// sequence-relayer v0.4.0 fc9652e2bc0c3df8d1ce0b4a8e24ab8790e4dae2
// --

@@ -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 = "bd3705af98733b4e18f366d63a03999ffdc0c403"
export const WebRPCSchemaHash = "fc9652e2bc0c3df8d1ce0b4a8e24ab8790e4dae2"

@@ -60,5 +60,20 @@

healthOK: boolean
senders: Array<string>
startTime: string
uptime: number
ver: string
branch: string
commitHash: string
senders: Array<SenderStatus>
checks: RuntimeChecks
}
export interface SenderStatus {
index: number
address: string
active: boolean
}
export interface RuntimeChecks {
}
export interface SequenceContext {

@@ -92,3 +107,3 @@ factory: string

id: number
txnHash?: string
txnHash: string
txnNonce: string

@@ -95,0 +110,0 @@ metaTxnID?: string

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