Name | Lookup | Parameters | |
|---|---|---|---|
| claim_legacy_wallet | 0500 | 1 | |
| register_address | 0501 | 2 | |
| add_ask_order | 0502 | 4 | |
| add_bid_order | 0503 | 4 | |
| add_offer | 0504 | 3 | |
| add_deal_order | 0505 | 2 | |
| lock_deal_order | 0506 | 1 | |
| fund_deal_order | 0507 | 2 | |
| register_deal_order | 0508 | 8 | |
| close_deal_order | 0509 | 2 | |
| register_funding_transfer | 050a | 3 | |
| register_repayment_transfer | 050b | 4 | |
| exempt | 050c | 1 | |
| verify_transfer | 050d | 1 | |
| add_authority | 050e | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| AddressRegistered | 0500 | ["AddressId<Hash>","Address<AccountId>"] | |
| TransferRegistered | 0501 | ["TransferId<Hash>","Transfer<AccountId, BlockNumber, Hash>"] | |
| TransferVerified | 0502 | ["TransferId<Hash>","Transfer<AccountId, BlockNumber, Hash>"] | |
| TransferProcessed | 0503 | ["TransferId<Hash>","Transfer<AccountId, BlockNumber, Hash>"] | |
| AskOrderAdded | 0504 | ["AskOrderId<BlockNumber, Hash>","AskOrder<AccountId, BlockNumber, Hash>"] | |
| BidOrderAdded | 0505 | ["BidOrderId<BlockNumber, Hash>","BidOrder<AccountId, BlockNumber, Hash>"] | |
| OfferAdded | 0506 | ["OfferId<BlockNumber, Hash>","Offer<AccountId, BlockNumber, Hash>"] | |
| DealOrderAdded | 0507 | ["DealOrderId<BlockNumber, Hash>","DealOrder<AccountId, BlockNumber, Hash, Moment>"] | |
| DealOrderFunded | 0508 | ["DealOrderId<BlockNumber, Hash>","DealOrder<AccountId, BlockNumber, Hash, Moment>"] | |
| DealOrderClosed | 0509 | ["DealOrderId<BlockNumber, Hash>","DealOrder<AccountId, BlockNumber, Hash, Moment>"] | |
| LoanExempted | 050a | ["DealOrderId<BlockNumber, Hash>"] | |
| LegacyWalletClaimed | 050b | ["AccountId","LegacySighash","Balance"] |
Name | Type | |
|---|---|---|
| Authorities | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"NULL","keys_id":0,"value_id":29}} | |
| LegacyWallets | {"origin":"Map","n_map_type":{"hashers":["Twox128"],"key_vec":["[U8; 60]"],"value":"U128","keys_id":58,"value_id":6}} | |
| LegacyBalanceKeeper | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} | |
| UnverifiedTransfers | {"origin":"PlainType","plain_type":"Vec<pallet_creditcoin:types:UnverifiedTransfer>","PlainTypeValue":124} | |
| DealOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Identity"],"key_vec":["U32","H256"],"value":"pallet_creditcoin:types:DealOrder","keys_id":127,"value_id":56}} | |
| Addresses | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["H256"],"value":"pallet_creditcoin:types:Address","keys_id":32,"value_id":33}} | |
| UsedGuids | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["Vec<U8>"],"value":"NULL","keys_id":35,"value_id":29}} | |
| AskOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Identity"],"key_vec":["U32","H256"],"value":"pallet_creditcoin:types:AskOrder","keys_id":127,"value_id":46}} | |
| BidOrders | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Identity"],"key_vec":["U32","H256"],"value":"pallet_creditcoin:types:BidOrder","keys_id":127,"value_id":52}} | |
| Offers | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Identity"],"key_vec":["U32","H256"],"value":"pallet_creditcoin:types:Offer","keys_id":127,"value_id":55}} | |
| Transfers | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["H256"],"value":"pallet_creditcoin:types:Transfer","keys_id":36,"value_id":37}} |
Name | Docs |
|---|---|
| AddressAlreadyRegistered | The specified address has already been registered to another account |
| NonExistentAddress | The specified address does not exist. |
| NonExistentDealOrder | The specified deal order does not exist. |
| NonExistentAskOrder | The specified ask order does not exist. |
| NonExistentBidOrder | The specified bid order does not exist. |
| NonExistentOffer | The specified offer does not exist. |
| NonExistentTransfer | The specified transfer does not exist. |
| TransferAlreadyRegistered | The transfer has already been registered. |
| TransferMismatch | The account that registered the transfer doesnot match the account attempting to use the transfer. |
| TransferAlreadyProcessed | The transfer has already been processed and cannot be used. |
| TransferAmountInsufficient | The transfer amount is less than the amount in the loan terms. |
| MalformedTransfer | The transfer is malformed and has a block number greater than thetip. This is an internal error. |
| UnsupportedTransferKind | The specified transfer type is not currently supported bythe blockchain the loan is executed on. |
| InsufficientAuthority | The node does not have sufficient authority to verify a transfer. |
| DuplicateId | The specified ID has already been used. |
| NotAddressOwner | The address cannot be used because the user does not own it. |
| OffchainSignedTxFailed | Failed to send an offchain callback transaction. This is likelyan internal error. |
| NoLocalAcctForSignedTx | The node is an authority but there is no account to create acallback transaction. This is likely an internal error. |
| RepaymentOrderNonZeroGain | |
| AddressPlatformMismatch | The addresses specified are not on compatible external chains. |
| AlreadyAuthority | The account is already an authority. |
| DuplicateOffer | The offer has already been made. |
| DealNotFunded | The deal cannot be locked because it is not funded yet. |
| DealOrderAlreadyFunded | The deal order is already funded and cannot be funded again. |
| DealOrderAlreadyClosed | The deal order is already closed and cannot be closed again. |
| DealOrderAlreadyLocked | The deal order is already locked and cannot be locked again. |
| DealOrderMustBeLocked | The deal order must be locked before it can be closed. |
| DuplicateDealOrder | The deal order already exists. |
| DealOrderExpired | The deal order has expired and is no longer valid. |
| AskOrderExpired | The ask order has expired and is no longer valid. |
| BidOrderExpired | The bid order has expired and is no longer valid. |
| OfferExpired | The offer order has expired and is no longer valid. |
| AskBidMismatch | The terms of the ask and bid order do not agree. |
| SameOwner | The bid order is owned by the user, a user cannot lend to themself. |
| InvalidSignature | The signature does not match the public key and message. |
| NotBorrower | Only the borrower can perform the action. |
| MalformedDealOrder | The deal order is malformed and has a block number greater than thetip. This is an internal error. |
| NotLender | Only the lender can perform the action. |
| UnverifiedTransferPoolFull | The queue of unverified transfers is full for this block. |
| RepaymentOrderUnsupported | Repayment orders are not currently supported. |
| NotLegacyWalletOwner | The legacy wallet is not owned by the user. |
| LegacyWalletNotFound | There is no legacy wallet corresponding to the public key. |
| LegacyBalanceKeeperMissing | There is no legacy balance keeper, so no legacy wallets can be claimed.This is a configuration error and should only occur during local development. |
| GuidAlreadyUsed | The specified guid has already been used and cannot be re-used. |
| InvalidTermLength | The value of the loan term's term length is zero, which is invalid. |
| MalformedExternalAddress | The external address is malformed or otherwise invalid for the platform. |