Skip to content

Commit 805795b

Browse files
committed
Merge branch 'main' into cozmin/raf-996
2 parents 69ad04f + f1375f3 commit 805795b

File tree

80 files changed

+3206
-936
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3206
-936
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**Description of changes**
2+
3+
4+
5+
**Required**
6+
7+
- [ ] Used LinkOut component on external links
8+
- [ ] Reviewed Vale errors and made changes where appropriate
9+
- [ ] Ran Prettier
10+
- [ ] Previewed updates in Netlify
11+
- [ ] Received SME and/or peer approval if updates are significant
12+
- [ ] Included a "fixes #" comment
13+
14+
**Conditional**
15+
16+
- [ ] Ensured sequence diagrams follow our style guide
17+
- [ ] Included code samples where appropriate
18+
- [ ] Updated related READMEs
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--- Pull request titles should follow conventional commit format. -->
2+
3+
<!--
4+
Thanks for opening a PR! Your contribution is much appreciated.
5+
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
6+
Choose the right checklist for the change that you're making:
7+
-->
8+
9+
## Changes proposed in this pull request
10+
<!--
11+
Provide a succinct description of what this pull request entails.
12+
-->
13+
-
14+
15+
## Context
16+
<!--
17+
What were you trying to do?
18+
Provide further details about how the feature should be tested/reviewed if necessary.
19+
Link issues here - using `fixes #number`
20+
-->
21+
22+
## Checklist
23+
<!--
24+
Checklist items become clickable check boxes once the pull request is created. There is no need to edit them now.
25+
-->
26+
27+
- [ ] Related issues linked using `fixes #number`
28+
- [ ] Tests added/updated
29+
- [ ] Make sure that all checks pass
30+
- [ ] Bruno collection updated (if necessary)
31+
- [ ] Documentation issue created with `user-docs` label (if necessary)
32+
- [ ] OpenAPI specs updated (if necessary)

.github/pull_request_template.md

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,4 @@
1-
<!--- Pull request titles should follow conventional commit format. -->
1+
Please go to the `Preview` tab and select the appropriate sub-template:
22

3-
<!--
4-
Thanks for opening a PR! Your contribution is much appreciated.
5-
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
6-
Choose the right checklist for the change that you're making:
7-
-->
8-
9-
## Changes proposed in this pull request
10-
<!--
11-
Provide a succinct description of what this pull request entails.
12-
-->
13-
-
14-
15-
## Context
16-
<!--
17-
What were you trying to do?
18-
Provide further details about how the feature should be tested/reviewed if necessary.
19-
Link issues here - using `fixes #number`
20-
-->
21-
22-
## Checklist
23-
<!--
24-
Checklist items become clickable check boxes once the pull request is created. There is no need to edit them now.
25-
-->
26-
27-
- [ ] Related issues linked using `fixes #number`
28-
- [ ] Tests added/updated
29-
- [ ] Make sure that all checks pass
30-
- [ ] Bruno collection updated (if necessary)
31-
- [ ] Documentation issue created with `user-docs` label (if necessary)
32-
- [ ] OpenAPI specs updated (if necessary)
3+
* [Engineering](?expand=1&template=eng_template.md)
4+
* [Documentation](?expand=1&template=doc_template.md)

.github/workflows/node-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
timeout-minutes: 25
2828
steps:
2929
- uses: actions/checkout@v4
30+
with:
31+
submodules: recursive
32+
fetch-depth: 0
3033
- uses: ./.github/workflows/rafiki/env-setup
3134
- run: pnpm --filter backend build:deps
3235
- run: NODE_OPTIONS="--max-old-space-size=4096" pnpm --filter backend test:ci
@@ -53,6 +56,9 @@ jobs:
5356
timeout-minutes: 5
5457
steps:
5558
- uses: actions/checkout@v4
59+
with:
60+
submodules: recursive
61+
fetch-depth: 0
5662
- uses: ./.github/workflows/rafiki/env-setup
5763
- run: pnpm --filter auth build:deps
5864
- run: pnpm --filter auth test
@@ -143,6 +149,9 @@ jobs:
143149
steps:
144150
- name: Checkout code
145151
uses: actions/checkout@v4
152+
with:
153+
submodules: recursive
154+
fetch-depth: 0
146155

147156
- name: Setup environment
148157
uses: ./.github/workflows/rafiki/env-setup
@@ -166,6 +175,9 @@ jobs:
166175
steps:
167176
- name: Checkout code
168177
uses: actions/checkout@v4
178+
with:
179+
submodules: recursive
180+
fetch-depth: 0
169181

170182
- name: Setup environment
171183
uses: ./.github/workflows/rafiki/env-setup
@@ -396,6 +408,8 @@ jobs:
396408
- backend
397409
- frontend
398410
steps:
411+
- name: Checkout code
412+
uses: actions/checkout@v4
399413
- name: Set up Docker Buildx
400414
uses: docker/setup-buildx-action@v3
401415
- name: Build

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "open-payments-specifications"]
2+
path = open-payments-specifications
3+
url = https://github.com/interledger/open-payments-specifications.git

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ build
1414
**/styles/*.css
1515
.docusaurus
1616
.cache-loader
17-
.astro
17+
.astro
18+
open-payments-specifications/**

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Clone the Rafiki repository
6767
```sh
6868
git clone https://github.com/interledger/rafiki.git
6969
cd rafiki
70+
git submodule update --init --recursive
7071
```
7172

7273
Install Node.js
@@ -94,6 +95,22 @@ Install dependencies
9495
pnpm i
9596
```
9697

98+
### Git submodules
99+
100+
This repository uses a git submodule for Open Payments specifications located at `open-payments-specifications/`.
101+
102+
- Initialize submodules after cloning:
103+
104+
```sh
105+
git submodule update --init --recursive
106+
```
107+
108+
- Alternatively, clone the repository with submodules in one step:
109+
110+
```sh
111+
git clone --recurse-submodules https://github.com/interledger/rafiki.git
112+
```
113+
97114
### Local Development
98115

99116
The Rafiki local environment is the best way to explore Rafiki locally. The [localenv](localenv) directory contains instructions for setting up a local playground. Please refer to the README for each individual package for more details.

bruno/collections/Rafiki/Examples/Open Payments/Get receiver wallet address.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ script:post-response {
4747
resourceUrl.hostname.includes('cloud-nine-wallet') ||
4848
resourceUrl.hostname.includes('happy-life-bank')
4949
){
50-
const port = resourceUrl.hostname.includes('cloud-nine-wallet') ? 3000 : 4000
50+
const port = resourceUrl.hostname.includes('cloud-nine-wallet') ? bru.getEnvVar('cloudNineOpenPaymentsPort') : bru.getEnvVar('happyLifeOpenPaymentsPort')
5151
bru.setEnvVar("receiverOpenPaymentsHost", 'http://localhost:' + port + resourceUrl.path);
5252
} else {
5353
bru.setEnvVar("receiverOpenPaymentsHost", body?.resourceServer);

bruno/collections/Rafiki/Examples/Open Payments/Get sender wallet address.bru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ script:post-response {
4444

4545
const resourceUrl = url.parse(body?.resourceServer)
4646
if (resourceUrl.hostname.includes('cloud-nine-wallet') || resourceUrl.hostname.includes('happy-life-bank')) {
47-
const port = resourceUrl.hostname.includes('cloud-nine-wallet') ? bru.getEnvVar('senderOpenPaymentsPort') : bru.getEnvVar('receiverOpenPaymentsPort')
47+
const port = resourceUrl.hostname.includes('happy-life-bank') ? bru.getEnvVar('happyLifeOpenPaymentsPort') : bru.getEnvVar('cloudNineOpenPaymentsPort')
4848
bru.setEnvVar("senderOpenPaymentsHost", 'http://localhost:' + port + resourceUrl.path);
4949
} else {
5050
bru.setEnvVar("senderOpenPaymentsHost", body?.resourceServer);

bruno/collections/Rafiki/Examples/Tenanted Open Payments - Tenanted Environment Only/Get sender wallet address.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ script:post-response {
4343
}
4444

4545
const resourceUrl = url.parse(body?.resourceServer)
46-
if (resourceUrl.hostname.includes('cloud-nine-wallet') || resourceUrl.hostname.includes('happy-life-bank')) {
47-
const port = resourceUrl.hostname.includes('cloud-nine-wallet') ? bru.getEnvVar('senderOpenPaymentsPort') : bru.getEnvVar('receiverOpenPaymentsPort')
46+
if (resourceUrl.hostname.includes(bru.getEnvVar('senderHost')) || resourceUrl.hostname.includes('receiverHost')) {
47+
const port = resourceUrl.hostname.includes(bru.getEnvVar('senderHost')) ? bru.getEnvVar('senderOpenPaymentsPort') : bru.getEnvVar('receiverOpenPaymentsPort')
4848
bru.setEnvVar("senderTenantOpenPaymentsHost", 'http://localhost:' + port + resourceUrl.path);
4949
} else {
5050
bru.setEnvVar("senderTenantOpenPaymentsHost", body?.resourceServer);

0 commit comments

Comments
 (0)