Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
57f4af2
feat: implement multihop static routing
sanducb Jul 18, 2025
91fbc86
fix: localenv docker compose, filter route by incoming peer id
sanducb Jul 30, 2025
1ba31da
fix: route filtering and cleanup
sanducb Jul 31, 2025
d17711f
fix: tests
sanducb Jul 31, 2025
4194adf
chore(masl): fix seed script
mkurapov Aug 1, 2025
0628730
chore(localenv): add back in the EUR asset for c9 wallet
mkurapov Aug 1, 2025
7d0f715
Merge branch 'main' into multihop-static-routing-v1
sanducb Aug 6, 2025
73ff3d7
chore(backend): add incoming peer filtering test for the base case
sanducb Aug 7, 2025
7b8f9e1
chore(backend): merge branch 'multihop-static-routing-v1' of https://…
sanducb Aug 7, 2025
dfea873
chore: branch 'main' of https://github.com/interledger/rafiki into mu…
sanducb Aug 8, 2025
d55be32
chore: have only 3 Rafiki instances in localenv
sanducb Aug 8, 2025
86cb686
fix(backend): generate grapqhl types
sanducb Aug 8, 2025
609ae88
fix(backend): fix peer service test
sanducb Aug 8, 2025
dd50bac
chore: merge branch 'main' of https://github.com/interledger/rafiki i…
sanducb Aug 18, 2025
84bd2ff
chore(backend): update liquidity in seed files
sanducb Aug 19, 2025
a55a34a
chore(backend): update seed and compose files
sanducb Aug 19, 2025
5585027
chore(backend): update liquidity for global-bank and happy-life
sanducb Aug 21, 2025
8ff9839
chore(backend): remove unused routing logic
sanducb Aug 22, 2025
96db48f
chore: add max packet amount to seed, delete unused instances in loca…
sanducb Aug 22, 2025
4343315
chore: make max packet amount optional in seed
sanducb Aug 22, 2025
d2a92e2
chore(backend): ensure previous routes were cleared before syncing ne…
sanducb Aug 28, 2025
9470026
feat(backend): simplify localenv and seeding logic to accommodate mul…
sanducb Sep 21, 2025
ac0989f
chore(mock-ase): format
sanducb Sep 22, 2025
127bb76
chore(mock-ase): simplify localenv and seed for multihop
sanducb Sep 22, 2025
a3fabfd
chore(backend): remove peer liquidity logging functions
sanducb Sep 23, 2025
60c60dc
chore(backend): load routes from database before admin server is started
sanducb Sep 23, 2025
8fc4b9a
chore: merge branch 'main' of https://github.com/interledger/rafiki i…
sanducb Oct 22, 2025
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
12 changes: 8 additions & 4 deletions localenv/admin-auth/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ services:
args:
PATH_TO_KRATOS_CONFIG: ./localenv/admin-auth/cloud-nine-kratos.yml
depends_on:
- shared-database
- mailslurper
shared-database:
condition: service_healthy
mailslurper:
condition: service_started
environment:
DEV_MODE: true
ports:
Expand All @@ -43,8 +45,10 @@ services:
args:
PATH_TO_KRATOS_CONFIG: ./localenv/admin-auth/happy-life-kratos.yml
depends_on:
- shared-database
- mailslurper
shared-database:
condition: service_healthy
mailslurper:
condition: service_started
environment:
DEV_MODE: true
ports:
Expand Down
8 changes: 8 additions & 0 deletions localenv/cloud-nine-wallet/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ ALTER DATABASE happy_life_bank_backend OWNER TO happy_life_bank_backend;
CREATE USER happy_life_bank_auth WITH PASSWORD 'happy_life_bank_auth';
CREATE DATABASE happy_life_bank_auth;
ALTER DATABASE happy_life_bank_auth OWNER TO happy_life_bank_auth;

CREATE USER global_bank_backend WITH PASSWORD 'global_bank_backend';
CREATE DATABASE global_bank_backend;
ALTER DATABASE global_bank_backend OWNER TO global_bank_backend;

CREATE USER global_bank_auth WITH PASSWORD 'global_bank_auth';
CREATE DATABASE global_bank_auth;
ALTER DATABASE global_bank_auth OWNER TO global_bank_auth;
21 changes: 17 additions & 4 deletions localenv/cloud-nine-wallet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ services:
depends_on:
cloud-nine-backend:
condition: service_healthy
shared-database:
condition: service_healthy
cloud-nine-backend:
hostname: cloud-nine-wallet-backend
image: rafiki-backend
Expand Down Expand Up @@ -78,11 +80,14 @@ services:
WALLET_ADDRESS_URL: ${CLOUD_NINE_WALLET_ADDRESS_URL:-https://cloud-nine-wallet-backend/.well-known/pay}
ILP_CONNECTOR_URL: ${CLOUD_NINE_CONNECTOR_URL:-http://cloud-nine-wallet-backend:3002}
ENABLE_TELEMETRY: true
ENABLE_ILP_TIMING: true
KEY_ID: 7097F83B-CB84-469E-96C6-2141C72E22C0
OPERATOR_TENANT_ID: 438fa74a-fa7d-4317-9ced-dde32ece1787
depends_on:
- shared-database
- shared-redis
shared-database:
condition: service_healthy
shared-redis:
condition: service_started
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3001/healthz"]
start_period: 60s
Expand Down Expand Up @@ -123,8 +128,10 @@ services:
OPERATOR_TENANT_ID: 438fa74a-fa7d-4317-9ced-dde32ece1787
SERVICE_API_PORT: 3011
depends_on:
- shared-database
- shared-redis
shared-database:
condition: service_healthy
shared-redis:
condition: service_started
shared-database:
image: 'postgres:15' # use latest official postgres version
restart: unless-stopped
Expand All @@ -138,6 +145,12 @@ services:
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
shared-redis:
image: 'redis:7'
restart: unless-stopped
Expand Down
97 changes: 97 additions & 0 deletions localenv/cloud-nine-wallet/seed.multihop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
assets:
- code: USD
scale: 2
liquidity: 10000000
liquidityThreshold: 10000000
- code: EUR
scale: 2
liquidity: 10000000
liquidityThreshold: 10000000
peeringAsset: 'USD'
peers:
# In multihop mode, route via global-bank and make happy-life-bank unreachable
- initialLiquidity: '10000000'
peerUrl: http://global-bank-backend:3002
peerIlpAddress: test.global-bank
liquidityThreshold: 1000000
tokens:
incoming:
- global-to-cloud-nine
outgoing: cloud-nine-to-global
routes:
- "test.happy-life-bank"
- initialLiquidity: '10000000'
peerUrl: http://happy-life-bank-backend:3002
peerIlpAddress: test.unreachable.happy-life-bank
liquidityThreshold: 1000000
tokens:
incoming:
- happy-to-cloud-nine
outgoing: cloud-nine-to-happy
routes:
- "test.unreachable.happy-life-bank"
accounts:
- name: 'Grace Franklin'
path: accounts/gfranklin
id: 742ab7cd-1624-4d2e-af6e-e15a71638669
initialBalance: 40000000
brunoEnvVar: gfranklinWalletAddress
assetCode: USD
- name: 'Bert Hamchest'
id: a9adbe1a-df31-4766-87c9-d2cb2e636a9b
initialBalance: 40000000
path: accounts/bhamchest
brunoEnvVar: bhamchestWalletAddress
assetCode: USD
- name: "World's Best Donut Co"
id: 5726eefe-8737-459d-a36b-0acce152cb90
initialBalance: 20000000
path: accounts/wbdc
brunoEnvVar: wbdcWalletAddress
assetCode: USD
- name: "Broke Account"
id: 5a95366f-8cb4-4925-88d9-ae57dcb444bb
initialBalance: 50
path: accounts/broke
brunoEnvVar: brokeWalletAddress
assetCode: USD
- name: "Luca Rossi"
id: 63dcc665-d946-4263-ac27-d0da1eb08a83
initialBalance: 50
path: accounts/lrossi
brunoEnvVar: lrossiWalletAddressId
assetCode: EUR
rates:
EUR:
MXN: 18.78
USD: 1.10
JPY: 157.83
USD:
MXN: 17.07
EUR: 0.91
JPY: 147.71
MXN:
USD: 0.059
EUR: 0.054
JPY: 8.65
JPY:
USD: 0.007
EUR: 0.006
MXN: 0.12
fees:
- fixed: 100
basisPoints: 200
asset: USD
scale: 2
- fixed: 100
basisPoints: 200
asset: EUR
scale: 2
- fixed: 100
basisPoints: 200
asset: MXN
scale: 2
- fixed: 1
basisPoints: 200
asset: JPY
scale: 0
31 changes: 18 additions & 13 deletions localenv/cloud-nine-wallet/seed.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
assets:
- code: USD
scale: 2
liquidity: 100000000
liquidity: 10000000
liquidityThreshold: 10000000
- code: EUR
scale: 2
liquidity: 100000000
liquidity: 10000000
liquidityThreshold: 10000000
- code: MXN
scale: 2
liquidity: 100000000
liquidityThreshold: 10000000
- code: JPY
scale: 0
liquidity: 1000000
liquidityThreshold: 100000
peeringAsset: 'USD'
peers:
# Address and routes for this peer MUST remain unchanged when NOT in multihop mode so that happy-life packets aren't routed through global-bank
- initialLiquidity: '10000000'
peerUrl: http://global-bank-backend:3002
peerIlpAddress: test.unreachable.global-bank
liquidityThreshold: 1000000
tokens:
incoming:
- global-to-cloud-nine
outgoing: cloud-nine-to-global
routes:
- "test.unreachable.global-bank"
- initialLiquidity: '10000000'
peerUrl: http://happy-life-bank-backend:3002
peerIlpAddress: test.happy-life-bank
liquidityThreshold: 1000000
tokens:
incoming:
- test-USD-happy-life-bank-cloud-nine-wallet
outgoing: test-USD-cloud-nine-wallet-happy-life-bank
- happy-to-cloud-nine
outgoing: cloud-nine-to-happy
routes:
- "test.happy-life-bank"
accounts:
- name: 'Grace Franklin'
path: accounts/gfranklin
Expand Down Expand Up @@ -89,4 +94,4 @@ fees:
- fixed: 1
basisPoints: 200
asset: JPY
scale: 0
scale: 0
8 changes: 5 additions & 3 deletions localenv/cloud-ten-wallet/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ peers:
peerIlpAddress: test.happy-life-bank
liquidityThreshold: 1000000
tokens:
incoming:
- test-USD-happy-life-bank-cloud-ten-wallet
outgoing: test-USD-cloud-ten-wallet-happy-life-bank
incoming:
- happy-to-cloud-ten
outgoing: cloud-ten-to-happy
routes:
- "test.happy-life-bank"
accounts:
- name: 'Frace Granklin'
path: accounts/fgranklin
Expand Down
Loading
Loading