@sudobility/contracts 0.15.1 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/artifacts/contracts/Mailer.sol/Mailer.dbg.json +1 -1
- package/artifacts/contracts/Mailer.sol/Mailer.json +2 -278
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.dbg.json +1 -1
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.dbg.json +1 -1
- package/dist/evm/src/evm/index.d.ts +1 -1
- package/dist/evm/src/evm/index.d.ts.map +1 -1
- package/dist/evm/src/evm/index.js +4 -4
- package/dist/evm/src/evm/index.js.map +1 -1
- package/dist/evm/src/evm/mailer-client.d.ts +210 -0
- package/dist/evm/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/evm/src/evm/mailer-client.js +417 -0
- package/dist/evm/src/evm/mailer-client.js.map +1 -0
- package/dist/evm/typechain-types/Mailer.d.ts +10 -177
- package/dist/evm/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/evm/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/evm/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/dist/solana/solana/index.d.ts +1 -1
- package/dist/solana/solana/index.d.ts.map +1 -1
- package/dist/solana/solana/index.js +1 -4
- package/dist/solana/solana/index.js.map +1 -1
- package/dist/solana/solana/mailer-client.d.ts +209 -0
- package/dist/solana/solana/mailer-client.d.ts.map +1 -0
- package/dist/solana/solana/mailer-client.js +728 -0
- package/dist/solana/solana/mailer-client.js.map +1 -0
- package/dist/solana/solana/types.d.ts +2 -3
- package/dist/solana/solana/types.d.ts.map +1 -1
- package/dist/solana/solana/types.js.map +1 -1
- package/dist/unified/src/evm/index.d.ts +1 -1
- package/dist/unified/src/evm/index.d.ts.map +1 -1
- package/dist/unified/src/evm/index.js +4 -4
- package/dist/unified/src/evm/index.js.map +1 -1
- package/dist/unified/src/evm/mailer-client.d.ts +210 -0
- package/dist/unified/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/unified/src/evm/mailer-client.js +417 -0
- package/dist/unified/src/evm/mailer-client.js.map +1 -0
- package/dist/unified/src/react/context/MailerProvider.d.ts +20 -26
- package/dist/unified/src/react/context/MailerProvider.d.ts.map +1 -1
- package/dist/unified/src/react/context/MailerProvider.js +26 -26
- package/dist/unified/src/react/context/MailerProvider.js.map +1 -1
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts +192 -225
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts.map +1 -1
- package/dist/unified/src/react/hooks/useMailerMutations.js +266 -263
- package/dist/unified/src/react/hooks/useMailerMutations.js.map +1 -1
- package/dist/unified/src/react/hooks/useMailerQueries.d.ts +63 -117
- package/dist/unified/src/react/hooks/useMailerQueries.d.ts.map +1 -1
- package/dist/unified/src/react/hooks/useMailerQueries.js +104 -239
- package/dist/unified/src/react/hooks/useMailerQueries.js.map +1 -1
- package/dist/unified/src/react/index.d.ts +3 -5
- package/dist/unified/src/react/index.d.ts.map +1 -1
- package/dist/unified/src/react/index.js +26 -41
- package/dist/unified/src/react/index.js.map +1 -1
- package/dist/unified/src/solana/index.d.ts +1 -1
- package/dist/unified/src/solana/index.d.ts.map +1 -1
- package/dist/unified/src/solana/index.js +1 -4
- package/dist/unified/src/solana/index.js.map +1 -1
- package/dist/unified/src/solana/mailer-client.d.ts +209 -0
- package/dist/unified/src/solana/mailer-client.d.ts.map +1 -0
- package/dist/unified/src/solana/mailer-client.js +728 -0
- package/dist/unified/src/solana/mailer-client.js.map +1 -0
- package/dist/unified/src/solana/types.d.ts +2 -3
- package/dist/unified/src/solana/types.d.ts.map +1 -1
- package/dist/unified/src/solana/types.js.map +1 -1
- package/dist/unified/src/unified/index.d.ts +1 -1
- package/dist/unified/src/unified/index.d.ts.map +1 -1
- package/dist/unified/src/unified/onchain-mailer-client.d.ts +247 -192
- package/dist/unified/src/unified/onchain-mailer-client.d.ts.map +1 -1
- package/dist/unified/src/unified/onchain-mailer-client.js +1462 -551
- package/dist/unified/src/unified/onchain-mailer-client.js.map +1 -1
- package/dist/unified/src/unified/types.d.ts +6 -23
- package/dist/unified/src/unified/types.d.ts.map +1 -1
- package/dist/unified/src/utils/chain-config.d.ts +2 -4
- package/dist/unified/src/utils/chain-config.d.ts.map +1 -1
- package/dist/unified/src/utils/chain-config.js +36 -46
- package/dist/unified/src/utils/chain-config.js.map +1 -1
- package/dist/unified/typechain-types/Mailer.d.ts +10 -177
- package/dist/unified/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/unified/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/unified/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/dist/unified-esm/src/evm/index.d.ts +1 -1
- package/dist/unified-esm/src/evm/index.d.ts.map +1 -1
- package/dist/unified-esm/src/evm/index.js +2 -2
- package/dist/unified-esm/src/evm/index.js.map +1 -1
- package/dist/unified-esm/src/evm/mailer-client.d.ts +210 -0
- package/dist/unified-esm/src/evm/mailer-client.d.ts.map +1 -0
- package/dist/unified-esm/src/evm/mailer-client.js +413 -0
- package/dist/unified-esm/src/evm/mailer-client.js.map +1 -0
- package/dist/unified-esm/src/react/context/MailerProvider.d.ts +20 -26
- package/dist/unified-esm/src/react/context/MailerProvider.d.ts.map +1 -1
- package/dist/unified-esm/src/react/context/MailerProvider.js +26 -25
- package/dist/unified-esm/src/react/context/MailerProvider.js.map +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts +192 -225
- package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts.map +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerMutations.js +262 -254
- package/dist/unified-esm/src/react/hooks/useMailerMutations.js.map +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts +63 -117
- package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts.map +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerQueries.js +102 -232
- package/dist/unified-esm/src/react/hooks/useMailerQueries.js.map +1 -1
- package/dist/unified-esm/src/react/index.d.ts +3 -5
- package/dist/unified-esm/src/react/index.d.ts.map +1 -1
- package/dist/unified-esm/src/react/index.js +5 -9
- package/dist/unified-esm/src/react/index.js.map +1 -1
- package/dist/unified-esm/src/solana/index.d.ts +1 -1
- package/dist/unified-esm/src/solana/index.d.ts.map +1 -1
- package/dist/unified-esm/src/solana/index.js +1 -2
- package/dist/unified-esm/src/solana/index.js.map +1 -1
- package/dist/unified-esm/src/solana/mailer-client.d.ts +209 -0
- package/dist/unified-esm/src/solana/mailer-client.d.ts.map +1 -0
- package/dist/unified-esm/src/solana/mailer-client.js +724 -0
- package/dist/unified-esm/src/solana/mailer-client.js.map +1 -0
- package/dist/unified-esm/src/solana/types.d.ts +2 -3
- package/dist/unified-esm/src/solana/types.d.ts.map +1 -1
- package/dist/unified-esm/src/solana/types.js.map +1 -1
- package/dist/unified-esm/src/unified/index.d.ts +1 -1
- package/dist/unified-esm/src/unified/index.d.ts.map +1 -1
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts +247 -192
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts.map +1 -1
- package/dist/unified-esm/src/unified/onchain-mailer-client.js +1462 -551
- package/dist/unified-esm/src/unified/onchain-mailer-client.js.map +1 -1
- package/dist/unified-esm/src/unified/types.d.ts +6 -23
- package/dist/unified-esm/src/unified/types.d.ts.map +1 -1
- package/dist/unified-esm/src/utils/chain-config.d.ts +2 -4
- package/dist/unified-esm/src/utils/chain-config.d.ts.map +1 -1
- package/dist/unified-esm/src/utils/chain-config.js +35 -46
- package/dist/unified-esm/src/utils/chain-config.js.map +1 -1
- package/dist/unified-esm/typechain-types/Mailer.d.ts +10 -177
- package/dist/unified-esm/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/package.json +11 -22
- package/programs/mailer/src/lib.rs +171 -1026
- package/programs/mailer/tests/integration_tests.rs +65 -586
- package/typechain-types/Mailer.ts +8 -319
- package/typechain-types/factories/Mailer__factory.ts +1 -277
- package/artifacts/contracts/Mailer.sol/Mailer.d.ts +0 -1146
- package/artifacts/contracts/Mailer.sol/artifacts.d.ts +0 -21
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.d.ts +0 -284
- package/artifacts/contracts/MockUSDC.sol/artifacts.d.ts +0 -21
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.d.ts +0 -157
- package/artifacts/contracts/interfaces/IERC20.sol/artifacts.d.ts +0 -21
- package/dist/evm/src/evm/evm-mailer-client.d.ts +0 -1062
- package/dist/evm/src/evm/evm-mailer-client.d.ts.map +0 -1
- package/dist/evm/src/evm/evm-mailer-client.js +0 -924
- package/dist/evm/src/evm/evm-mailer-client.js.map +0 -1
- package/dist/solana/solana/solana-mailer-client.d.ts +0 -209
- package/dist/solana/solana/solana-mailer-client.d.ts.map +0 -1
- package/dist/solana/solana/solana-mailer-client.js +0 -1004
- package/dist/solana/solana/solana-mailer-client.js.map +0 -1
- package/dist/unified/src/evm/evm-mailer-client.d.ts +0 -1062
- package/dist/unified/src/evm/evm-mailer-client.d.ts.map +0 -1
- package/dist/unified/src/evm/evm-mailer-client.js +0 -924
- package/dist/unified/src/evm/evm-mailer-client.js.map +0 -1
- package/dist/unified/src/solana/solana-mailer-client.d.ts +0 -209
- package/dist/unified/src/solana/solana-mailer-client.d.ts.map +0 -1
- package/dist/unified/src/solana/solana-mailer-client.js +0 -1004
- package/dist/unified/src/solana/solana-mailer-client.js.map +0 -1
- package/dist/unified-esm/src/evm/evm-mailer-client.d.ts +0 -1062
- package/dist/unified-esm/src/evm/evm-mailer-client.d.ts.map +0 -1
- package/dist/unified-esm/src/evm/evm-mailer-client.js +0 -920
- package/dist/unified-esm/src/evm/evm-mailer-client.js.map +0 -1
- package/dist/unified-esm/src/solana/solana-mailer-client.d.ts +0 -209
- package/dist/unified-esm/src/solana/solana-mailer-client.d.ts.map +0 -1
- package/dist/unified-esm/src/solana/solana-mailer-client.js +0 -1000
- package/dist/unified-esm/src/solana/solana-mailer-client.js.map +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by hardhat-viem, do not edit it.
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
// tslint:disable
|
|
4
|
-
// eslint-disable
|
|
5
|
-
|
|
6
|
-
import "hardhat/types/artifacts";
|
|
7
|
-
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
|
|
8
|
-
|
|
9
|
-
import { Mailer$Type } from "./Mailer";
|
|
10
|
-
|
|
11
|
-
declare module "hardhat/types/artifacts" {
|
|
12
|
-
interface ArtifactsMap {
|
|
13
|
-
["Mailer"]: Mailer$Type;
|
|
14
|
-
["contracts/Mailer.sol:Mailer"]: Mailer$Type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface ContractTypesMap {
|
|
18
|
-
["Mailer"]: GetContractReturnType<Mailer$Type["abi"]>;
|
|
19
|
-
["contracts/Mailer.sol:Mailer"]: GetContractReturnType<Mailer$Type["abi"]>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by hardhat-viem, do not edit it.
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
// tslint:disable
|
|
4
|
-
// eslint-disable
|
|
5
|
-
|
|
6
|
-
import type { Address } from "viem";
|
|
7
|
-
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
|
|
8
|
-
import "@nomicfoundation/hardhat-viem/types";
|
|
9
|
-
|
|
10
|
-
export interface MockUSDC$Type {
|
|
11
|
-
"_format": "hh-sol-artifact-1",
|
|
12
|
-
"contractName": "MockUSDC",
|
|
13
|
-
"sourceName": "contracts/MockUSDC.sol",
|
|
14
|
-
"abi": [
|
|
15
|
-
{
|
|
16
|
-
"inputs": [],
|
|
17
|
-
"stateMutability": "nonpayable",
|
|
18
|
-
"type": "constructor"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"inputs": [],
|
|
22
|
-
"name": "InsufficientAllowance",
|
|
23
|
-
"type": "error"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"inputs": [],
|
|
27
|
-
"name": "InsufficientBalance",
|
|
28
|
-
"type": "error"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"inputs": [],
|
|
32
|
-
"name": "OnlyOwner",
|
|
33
|
-
"type": "error"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"inputs": [
|
|
37
|
-
{
|
|
38
|
-
"internalType": "address",
|
|
39
|
-
"name": "",
|
|
40
|
-
"type": "address"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"internalType": "address",
|
|
44
|
-
"name": "",
|
|
45
|
-
"type": "address"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"name": "allowance",
|
|
49
|
-
"outputs": [
|
|
50
|
-
{
|
|
51
|
-
"internalType": "uint256",
|
|
52
|
-
"name": "",
|
|
53
|
-
"type": "uint256"
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"stateMutability": "view",
|
|
57
|
-
"type": "function"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"inputs": [
|
|
61
|
-
{
|
|
62
|
-
"internalType": "address",
|
|
63
|
-
"name": "spender",
|
|
64
|
-
"type": "address"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"internalType": "uint256",
|
|
68
|
-
"name": "amount",
|
|
69
|
-
"type": "uint256"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"name": "approve",
|
|
73
|
-
"outputs": [
|
|
74
|
-
{
|
|
75
|
-
"internalType": "bool",
|
|
76
|
-
"name": "",
|
|
77
|
-
"type": "bool"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"stateMutability": "nonpayable",
|
|
81
|
-
"type": "function"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"inputs": [
|
|
85
|
-
{
|
|
86
|
-
"internalType": "address",
|
|
87
|
-
"name": "",
|
|
88
|
-
"type": "address"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"name": "balanceOf",
|
|
92
|
-
"outputs": [
|
|
93
|
-
{
|
|
94
|
-
"internalType": "uint256",
|
|
95
|
-
"name": "",
|
|
96
|
-
"type": "uint256"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"stateMutability": "view",
|
|
100
|
-
"type": "function"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"inputs": [],
|
|
104
|
-
"name": "decimals",
|
|
105
|
-
"outputs": [
|
|
106
|
-
{
|
|
107
|
-
"internalType": "uint8",
|
|
108
|
-
"name": "",
|
|
109
|
-
"type": "uint8"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"stateMutability": "view",
|
|
113
|
-
"type": "function"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"inputs": [
|
|
117
|
-
{
|
|
118
|
-
"internalType": "address",
|
|
119
|
-
"name": "to",
|
|
120
|
-
"type": "address"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"internalType": "uint256",
|
|
124
|
-
"name": "amount",
|
|
125
|
-
"type": "uint256"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"name": "mint",
|
|
129
|
-
"outputs": [],
|
|
130
|
-
"stateMutability": "nonpayable",
|
|
131
|
-
"type": "function"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"inputs": [],
|
|
135
|
-
"name": "name",
|
|
136
|
-
"outputs": [
|
|
137
|
-
{
|
|
138
|
-
"internalType": "string",
|
|
139
|
-
"name": "",
|
|
140
|
-
"type": "string"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"stateMutability": "view",
|
|
144
|
-
"type": "function"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "owner",
|
|
149
|
-
"outputs": [
|
|
150
|
-
{
|
|
151
|
-
"internalType": "address",
|
|
152
|
-
"name": "",
|
|
153
|
-
"type": "address"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"stateMutability": "view",
|
|
157
|
-
"type": "function"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"inputs": [],
|
|
161
|
-
"name": "symbol",
|
|
162
|
-
"outputs": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "string",
|
|
165
|
-
"name": "",
|
|
166
|
-
"type": "string"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"stateMutability": "view",
|
|
170
|
-
"type": "function"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"inputs": [],
|
|
174
|
-
"name": "totalSupply",
|
|
175
|
-
"outputs": [
|
|
176
|
-
{
|
|
177
|
-
"internalType": "uint256",
|
|
178
|
-
"name": "",
|
|
179
|
-
"type": "uint256"
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
"stateMutability": "view",
|
|
183
|
-
"type": "function"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"inputs": [
|
|
187
|
-
{
|
|
188
|
-
"internalType": "address",
|
|
189
|
-
"name": "to",
|
|
190
|
-
"type": "address"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"internalType": "uint256",
|
|
194
|
-
"name": "amount",
|
|
195
|
-
"type": "uint256"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"name": "transfer",
|
|
199
|
-
"outputs": [
|
|
200
|
-
{
|
|
201
|
-
"internalType": "bool",
|
|
202
|
-
"name": "",
|
|
203
|
-
"type": "bool"
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
"stateMutability": "nonpayable",
|
|
207
|
-
"type": "function"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"inputs": [
|
|
211
|
-
{
|
|
212
|
-
"internalType": "address",
|
|
213
|
-
"name": "from",
|
|
214
|
-
"type": "address"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"internalType": "address",
|
|
218
|
-
"name": "to",
|
|
219
|
-
"type": "address"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"internalType": "uint256",
|
|
223
|
-
"name": "amount",
|
|
224
|
-
"type": "uint256"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"name": "transferFrom",
|
|
228
|
-
"outputs": [
|
|
229
|
-
{
|
|
230
|
-
"internalType": "bool",
|
|
231
|
-
"name": "",
|
|
232
|
-
"type": "bool"
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"stateMutability": "nonpayable",
|
|
236
|
-
"type": "function"
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"bytecode": "0x60e0604052600960a0908152684d6f636b205553444360b81b60c0526002906100289082610134565b506040805180820190915260048152635553444360e01b60208201526003906100519082610134565b506004805460ff1916600617905564e8d4a5100060055534801561007457600080fd5b50336080819052600554600091825260208290526040909120556101f3565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806100bd57607f821691505b6020821081036100dd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561012f576000816000526020600020601f850160051c8101602086101561010c5750805b601f850160051c820191505b8181101561012b57828155600101610118565b5050505b505050565b81516001600160401b0381111561014d5761014d610093565b6101618161015b84546100a9565b846100e3565b602080601f831160018114610196576000841561017e5750858301515b600019600386901b1c1916600185901b17855561012b565b600085815260208120601f198616915b828110156101c5578886015182559484019460019091019084016101a6565b50858210156101e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516106c36102156000396000818161017201526103d201526106c36000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806340c10f191161007157806340c10f191461013857806370a082311461014d5780638da5cb5b1461016d57806395d89b41146101ac578063a9059cbb146101b4578063dd62ed3e146101c757600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610106578063313ce56714610119575b600080fd5b6100b66101f2565b6040516100c391906104f1565b60405180910390f35b6100df6100da36600461055c565b610280565b60405190151581526020016100c3565b6100f860055481565b6040519081526020016100c3565b6100df610114366004610586565b6102ae565b6004546101269060ff1681565b60405160ff90911681526020016100c3565b61014b61014636600461055c565b6103c7565b005b6100f861015b3660046105c2565b60006020819052908152604090205481565b6101947f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c3565b6100b661045a565b6100df6101c236600461055c565b610467565b6100f86101d53660046105e4565b600160209081526000928352604080842090915290825290205481565b600280546101ff90610617565b80601f016020809104026020016040519081016040528092919081815260200182805461022b90610617565b80156102785780601f1061024d57610100808354040283529160200191610278565b820191906000526020600020905b81548152906001019060200180831161025b57829003601f168201915b505050505081565b3360009081526001602081815260408084206001600160a01b03871685529091529091208290555b92915050565b6001600160a01b0383166000908152602081905260408120548211156102e757604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561032b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b03841660009081526020819052604081208054849290610353908490610667565b90915550506001600160a01b0383166000908152602081905260408120805484929061038090849061067a565b90915550506001600160a01b0384166000908152600160209081526040808320338452909152812080548492906103b8908490610667565b90915550600195945050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461041057604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b0382166000908152602081905260408120805483929061043890849061067a565b925050819055508060056000828254610451919061067a565b90915550505050565b600380546101ff90610617565b3360009081526020819052604081205482111561049757604051631e9acf1760e31b815260040160405180910390fd5b33600090815260208190526040812080548492906104b6908490610667565b90915550506001600160a01b038316600090815260208190526040812080548492906104e390849061067a565b909155506001949350505050565b60006020808352835180602085015260005b8181101561051f57858101830151858201604001528201610503565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461055757600080fd5b919050565b6000806040838503121561056f57600080fd5b61057883610540565b946020939093013593505050565b60008060006060848603121561059b57600080fd5b6105a484610540565b92506105b260208501610540565b9150604084013590509250925092565b6000602082840312156105d457600080fd5b6105dd82610540565b9392505050565b600080604083850312156105f757600080fd5b61060083610540565b915061060e60208401610540565b90509250929050565b600181811c9082168061062b57607f821691505b60208210810361064b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102a8576102a8610651565b808201808211156102a8576102a861065156fea2646970667358221220db58c45fd5c85446164b9beeace5a427c6e533e629016581b36a58740b82509864736f6c63430008180033",
|
|
240
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a95760003560e01c806340c10f191161007157806340c10f191461013857806370a082311461014d5780638da5cb5b1461016d57806395d89b41146101ac578063a9059cbb146101b4578063dd62ed3e146101c757600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610106578063313ce56714610119575b600080fd5b6100b66101f2565b6040516100c391906104f1565b60405180910390f35b6100df6100da36600461055c565b610280565b60405190151581526020016100c3565b6100f860055481565b6040519081526020016100c3565b6100df610114366004610586565b6102ae565b6004546101269060ff1681565b60405160ff90911681526020016100c3565b61014b61014636600461055c565b6103c7565b005b6100f861015b3660046105c2565b60006020819052908152604090205481565b6101947f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100c3565b6100b661045a565b6100df6101c236600461055c565b610467565b6100f86101d53660046105e4565b600160209081526000928352604080842090915290825290205481565b600280546101ff90610617565b80601f016020809104026020016040519081016040528092919081815260200182805461022b90610617565b80156102785780601f1061024d57610100808354040283529160200191610278565b820191906000526020600020905b81548152906001019060200180831161025b57829003601f168201915b505050505081565b3360009081526001602081815260408084206001600160a01b03871685529091529091208290555b92915050565b6001600160a01b0383166000908152602081905260408120548211156102e757604051631e9acf1760e31b815260040160405180910390fd5b6001600160a01b038416600090815260016020908152604080832033845290915290205482111561032b576040516313be252b60e01b815260040160405180910390fd5b6001600160a01b03841660009081526020819052604081208054849290610353908490610667565b90915550506001600160a01b0383166000908152602081905260408120805484929061038090849061067a565b90915550506001600160a01b0384166000908152600160209081526040808320338452909152812080548492906103b8908490610667565b90915550600195945050505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461041057604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b0382166000908152602081905260408120805483929061043890849061067a565b925050819055508060056000828254610451919061067a565b90915550505050565b600380546101ff90610617565b3360009081526020819052604081205482111561049757604051631e9acf1760e31b815260040160405180910390fd5b33600090815260208190526040812080548492906104b6908490610667565b90915550506001600160a01b038316600090815260208190526040812080548492906104e390849061067a565b909155506001949350505050565b60006020808352835180602085015260005b8181101561051f57858101830151858201604001528201610503565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461055757600080fd5b919050565b6000806040838503121561056f57600080fd5b61057883610540565b946020939093013593505050565b60008060006060848603121561059b57600080fd5b6105a484610540565b92506105b260208501610540565b9150604084013590509250925092565b6000602082840312156105d457600080fd5b6105dd82610540565b9392505050565b600080604083850312156105f757600080fd5b61060083610540565b915061060e60208401610540565b90509250929050565b600181811c9082168061062b57607f821691505b60208210810361064b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102a8576102a8610651565b808201808211156102a8576102a861065156fea2646970667358221220db58c45fd5c85446164b9beeace5a427c6e533e629016581b36a58740b82509864736f6c63430008180033",
|
|
241
|
-
"linkReferences": {},
|
|
242
|
-
"deployedLinkReferences": {}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
declare module "@nomicfoundation/hardhat-viem/types" {
|
|
246
|
-
export function deployContract(
|
|
247
|
-
contractName: "MockUSDC",
|
|
248
|
-
constructorArgs?: [],
|
|
249
|
-
config?: DeployContractConfig
|
|
250
|
-
): Promise<GetContractReturnType<MockUSDC$Type["abi"]>>;
|
|
251
|
-
export function deployContract(
|
|
252
|
-
contractName: "contracts/MockUSDC.sol:MockUSDC",
|
|
253
|
-
constructorArgs?: [],
|
|
254
|
-
config?: DeployContractConfig
|
|
255
|
-
): Promise<GetContractReturnType<MockUSDC$Type["abi"]>>;
|
|
256
|
-
|
|
257
|
-
export function sendDeploymentTransaction(
|
|
258
|
-
contractName: "MockUSDC",
|
|
259
|
-
constructorArgs?: [],
|
|
260
|
-
config?: SendDeploymentTransactionConfig
|
|
261
|
-
): Promise<{
|
|
262
|
-
contract: GetContractReturnType<MockUSDC$Type["abi"]>;
|
|
263
|
-
deploymentTransaction: GetTransactionReturnType;
|
|
264
|
-
}>;
|
|
265
|
-
export function sendDeploymentTransaction(
|
|
266
|
-
contractName: "contracts/MockUSDC.sol:MockUSDC",
|
|
267
|
-
constructorArgs?: [],
|
|
268
|
-
config?: SendDeploymentTransactionConfig
|
|
269
|
-
): Promise<{
|
|
270
|
-
contract: GetContractReturnType<MockUSDC$Type["abi"]>;
|
|
271
|
-
deploymentTransaction: GetTransactionReturnType;
|
|
272
|
-
}>;
|
|
273
|
-
|
|
274
|
-
export function getContractAt(
|
|
275
|
-
contractName: "MockUSDC",
|
|
276
|
-
address: Address,
|
|
277
|
-
config?: GetContractAtConfig
|
|
278
|
-
): Promise<GetContractReturnType<MockUSDC$Type["abi"]>>;
|
|
279
|
-
export function getContractAt(
|
|
280
|
-
contractName: "contracts/MockUSDC.sol:MockUSDC",
|
|
281
|
-
address: Address,
|
|
282
|
-
config?: GetContractAtConfig
|
|
283
|
-
): Promise<GetContractReturnType<MockUSDC$Type["abi"]>>;
|
|
284
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by hardhat-viem, do not edit it.
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
// tslint:disable
|
|
4
|
-
// eslint-disable
|
|
5
|
-
|
|
6
|
-
import "hardhat/types/artifacts";
|
|
7
|
-
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
|
|
8
|
-
|
|
9
|
-
import { MockUSDC$Type } from "./MockUSDC";
|
|
10
|
-
|
|
11
|
-
declare module "hardhat/types/artifacts" {
|
|
12
|
-
interface ArtifactsMap {
|
|
13
|
-
["MockUSDC"]: MockUSDC$Type;
|
|
14
|
-
["contracts/MockUSDC.sol:MockUSDC"]: MockUSDC$Type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface ContractTypesMap {
|
|
18
|
-
["MockUSDC"]: GetContractReturnType<MockUSDC$Type["abi"]>;
|
|
19
|
-
["contracts/MockUSDC.sol:MockUSDC"]: GetContractReturnType<MockUSDC$Type["abi"]>;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by hardhat-viem, do not edit it.
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
// tslint:disable
|
|
4
|
-
// eslint-disable
|
|
5
|
-
|
|
6
|
-
import type { Address } from "viem";
|
|
7
|
-
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
|
|
8
|
-
import "@nomicfoundation/hardhat-viem/types";
|
|
9
|
-
|
|
10
|
-
export interface IERC20$Type {
|
|
11
|
-
"_format": "hh-sol-artifact-1",
|
|
12
|
-
"contractName": "IERC20",
|
|
13
|
-
"sourceName": "contracts/interfaces/IERC20.sol",
|
|
14
|
-
"abi": [
|
|
15
|
-
{
|
|
16
|
-
"inputs": [
|
|
17
|
-
{
|
|
18
|
-
"internalType": "address",
|
|
19
|
-
"name": "spender",
|
|
20
|
-
"type": "address"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"internalType": "uint256",
|
|
24
|
-
"name": "amount",
|
|
25
|
-
"type": "uint256"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"name": "approve",
|
|
29
|
-
"outputs": [
|
|
30
|
-
{
|
|
31
|
-
"internalType": "bool",
|
|
32
|
-
"name": "",
|
|
33
|
-
"type": "bool"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"stateMutability": "nonpayable",
|
|
37
|
-
"type": "function"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"inputs": [
|
|
41
|
-
{
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "account",
|
|
44
|
-
"type": "address"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"name": "balanceOf",
|
|
48
|
-
"outputs": [
|
|
49
|
-
{
|
|
50
|
-
"internalType": "uint256",
|
|
51
|
-
"name": "",
|
|
52
|
-
"type": "uint256"
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"stateMutability": "view",
|
|
56
|
-
"type": "function"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"inputs": [
|
|
60
|
-
{
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "to",
|
|
63
|
-
"type": "address"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"internalType": "uint256",
|
|
67
|
-
"name": "amount",
|
|
68
|
-
"type": "uint256"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"name": "transfer",
|
|
72
|
-
"outputs": [
|
|
73
|
-
{
|
|
74
|
-
"internalType": "bool",
|
|
75
|
-
"name": "",
|
|
76
|
-
"type": "bool"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"stateMutability": "nonpayable",
|
|
80
|
-
"type": "function"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"inputs": [
|
|
84
|
-
{
|
|
85
|
-
"internalType": "address",
|
|
86
|
-
"name": "from",
|
|
87
|
-
"type": "address"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"internalType": "address",
|
|
91
|
-
"name": "to",
|
|
92
|
-
"type": "address"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"internalType": "uint256",
|
|
96
|
-
"name": "amount",
|
|
97
|
-
"type": "uint256"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"name": "transferFrom",
|
|
101
|
-
"outputs": [
|
|
102
|
-
{
|
|
103
|
-
"internalType": "bool",
|
|
104
|
-
"name": "",
|
|
105
|
-
"type": "bool"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
"stateMutability": "nonpayable",
|
|
109
|
-
"type": "function"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"bytecode": "0x",
|
|
113
|
-
"deployedBytecode": "0x",
|
|
114
|
-
"linkReferences": {},
|
|
115
|
-
"deployedLinkReferences": {}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
declare module "@nomicfoundation/hardhat-viem/types" {
|
|
119
|
-
export function deployContract(
|
|
120
|
-
contractName: "IERC20",
|
|
121
|
-
constructorArgs?: [],
|
|
122
|
-
config?: DeployContractConfig
|
|
123
|
-
): Promise<GetContractReturnType<IERC20$Type["abi"]>>;
|
|
124
|
-
export function deployContract(
|
|
125
|
-
contractName: "contracts/interfaces/IERC20.sol:IERC20",
|
|
126
|
-
constructorArgs?: [],
|
|
127
|
-
config?: DeployContractConfig
|
|
128
|
-
): Promise<GetContractReturnType<IERC20$Type["abi"]>>;
|
|
129
|
-
|
|
130
|
-
export function sendDeploymentTransaction(
|
|
131
|
-
contractName: "IERC20",
|
|
132
|
-
constructorArgs?: [],
|
|
133
|
-
config?: SendDeploymentTransactionConfig
|
|
134
|
-
): Promise<{
|
|
135
|
-
contract: GetContractReturnType<IERC20$Type["abi"]>;
|
|
136
|
-
deploymentTransaction: GetTransactionReturnType;
|
|
137
|
-
}>;
|
|
138
|
-
export function sendDeploymentTransaction(
|
|
139
|
-
contractName: "contracts/interfaces/IERC20.sol:IERC20",
|
|
140
|
-
constructorArgs?: [],
|
|
141
|
-
config?: SendDeploymentTransactionConfig
|
|
142
|
-
): Promise<{
|
|
143
|
-
contract: GetContractReturnType<IERC20$Type["abi"]>;
|
|
144
|
-
deploymentTransaction: GetTransactionReturnType;
|
|
145
|
-
}>;
|
|
146
|
-
|
|
147
|
-
export function getContractAt(
|
|
148
|
-
contractName: "IERC20",
|
|
149
|
-
address: Address,
|
|
150
|
-
config?: GetContractAtConfig
|
|
151
|
-
): Promise<GetContractReturnType<IERC20$Type["abi"]>>;
|
|
152
|
-
export function getContractAt(
|
|
153
|
-
contractName: "contracts/interfaces/IERC20.sol:IERC20",
|
|
154
|
-
address: Address,
|
|
155
|
-
config?: GetContractAtConfig
|
|
156
|
-
): Promise<GetContractReturnType<IERC20$Type["abi"]>>;
|
|
157
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by hardhat-viem, do not edit it.
|
|
2
|
-
// prettier-ignore
|
|
3
|
-
// tslint:disable
|
|
4
|
-
// eslint-disable
|
|
5
|
-
|
|
6
|
-
import "hardhat/types/artifacts";
|
|
7
|
-
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
|
|
8
|
-
|
|
9
|
-
import { IERC20$Type } from "./IERC20";
|
|
10
|
-
|
|
11
|
-
declare module "hardhat/types/artifacts" {
|
|
12
|
-
interface ArtifactsMap {
|
|
13
|
-
["IERC20"]: IERC20$Type;
|
|
14
|
-
["contracts/interfaces/IERC20.sol:IERC20"]: IERC20$Type;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface ContractTypesMap {
|
|
18
|
-
["IERC20"]: GetContractReturnType<IERC20$Type["abi"]>;
|
|
19
|
-
["contracts/interfaces/IERC20.sol:IERC20"]: GetContractReturnType<IERC20$Type["abi"]>;
|
|
20
|
-
}
|
|
21
|
-
}
|