|
| 1 | +{ |
| 2 | + "version": "1.0.0", |
| 3 | + "policyId": "demo-app-v1.1-20240911", |
| 4 | + "name": "Wallet SDK Demo App", |
| 5 | + "description": "Auto-approval policies for the Wallet SDK Demo Application", |
| 6 | + "ruleSets": { |
| 7 | + "basic-transfers": { |
| 8 | + "name": "Basic Transfers", |
| 9 | + "description": "Allow basic SUI and coin transfers to any address", |
| 10 | + "rules": { |
| 11 | + "balances": [ |
| 12 | + { |
| 13 | + "$kind": "CoinBalanceRule", |
| 14 | + "description": "Allow SUI transfers to any address", |
| 15 | + "coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI" |
| 16 | + } |
| 17 | + ] |
| 18 | + } |
| 19 | + }, |
| 20 | + "counter-operations": { |
| 21 | + "name": "Counter Operations", |
| 22 | + "description": "Allow interactions with demo counter smart contracts", |
| 23 | + "rules": { |
| 24 | + "balances": [ |
| 25 | + { |
| 26 | + "$kind": "CoinBalanceRule", |
| 27 | + "description": "Allow SUI for gas fees", |
| 28 | + "coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI" |
| 29 | + } |
| 30 | + ], |
| 31 | + "ownedObjects": [ |
| 32 | + { |
| 33 | + "$kind": "ObjectTypeRule", |
| 34 | + "description": "Allow counter object interactions", |
| 35 | + "objectType": "0x58a6d7dccd124b7e0bb9756dc309f5d5b9e2bc38a05261177970e96d0d3911f1::counter::Counter", |
| 36 | + "accessLevel": "mutate" |
| 37 | + } |
| 38 | + ] |
| 39 | + } |
| 40 | + }, |
| 41 | + "nft-operations": { |
| 42 | + "name": "NFT Operations", |
| 43 | + "description": "Allow NFT minting, transfers, and marketplace interactions", |
| 44 | + "rules": { |
| 45 | + "balances": [ |
| 46 | + { |
| 47 | + "$kind": "CoinBalanceRule", |
| 48 | + "description": "Allow SUI for gas fees", |
| 49 | + "coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI" |
| 50 | + } |
| 51 | + ], |
| 52 | + "ownedObjects": [ |
| 53 | + { |
| 54 | + "$kind": "ObjectTypeRule", |
| 55 | + "description": "Allow demo NFT interactions", |
| 56 | + "objectType": "0x1ae7832d6ad190aa4c8d6a36dd014d8383246428fb27590262b8648fcec62ca0::nft::DemoNFT", |
| 57 | + "accessLevel": "transfer" |
| 58 | + } |
| 59 | + ] |
| 60 | + } |
| 61 | + }, |
| 62 | + "walrus-operations": { |
| 63 | + "name": "Walrus Storage", |
| 64 | + "description": "Allow interactions with Walrus decentralized storage", |
| 65 | + "rules": { |
| 66 | + "balances": [ |
| 67 | + { |
| 68 | + "$kind": "CoinBalanceRule", |
| 69 | + "description": "Allow SUI payments for storage fees", |
| 70 | + "coinType": "0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI" |
| 71 | + } |
| 72 | + ] |
| 73 | + } |
| 74 | + } |
| 75 | + }, |
| 76 | + "defaultSettings": { |
| 77 | + "maxUsdBudget": "100.00", |
| 78 | + "maxCoinBudget": { |
| 79 | + "0x2::sui::SUI": "10000000000" |
| 80 | + }, |
| 81 | + "remainingTransactions": 50, |
| 82 | + "expiryHours": 24 |
| 83 | + }, |
| 84 | + "contact": { |
| 85 | + "name": "Mysten Labs", |
| 86 | + "url": "https://mystenlabs.com", |
| 87 | + "email": "build@mystenlabs.com" |
| 88 | + } |
| 89 | +} |
0 commit comments