Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// Copyright (C) 2024 Lavra Holdings Limited - All Rights Reserved
pragma solidity ^0.8.0;

interface IPERMulticall {
interface IExpressRelay {
// Check if the combination of protocol and permissionKey is allowed within this transaction.
// This will return true if and only if it's being called while executing the auction winner call.
// @param protocol The address of the protocol that is gating an action behind this permission
// @param permissionKey The permission key that is being checked
// This will return true if and only if it's being called while executing the auction winner(s) call.
// @param protocolFeeReceiver The address of the protocol that is gating an action behind this permission
// @param permissionId The id that represents the action being gated
// @return permissioned True if the permission is allowed, false otherwise
function isPermissioned(
address protocol,
bytes calldata permissionKey
address protocolFeeReceiver,
bytes calldata permissionId
) external view returns (bool permissioned);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (C) 2024 Lavra Holdings Limited - All Rights Reserved
pragma solidity ^0.8.0;

interface IPERFeeReceiver {
interface IExpressRelayFeeReceiver {
// Receive the proceeds of an auction.
// @param permissionKey The permission key where the auction was conducted on.
function receiveAuctionProceedings(
Expand Down
8 changes: 4 additions & 4 deletions express_relay/sdk/solidity/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pyth Express Relay Solidity SDK
# Express Relay Solidity SDK

## Install

Expand All @@ -7,7 +7,7 @@
If you are using Truffle or Hardhat, simply install the NPM package:

```bash
npm install @pythnetwork/per-sdk-solidity
npm install @pythnetwork/express-relay-sdk-solidity
```

### Foundry
Expand All @@ -17,11 +17,11 @@ From the root directory of your project, run:

```bash
npm init -y
npm install @pythnetwork/per-sdk-solidity
npm install @pythnetwork/express-relay-sdk-solidity
```

Then add the following line to your `remappings.txt` file:

```text
@pythnetwork/per-sdk-solidity/=node_modules/@pythnetwork/per-sdk-solidity
@pythnetwork/express-relay-sdk-solidity/=node_modules/@pythnetwork/express-relay-sdk-solidity
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"inputs": [
{
"internalType": "address",
"name": "protocol",
"name": "protocolFeeReceiver",
"type": "address"
},
{
"internalType": "bytes",
"name": "permissionKey",
"name": "permissionId",
"type": "bytes"
}
],
Expand Down
8 changes: 4 additions & 4 deletions express_relay/sdk/solidity/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pythnetwork/per-sdk-solidity",
"version": "0.1.0",
"description": "Solidity SDK for interacting with Pyth express relay contracts",
"name": "@pythnetwork/express-relay-sdk-solidity",
"version": "0.2.0",
"description": "Solidity SDK for interacting with Express Relay contracts",
"repository": {
"type": "git",
"url": "https://github.com/pyth-network/pyth-crosschain",
Expand All @@ -12,7 +12,7 @@
},
"scripts": {
"format": "npx prettier --write .",
"generate-abi": "npx generate-abis IPERMulticall IPERFeeReceiver",
"generate-abi": "npx generate-abis IExpressRelay IExpressRelayFeeReceiver",
"check-abi": "git diff --exit-code abis"
},
"keywords": [
Expand Down
72 changes: 7 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.