@superfluid-finance/sdk-core 0.5.6-dev.fc916ff.0 → 0.5.7-dev.97cf174.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/CHANGELOG.md +16 -1
- package/dist/index.umd.js +21942 -38180
- package/dist/main/BatchCall.d.ts.map +1 -1
- package/dist/main/BatchCall.js +8 -26
- package/dist/main/BatchCall.js.map +1 -1
- package/dist/main/Framework.d.ts +1 -2
- package/dist/main/Framework.d.ts.map +1 -1
- package/dist/main/Framework.js.map +1 -1
- package/dist/main/Operation.d.ts.map +1 -1
- package/dist/main/Operation.js +7 -36
- package/dist/main/Operation.js.map +1 -1
- package/dist/main/SFError.d.ts +1 -1
- package/dist/main/SFError.d.ts.map +1 -1
- package/dist/main/SFError.js +11 -18
- package/dist/main/SFError.js.map +1 -1
- package/dist/main/abi/IConstantFlowAgreementV1.json +70 -0
- package/dist/main/abi/IInstantDistributionAgreementV1.json +10 -0
- package/dist/main/abi/ISETH.json +25 -0
- package/dist/main/abi/SuperToken.json +91 -0
- package/dist/main/abi/Superfluid.json +150 -13
- package/dist/main/abi/SuperfluidGovernanceII.json +161 -17
- package/dist/main/constants.d.ts.map +1 -1
- package/dist/main/constants.js +5 -2
- package/dist/main/constants.js.map +1 -1
- package/dist/main/miniSerializeError.d.ts +14 -0
- package/dist/main/miniSerializeError.d.ts.map +1 -0
- package/dist/main/miniSerializeError.js +29 -0
- package/dist/main/miniSerializeError.js.map +1 -0
- package/dist/main/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/main/subgraph/SubgraphClient.js +1 -17
- package/dist/main/subgraph/SubgraphClient.js.map +1 -1
- package/dist/main/typechain/Superfluid.d.ts +1 -9
- package/dist/main/typechain/Superfluid.d.ts.map +1 -1
- package/dist/main/typechain/SuperfluidGovernanceII.d.ts +104 -21
- package/dist/main/typechain/SuperfluidGovernanceII.d.ts.map +1 -1
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +7 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js +70 -0
- package/dist/main/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +7 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js +10 -0
- package/dist/main/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
- package/dist/main/typechain/factories/ISETH__factory.d.ts +7 -0
- package/dist/main/typechain/factories/ISETH__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/ISETH__factory.js +25 -0
- package/dist/main/typechain/factories/ISETH__factory.js.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.d.ts +12 -1
- package/dist/main/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/SuperToken__factory.js +91 -0
- package/dist/main/typechain/factories/SuperToken__factory.js.map +1 -1
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts +11 -0
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js +161 -17
- package/dist/main/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -1
- package/dist/main/typechain/factories/Superfluid__factory.d.ts +12 -1
- package/dist/main/typechain/factories/Superfluid__factory.d.ts.map +1 -1
- package/dist/main/typechain/factories/Superfluid__factory.js +150 -13
- package/dist/main/typechain/factories/Superfluid__factory.js.map +1 -1
- package/dist/module/BatchCall.d.ts.map +1 -1
- package/dist/module/BatchCall.js +8 -26
- package/dist/module/BatchCall.js.map +1 -1
- package/dist/module/Framework.d.ts +1 -2
- package/dist/module/Framework.d.ts.map +1 -1
- package/dist/module/Framework.js.map +1 -1
- package/dist/module/Operation.d.ts.map +1 -1
- package/dist/module/Operation.js +7 -36
- package/dist/module/Operation.js.map +1 -1
- package/dist/module/SFError.d.ts +1 -1
- package/dist/module/SFError.d.ts.map +1 -1
- package/dist/module/SFError.js +11 -18
- package/dist/module/SFError.js.map +1 -1
- package/dist/module/abi/IConstantFlowAgreementV1.json +70 -0
- package/dist/module/abi/IInstantDistributionAgreementV1.json +10 -0
- package/dist/module/abi/ISETH.json +25 -0
- package/dist/module/abi/SuperToken.json +91 -0
- package/dist/module/abi/Superfluid.json +150 -13
- package/dist/module/abi/SuperfluidGovernanceII.json +161 -17
- package/dist/module/constants.d.ts.map +1 -1
- package/dist/module/constants.js +5 -2
- package/dist/module/constants.js.map +1 -1
- package/dist/module/miniSerializeError.d.ts +14 -0
- package/dist/module/miniSerializeError.d.ts.map +1 -0
- package/dist/module/miniSerializeError.js +25 -0
- package/dist/module/miniSerializeError.js.map +1 -0
- package/dist/module/subgraph/SubgraphClient.d.ts.map +1 -1
- package/dist/module/subgraph/SubgraphClient.js +1 -17
- package/dist/module/subgraph/SubgraphClient.js.map +1 -1
- package/dist/module/typechain/Superfluid.d.ts +1 -9
- package/dist/module/typechain/Superfluid.d.ts.map +1 -1
- package/dist/module/typechain/SuperfluidGovernanceII.d.ts +104 -21
- package/dist/module/typechain/SuperfluidGovernanceII.d.ts.map +1 -1
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts +7 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js +70 -0
- package/dist/module/typechain/factories/IConstantFlowAgreementV1__factory.js.map +1 -1
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts +7 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js +10 -0
- package/dist/module/typechain/factories/IInstantDistributionAgreementV1__factory.js.map +1 -1
- package/dist/module/typechain/factories/ISETH__factory.d.ts +7 -0
- package/dist/module/typechain/factories/ISETH__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/ISETH__factory.js +25 -0
- package/dist/module/typechain/factories/ISETH__factory.js.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.d.ts +12 -1
- package/dist/module/typechain/factories/SuperToken__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/SuperToken__factory.js +91 -0
- package/dist/module/typechain/factories/SuperToken__factory.js.map +1 -1
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts +11 -0
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js +161 -17
- package/dist/module/typechain/factories/SuperfluidGovernanceII__factory.js.map +1 -1
- package/dist/module/typechain/factories/Superfluid__factory.d.ts +12 -1
- package/dist/module/typechain/factories/Superfluid__factory.d.ts.map +1 -1
- package/dist/module/typechain/factories/Superfluid__factory.js +150 -13
- package/dist/module/typechain/factories/Superfluid__factory.js.map +1 -1
- package/package.json +9 -10
package/dist/module/SFError.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { miniSerializeError } from "./miniSerializeError";
|
|
2
2
|
const errorTypeToTitleMap = new Map([
|
|
3
3
|
["FRAMEWORK_INITIALIZATION", "Framework Initialization"],
|
|
4
4
|
["SUPERTOKEN_INITIALIZATION", "SuperToken Initialization"],
|
|
5
5
|
["CREATE_SIGNER", "Create Signer"],
|
|
6
6
|
["SUPERTOKEN_READ", "SuperToken Read"],
|
|
7
|
-
["SUBGRAPH_ERROR", "Subgraph"],
|
|
8
7
|
["CFAV1_READ", "ConstantFlowAgreementV1 Read"],
|
|
9
8
|
["IDAV1_READ", "InstantDistributionAgreementV1 Read"],
|
|
10
9
|
["INVALID_ADDRESS", "Invalid Address"],
|
|
11
10
|
["INVALID_OBJECT", "Invalid Object"],
|
|
12
|
-
["POPULATE_TRANSACTION", "Populate Transaction"],
|
|
13
|
-
["EXECUTE_TRANSACTION", "Execute Transaction"],
|
|
14
|
-
["SIGN_TRANSACTION", "Sign Transaction"],
|
|
15
11
|
["UNSUPPORTED_OPERATION", "Unsupported Batch Call Operation"],
|
|
16
12
|
["MISSING_TRANSACTION_PROPERTIES", "Missing Transaction Properties"],
|
|
17
13
|
["BATCH_CALL_ERROR", "Batch Call"],
|
|
@@ -19,27 +15,23 @@ const errorTypeToTitleMap = new Map([
|
|
|
19
15
|
["UNCLEAN_PERMISSIONS", "Unclean Permissions"],
|
|
20
16
|
["NEGATIVE_FLOW_ALLOWANCE", "Negative Flow Rate Allowance"],
|
|
21
17
|
]);
|
|
22
|
-
|
|
23
|
-
// which throws a weird JSON error
|
|
24
|
-
const stringifyCause = (cause) => {
|
|
18
|
+
const miniStringifyCause = (cause) => {
|
|
25
19
|
try {
|
|
26
|
-
|
|
20
|
+
const serializedError = miniSerializeError(cause);
|
|
21
|
+
const stringifiedError = JSON.stringify(serializedError, null, 2);
|
|
22
|
+
return stringifiedError.replace(/\\"/g, '"'); // Get rid of escaping of quotes.
|
|
27
23
|
}
|
|
28
|
-
catch
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
catch {
|
|
33
|
-
console.error("Caused by: ", cause);
|
|
34
|
-
return "[Couldn't serialize error. Error logged to console.]";
|
|
35
|
-
}
|
|
24
|
+
catch {
|
|
25
|
+
// `miniSerializeError` is safe enough that this should never occur.
|
|
26
|
+
console.error("SFError caused by: ", cause);
|
|
27
|
+
return "[Couldn't serialize internal error. Error logged to console instead.]";
|
|
36
28
|
}
|
|
37
29
|
};
|
|
38
30
|
export class SFError extends Error {
|
|
39
31
|
constructor({ type, message, cause }) {
|
|
40
32
|
const fullMessage = `${errorTypeToTitleMap.get(type)} Error: ${message}${cause
|
|
41
33
|
? `
|
|
42
|
-
Caused by: ${
|
|
34
|
+
Caused by: ${miniStringifyCause(cause)}`
|
|
43
35
|
: ""}`;
|
|
44
36
|
super(fullMessage, cause
|
|
45
37
|
? {
|
|
@@ -51,6 +43,7 @@ Caused by: ${stringifyCause(cause)}`
|
|
|
51
43
|
this.cause = cause;
|
|
52
44
|
}
|
|
53
45
|
this.type = type;
|
|
46
|
+
this.name = "SFError";
|
|
54
47
|
Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#support-for-newtarget
|
|
55
48
|
}
|
|
56
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SFError.js","sourceRoot":"","sources":["../../src/SFError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SFError.js","sourceRoot":"","sources":["../../src/SFError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAkB1D,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAoB;IACnD,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;IACxD,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;IAC1D,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACtC,CAAC,YAAY,EAAE,8BAA8B,CAAC;IAC9C,CAAC,YAAY,EAAE,qCAAqC,CAAC;IACrD,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACtC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACpC,CAAC,uBAAuB,EAAE,kCAAkC,CAAC;IAC7D,CAAC,gCAAgC,EAAE,gCAAgC,CAAC;IACpE,CAAC,kBAAkB,EAAE,YAAY,CAAC;IAClC,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACxC,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAC9C,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;CAC9D,CAAC,CAAC;AAQH,MAAM,kBAAkB,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,IAAI;QACA,MAAM,eAAe,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAClD,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;QAClE,OAAO,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,iCAAiC;KAClF;IAAC,MAAM;QACJ,oEAAoE;QACpE,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;QAC5C,OAAO,uEAAuE,CAAC;KAClF;AACL,CAAC,CAAC;AAEF,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAI9B,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAc;QAC5C,MAAM,WAAW,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAC1C,IAAI,CACP,WAAW,OAAO,GACf,KAAK;YACD,CAAC,CAAC;aACL,kBAAkB,CAAC,KAAK,CAAC,EAAE;YACxB,CAAC,CAAC,EACV,EAAE,CAAC;QACH,KAAK,CACD,WAAW,EACX,KAAK;YACD,CAAC,CAAC;gBACI,KAAK,EAAE,KAAc,EAAE,8NAA8N;aACxP;YACH,CAAC,CAAC,EAAE,CACX,CAAC;QACF,+EAA+E;QAC/E,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACtB,IAAI,CAAC,KAAK,GAAG,KAAc,CAAC;SAC/B;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,gIAAgI;IACvL,CAAC;CACJ"}
|
|
@@ -1,4 +1,74 @@
|
|
|
1
1
|
{ "abi": [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"name": "CFA_ACL_FLOW_RATE_ALLOWANCE_EXCEEDED",
|
|
5
|
+
"type": "error"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"inputs": [],
|
|
9
|
+
"name": "CFA_ACL_NO_NEGATIVE_ALLOWANCE",
|
|
10
|
+
"type": "error"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"inputs": [],
|
|
14
|
+
"name": "CFA_ACL_NO_SENDER_CREATE",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"name": "CFA_ACL_NO_SENDER_FLOW_OPERATOR",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "CFA_ACL_NO_SENDER_UPDATE",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [],
|
|
29
|
+
"name": "CFA_ACL_OPERATOR_NO_CREATE_PERMISSIONS",
|
|
30
|
+
"type": "error"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"inputs": [],
|
|
34
|
+
"name": "CFA_ACL_OPERATOR_NO_DELETE_PERMISSIONS",
|
|
35
|
+
"type": "error"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputs": [],
|
|
39
|
+
"name": "CFA_ACL_OPERATOR_NO_UPDATE_PERMISSIONS",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [],
|
|
44
|
+
"name": "CFA_ACL_UNCLEAN_PERMISSIONS",
|
|
45
|
+
"type": "error"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"name": "CFA_DEPOSIT_TOO_BIG",
|
|
50
|
+
"type": "error"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"inputs": [],
|
|
54
|
+
"name": "CFA_FLOW_RATE_TOO_BIG",
|
|
55
|
+
"type": "error"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputs": [],
|
|
59
|
+
"name": "CFA_INVALID_FLOW_RATE",
|
|
60
|
+
"type": "error"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputs": [],
|
|
64
|
+
"name": "CFA_NON_CRITICAL_SENDER",
|
|
65
|
+
"type": "error"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [],
|
|
69
|
+
"name": "CFA_NO_SELF_FLOW",
|
|
70
|
+
"type": "error"
|
|
71
|
+
},
|
|
2
72
|
{
|
|
3
73
|
"anonymous": false,
|
|
4
74
|
"inputs": [
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
{ "abi": [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [],
|
|
4
|
+
"name": "SUPER_TOKEN_CALLER_IS_NOT_OPERATOR_FOR_HOLDER",
|
|
5
|
+
"type": "error"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"inputs": [],
|
|
9
|
+
"name": "SUPER_TOKEN_INFLATIONARY_DEFLATIONARY_NOT_SUPPORTED",
|
|
10
|
+
"type": "error"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"inputs": [],
|
|
14
|
+
"name": "SUPER_TOKEN_NOT_ERC777_TOKENS_RECIPIENT",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"name": "SUPER_TOKEN_NO_UNDERLYING_TOKEN",
|
|
20
|
+
"type": "error"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"name": "SUPER_TOKEN_ONLY_SELF",
|
|
25
|
+
"type": "error"
|
|
26
|
+
},
|
|
2
27
|
{
|
|
3
28
|
"anonymous": false,
|
|
4
29
|
"inputs": [
|
|
@@ -10,6 +10,97 @@
|
|
|
10
10
|
"stateMutability": "nonpayable",
|
|
11
11
|
"type": "constructor"
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"internalType": "uint256",
|
|
17
|
+
"name": "_code",
|
|
18
|
+
"type": "uint256"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"name": "ALREADY_EXISTS",
|
|
22
|
+
"type": "error"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"inputs": [
|
|
26
|
+
{
|
|
27
|
+
"internalType": "uint256",
|
|
28
|
+
"name": "_code",
|
|
29
|
+
"type": "uint256"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"name": "DOES_NOT_EXIST",
|
|
33
|
+
"type": "error"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"inputs": [
|
|
37
|
+
{
|
|
38
|
+
"internalType": "uint256",
|
|
39
|
+
"name": "_code",
|
|
40
|
+
"type": "uint256"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"name": "INSUFFICIENT_BALANCE",
|
|
44
|
+
"type": "error"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"inputs": [
|
|
48
|
+
{
|
|
49
|
+
"internalType": "uint256",
|
|
50
|
+
"name": "_code",
|
|
51
|
+
"type": "uint256"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"name": "ONLY_HOST",
|
|
55
|
+
"type": "error"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputs": [
|
|
59
|
+
{
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "_code",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"name": "ONLY_LISTED_AGREEMENT",
|
|
66
|
+
"type": "error"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"inputs": [],
|
|
70
|
+
"name": "SUPER_TOKEN_CALLER_IS_NOT_OPERATOR_FOR_HOLDER",
|
|
71
|
+
"type": "error"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"inputs": [],
|
|
75
|
+
"name": "SUPER_TOKEN_INFLATIONARY_DEFLATIONARY_NOT_SUPPORTED",
|
|
76
|
+
"type": "error"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"inputs": [],
|
|
80
|
+
"name": "SUPER_TOKEN_NOT_ERC777_TOKENS_RECIPIENT",
|
|
81
|
+
"type": "error"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"inputs": [],
|
|
85
|
+
"name": "SUPER_TOKEN_NO_UNDERLYING_TOKEN",
|
|
86
|
+
"type": "error"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"inputs": [],
|
|
90
|
+
"name": "SUPER_TOKEN_ONLY_SELF",
|
|
91
|
+
"type": "error"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "uint256",
|
|
97
|
+
"name": "_code",
|
|
98
|
+
"type": "uint256"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"name": "ZERO_ADDRESS",
|
|
102
|
+
"type": "error"
|
|
103
|
+
},
|
|
13
104
|
{
|
|
14
105
|
"anonymous": false,
|
|
15
106
|
"inputs": [
|
|
@@ -15,6 +15,156 @@
|
|
|
15
15
|
"stateMutability": "nonpayable",
|
|
16
16
|
"type": "constructor"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "uint256",
|
|
22
|
+
"name": "_code",
|
|
23
|
+
"type": "uint256"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"name": "ALREADY_EXISTS",
|
|
27
|
+
"type": "error"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"inputs": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint256",
|
|
33
|
+
"name": "_code",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"name": "APP_RULE",
|
|
38
|
+
"type": "error"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "uint256",
|
|
44
|
+
"name": "_code",
|
|
45
|
+
"type": "uint256"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"name": "DOES_NOT_EXIST",
|
|
49
|
+
"type": "error"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"inputs": [],
|
|
53
|
+
"name": "HOST_AGREEMENT_CALLBACK_IS_NOT_ACTION",
|
|
54
|
+
"type": "error"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [],
|
|
58
|
+
"name": "HOST_CALL_AGREEMENT_WITH_CTX_FROM_WRONG_ADDRESS",
|
|
59
|
+
"type": "error"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"inputs": [],
|
|
63
|
+
"name": "HOST_CALL_APP_ACTION_WITH_CTX_FROM_WRONG_ADDRESS",
|
|
64
|
+
"type": "error"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputs": [],
|
|
68
|
+
"name": "HOST_CANNOT_DOWNGRADE_TO_NON_UPGRADEABLE",
|
|
69
|
+
"type": "error"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"inputs": [],
|
|
73
|
+
"name": "HOST_INVALID_CONFIG_WORD",
|
|
74
|
+
"type": "error"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "HOST_INVALID_OR_EXPIRED_SUPER_APP_REGISTRATION_KEY",
|
|
79
|
+
"type": "error"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"inputs": [],
|
|
83
|
+
"name": "HOST_MAX_256_AGREEMENTS",
|
|
84
|
+
"type": "error"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"inputs": [],
|
|
88
|
+
"name": "HOST_NON_UPGRADEABLE",
|
|
89
|
+
"type": "error"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputs": [],
|
|
93
|
+
"name": "HOST_NON_ZERO_LENGTH_PLACEHOLDER_CTX",
|
|
94
|
+
"type": "error"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [],
|
|
98
|
+
"name": "HOST_NOT_A_SUPER_APP",
|
|
99
|
+
"type": "error"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [],
|
|
103
|
+
"name": "HOST_NO_APP_REGISTRATION_PERMISSIONS",
|
|
104
|
+
"type": "error"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "HOST_ONLY_GOVERNANCE",
|
|
109
|
+
"type": "error"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "HOST_RECEIVER_IS_NOT_SUPER_APP",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"inputs": [],
|
|
118
|
+
"name": "HOST_SENDER_IS_NOT_SUPER_APP",
|
|
119
|
+
"type": "error"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"inputs": [],
|
|
123
|
+
"name": "HOST_SOURCE_APP_NEEDS_HIGHER_APP_LEVEL",
|
|
124
|
+
"type": "error"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"inputs": [],
|
|
128
|
+
"name": "HOST_SUPER_APP_ALREADY_REGISTERED",
|
|
129
|
+
"type": "error"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"inputs": [],
|
|
133
|
+
"name": "HOST_SUPER_APP_IS_JAILED",
|
|
134
|
+
"type": "error"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"name": "HOST_UNAUTHORIZED_SUPER_APP_FACTORY",
|
|
139
|
+
"type": "error"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"inputs": [],
|
|
143
|
+
"name": "HOST_UNKNOWN_BATCH_CALL_OPERATION_TYPE",
|
|
144
|
+
"type": "error"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"inputs": [
|
|
148
|
+
{
|
|
149
|
+
"internalType": "uint256",
|
|
150
|
+
"name": "_code",
|
|
151
|
+
"type": "uint256"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"name": "MUST_BE_CONTRACT",
|
|
155
|
+
"type": "error"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [
|
|
159
|
+
{
|
|
160
|
+
"internalType": "uint256",
|
|
161
|
+
"name": "_code",
|
|
162
|
+
"type": "uint256"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"name": "ONLY_LISTED_AGREEMENT",
|
|
166
|
+
"type": "error"
|
|
167
|
+
},
|
|
18
168
|
{
|
|
19
169
|
"anonymous": false,
|
|
20
170
|
"inputs": [
|
|
@@ -194,19 +344,6 @@
|
|
|
194
344
|
"stateMutability": "view",
|
|
195
345
|
"type": "function"
|
|
196
346
|
},
|
|
197
|
-
{
|
|
198
|
-
"inputs": [],
|
|
199
|
-
"name": "MAX_APP_CALLBACK_LEVEL",
|
|
200
|
-
"outputs": [
|
|
201
|
-
{
|
|
202
|
-
"internalType": "uint256",
|
|
203
|
-
"name": "",
|
|
204
|
-
"type": "uint256"
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"stateMutability": "view",
|
|
208
|
-
"type": "function"
|
|
209
|
-
},
|
|
210
347
|
{
|
|
211
348
|
"inputs": [],
|
|
212
349
|
"name": "NON_UPGRADABLE_DEPLOYMENT",
|