@invisi-labs/protocol 1.1.5 → 1.1.7
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/dist/{chunk-47SC3EAI.js → chunk-BYJ4LXCJ.js} +389 -9
- package/dist/chunk-BYJ4LXCJ.js.map +1 -0
- package/dist/contracts.cjs +389 -8
- package/dist/contracts.cjs.map +1 -1
- package/dist/contracts.d.cts +134 -3
- package/dist/contracts.d.ts +134 -3
- package/dist/contracts.js +3 -1
- package/dist/index.cjs +6582 -6147
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +412 -400
- package/dist/index.d.ts +412 -400
- package/dist/index.js +2601 -2372
- package/dist/index.js.map +1 -1
- package/dist/{types-BCTQjKzw.d.cts → types-Bvakbfeb.d.cts} +180 -8
- package/dist/{types-BCTQjKzw.d.ts → types-Bvakbfeb.d.ts} +180 -8
- package/package.json +4 -4
- package/dist/chunk-47SC3EAI.js.map +0 -1
package/dist/contracts.d.cts
CHANGED
|
@@ -1,12 +1,143 @@
|
|
|
1
|
-
export { A as AddressRegistration, a as CancelCreditParams, C as CreateCreditParams, b as CreditDrawParams, f as CreditVerifierRouterAbi,
|
|
1
|
+
export { A as AddressRegistration, a as CancelCreditParams, C as CreateCreditParams, b as CreditDrawParams, f as CreditVerifierRouterAbi, d as CrossTreeTransactParams, D as Delivery, F as FundingParams, I as InputSource, g as InvisiAddressRegistryAbi, h as InvisiFactoryAbi, i as InvisiProtocolAbi, R as ReceivingKeys, e as ShieldOutput, S as ShieldParams, j as TokenPermit, T as TopUpCreditParams, c as TransactRequest, V as VerifierRouterAbi, k as creditVerifierRouterAbi, l as invisiAddressRegistryAbi, m as invisiFactoryAbi, n as invisiProtocolAbi, v as verifierRouterAbi } from './types-Bvakbfeb.cjs';
|
|
2
2
|
export { Address, Hex } from '@invisi-labs/core';
|
|
3
3
|
|
|
4
|
+
declare const broadcasterRegistryAbi: readonly [{
|
|
5
|
+
readonly type: "function";
|
|
6
|
+
readonly name: "broadcasterOf";
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly name: "operator";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly name: "service";
|
|
14
|
+
readonly type: "tuple";
|
|
15
|
+
readonly internalType: "struct IBroadcasterRegistry.Broadcaster";
|
|
16
|
+
readonly components: readonly [{
|
|
17
|
+
readonly name: "endpoint";
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly internalType: "string";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "metadataURI";
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly internalType: "string";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "quoteSigner";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "feeRecipient";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "enabled";
|
|
34
|
+
readonly type: "bool";
|
|
35
|
+
readonly internalType: "bool";
|
|
36
|
+
}];
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
readonly name: "setBroadcaster";
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "endpoint";
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly internalType: "string";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "metadataURI";
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly internalType: "string";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "quoteSigner";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "feeRecipient";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly outputs: readonly [];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "setEnabled";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "enabled";
|
|
66
|
+
readonly type: "bool";
|
|
67
|
+
readonly internalType: "bool";
|
|
68
|
+
}];
|
|
69
|
+
readonly outputs: readonly [];
|
|
70
|
+
readonly stateMutability: "nonpayable";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "event";
|
|
73
|
+
readonly name: "AvailabilitySet";
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly name: "operator";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
readonly indexed: true;
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "enabled";
|
|
81
|
+
readonly type: "bool";
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "bool";
|
|
84
|
+
}];
|
|
85
|
+
readonly anonymous: false;
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "event";
|
|
88
|
+
readonly name: "BroadcasterSet";
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly name: "operator";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "endpoint";
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "string";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "metadataURI";
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "string";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "quoteSigner";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "feeRecipient";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly indexed: false;
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
}];
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "error";
|
|
118
|
+
readonly name: "InvalidBroadcaster";
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
readonly name: "InvalidEndpoint";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
}, {
|
|
125
|
+
readonly type: "error";
|
|
126
|
+
readonly name: "InvalidMetadata";
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "error";
|
|
130
|
+
readonly name: "NotRegistered";
|
|
131
|
+
readonly inputs: readonly [];
|
|
132
|
+
}];
|
|
133
|
+
|
|
4
134
|
declare const protocolAbiSha256: {
|
|
5
|
-
readonly InvisiProtocol: "
|
|
135
|
+
readonly InvisiProtocol: "39bb80ff6e8dc7bb8a61ca0a22d3709d0bae0a5d9ff316716d487f2b95e13346";
|
|
6
136
|
readonly InvisiFactory: "380b95c3ba0196c395e7b01d31819b8b674f59b1d15342aecbdf0425bf385765";
|
|
7
137
|
readonly VerifierRouter: "6aacc1fc3b057137fe0125fe79248ace6d998f45bea51e76fedd31177c3acb90";
|
|
8
138
|
readonly CreditVerifierRouter: "a1ef114bb1268e2590f390a9c426f8b35bb64ebb22e4f1fa571ddf476cf6cf9f";
|
|
9
139
|
readonly InvisiAddressRegistry: "7c16ba741b5384c3f232653facc3a73fdf57c507f9dd3a61ab1483699dd77151";
|
|
140
|
+
readonly BroadcasterRegistry: "3e024d8065d0c51a1ae67c383fef040ada5cccf4f10db3af5d7d1a92c981fa30";
|
|
10
141
|
};
|
|
11
142
|
|
|
12
|
-
export { protocolAbiSha256 };
|
|
143
|
+
export { broadcasterRegistryAbi, protocolAbiSha256 };
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1,12 +1,143 @@
|
|
|
1
|
-
export { A as AddressRegistration, a as CancelCreditParams, C as CreateCreditParams, b as CreditDrawParams, f as CreditVerifierRouterAbi,
|
|
1
|
+
export { A as AddressRegistration, a as CancelCreditParams, C as CreateCreditParams, b as CreditDrawParams, f as CreditVerifierRouterAbi, d as CrossTreeTransactParams, D as Delivery, F as FundingParams, I as InputSource, g as InvisiAddressRegistryAbi, h as InvisiFactoryAbi, i as InvisiProtocolAbi, R as ReceivingKeys, e as ShieldOutput, S as ShieldParams, j as TokenPermit, T as TopUpCreditParams, c as TransactRequest, V as VerifierRouterAbi, k as creditVerifierRouterAbi, l as invisiAddressRegistryAbi, m as invisiFactoryAbi, n as invisiProtocolAbi, v as verifierRouterAbi } from './types-Bvakbfeb.js';
|
|
2
2
|
export { Address, Hex } from '@invisi-labs/core';
|
|
3
3
|
|
|
4
|
+
declare const broadcasterRegistryAbi: readonly [{
|
|
5
|
+
readonly type: "function";
|
|
6
|
+
readonly name: "broadcasterOf";
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly name: "operator";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}];
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly name: "service";
|
|
14
|
+
readonly type: "tuple";
|
|
15
|
+
readonly internalType: "struct IBroadcasterRegistry.Broadcaster";
|
|
16
|
+
readonly components: readonly [{
|
|
17
|
+
readonly name: "endpoint";
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
readonly internalType: "string";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "metadataURI";
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly internalType: "string";
|
|
24
|
+
}, {
|
|
25
|
+
readonly name: "quoteSigner";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "feeRecipient";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
readonly internalType: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "enabled";
|
|
34
|
+
readonly type: "bool";
|
|
35
|
+
readonly internalType: "bool";
|
|
36
|
+
}];
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "function";
|
|
41
|
+
readonly name: "setBroadcaster";
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "endpoint";
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly internalType: "string";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "metadataURI";
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly internalType: "string";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "quoteSigner";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "feeRecipient";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly outputs: readonly [];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "setEnabled";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "enabled";
|
|
66
|
+
readonly type: "bool";
|
|
67
|
+
readonly internalType: "bool";
|
|
68
|
+
}];
|
|
69
|
+
readonly outputs: readonly [];
|
|
70
|
+
readonly stateMutability: "nonpayable";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "event";
|
|
73
|
+
readonly name: "AvailabilitySet";
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly name: "operator";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
readonly indexed: true;
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "enabled";
|
|
81
|
+
readonly type: "bool";
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "bool";
|
|
84
|
+
}];
|
|
85
|
+
readonly anonymous: false;
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "event";
|
|
88
|
+
readonly name: "BroadcasterSet";
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly name: "operator";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "endpoint";
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "string";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "metadataURI";
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "string";
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "quoteSigner";
|
|
106
|
+
readonly type: "address";
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "feeRecipient";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly indexed: false;
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
}];
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
}, {
|
|
117
|
+
readonly type: "error";
|
|
118
|
+
readonly name: "InvalidBroadcaster";
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
}, {
|
|
121
|
+
readonly type: "error";
|
|
122
|
+
readonly name: "InvalidEndpoint";
|
|
123
|
+
readonly inputs: readonly [];
|
|
124
|
+
}, {
|
|
125
|
+
readonly type: "error";
|
|
126
|
+
readonly name: "InvalidMetadata";
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "error";
|
|
130
|
+
readonly name: "NotRegistered";
|
|
131
|
+
readonly inputs: readonly [];
|
|
132
|
+
}];
|
|
133
|
+
|
|
4
134
|
declare const protocolAbiSha256: {
|
|
5
|
-
readonly InvisiProtocol: "
|
|
135
|
+
readonly InvisiProtocol: "39bb80ff6e8dc7bb8a61ca0a22d3709d0bae0a5d9ff316716d487f2b95e13346";
|
|
6
136
|
readonly InvisiFactory: "380b95c3ba0196c395e7b01d31819b8b674f59b1d15342aecbdf0425bf385765";
|
|
7
137
|
readonly VerifierRouter: "6aacc1fc3b057137fe0125fe79248ace6d998f45bea51e76fedd31177c3acb90";
|
|
8
138
|
readonly CreditVerifierRouter: "a1ef114bb1268e2590f390a9c426f8b35bb64ebb22e4f1fa571ddf476cf6cf9f";
|
|
9
139
|
readonly InvisiAddressRegistry: "7c16ba741b5384c3f232653facc3a73fdf57c507f9dd3a61ab1483699dd77151";
|
|
140
|
+
readonly BroadcasterRegistry: "3e024d8065d0c51a1ae67c383fef040ada5cccf4f10db3af5d7d1a92c981fa30";
|
|
10
141
|
};
|
|
11
142
|
|
|
12
|
-
export { protocolAbiSha256 };
|
|
143
|
+
export { broadcasterRegistryAbi, protocolAbiSha256 };
|
package/dist/contracts.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
broadcasterRegistryAbi,
|
|
2
3
|
creditVerifierRouterAbi,
|
|
3
4
|
invisiAddressRegistryAbi,
|
|
4
5
|
invisiFactoryAbi,
|
|
5
6
|
invisiProtocolAbi,
|
|
6
7
|
protocolAbiSha256,
|
|
7
8
|
verifierRouterAbi
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BYJ4LXCJ.js";
|
|
9
10
|
export {
|
|
11
|
+
broadcasterRegistryAbi,
|
|
10
12
|
creditVerifierRouterAbi,
|
|
11
13
|
invisiAddressRegistryAbi,
|
|
12
14
|
invisiFactoryAbi,
|