-
Notifications
You must be signed in to change notification settings - Fork 10
/
PayResolverFactory.ts
112 lines (108 loc) · 1.97 KB
/
PayResolverFactory.ts
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
import { PayResolver } from "./PayResolver";
export class PayResolverFactory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): PayResolver {
return new Contract(address, _abi, signerOrProvider) as PayResolver;
}
}
const _abi = [
{
constant: true,
inputs: [],
name: "payRegistry",
outputs: [
{
name: "",
type: "address"
}
],
payable: false,
stateMutability: "view",
type: "function"
},
{
constant: true,
inputs: [],
name: "virtResolver",
outputs: [
{
name: "",
type: "address"
}
],
payable: false,
stateMutability: "view",
type: "function"
},
{
inputs: [
{
name: "_registryAddr",
type: "address"
},
{
name: "_virtResolverAddr",
type: "address"
}
],
payable: false,
stateMutability: "nonpayable",
type: "constructor"
},
{
anonymous: false,
inputs: [
{
indexed: true,
name: "payId",
type: "bytes32"
},
{
indexed: false,
name: "amount",
type: "uint256"
},
{
indexed: false,
name: "resolveDeadline",
type: "uint256"
}
],
name: "ResolvePayment",
type: "event"
},
{
constant: false,
inputs: [
{
name: "_resolvePayRequest",
type: "bytes"
}
],
name: "resolvePaymentByConditions",
outputs: [],
payable: false,
stateMutability: "nonpayable",
type: "function"
},
{
constant: false,
inputs: [
{
name: "_vouchedPayResult",
type: "bytes"
}
],
name: "resolvePaymentByVouchedResult",
outputs: [],
payable: false,
stateMutability: "nonpayable",
type: "function"
}
];