1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Copyright 2021 Centrifuge Foundation (centrifuge.io).
// This file is part of Centrifuge chain project.

// Centrifuge is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version (see http://www.gnu.org/licenses).

// Centrifuge is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

use frame_support::weights::Weight;

pub trait WeightInfo {
	fn create() -> Weight;
	fn borrow(n: u32) -> Weight;
	fn repay(n: u32) -> Weight;
	fn write_off(n: u32) -> Weight;
	fn admin_write_off(n: u32) -> Weight;
	fn propose_loan_mutation(n: u32) -> Weight;
	fn apply_loan_mutation(n: u32) -> Weight;
	fn close(n: u32) -> Weight;
	fn propose_write_off_policy() -> Weight;
	fn apply_write_off_policy() -> Weight;
	fn update_portfolio_valuation(n: u32) -> Weight;
	fn propose_transfer_debt(n: u32) -> Weight;
	fn apply_transfer_debt(n: u32) -> Weight;
	fn increase_debt(n: u32) -> Weight;
}

impl WeightInfo for () {
	fn create() -> Weight {
		Weight::zero()
	}

	fn borrow(_: u32) -> Weight {
		Weight::zero()
	}

	fn repay(_: u32) -> Weight {
		Weight::zero()
	}

	fn write_off(_: u32) -> Weight {
		Weight::zero()
	}

	fn admin_write_off(_: u32) -> Weight {
		Weight::zero()
	}

	fn close(_: u32) -> Weight {
		Weight::zero()
	}

	fn propose_loan_mutation(_: u32) -> Weight {
		Weight::zero()
	}

	fn apply_loan_mutation(_: u32) -> Weight {
		Weight::zero()
	}

	fn propose_write_off_policy() -> Weight {
		Weight::zero()
	}

	fn apply_write_off_policy() -> Weight {
		Weight::zero()
	}

	fn update_portfolio_valuation(_: u32) -> Weight {
		Weight::zero()
	}

	fn propose_transfer_debt(_: u32) -> Weight {
		Weight::zero()
	}

	fn apply_transfer_debt(_: u32) -> Weight {
		Weight::zero()
	}

	fn increase_debt(_: u32) -> Weight {
		Weight::zero()
	}
}