Skip to content

Commit 6b087cd

Browse files
authored
Merge branch 'main' into copilot/fix-19
2 parents d39d414 + 6a34768 commit 6b087cd

39 files changed

+10056
-1214
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SVM-Pay is a payment solution for SVM networks (Solana, Sonic SVM, Eclipse, s00n
1515
- **Simple Integration**: One-click integration for developers
1616
- **Comprehensive SDK**: JavaScript/TypeScript SDK with React, Vue, and Angular components
1717
- **C++ SDK**: Native C++ SDK for high-performance applications and system integration
18+
- **Assembly-BPF SDK**: Low-level BPF program development with Assembly and LLVM IR abstractions
1819
- **Mobile Support**: iOS and Android SDK for mobile applications
1920
- **No Fees**: SVM-Pay itself charges no fees (only standard network transaction fees apply)
2021
- **Secure**: Built with security best practices for blockchain payments
@@ -24,6 +25,7 @@ SVM-Pay is a payment solution for SVM networks (Solana, Sonic SVM, Eclipse, s00n
2425

2526
- [Documentation](docs/documentation.md)
2627
- [Developer Guide](docs/developer-guide.md)
28+
- [Assembly-BPF SDK](docs/assembly-bpf/README.md)
2729
- [Architecture](docs/architecture.md)
2830
- [Security Recommendations](docs/security-recommendations.md)
2931
- [C++ SDK](cpp-sdk/README.md)
@@ -92,6 +94,42 @@ svm-pay history
9294
```
9395

9496
See [CLI Integration](CLI-INTEGRATION.md) for complete CLI documentation.
97+
98+
## Assembly-BPF SDK
99+
100+
For advanced use cases requiring low-level BPF program development, SVM-Pay includes an Assembly-BPF SDK:
101+
102+
```typescript
103+
import { AssemblyBPFSDK, BPFTemplates, SVMNetwork } from 'svm-pay/assembly-bpf';
104+
105+
// Initialize SDK for low-level BPF development
106+
const sdk = new AssemblyBPFSDK({
107+
network: SVMNetwork.SOLANA,
108+
debug: true
109+
});
110+
111+
// Create a payment processor using built-in template
112+
const { metadata, instructions } = BPFTemplates.createPaymentProcessor({
113+
networks: [SVMNetwork.SOLANA, SVMNetwork.SONIC]
114+
});
115+
116+
// Compile to BPF bytecode
117+
const result = await sdk.compile(instructions, metadata);
118+
119+
console.log('✅ BPF Program compiled successfully');
120+
console.log(`📊 Instructions: ${instructions.length}`);
121+
console.log(`💾 Bytecode size: ${result.bytecode?.length} bytes`);
122+
```
123+
124+
The Assembly-BPF SDK provides:
125+
- **BPF Assembly abstractions** for instruction generation
126+
- **Memory management utilities** for stack/heap operations
127+
- **Syscall helpers** for SVM network interactions
128+
- **Program templates** (payment processor, cross-chain bridge, validator)
129+
- **Multi-network support** across all SVM chains
130+
- **Compilation and deployment tools**
131+
132+
See the [Assembly-BPF Documentation](docs/assembly-bpf/README.md) for complete guides and examples.
95133
```
96134
97135
## Framework Integration

0 commit comments

Comments
 (0)