Skip to content

Commit 7f2f47e

Browse files
committed
Merge branch 'main' of github.com:OpenZeppelin/openzeppelin-relayer-sdk into PLAT-6439-fix-npm-release
2 parents a7fded3 + 16f4129 commit 7f2f47e

34 files changed

+846
-117
lines changed

.github/workflows/cla.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,38 @@ jobs:
2626
with:
2727
egress-policy: audit
2828

29-
# - name: Checkout Private Repo for Allowlist
30-
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
31-
# with:
32-
# repository: OpenZeppelin/cla-sigs
33-
# token: ${{ steps.gh-app-token.outputs.token }}
34-
# sparse-checkout: |
35-
# allowlist.txt
36-
# sparse-checkout-cone-mode: false
29+
- name: Checkout Private Repo for Allowlist
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
31+
with:
32+
repository: OpenZeppelin/cla-sigs
33+
token: ${{ secrets.CLA_SIGS_ACCESS_PAT }}
34+
sparse-checkout: |
35+
allowlist.txt
36+
sparse-checkout-cone-mode: false
3737

3838
# - name: Read Allowlist File
3939
# id: read_allowlist
4040
# run: |
4141
# ALLOWLIST=$(cat allowlist.txt)
4242
# echo "allowlist=$ALLOWLIST" >> $GITHUB_OUTPUT
4343

44-
# - name: "CLA Assistant"
45-
# if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement') || github.event_name == 'pull_request_target'
46-
# uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 #v2.6.1
47-
# env:
48-
# GITHUB_TOKEN: ${{ steps.gh-app-token.outputs.token }}
49-
# PERSONAL_ACCESS_TOKEN: ${{ steps.gh-app-token.outputs.token }}
50-
# with:
51-
# path-to-signatures: 'signatures/${{ github.event.repository.name }}/v1_cla.json'
52-
# path-to-document: 'https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md'
53-
# branch: 'main'
54-
# allowlist: ${{ steps.read_allowlist.outputs.allowlist }}
55-
# remote-organization-name: 'OpenZeppelin'
56-
# remote-repository-name: 'cla-sigs'
57-
# custom-notsigned-prcomment: >
58-
# Thank you for your contribution to OpenZeppelin Relayer SDK.
59-
# Before being able to integrate those changes, we would like you to
60-
# sign our [Contributor License Agreement](https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md).
44+
- name: "CLA Assistant"
45+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement') || github.event_name == 'pull_request_target'
46+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 #v2.6.1
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGS_ACCESS_PAT }}
50+
with:
51+
path-to-signatures: 'signatures/${{ github.event.repository.name }}/v1_cla.json'
52+
path-to-document: 'https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md'
53+
branch: 'main'
54+
allowlist: ${{ steps.read_allowlist.outputs.allowlist }}
55+
remote-organization-name: 'OpenZeppelin'
56+
remote-repository-name: 'cla-sigs'
57+
custom-notsigned-prcomment: >
58+
Thank you for your contribution to OpenZeppelin Relayer SDK.
59+
Before being able to integrate those changes, we would like you to
60+
sign our [Contributor License Agreement](https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md).
6161
6262
# You can sign the CLA by just posting a Pull Request Comment with the sentence below. Thanks.
6363
# custom-pr-sign-comment: 'I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { Configuration, RelayersApi } from '@openzeppelin/relayer-sdk';
4949

5050
const config = new Configuration({
5151
basePath: 'https://your-path.com',
52-
accessToken: 'Bearer example-123456',
52+
accessToken: '',
5353
});
5454

5555
const relayersApi = new RelayersApi(config);

SECURITY.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Security Policy
2+
3+
Security vulnerabilities should be [disclosed](#reporting-a-vulnerability) to the [project maintainers](./CODEOWNERS), or alternatively by email to security@openzeppelin.com.
4+
5+
## Supported Versions
6+
7+
The following versions are currently supported and receive security updates. Alpha, Beta and Release candidates will not receive security updates.
8+
9+
Security patches will be released for the latest minor of a given major release. For example, if an issue is found in versions >=1.13.0 and the latest is 1.14.0, the patch will be released only in version 1.14.1.
10+
11+
Only critical severity bug fixes will be backported to past major releases.
12+
13+
| Version | Supported |
14+
| --------- | ------------------ |
15+
| >= 0.1.x | :white_check_mark: |
16+
| <= 0.0.9 | :x: |
17+
18+
## Reporting a Vulnerability
19+
20+
We're extremely grateful for security researchers and users that report vulnerabilities to us.
21+
All reports are thoroughly investigated by the project's security team.
22+
23+
Vulnerabilities are reported privately via GitHub's [Security Advisories](https://docs.github.com/en/code-security/security-advisories) feature.
24+
Please use the following link to submit your vulnerability: [Report a vulnerability](https://github.com/openzeppelin/openzeppelin-relayer-sdk/security/advisories/new)
25+
26+
Please see
27+
[Privately reporting a security vulnerability](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability)
28+
for more information on how to submit a vulnerability using GitHub's interface.
29+
30+
## Legal
31+
32+
OpenZeppelin Relayer SDK is made available under the GNU AGPL 3.0 License, which disclaims all warranties in relation to the project and which limits the liability of those that contribute and maintain the project, including OpenZeppelin. Your use of the project is also governed by the terms found at www.openzeppelin.com/tos (the "Terms"). As set out in the Terms, you are solely responsible for any use of OpenZeppelin Relayer SDK and you assume all risks associated with any such use. This Security Policy in no way evidences or represents an on-going duty by any contributor, including OpenZeppelin, to correct any flaws or alert you to all or any of the potential risks of utilizing the project.

examples/evm/getTransactionById.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
27-
28-
const transaction_id = '305ff83d-6653-465f-8fa3-e8a46271fb83';
28+
const transaction_id = '7283c042-86e8-4831-9439-90da9e28a0f1';
2929

3030
relayersApi
3131
.getTransactionById(relayer_id, transaction_id)

examples/evm/getTransactionByNonce.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
const nonce = 44;

examples/evm/listTransactions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionEIP1559.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionLegacy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/evm/sendTransactionSpeed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi, Speed } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual id
2627
const relayer_id = 'sepolia-example';
2728

2829
relayersApi

examples/get-relayer-balance/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import { Configuration, RelayersApi } from '../../src';
1818
// example dev config
1919
const config = new Configuration({
2020
basePath: 'http://localhost:8080',
21-
accessToken: 'Bearer example-123456',
21+
accessToken: '', // replace with your actual api key
2222
});
2323

2424
const relayersApi = new RelayersApi(config);
2525

26+
// replace with your actual ids
2627
const relayer_id = 'solana-example';
2728

2829
relayersApi

0 commit comments

Comments
 (0)