Skip to content

Commit

Permalink
Updated types.json for all pallets
Browse files Browse the repository at this point in the history
  • Loading branch information
vayesy committed Apr 11, 2022
1 parent d126379 commit 152f06d
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 24 deletions.
61 changes: 47 additions & 14 deletions control/types.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,59 @@

"Body": {
{
"Org": {
"id": "Hash",
"index": "u128",
"creator": "AccountId",
"name": "Vec<u8>",
"cid": "Vec<u8>",
"body": "ControlType",
"org_type": "OrgType",
"created": "BlockNumber",
"mutated": "BlockNumber"
},

"BConfig": {
"fee_model": "ControlFeeModel",
"OrgConfig": {
"fee_model": "FeeModel",
"fee": "Balance",
"gov_asset": "u8",
"pay_asset": "u8",
"access": "ControlAccessModel",
"access": "AccessModel",
"member_limit": "u64"
},

"ControlType": { "_enum": ["INDIVIDUAL", "COMPANY", "DAO", "HYBRID"] },
"ControlState": { "_enum": ["INACTIVE", "ACTIVE", "LOCKED"] },
"ControlMemberState": { "_enum": ["INACTIVE", "ACTIVE", "PENDING", "KICKED", "BANNED", "EXITED"] },
"ControlFeeModel": { "_enum": ["NOFEES", "RESERVE", "TRANSFER"] },
"ControlAccessModel": { "_enum": ["OPEN", "VOTING", "CONTROLLER" ] }
},
"OrgType": {
"_enum": [
"Individual",
"Company",
"Dao",
"Hybrid"
]
},
"ControlState": {
"_enum": [
"Inactive",
"Active",
"Locked"
]
},
"ControlMemberState": {
"_enum": [
"Inactive",
"Active",
"Pending",
"Kicked",
"Banned",
"Exited"
]
},
"FeeModel": {
"_enum": [
"NoFees",
"Reserve",
"Rransfer"
]
},
"AccessModel": {
"_enum": [
"Open",
"Voting",
"Controller"
]
}
}
44 changes: 44 additions & 0 deletions flow/types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"Campaign": {
"id": "Hash",
"org": "Hash",
"name": "Vec<u8>",
"owner": "AccountId",
"admin": "AccountId",
"deposit": "Balance",
"expiry": "BlockNumber",
"cap": "Balance",
"protocol": "FlowProtocol",
"governance": "FlowGovernance",
"cid": "Vec<u8>",
"token_symbol": "Vec<u8>",
"token_name": "Vec<u8>",
"created": "Moment"
},
"FlowProtocol": {
"_enum": [
"Grant",
"Raise",
"Lend",
"Loan",
"Share",
"Pool"
]
},
"FlowGovernance": {
"_enum": [
"No",
"Yes"
]
},
"FlowState": {
"_enum": [
"Init",
"Active",
"Paused",
"Success",
"Failed",
"Locked"
]
}
}
22 changes: 12 additions & 10 deletions sense/types.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
"Entity": {
"account": "AccountId",
"index": "u128",
"cid": "Vec<u8>",
"created": "BlockNumber",
"mutated": "BlockNumber"
},
"EntityProperty": {
"value": "u64",
"mutated": "BlockNumber"
{
"Entity": {
"account": "AccountId",
"index": "u128",
"cid": "Vec<u8>",
"created": "BlockNumber",
"mutated": "BlockNumber"
},
"EntityProperty": {
"value": "u64",
"mutated": "BlockNumber"
}
}
45 changes: 45 additions & 0 deletions signal/types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"Proposal": {
"proposal_id": "Hash",
"campaign_id": "Hash",
"proposal_type": "ProposalType",
"voting_type": "VotingType",
"start": "BlockNumber",
"expiry": "BlockNumber"
},
"ProposalMetadata": {
"title": "Vec<u8>",
"cid": "Vec<u8>",
"amount": "Balance"
},
"ProposalState": {
"_enum": [
"Init",
"Active",
"Accepted",
"Rejected",
"Expired",
"Aborted",
"Finalized"
]
},
"ProposalType": {
"_enum": [
"General",
"Multiple",
"Member",
"Withdrawal",
"Spending"
]
},
"VotingType": {
"_enum": [
"Simple",
"Token",
"Absolute",
"Quadratic",
"Ranked",
"Conviction"
]
}
}

0 comments on commit 152f06d

Please sign in to comment.