Skip to content

Commit 5a6d8c8

Browse files
committed
Add Bruno for NIM-to-CRC swaps
1 parent ff9b302 commit 5a6d8c8

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
meta {
2+
name: Confirm Swap
3+
type: http
4+
seq: 2
5+
}
6+
7+
post {
8+
url: {{API_URL}}/fast/v1/swaps/{{swap_id}}
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{
15+
"confirm": true,
16+
"beneficiary": {
17+
"CRC": {
18+
"kty": "OKP",
19+
"crv": "Ed25519",
20+
"x": "uV_GMw9cXt9fSwuGq61GNfOejJcljCIDfC5aP_FVyx4"
21+
}
22+
},
23+
"refund": {
24+
"NIM": "NQ65 KV7F 17QA LBYD V0SA NQ6B FCLX 3MYG XK6C"
25+
}
26+
}
27+
}
28+
29+
docs {
30+
- Private Key: `47d8e55cda5a42a49b0f908cb916e45c958e663c7095ee8d12c3dd05a96dc435`
31+
- Public Key: `b95fc6330f5c5edf5f4b0b86abad4635f39e8c97258c22037c2e5a3ff155cb1e`
32+
- Address: `NQ65 KV7F 17QA LBYD V0SA NQ6B FCLX 3MYG XK6C`
33+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
meta {
2+
name: Create Swap
3+
type: http
4+
seq: 1
5+
}
6+
7+
post {
8+
url: {{API_URL}}/fast/v1/swaps
9+
body: json
10+
auth: none
11+
}
12+
13+
body:json {
14+
{
15+
"from": "NIM",
16+
"to": {
17+
"CRC": 500
18+
},
19+
"includedFees": "required"
20+
}
21+
}
22+
23+
script:post-response {
24+
let data = res.getBody();
25+
bru.setEnvVar("swap_id",data.id);
26+
27+
}

0 commit comments

Comments
 (0)