mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 14:11:09 +00:00
fix(stablecoin): address open position review feedback
This commit is contained in:
+161
-16
@@ -2,18 +2,6 @@
|
||||
"version": "0.1.0",
|
||||
"name": "stablecoin",
|
||||
"instructions": [
|
||||
{
|
||||
"name": "noop",
|
||||
"accounts": [
|
||||
{
|
||||
"name": "account",
|
||||
"writable": false,
|
||||
"signer": false,
|
||||
"init": false
|
||||
}
|
||||
],
|
||||
"args": []
|
||||
},
|
||||
{
|
||||
"name": "open_position",
|
||||
"accounts": [
|
||||
@@ -49,10 +37,6 @@
|
||||
}
|
||||
],
|
||||
"args": [
|
||||
{
|
||||
"name": "stablecoin_program_id",
|
||||
"type": "program_id"
|
||||
},
|
||||
{
|
||||
"name": "collateral_amount",
|
||||
"type": "u128"
|
||||
@@ -60,5 +44,166 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"accounts": [
|
||||
{
|
||||
"name": "Position",
|
||||
"type": {
|
||||
"kind": "struct",
|
||||
"fields": [
|
||||
{
|
||||
"name": "collateral_vault_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "collateral_definition_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "collateral_amount",
|
||||
"type": "u128"
|
||||
},
|
||||
{
|
||||
"name": "debt_amount",
|
||||
"type": "u128"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "TokenDefinition",
|
||||
"type": {
|
||||
"kind": "enum",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Fungible",
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "total_supply",
|
||||
"type": "u128"
|
||||
},
|
||||
{
|
||||
"name": "metadata_id",
|
||||
"type": {
|
||||
"option": "account_id"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NonFungible",
|
||||
"fields": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "printable_supply",
|
||||
"type": "u128"
|
||||
},
|
||||
{
|
||||
"name": "metadata_id",
|
||||
"type": "account_id"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "TokenHolding",
|
||||
"type": {
|
||||
"kind": "enum",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Fungible",
|
||||
"fields": [
|
||||
{
|
||||
"name": "definition_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "balance",
|
||||
"type": "u128"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NftMaster",
|
||||
"fields": [
|
||||
{
|
||||
"name": "definition_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "print_balance",
|
||||
"type": "u128"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NftPrintedCopy",
|
||||
"fields": [
|
||||
{
|
||||
"name": "definition_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "owned",
|
||||
"type": "bool"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "TokenMetadata",
|
||||
"type": {
|
||||
"kind": "struct",
|
||||
"fields": [
|
||||
{
|
||||
"name": "definition_id",
|
||||
"type": "account_id"
|
||||
},
|
||||
{
|
||||
"name": "standard",
|
||||
"type": {
|
||||
"defined": "MetadataStandard"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "uri",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "creators",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "primary_sale_date",
|
||||
"type": "u64"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"types": [
|
||||
{
|
||||
"name": "MetadataStandard",
|
||||
"kind": "enum",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Simple"
|
||||
},
|
||||
{
|
||||
"name": "Expanded"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"instruction_type": "stablecoin_core::Instruction"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user