Rename admin_pubkey to owner_wallet in AppContract and related structures for clarity
This commit is contained in:
		
							parent
							
								
									65bfa113a4
								
							
						
					
					
						commit
						606c0ad395
					
				| @ -8,7 +8,7 @@ message Empty { | ||||
| message AppContract { | ||||
|   string uuid = 1; | ||||
|   string package_url = 2; | ||||
|   string admin_pubkey = 3; | ||||
|   string owner_wallet = 3; | ||||
|   string node_pubkey = 4; | ||||
|   string public_ipv4 = 5; | ||||
|   AppResource resource = 6; | ||||
| @ -25,7 +25,7 @@ message NewAppReq { | ||||
|   string node_pubkey = 2; | ||||
|   AppResource resource = 3; | ||||
|   string uuid = 4; | ||||
|   string admin_pubkey = 5; | ||||
|   string owner_wallet = 5; | ||||
| } | ||||
| 
 | ||||
| message AppResource { | ||||
| @ -53,7 +53,7 @@ message DelAppReq { | ||||
| } | ||||
| 
 | ||||
| message ListAppContractsReq { | ||||
|   string admin_pubkey = 1; | ||||
|   string owner_wallet = 1; | ||||
|   // string uuid = 2; | ||||
|   // string node_pubkey = 3; | ||||
| } | ||||
|  | ||||
| @ -38,7 +38,7 @@ pub struct AppDeployConfig { | ||||
|     #[serde(default)] | ||||
|     pub uuid: String, | ||||
|     // #[serde(default)]
 | ||||
|     pub admin_pubkey: String, | ||||
|     pub owner_wallet: String, | ||||
|     pub node_pubkey: String, | ||||
| } | ||||
| 
 | ||||
| @ -48,7 +48,7 @@ impl From<NewAppReq> for AppDeployConfig { | ||||
|             package_url: pb_val.package_url, | ||||
|             resource: pb_val.resource.map(Resource::from).unwrap_or_default(), | ||||
|             uuid: pb_val.uuid, | ||||
|             admin_pubkey: pb_val.admin_pubkey, | ||||
|             owner_wallet: pb_val.owner_wallet, | ||||
|             node_pubkey: pb_val.node_pubkey, | ||||
|         } | ||||
|     } | ||||
| @ -60,7 +60,7 @@ impl From<AppDeployConfig> for NewAppReq { | ||||
|             package_url: val.package_url, | ||||
|             resource: Some(val.resource.into()), | ||||
|             uuid: val.uuid, | ||||
|             admin_pubkey: val.admin_pubkey, | ||||
|             owner_wallet: val.owner_wallet, | ||||
|             node_pubkey: val.node_pubkey, | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user