Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opengsn/contracts

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opengsn/contracts - npm Package Compare versions

Comparing version 3.0.0-alpha.5 to 3.0.0-alpha.6

4

package.json
{
"name": "@opengsn/contracts",
"license": "GPL-3.0-only",
"version": "3.0.0-alpha.5",
"version": "3.0.0-alpha.6",
"main": "types/truffle-contracts/index.d.ts",

@@ -30,3 +30,3 @@ "scripts": {

},
"gitHead": "84654d96e8e247b32a96f0546c376de36768a465"
"gitHead": "3737f628fd98ed72ffe1c292df9754774718b737"
}

@@ -29,2 +29,10 @@ /* Autogenerated file. Do not edit manually. */

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
* Called by the reporter as the first step in the commit-reveal process. Any sender can call it to make sure no-one can front-run it to claim this penalization.

@@ -143,2 +151,10 @@ * @param commitHash The hash of the report of a penalizable behaviour the reporter wants to reveal. Calculated as `commit(keccak(encodedPenalizeFunction))`.

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
* Called by the reporter as the first step in the commit-reveal process. Any sender can call it to make sure no-one can front-run it to claim this penalization.

@@ -145,0 +161,0 @@ * @param commitHash The hash of the report of a penalizable behaviour the reporter wants to reveal. Calculated as `commit(keccak(encodedPenalizeFunction))`.

@@ -83,2 +83,30 @@ /* Autogenerated file. Do not edit manually. */

/**
*/
getRelayRegistrationMaxAge(
txDetails?: Truffle.TransactionDetails
): Promise<BN>;
/**
* Change the maximum relay registration age.
*/
setRelayRegistrationMaxAge: {
(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse<AllEvents>>;
call(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
* @param relayHub The address of the `RelayHub` contract for which this action is performed.

@@ -104,2 +132,22 @@ * @param relayManager An address of a Relay Manager.

* Read relay info of registered Relay Server from an on-chain storage.
* @param relayHub The address of the `RelayHub` contract for which this action is performed.
*/
readRelayInfos(
relayHub: string,
txDetails?: Truffle.TransactionDetails
): Promise<
{
lastSeenBlockNumber: BN;
lastSeenTimestamp: BN;
firstSeenBlockNumber: BN;
firstSeenTimestamp: BN;
baseRelayFee: BN;
pctRelayFee: BN;
urlParts: string[];
relayManager: string;
}[]
>;
/**
* Read relay info of registered Relay Server from an on-chain storage.
* @param maxCount The maximum amount of relays to be returned by this function.

@@ -110,3 +158,3 @@ * @param oldestBlockNumber The latest block number in which a Relay Server may be registered.

*/
readRelayInfos(
readRelayInfosInRange(
relayHub: string,

@@ -182,2 +230,30 @@ oldestBlockNumber: number | BN | string,

/**
*/
getRelayRegistrationMaxAge(
txDetails?: Truffle.TransactionDetails
): Promise<BN>;
/**
* Change the maximum relay registration age.
*/
setRelayRegistrationMaxAge: {
(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse<AllEvents>>;
call(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
arg0: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
* @param relayHub The address of the `RelayHub` contract for which this action is performed.

@@ -203,2 +279,22 @@ * @param relayManager An address of a Relay Manager.

* Read relay info of registered Relay Server from an on-chain storage.
* @param relayHub The address of the `RelayHub` contract for which this action is performed.
*/
readRelayInfos(
relayHub: string,
txDetails?: Truffle.TransactionDetails
): Promise<
{
lastSeenBlockNumber: BN;
lastSeenTimestamp: BN;
firstSeenBlockNumber: BN;
firstSeenTimestamp: BN;
baseRelayFee: BN;
pctRelayFee: BN;
urlParts: string[];
relayManager: string;
}[]
>;
/**
* Read relay info of registered Relay Server from an on-chain storage.
* @param maxCount The maximum amount of relays to be returned by this function.

@@ -209,3 +305,3 @@ * @param oldestBlockNumber The latest block number in which a Relay Server may be registered.

*/
readRelayInfos(
readRelayInfosInRange(
relayHub: string,

@@ -212,0 +308,0 @@ oldestBlockNumber: number | BN | string,

@@ -167,2 +167,10 @@ /* Autogenerated file. Do not edit manually. */

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
* Set the owner of a Relay Manager. Called only by the RelayManager itself. Note that owners cannot transfer ownership - if the entry already exists, reverts.

@@ -560,2 +568,10 @@ * @param owner - owner of the relay (as configured off-chain)

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
* Set the owner of a Relay Manager. Called only by the RelayManager itself. Note that owners cannot transfer ownership - if the entry already exists, reverts.

@@ -562,0 +578,0 @@ * @param owner - owner of the relay (as configured off-chain)

@@ -36,3 +36,11 @@ /* Autogenerated file. Do not edit manually. */

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
*/
getPenalizeBlockDelay(txDetails?: Truffle.TransactionDetails): Promise<BN>;

@@ -164,3 +172,11 @@

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
*/
getPenalizeBlockDelay(txDetails?: Truffle.TransactionDetails): Promise<BN>;

@@ -167,0 +183,0 @@

@@ -10,5 +10,18 @@ /* Autogenerated file. Do not edit manually. */

extends Truffle.Contract<RelayRegistrarInstance> {
"new"(meta?: Truffle.TransactionDetails): Promise<RelayRegistrarInstance>;
"new"(
_relayRegistrationMaxAge: number | BN | string,
meta?: Truffle.TransactionDetails
): Promise<RelayRegistrarInstance>;
}
export interface OwnershipTransferred {
name: "OwnershipTransferred";
args: {
previousOwner: string;
newOwner: string;
0: string;
1: string;
};
}
export interface RelayServerRegistered {

@@ -30,10 +43,76 @@ name: "RelayServerRegistered";

type AllEvents = RelayServerRegistered;
type AllEvents = OwnershipTransferred | RelayServerRegistered;
export interface RelayRegistrarInstance extends Truffle.ContractInstance {
/**
* Returns the address of the current owner.
*/
owner(txDetails?: Truffle.TransactionDetails): Promise<string>;
/**
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
*/
renounceOwnership: {
(txDetails?: Truffle.TransactionDetails): Promise<
Truffle.TransactionResponse<AllEvents>
>;
call(txDetails?: Truffle.TransactionDetails): Promise<void>;
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>;
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>;
};
/**
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
*/
transferOwnership: {
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise<
Truffle.TransactionResponse<AllEvents>
>;
call(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
*/
getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise<BN>;
/**
*/
getRelayRegistrationMaxAge(
txDetails?: Truffle.TransactionDetails
): Promise<BN>;
/**
* Change the maximum relay registration age.
*/
setRelayRegistrationMaxAge: {
(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse<AllEvents>>;
call(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

@@ -105,2 +184,22 @@ */

* Read relay info of registered Relay Server from an on-chain storage.
* @param relayHub The address of the `RelayHub` contract for which this action is performed.
*/
readRelayInfos(
relayHub: string,
txDetails?: Truffle.TransactionDetails
): Promise<
{
lastSeenBlockNumber: BN;
lastSeenTimestamp: BN;
firstSeenBlockNumber: BN;
firstSeenTimestamp: BN;
baseRelayFee: BN;
pctRelayFee: BN;
urlParts: string[];
relayManager: string;
}[]
>;
/**
* Read relay info of registered Relay Server from an on-chain storage.
* @param maxCount The maximum amount of relays to be returned by this function.

@@ -111,3 +210,3 @@ * @param oldestBlockNumber The latest block number in which a Relay Server may be registered.

*/
readRelayInfos(
readRelayInfosInRange(
relayHub: string,

@@ -133,6 +232,72 @@ oldestBlockNumber: number | BN | string,

/**
* Returns the address of the current owner.
*/
owner(txDetails?: Truffle.TransactionDetails): Promise<string>;
/**
* Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
*/
renounceOwnership: {
(txDetails?: Truffle.TransactionDetails): Promise<
Truffle.TransactionResponse<AllEvents>
>;
call(txDetails?: Truffle.TransactionDetails): Promise<void>;
sendTransaction(txDetails?: Truffle.TransactionDetails): Promise<string>;
estimateGas(txDetails?: Truffle.TransactionDetails): Promise<number>;
};
/**
* Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.
*/
transferOwnership: {
(newOwner: string, txDetails?: Truffle.TransactionDetails): Promise<
Truffle.TransactionResponse<AllEvents>
>;
call(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
newOwner: string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
*/
getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise<BN>;
/**
*/
getRelayRegistrationMaxAge(
txDetails?: Truffle.TransactionDetails
): Promise<BN>;
/**
* Change the maximum relay registration age.
*/
setRelayRegistrationMaxAge: {
(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<Truffle.TransactionResponse<AllEvents>>;
call(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<void>;
sendTransaction(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<string>;
estimateGas(
_relayRegistrationMaxAge: number | BN | string,
txDetails?: Truffle.TransactionDetails
): Promise<number>;
};
/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

@@ -204,2 +369,22 @@ */

* Read relay info of registered Relay Server from an on-chain storage.
* @param relayHub The address of the `RelayHub` contract for which this action is performed.
*/
readRelayInfos(
relayHub: string,
txDetails?: Truffle.TransactionDetails
): Promise<
{
lastSeenBlockNumber: BN;
lastSeenTimestamp: BN;
firstSeenBlockNumber: BN;
firstSeenTimestamp: BN;
baseRelayFee: BN;
pctRelayFee: BN;
urlParts: string[];
relayManager: string;
}[]
>;
/**
* Read relay info of registered Relay Server from an on-chain storage.
* @param maxCount The maximum amount of relays to be returned by this function.

@@ -210,3 +395,3 @@ * @param oldestBlockNumber The latest block number in which a Relay Server may be registered.

*/
readRelayInfos(
readRelayInfosInRange(
relayHub: string,

@@ -213,0 +398,0 @@ oldestBlockNumber: number | BN | string,

@@ -322,3 +322,11 @@ /* Autogenerated file. Do not edit manually. */

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
*/
getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise<BN>;

@@ -768,3 +776,11 @@

/**
* Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.
*/
supportsInterface(
interfaceId: string,
txDetails?: Truffle.TransactionDetails
): Promise<boolean>;
/**
*/
getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise<BN>;

@@ -771,0 +787,0 @@

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

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

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

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

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