@layerzerolabs/protocol-stellar-v2 0.2.49 → 0.2.50

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.
@@ -19,13 +19,13 @@ use soroban_sdk::{token::StellarAssetClient, Address, Env};
19
19
  use utils::rbac::RoleBasedAccessControl;
20
20
 
21
21
  /// Role that can set the admin
22
- const ADMIN_MANAGER_ROLE: &str = "ADMIN_MGR";
22
+ const ADMIN_MANAGER_ROLE: &str = "ADMIN_MANAGER_ROLE";
23
23
  /// Role that can mint tokens
24
- const MINTER_ROLE: &str = "MINTER";
24
+ const MINTER_ROLE: &str = "MINTER_ROLE";
25
25
  /// Role that can blacklist users
26
- const BLACKLISTER_ROLE: &str = "BLKLISTR";
26
+ const BLACKLISTER_ROLE: &str = "BLACKLISTER_ROLE";
27
27
  /// Role that can clawback tokens from users
28
- const CLAWBACK_ROLE: &str = "CLAWBACK";
28
+ const CLAWBACK_ROLE: &str = "CLAWBACK_ROLE";
29
29
 
30
30
  // =========================================================================
31
31
  // SAC Manager Contract
@@ -52,14 +52,14 @@ impl TestSetupBuilder {
52
52
  let sac_client = StellarAssetClient::new(&env, &sac);
53
53
 
54
54
  // Grant all roles to owner (owner is the authorizer so can grant any role)
55
- for role_str in ["ADMIN_MGR", "MINTER", "BLKLISTR", "CLAWBACK"] {
55
+ for role_str in ["ADMIN_MANAGER_ROLE", "MINTER_ROLE", "BLACKLISTER_ROLE", "CLAWBACK_ROLE"] {
56
56
  let role = Symbol::new(&env, role_str);
57
57
  mock_auth(&env, &sac_manager, &owner, "grant_role", (owner.clone(), role.clone(), owner.clone()));
58
58
  sac_manager_client.grant_role(&owner, &role, &owner);
59
59
  }
60
60
 
61
61
  // Grant MINTER_ROLE to oft so it can call mint in tests
62
- let minter_role = Symbol::new(&env, "MINTER");
62
+ let minter_role = Symbol::new(&env, "MINTER_ROLE");
63
63
  mock_auth(&env, &sac_manager, &owner, "grant_role", (oft.clone(), minter_role.clone(), owner.clone()));
64
64
  sac_manager_client.grant_role(&oft, &minter_role, &owner);
65
65
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@layerzerolabs/protocol-stellar-v2",
3
- "version": "0.2.49",
3
+ "version": "0.2.50",
4
4
  "private": false,
5
5
  "license": "LZBL-1.2",
6
6
  "devDependencies": {
7
7
  "@types/node": "^22.18.6",
8
8
  "tsx": "^4.19.3",
9
9
  "typescript": "^5.8.2",
10
- "@layerzerolabs/stellar-ts-bindings-gen": "0.2.49",
11
- "@layerzerolabs/common-node-utils": "0.2.49",
12
- "@layerzerolabs/vm-tooling-stellar": "0.2.49"
10
+ "@layerzerolabs/common-node-utils": "0.2.50",
11
+ "@layerzerolabs/stellar-ts-bindings-gen": "0.2.50",
12
+ "@layerzerolabs/vm-tooling-stellar": "0.2.50"
13
13
  },
14
14
  "publishConfig": {
15
15
  "access": "restricted",