Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 60b71e1

Browse files
committed
Renaming for 2 Way Payments; Removing metadata on on-spend
1 parent 3378be2 commit 60b71e1

10 files changed

+116
-77
lines changed

.github/pull_request_template.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Description
2+
Provide a clear and concise description of the changes introduced in this pull request.
3+
4+
Fixes # (issue number)
5+
6+
## Changelog
7+
8+
- List the changes to the codebase that this PR introduces
9+
10+
## Type of Change
11+
Please mark the appropriate option by putting an "x" inside the brackets:
12+
13+
- [ ] Bug fix
14+
- [ ] New feature
15+
- [ ] Enhancement or optimization
16+
- [ ] Documentation update
17+
- [ ] Other (please specify)
18+
19+
## Checklist
20+
Put an "x" in the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!
21+
22+
- [ ] I have tested the changes locally and they work as expected.
23+
- [ ] I have added necessary documentation or updated existing documentation.
24+
- [ ] My code follows the project's coding standards and style guidelines.
25+
- [ ] I have added/updated relevant tests to ensure the changes are properly covered.
26+
- [ ] I have checked for and resolved any merge conflicts.
27+
- [ ] My commits have clear and descriptive messages.
28+
29+
## Screenshots (if applicable)
30+
If the changes affect the UI or have visual effects, please provide screenshots or GIFs showcasing the changes.
31+
32+
## Additional Context (if applicable)
33+
Add any additional context or information about the changes that may be helpful in understanding the pull request.
34+
35+
## Related Issues (if applicable)
36+
If this pull request is related to any existing issues, please list them here.
37+
38+
## Requested Reviewers
39+
Mention any specific individuals or teams you would like to request a review from.

README-DE.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ await makeItemPayment(
569569
570570
### Quittungsbasierte Zahlungen durchführen
571571
572-
- `makeIbPayment`
572+
- `make2WayPayment`
573573
574574
| **Argument** | **Typ** | **Standard** | **Erforderlich** | **Beschreibung** |
575575
| -------------- | ------------------------------ | ------------ | ---------------- | ------------------------------------------------------------------------ |
@@ -603,15 +603,15 @@ const empfangenesAsset = initIAssetItem({
603603
"drs_tx_hash": "default_drs_tx_hash"
604604
}});
605605
606-
const zahlungsergebnis = await makeIbPayment(
606+
const zahlungsergebnis = await make2WayPayment(
607607
"18f70...caeda", // Zahlungsadresse
608608
sendendesAsset, // Zahlungsasset
609609
empfangenesAsset, // Empfangsasset
610610
alleSchlüsselpaare, // Alle Schlüsselpaare
611611
empfangsadresse, // Empfangsadresse
612612
);
613613
614-
const { druid, encryptedTx } = zahlungsergebnis.content.makeIbPaymentResponse;
614+
const { druid, encryptedTx } = zahlungsergebnis.content.make2WayPaymentResponse;
615615
616616
// Speichern der verschlüsselten Transaktion zusammen
617617
// mit dem entsprechenden DRUID-Wert
@@ -623,7 +623,7 @@ const zahlungsergebnis = await makeIbPayment(
623623
624624
### Abrufen ausstehender Zahlungen basierend auf Quittungen
625625
626-
- `fetchPendingIbTransactions`
626+
- `fetchPending2WayPayments`
627627
628628
```typescript
629629
import { ABlockWallet } from '@a-block/a-blockjs';
@@ -640,7 +640,7 @@ const zahlungsergebnis = await makeIbPayment(
640640
const allEncryptedTxs = getAllEncryptedTxs();
641641
642642
// FAusstehende Zahlungen basierend auf Quittungen abrufen
643-
const pendingIbTransactionsResult = await client.fetchPendingIbTransactions(
643+
const pendingIbTransactionsResult = await client.fetchPending2WayPayments(
644644
allKeypairs,
645645
allEncryptedTxs:,
646646
)
@@ -690,7 +690,7 @@ const zahlungsergebnis = await makeIbPayment(
690690
691691
### Reaktion auf ausstehende Zahlungen auf Basis des Belegs
692692
693-
- `acceptIbTx` und `rejectIbTx`
693+
- `accept2WayPayment` und `reject2WayPayment`
694694
695695
```typescript
696696
import { ABlockWallet } from '@a-block/a-blockjs';
@@ -709,12 +709,12 @@ const zahlungsergebnis = await makeIbPayment(
709709
const allKeypairs = getAllKeypairs();
710710
711711
// Akzeptiere eine belegbasierte Zahlung anhand ihrer eindeutigen `DRUID`-Kennung
712-
await client.acceptIbTx('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
712+
await client.accept2WayPayment('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
713713
714714
<!-- --------------------------------- OR ---------------------------------- -->
715715
716716
// Lehne eine belegbasierte Zahlung anhand ihrer eindeutigen `DRUID`-Kennung ab
717-
await client.rejectIbTx('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
717+
await client.reject2WayPayment('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
718718
```
719719
720720
Belegbasierte Transaktionen werden akzeptiert **oder** abgelehnt, indem ihre eindeutige DRUID-Kennung als Argument an die entsprechenden Methoden übergeben wird.

README-FR.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ await makeItemPayment(
569569
570570
### Réalisation de paiements basés sur les reçus
571571
572-
- `makeIbPayment`
572+
- `make2WayPayment`
573573
574574
| **Argument** | **Type** | **Default** | **Required** | **Description** |
575575
| -------------- | ------------------------------ | ----------- | ------------ | ------------------------------------------------------------- |
@@ -603,15 +603,15 @@ const actifReception = initIAssetItem({
603603
"drs_tx_hash": "default_drs_tx_hash"
604604
}});
605605
606-
const resultatPaiement = await makeIbPayment(
606+
const resultatPaiement = await make2WayPayment(
607607
"18f70...caeda", // Adresse de paiement
608608
actifEnvoi, // Actif de paiement
609609
actifReception, // Actif de réception
610610
toutesLesPaires, // Toutes les paires clé-valeur
611611
adresseReception, // Adresse de réception
612612
);
613613
614-
const { druid, encryptedTx } = paymentResult.content.makeIbPaymentResponse;
614+
const { druid, encryptedTx } = paymentResult.content.make2WayPaymentResponse;
615615
616616
// Enregistrer la transaction chiffrée avec sa valeur DRUID correspondante
617617
saveEncryptedTx(druid, encryptedTx);
@@ -622,7 +622,7 @@ saveEncryptedTx(druid, encryptedTx);
622622
623623
### Récupération des paiements en attente basés sur les reçus
624624
625-
- `fetchPendingIbTransactions`
625+
- `fetchPending2WayPayments`
626626
627627
```typescript
628628
import { ABlockWallet } from '@a-block/a-blockjs';
@@ -639,7 +639,7 @@ saveEncryptedTx(druid, encryptedTx);
639639
const allEncryptedTxs = getAllEncryptedTxs();
640640
641641
// Récupérer les paiements en attente basés sur les reçus
642-
const pendingIbTransactionsResult = await client.fetchPendingIbTransactions(
642+
const pendingIbTransactionsResult = await client.fetchPending2WayPayments(
643643
allKeypairs,
644644
allEncryptedTxs:,
645645
)
@@ -689,7 +689,7 @@ saveEncryptedTx(druid, encryptedTx);
689689
690690
### Répondre aux paiements basés sur le reçu en attente
691691
692-
- `acceptIbTx` et `rejectIbTx`
692+
- `accept2WayPayment` et `reject2WayPayment`
693693
694694
```typescript
695695
import { ABlockWallet } from '@a-block/a-blockjs';
@@ -708,12 +708,12 @@ saveEncryptedTx(druid, encryptedTx);
708708
const allKeypairs = getAllKeypairs();
709709
710710
// Accepter un paiement basé sur un reçu en utilisant son identifiant unique `DRUID`
711-
await client.acceptIbTx('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
711+
await client.accept2WayPayment('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
712712
713713
<!-- --------------------------------- OR ---------------------------------- -->
714714
715715
// Rejeter un paiement basé sur un reçu en utilisant son identifiant unique `DRUID`
716-
await client.rejectIbTx('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
716+
await client.reject2WayPayment('DRUID0xd0f407436f7f1fc494d7aee22939090e', pendingIbTransactions, allKeypairs);
717717
```
718718
719719
Les transactions basées sur les reçus sont acceptées **ou** rejetées en passant leur identifiant DRUID unique en tant qu'argument aux méthodes correspondantes.

0 commit comments

Comments
 (0)