Skip to content

Commit b4fa1ef

Browse files
committed
change leasing precompile index + update abi/sol
1 parent 8110422 commit b4fa1ef

File tree

4 files changed

+90
-90
lines changed

4 files changed

+90
-90
lines changed

evm-tests/src/contracts/leasing.ts

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,49 @@
1-
export const ILEASING_ADDRESS = "0x000000000000000000000000000000000000080b";
1+
export const ILEASING_ADDRESS = "0x000000000000000000000000000000000000080a";
22

33
export const ILeasingABI = [
4+
{
5+
"inputs": [
6+
{
7+
"internalType": "uint64",
8+
"name": "crowdloanDeposit",
9+
"type": "uint64"
10+
},
11+
{
12+
"internalType": "uint64",
13+
"name": "crowdloanMinContribution",
14+
"type": "uint64"
15+
},
16+
{
17+
"internalType": "uint64",
18+
"name": "crowdloanCap",
19+
"type": "uint64"
20+
},
21+
{
22+
"internalType": "uint32",
23+
"name": "crowdloanEnd",
24+
"type": "uint32"
25+
},
26+
{
27+
"internalType": "uint8",
28+
"name": "leasingEmissionsShare",
29+
"type": "uint8"
30+
},
31+
{
32+
"internalType": "bool",
33+
"name": "hasLeasingEndBlock",
34+
"type": "bool"
35+
},
36+
{
37+
"internalType": "uint32",
38+
"name": "leasingEndBlock",
39+
"type": "uint32"
40+
}
41+
],
42+
"name": "createLeaseCrowdloan",
43+
"outputs": [],
44+
"stateMutability": "payable",
45+
"type": "function"
46+
},
447
{
548
"inputs": [
649
{
@@ -110,49 +153,6 @@ export const ILeasingABI = [
110153
"stateMutability": "view",
111154
"type": "function"
112155
},
113-
{
114-
"inputs": [
115-
{
116-
"internalType": "uint64",
117-
"name": "crowdloanDeposit",
118-
"type": "uint64"
119-
},
120-
{
121-
"internalType": "uint64",
122-
"name": "crowdloanMinContribution",
123-
"type": "uint64"
124-
},
125-
{
126-
"internalType": "uint64",
127-
"name": "crowdloanCap",
128-
"type": "uint64"
129-
},
130-
{
131-
"internalType": "uint32",
132-
"name": "crowdloanEnd",
133-
"type": "uint32"
134-
},
135-
{
136-
"internalType": "uint8",
137-
"name": "leasingEmissionsShare",
138-
"type": "uint8"
139-
},
140-
{
141-
"internalType": "bool",
142-
"name": "hasLeasingEndBlock",
143-
"type": "bool"
144-
},
145-
{
146-
"internalType": "uint32",
147-
"name": "leasingEndBlock",
148-
"type": "uint32"
149-
}
150-
],
151-
"name": "createLeaseCrowdloan",
152-
"outputs": [],
153-
"stateMutability": "payable",
154-
"type": "function"
155-
},
156156
{
157157
"inputs": [
158158
{
@@ -171,4 +171,4 @@ export const ILeasingABI = [
171171
"stateMutability": "payable",
172172
"type": "function"
173173
}
174-
];
174+
]

precompiles/src/leasing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ where
3131
+ Dispatchable<PostInfo = PostDispatchInfo>,
3232
<R as pallet_evm::Config>::AddressMapping: AddressMapping<R::AccountId>,
3333
{
34-
const INDEX: u64 = 2059;
34+
const INDEX: u64 = 2058;
3535
}
3636

3737
#[precompile_utils::precompile]

precompiles/src/solidity/leasing.abi

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
11
[
2+
{
3+
"inputs": [
4+
{
5+
"internalType": "uint64",
6+
"name": "crowdloanDeposit",
7+
"type": "uint64"
8+
},
9+
{
10+
"internalType": "uint64",
11+
"name": "crowdloanMinContribution",
12+
"type": "uint64"
13+
},
14+
{
15+
"internalType": "uint64",
16+
"name": "crowdloanCap",
17+
"type": "uint64"
18+
},
19+
{
20+
"internalType": "uint32",
21+
"name": "crowdloanEnd",
22+
"type": "uint32"
23+
},
24+
{
25+
"internalType": "uint8",
26+
"name": "leasingEmissionsShare",
27+
"type": "uint8"
28+
},
29+
{
30+
"internalType": "bool",
31+
"name": "hasLeasingEndBlock",
32+
"type": "bool"
33+
},
34+
{
35+
"internalType": "uint32",
36+
"name": "leasingEndBlock",
37+
"type": "uint32"
38+
}
39+
],
40+
"name": "createLeaseCrowdloan",
41+
"outputs": [],
42+
"stateMutability": "payable",
43+
"type": "function"
44+
},
245
{
346
"inputs": [
447
{
@@ -108,49 +151,6 @@
108151
"stateMutability": "view",
109152
"type": "function"
110153
},
111-
{
112-
"inputs": [
113-
{
114-
"internalType": "uint64",
115-
"name": "crowdloanDeposit",
116-
"type": "uint64"
117-
},
118-
{
119-
"internalType": "uint64",
120-
"name": "crowdloanMinContribution",
121-
"type": "uint64"
122-
},
123-
{
124-
"internalType": "uint64",
125-
"name": "crowdloanCap",
126-
"type": "uint64"
127-
},
128-
{
129-
"internalType": "uint32",
130-
"name": "crowdloanEnd",
131-
"type": "uint32"
132-
},
133-
{
134-
"internalType": "uint8",
135-
"name": "leasingEmissionsShare",
136-
"type": "uint8"
137-
},
138-
{
139-
"internalType": "bool",
140-
"name": "hasLeasingEndBlock",
141-
"type": "bool"
142-
},
143-
{
144-
"internalType": "uint32",
145-
"name": "leasingEndBlock",
146-
"type": "uint32"
147-
}
148-
],
149-
"name": "createLeaseCrowdloan",
150-
"outputs": [],
151-
"stateMutability": "payable",
152-
"type": "function"
153-
},
154154
{
155155
"inputs": [
156156
{

precompiles/src/solidity/leasing.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pragma solidity ^0.8.0;
22

3-
address constant ILEASING_ADDRESS = 0x000000000000000000000000000000000000080b;
3+
address constant ILEASING_ADDRESS = 0x000000000000000000000000000000000000080a;
44

55
interface ILeasing {
66
/**

0 commit comments

Comments
 (0)