@bloxchain/sdk 1.0.0-alpha.20 → 1.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -16
- package/abi/AccountBlox.abi.json +1886 -1837
- package/abi/BaseStateMachine.abi.json +780 -775
- package/abi/CopyBlox.abi.json +825 -809
- package/abi/EngineBlox.abi.json +545 -538
- package/abi/GuardController.abi.json +1590 -1585
- package/abi/GuardControllerDefinitions.abi.json +231 -226
- package/abi/IDefinition.abi.json +54 -49
- package/abi/RoleBlox.abi.json +2993 -2993
- package/abi/RuntimeRBAC.abi.json +832 -827
- package/abi/RuntimeRBACDefinitions.abi.json +212 -207
- package/abi/SecureBlox.abi.json +2752 -2752
- package/abi/SecureOwnable.abi.json +1359 -1321
- package/abi/SecureOwnableDefinitions.abi.json +171 -166
- package/dist/abi/AccountBlox.abi.json +1886 -1837
- package/dist/abi/BaseStateMachine.abi.json +780 -775
- package/dist/abi/CopyBlox.abi.json +825 -809
- package/dist/abi/EngineBlox.abi.json +545 -538
- package/dist/abi/GuardController.abi.json +1590 -1585
- package/dist/abi/GuardControllerDefinitions.abi.json +231 -226
- package/dist/abi/IDefinition.abi.json +54 -49
- package/dist/abi/RoleBlox.abi.json +2993 -2993
- package/dist/abi/RuntimeRBAC.abi.json +832 -827
- package/dist/abi/RuntimeRBACDefinitions.abi.json +212 -207
- package/dist/abi/SecureBlox.abi.json +2752 -2752
- package/dist/abi/SecureOwnable.abi.json +1359 -1321
- package/dist/abi/SecureOwnableDefinitions.abi.json +171 -166
- package/dist/contracts/core/SecureOwnable.d.ts +1 -1
- package/dist/contracts/core/SecureOwnable.d.ts.map +1 -1
- package/dist/contracts/core/SecureOwnable.js +2 -2
- package/dist/contracts/core/SecureOwnable.js.map +1 -1
- package/dist/interfaces/core.security.index.d.ts +1 -1
- package/dist/interfaces/core.security.index.d.ts.map +1 -1
- package/dist/interfaces/lib.index.d.ts +1 -1
- package/dist/interfaces/lib.index.d.ts.map +1 -1
- package/dist/lib/Definition.d.ts.map +1 -1
- package/dist/lib/Definition.js +1 -0
- package/dist/lib/Definition.js.map +1 -1
- package/dist/lib/EngineBlox.d.ts +4 -5
- package/dist/lib/EngineBlox.d.ts.map +1 -1
- package/dist/lib/EngineBlox.js +9 -5
- package/dist/lib/EngineBlox.js.map +1 -1
- package/dist/types/core.security.index.js +2 -2
- package/dist/types/definition.index.d.ts +5 -0
- package/dist/types/definition.index.d.ts.map +1 -1
- package/dist/types/definition.index.js.map +1 -1
- package/dist/types/lib.index.d.ts +0 -1
- package/dist/types/lib.index.d.ts.map +1 -1
- package/dist/types/lib.index.js +1 -2
- package/dist/types/lib.index.js.map +1 -1
- package/dist/utils/contract-errors.d.ts +1 -8
- package/dist/utils/contract-errors.d.ts.map +1 -1
- package/dist/utils/contract-errors.js +0 -5
- package/dist/utils/contract-errors.js.map +1 -1
- package/dist/utils/interface-ids.js +1 -1
- package/dist/utils/validations.d.ts.map +1 -1
- package/dist/utils/validations.js +10 -11
- package/dist/utils/validations.js.map +1 -1
- package/package.json +2 -2
- package/abi/SimpleRWA20.abi.json +0 -4010
- package/abi/SimpleRWA20Definitions.abi.json +0 -196
- package/abi/SimpleVault.abi.json +0 -3385
- package/abi/SimpleVaultDefinitions.abi.json +0 -274
package/README.md
CHANGED
|
@@ -38,25 +38,25 @@ Bloxchain Protocol implements a **state machine architecture** with `SecureOpera
|
|
|
38
38
|
|
|
39
39
|
## 📚 Documentation
|
|
40
40
|
|
|
41
|
-
Comprehensive documentation is available in the [`docs/`](
|
|
41
|
+
Comprehensive documentation is available in the repository root [`docs/`](../../docs/) folder:
|
|
42
42
|
|
|
43
43
|
### **🏗️ Architecture & Design**
|
|
44
|
-
- **[Protocol Architecture](
|
|
45
|
-
- **[State Machine Engine](
|
|
46
|
-
- **[Architecture Patterns](
|
|
44
|
+
- **[Protocol Architecture](../../docs/bloxchain-architecture.md)** - Bloxchain protocol overview and design principles
|
|
45
|
+
- **[State Machine Engine](../../docs/state-machine-engine.md)** - SecureOperationState engine and state management
|
|
46
|
+
- **[Architecture Patterns](../../docs/architecture-patterns.md)** - Design patterns and best practices
|
|
47
47
|
|
|
48
48
|
### **🚀 Getting Started**
|
|
49
|
-
- **[Getting Started](
|
|
50
|
-
- **[API Reference](
|
|
51
|
-
- **[SecureOwnable Guide](
|
|
52
|
-
- **[RuntimeRBAC Guide](
|
|
49
|
+
- **[Getting Started](../../docs/getting-started.md)** - Quick setup and basic usage
|
|
50
|
+
- **[API Reference](../../docs/api-reference.md)** - Complete API documentation
|
|
51
|
+
- **[SecureOwnable Guide](../../docs/secure-ownable.md)** - Ownership management
|
|
52
|
+
- **[RuntimeRBAC Guide](../../docs/runtime-rbac.md)** - Role-based access control
|
|
53
53
|
|
|
54
54
|
### **🔍 Development Tools**
|
|
55
|
-
- **[Best Practices](
|
|
56
|
-
- **[Examples](
|
|
57
|
-
- **[Types & Interfaces](
|
|
55
|
+
- **[Best Practices](../../docs/best-practices.md)** - Development guidelines
|
|
56
|
+
- **[Examples](../../docs/examples-basic.md)** - Practical code samples
|
|
57
|
+
- **[Types & Interfaces](../../docs/types-interfaces.md)** - Type definitions
|
|
58
58
|
|
|
59
|
-
**📖 [View All Documentation](
|
|
59
|
+
**📖 [View All Documentation](../../docs/README.md)**
|
|
60
60
|
|
|
61
61
|
## Installation
|
|
62
62
|
|
|
@@ -166,7 +166,7 @@ const metaTx = await secureOwnable.generateUnsignedMetaTransactionForNew(
|
|
|
166
166
|
|
|
167
167
|
## RuntimeRBAC Usage
|
|
168
168
|
|
|
169
|
-
RuntimeRBAC uses batch-based configuration for all role management operations. See the [RuntimeRBAC Guide](
|
|
169
|
+
RuntimeRBAC uses batch-based configuration for all role management operations. See the [RuntimeRBAC Guide](../../docs/runtime-rbac.md) for complete examples.
|
|
170
170
|
|
|
171
171
|
### Query Functions
|
|
172
172
|
|
|
@@ -193,7 +193,7 @@ const permissions = await runtimeRBAC.getActiveRolePermissions(roleHash);
|
|
|
193
193
|
|
|
194
194
|
### Batch Configuration
|
|
195
195
|
|
|
196
|
-
All role management (create role, add wallet, add permissions, etc.) is done via batch operations. See the [RuntimeRBAC Guide](
|
|
196
|
+
All role management (create role, add wallet, add permissions, etc.) is done via batch operations. See the [RuntimeRBAC Guide](../../docs/runtime-rbac.md) for detailed batch configuration examples.
|
|
197
197
|
|
|
198
198
|
## Definitions Usage
|
|
199
199
|
|
|
@@ -312,10 +312,11 @@ import { TxStatus } from '@bloxchain/sdk';
|
|
|
312
312
|
|
|
313
313
|
TxStatus.UNDEFINED
|
|
314
314
|
TxStatus.PENDING
|
|
315
|
+
TxStatus.EXECUTING
|
|
316
|
+
TxStatus.PROCESSING_PAYMENT
|
|
315
317
|
TxStatus.CANCELLED
|
|
316
318
|
TxStatus.COMPLETED
|
|
317
319
|
TxStatus.FAILED
|
|
318
|
-
TxStatus.REJECTED
|
|
319
320
|
```
|
|
320
321
|
|
|
321
322
|
## Error Handling
|
|
@@ -352,7 +353,7 @@ This package follows [Semantic Versioning](https://semver.org/). Current version
|
|
|
352
353
|
|
|
353
354
|
## Support and links
|
|
354
355
|
|
|
355
|
-
- **Documentation**: [SDK
|
|
356
|
+
- **Documentation**: [SDK and protocol guides](../../docs/) in the repository `docs/` folder; [Bloxchain Protocol README](https://github.com/PracticalParticle/Bloxchain-Protocol#readme) for protocol details
|
|
356
357
|
- **Issues and feature requests**: [GitHub Issues](https://github.com/PracticalParticle/Bloxchain-Protocol/issues)
|
|
357
358
|
- **Homepage**: [bloxchain.app](https://bloxchain.app/)
|
|
358
359
|
- **Author**: [Particle Crypto Security](https://particlecs.com/)
|