@reflexer-finance/geb-admin-api
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -30,3 +30,3 @@ [ | ||
{ | ||
"indexed": false, | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -132,3 +132,3 @@ "name": "usr", | ||
{ | ||
"indexed": false, | ||
"indexed": true, | ||
"internalType": "address", | ||
@@ -135,0 +135,0 @@ "name": "usr", |
@@ -133,45 +133,2 @@ [ | ||
{ | ||
"anonymous": true, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes4", | ||
"name": "sig", | ||
"type": "bytes4" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "guy", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "foo", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "bar", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "wad", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "fax", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "LogNote", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
@@ -385,2 +342,19 @@ "inputs": [ | ||
}, | ||
{ "internalType": "bytes", "name": "parameters", "type": "bytes" } | ||
], | ||
"name": "getTransactionDataHash", | ||
"outputs": [ | ||
{ "internalType": "bytes32", "name": "", "type": "bytes32" } | ||
], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" }, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "codeHash", | ||
"type": "bytes32" | ||
}, | ||
{ "internalType": "bytes", "name": "parameters", "type": "bytes" }, | ||
@@ -487,2 +461,11 @@ { | ||
"inputs": [ | ||
{ "internalType": "bytes32", "name": "", "type": "bytes32" } | ||
], | ||
"name": "scheduledTransactionsDataHashes", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
@@ -489,0 +472,0 @@ "internalType": "contract DSAuthority", |
@@ -151,45 +151,2 @@ [ | ||
{ | ||
"anonymous": true, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes4", | ||
"name": "sig", | ||
"type": "bytes4" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "guy", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "foo", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "bytes32", | ||
"name": "bar", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "wad", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "fax", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "LogNote", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
@@ -196,0 +153,0 @@ "inputs": [ |
[ | ||
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, | ||
{ | ||
"inputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"anonymous": false, | ||
@@ -182,9 +177,7 @@ "inputs": [ | ||
}, | ||
{ "payable": true, "stateMutability": "payable", "type": "fallback" }, | ||
{ "stateMutability": "payable", "type": "fallback" }, | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "NAME", | ||
"outputs": [{ "internalType": "string", "name": "", "type": "string" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -194,7 +187,5 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "VERSION", | ||
"outputs": [{ "internalType": "string", "name": "", "type": "string" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -204,3 +195,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -216,3 +206,2 @@ { "internalType": "address", "name": "owner", "type": "address" }, | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -222,3 +211,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -233,3 +221,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -239,3 +226,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -249,3 +235,2 @@ { "internalType": "address", "name": "", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -255,3 +240,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -266,3 +250,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -272,3 +255,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -283,3 +265,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -289,3 +270,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -305,3 +285,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -311,3 +290,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -318,3 +296,2 @@ "name": "domainSeparator", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -324,3 +301,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -335,3 +311,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -341,3 +316,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -377,3 +351,2 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -383,3 +356,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -421,8 +393,6 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -442,3 +412,2 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -448,3 +417,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -465,3 +433,2 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -471,3 +438,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -480,3 +446,2 @@ { "internalType": "bytes", "name": "message", "type": "bytes" } | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -486,3 +451,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -493,3 +457,2 @@ "name": "getModules", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -499,3 +462,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -514,3 +476,2 @@ { "internalType": "address", "name": "start", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -520,3 +481,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -527,3 +487,2 @@ "name": "getOwners", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -533,3 +492,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -540,3 +498,2 @@ "name": "getThreshold", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -546,3 +503,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -584,3 +540,2 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -590,4 +545,16 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"internalType": "contract Module", | ||
"name": "module", | ||
"type": "address" | ||
} | ||
], | ||
"name": "isModuleEnabled", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "owner", "type": "address" } | ||
@@ -597,3 +564,2 @@ ], | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -603,3 +569,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -611,3 +576,2 @@ { "internalType": "bytes", "name": "_data", "type": "bytes" }, | ||
"outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -617,3 +581,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
@@ -624,3 +587,2 @@ "name": "nonce", | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -630,3 +592,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -647,3 +608,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -653,3 +613,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -669,3 +628,2 @@ { "internalType": "address", "name": "to", "type": "address" }, | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -675,3 +633,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -682,3 +639,2 @@ { "internalType": "address", "name": "handler", "type": "address" } | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -688,3 +644,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -722,3 +677,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -728,3 +682,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -735,3 +688,2 @@ { "internalType": "bytes", "name": "_data", "type": "bytes" } | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -741,3 +693,2 @@ "type": "function" | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
@@ -750,3 +701,2 @@ { "internalType": "bytes32", "name": "", "type": "bytes32" } | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -756,3 +706,2 @@ "type": "function" | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
@@ -773,3 +722,2 @@ { | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
@@ -776,0 +724,0 @@ "type": "function" |
@@ -10,7 +10,6 @@ [ | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ "payable": true, "stateMutability": "payable", "type": "fallback" } | ||
{ "stateMutability": "payable", "type": "fallback" } | ||
] |
@@ -78,2 +78,15 @@ [ | ||
"type": "address" | ||
} | ||
], | ||
"name": "disableContract", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "targetContract", | ||
"type": "address" | ||
}, | ||
@@ -281,2 +294,32 @@ { | ||
"internalType": "bytes32", | ||
"name": "parameter1", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "parameter2", | ||
"type": "bytes32" | ||
}, | ||
{ "internalType": "int256", "name": "data1", "type": "int256" }, | ||
{ "internalType": "int256", "name": "data2", "type": "int256" } | ||
], | ||
"name": "modifyTwoParameters", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "targetContract1", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "targetContract2", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bytes32", | ||
"name": "collateralType1", | ||
@@ -482,2 +525,12 @@ "type": "bytes32" | ||
"inputs": [ | ||
{ "internalType": "address", "name": "coin", "type": "address" }, | ||
{ "internalType": "string", "name": "name", "type": "string" } | ||
], | ||
"name": "setName", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
@@ -512,2 +565,12 @@ "internalType": "address", | ||
"inputs": [ | ||
{ "internalType": "address", "name": "coin", "type": "address" }, | ||
{ "internalType": "string", "name": "symbol", "type": "string" } | ||
], | ||
"name": "setSymbol", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
@@ -514,0 +577,0 @@ "internalType": "address", |
@@ -56,2 +56,9 @@ [ | ||
{ | ||
"inputs": [], | ||
"name": "disableContract", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
@@ -195,2 +202,11 @@ { "internalType": "bytes32", "name": "", "type": "bytes32" } | ||
"inputs": [ | ||
{ "internalType": "string", "name": "name", "type": "string" } | ||
], | ||
"name": "setName", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "", "type": "address" }, | ||
@@ -206,2 +222,11 @@ { "internalType": "uint256", "name": "", "type": "uint256" } | ||
"inputs": [ | ||
{ "internalType": "string", "name": "symbol", "type": "string" } | ||
], | ||
"name": "setSymbol", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "", "type": "address" }, | ||
@@ -208,0 +233,0 @@ { "internalType": "uint256", "name": "", "type": "uint256" } |
@@ -5,4 +5,4 @@ [ | ||
{ | ||
"internalType": "contract ERC20", | ||
"name": "token_", | ||
"internalType": "contract ProtocolTokenAuthority", | ||
"name": "authority_", | ||
"type": "address" | ||
@@ -15,4 +15,6 @@ } | ||
{ | ||
"inputs": [], | ||
"name": "balance", | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" } | ||
], | ||
"name": "addAuthorization", | ||
"outputs": [], | ||
@@ -23,4 +25,6 @@ "stateMutability": "nonpayable", | ||
{ | ||
"inputs": [], | ||
"name": "fail", | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "wad", "type": "uint256" } | ||
], | ||
"name": "burn", | ||
"outputs": [], | ||
@@ -32,5 +36,6 @@ "stateMutability": "nonpayable", | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "value_", "type": "uint256" } | ||
{ "internalType": "address", "name": "usr", "type": "address" }, | ||
{ "internalType": "uint256", "name": "wad", "type": "uint256" } | ||
], | ||
"name": "ok", | ||
"name": "burn", | ||
"outputs": [], | ||
@@ -41,8 +46,9 @@ "stateMutability": "nonpayable", | ||
{ | ||
"inputs": [], | ||
"name": "token", | ||
"outputs": [ | ||
{ "internalType": "contract ERC20", "name": "", "type": "address" } | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" }, | ||
{ "internalType": "uint256", "name": "wad", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"name": "mint", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
@@ -52,9 +58,34 @@ }, | ||
"inputs": [], | ||
"name": "value", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "", "type": "uint256" } | ||
"name": "notMintOrBurn", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" } | ||
], | ||
"stateMutability": "view", | ||
"name": "removeAuthorization", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" } | ||
], | ||
"name": "setOwner", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "usr", "type": "address" } | ||
], | ||
"name": "setRoot", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
@@ -1,2 +0,2 @@ | ||
import { GebDeploy, ProtocolTokenAuthority, GebPollingEmitter, DsDelegateRoles, DsPauseProxy, GovActions, Esm, FsmGovernanceInterface, DsProxyFactory, GebDeployPauseProxyActions, TxManager, GnosisSafeProxy, DsProtestPause } from '.'; | ||
import { GebDeploy, ProtocolTokenAuthority, DsDelegateRoles, DsPauseProxy, GovActions, Esm, FsmGovernanceInterface, DsProxyFactory, GebDeployPauseProxyActions, GnosisSafeProxy, DsProtestPause } from '.'; | ||
import { GebProviderInterface, GebDeployment } from '@reflexer-finance/geb-contract-base'; | ||
@@ -10,3 +10,2 @@ import { DsProxy } from '@reflexer-finance/geb-contract-api'; | ||
protocolTokenAuthority: ProtocolTokenAuthority; | ||
pollingEmitter: GebPollingEmitter; | ||
pauseAuthority: DsDelegateRoles; | ||
@@ -21,4 +20,3 @@ pause: DsProtestPause; | ||
proxyDeployer: DsProxy; | ||
txManager: TxManager; | ||
constructor(network: GebDeployment, chainProvider: GebProviderInterface); | ||
} |
@@ -18,3 +18,2 @@ "use strict"; | ||
this.deploy = new _1.GebDeploy(addressList.GEB_DEPLOY, this.chainProvider); | ||
this.pollingEmitter = new _1.GebPollingEmitter(addressList.GEB_POLLING_EMITTER, this.chainProvider); | ||
this.pauseAuthority = new _1.DsDelegateRoles(addressList.GEB_PAUSE_AUTHORITY, this.chainProvider); | ||
@@ -28,3 +27,2 @@ this.pause = new _1.DsProtestPause(addressList.GEB_PAUSE, this.chainProvider); | ||
this.proxyDeployer = new geb_contract_api_1.DsProxy(addressList.PROXY_DEPLOYER, this.chainProvider); | ||
this.txManager = new _1.TxManager(addressList.GEB_TX_MANAGER, this.chainProvider); | ||
} | ||
@@ -31,0 +29,0 @@ return AdminApis; |
@@ -23,4 +23,6 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
executeTransaction(usr: string, codeHash: BytesLike, parameters: BytesLike, earliestExecutionTime: BigNumberish): TransactionRequest; | ||
getTransactionDataHash(usr: string, codeHash: BytesLike, parameters: BytesLike, earliestExecutionTime: BigNumberish): Promise<string>; | ||
getTransactionDataHash(usr: string, codeHash: BytesLike, parameters: BytesLike, earliestExecutionTime: BigNumberish, multicall: true): MulticallRequest<string>; | ||
getTransactionDataHash1(usr: string, codeHash: BytesLike, parameters: BytesLike): Promise<string>; | ||
getTransactionDataHash1(usr: string, codeHash: BytesLike, parameters: BytesLike, multicall: true): MulticallRequest<string>; | ||
getTransactionDataHash2(usr: string, codeHash: BytesLike, parameters: BytesLike, earliestExecutionTime: BigNumberish): Promise<string>; | ||
getTransactionDataHash2(usr: string, codeHash: BytesLike, parameters: BytesLike, earliestExecutionTime: BigNumberish, multicall: true): MulticallRequest<string>; | ||
maxScheduledTransactions(): Promise<BigNumber>; | ||
@@ -36,2 +38,4 @@ maxScheduledTransactions(multicall: true): MulticallRequest<BigNumber>; | ||
scheduledTransactions(bytes: BytesLike, multicall: true): MulticallRequest<boolean>; | ||
scheduledTransactionsDataHashes(bytes: BytesLike): Promise<boolean>; | ||
scheduledTransactionsDataHashes(bytes: BytesLike, multicall: true): MulticallRequest<boolean>; | ||
setAuthority(authority_: string): TransactionRequest; | ||
@@ -38,0 +42,0 @@ setDelay(delay_: BigNumberish): TransactionRequest; |
@@ -95,5 +95,11 @@ "use strict"; | ||
}; | ||
DsPause.prototype.getTransactionDataHash = function (usr, codeHash, parameters, earliestExecutionTime, multicall) { | ||
DsPause.prototype.getTransactionDataHash1 = function (usr, codeHash, parameters, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "bytes32", "name": "codeHash", "type": "bytes32" }, { "internalType": "bytes", "name": "parameters", "type": "bytes" }], "name": "getTransactionDataHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "pure", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [usr, codeHash, parameters], multicall); | ||
}; | ||
DsPause.prototype.getTransactionDataHash2 = function (usr, codeHash, parameters, earliestExecutionTime, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "bytes32", "name": "codeHash", "type": "bytes32" }, { "internalType": "bytes", "name": "parameters", "type": "bytes" }, { "internalType": "uint256", "name": "earliestExecutionTime", "type": "uint256" }], "name": "getTransactionDataHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "pure", "type": "function" }; | ||
@@ -149,2 +155,8 @@ return this.ethCallOrMulticall(abi, [usr, codeHash, parameters, earliestExecutionTime], multicall); | ||
}; | ||
DsPause.prototype.scheduledTransactionsDataHashes = function (bytes, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "scheduledTransactionsDataHashes", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [bytes], multicall); | ||
}; | ||
DsPause.prototype.setAuthority = function (authority_) { | ||
@@ -151,0 +163,0 @@ // prettier-ignore |
@@ -24,3 +24,3 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
encodeTransactionData(to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish, safeTxGas: BigNumberish, baseGas: BigNumberish, gasPrice: BigNumberish, gasToken: string, refundReceiver: string, _nonce: BigNumberish, multicall: true): MulticallRequest<string>; | ||
execTransaction(to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish, safeTxGas: BigNumberish, baseGas: BigNumberish, gasPrice: BigNumberish, gasToken: string, refundReceiver: string, signatures: BytesLike): TransactionRequest; | ||
execTransaction(ethValue: BigNumberish, to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish, safeTxGas: BigNumberish, baseGas: BigNumberish, gasPrice: BigNumberish, gasToken: string, refundReceiver: string, signatures: BytesLike): TransactionRequest; | ||
execTransactionFromModule(to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish): TransactionRequest; | ||
@@ -46,2 +46,4 @@ execTransactionFromModuleReturnData(to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish): TransactionRequest; | ||
getTransactionHash(to: string, value: BigNumberish, data: BytesLike, operation: BigNumberish, safeTxGas: BigNumberish, baseGas: BigNumberish, gasPrice: BigNumberish, gasToken: string, refundReceiver: string, _nonce: BigNumberish, multicall: true): MulticallRequest<string>; | ||
isModuleEnabled(module: string): Promise<boolean>; | ||
isModuleEnabled(module: string, multicall: true): MulticallRequest<boolean>; | ||
isOwner(owner: string): Promise<boolean>; | ||
@@ -48,0 +50,0 @@ isOwner(owner: string, multicall: true): MulticallRequest<boolean>; |
@@ -20,2 +20,3 @@ "use strict"; | ||
var geb_contract_base_1 = require("@reflexer-finance/geb-contract-base"); | ||
var bignumber_1 = require("@ethersproject/bignumber"); | ||
var GnosisSafe = /** @class */ (function (_super) { | ||
@@ -29,3 +30,3 @@ __extends(GnosisSafe, _super); | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "NAME", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "NAME", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -36,3 +37,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -43,3 +44,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "addOwnerWithThreshold", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "addOwnerWithThreshold", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [owner, _threshold]); | ||
@@ -50,3 +51,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "bytes32", "name": "hashToApprove", "type": "bytes32" }], "name": "approveHash", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "hashToApprove", "type": "bytes32" }], "name": "approveHash", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [hashToApprove]); | ||
@@ -57,3 +58,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "approvedHashes", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "approvedHashes", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [address, bytes], multicall); | ||
@@ -64,3 +65,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "_masterCopy", "type": "address" }], "name": "changeMasterCopy", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "_masterCopy", "type": "address" }], "name": "changeMasterCopy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [_masterCopy]); | ||
@@ -71,3 +72,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "changeThreshold", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "changeThreshold", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [_threshold]); | ||
@@ -78,3 +79,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "contract Module", "name": "prevModule", "type": "address" }, { "internalType": "contract Module", "name": "module", "type": "address" }], "name": "disableModule", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "contract Module", "name": "prevModule", "type": "address" }, { "internalType": "contract Module", "name": "module", "type": "address" }], "name": "disableModule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [prevModule, module]); | ||
@@ -85,3 +86,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "domainSeparator", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "domainSeparator", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -92,3 +93,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "contract Module", "name": "module", "type": "address" }], "name": "enableModule", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "contract Module", "name": "module", "type": "address" }], "name": "enableModule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [module]); | ||
@@ -99,3 +100,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address", "name": "refundReceiver", "type": "address" }, { "internalType": "uint256", "name": "_nonce", "type": "uint256" }], "name": "encodeTransactionData", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address", "name": "refundReceiver", "type": "address" }, { "internalType": "uint256", "name": "_nonce", "type": "uint256" }], "name": "encodeTransactionData", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [ | ||
@@ -114,6 +115,6 @@ to, | ||
}; | ||
GnosisSafe.prototype.execTransaction = function (to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures) { | ||
GnosisSafe.prototype.execTransaction = function (ethValue, to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address payable", "name": "refundReceiver", "type": "address" }, { "internalType": "bytes", "name": "signatures", "type": "bytes" }], "name": "execTransaction", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address payable", "name": "refundReceiver", "type": "address" }, { "internalType": "bytes", "name": "signatures", "type": "bytes" }], "name": "execTransaction", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "stateMutability": "payable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [ | ||
@@ -130,3 +131,3 @@ to, | ||
signatures, | ||
]); | ||
], bignumber_1.BigNumber.from(ethValue)); | ||
}; | ||
@@ -136,3 +137,3 @@ GnosisSafe.prototype.execTransactionFromModule = function (to, value, data, operation) { | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "execTransactionFromModule", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "execTransactionFromModule", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [to, value, data, operation]); | ||
@@ -143,3 +144,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "execTransactionFromModuleReturnData", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "bytes", "name": "returnData", "type": "bytes" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "execTransactionFromModuleReturnData", "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }, { "internalType": "bytes", "name": "returnData", "type": "bytes" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [to, value, data, operation]); | ||
@@ -150,3 +151,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "bytes", "name": "message", "type": "bytes" }], "name": "getMessageHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "bytes", "name": "message", "type": "bytes" }], "name": "getMessageHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [message], multicall); | ||
@@ -157,3 +158,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "getModules", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "getModules", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -164,3 +165,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "address", "name": "start", "type": "address" }, { "internalType": "uint256", "name": "pageSize", "type": "uint256" }], "name": "getModulesPaginated", "outputs": [{ "internalType": "address[]", "name": "array", "type": "address[]" }, { "internalType": "address", "name": "next", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "start", "type": "address" }, { "internalType": "uint256", "name": "pageSize", "type": "uint256" }], "name": "getModulesPaginated", "outputs": [{ "internalType": "address[]", "name": "array", "type": "address[]" }, { "internalType": "address", "name": "next", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [start, pageSize], multicall); | ||
@@ -171,3 +172,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "getOwners", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "getOwners", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -178,3 +179,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "getThreshold", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "getThreshold", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -185,3 +186,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address", "name": "refundReceiver", "type": "address" }, { "internalType": "uint256", "name": "_nonce", "type": "uint256" }], "name": "getTransactionHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }, { "internalType": "uint256", "name": "safeTxGas", "type": "uint256" }, { "internalType": "uint256", "name": "baseGas", "type": "uint256" }, { "internalType": "uint256", "name": "gasPrice", "type": "uint256" }, { "internalType": "address", "name": "gasToken", "type": "address" }, { "internalType": "address", "name": "refundReceiver", "type": "address" }, { "internalType": "uint256", "name": "_nonce", "type": "uint256" }], "name": "getTransactionHash", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [ | ||
@@ -200,6 +201,12 @@ to, | ||
}; | ||
GnosisSafe.prototype.isModuleEnabled = function (module, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "contract Module", "name": "module", "type": "address" }], "name": "isModuleEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [module], multicall); | ||
}; | ||
GnosisSafe.prototype.isOwner = function (owner, multicall) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "isOwner", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "isOwner", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [owner], multicall); | ||
@@ -210,3 +217,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "bytes", "name": "_data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }], "name": "isValidSignature", "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "bytes", "name": "_data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }], "name": "isValidSignature", "outputs": [{ "internalType": "bytes4", "name": "", "type": "bytes4" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [_data, _signature]); | ||
@@ -217,3 +224,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [], "name": "nonce", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [], "name": "nonce", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
@@ -224,3 +231,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "prevOwner", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "removeOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "prevOwner", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }], "name": "removeOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [prevOwner, owner, _threshold]); | ||
@@ -231,3 +238,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "requiredTxGas", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "enum Enum.Operation", "name": "operation", "type": "uint8" }], "name": "requiredTxGas", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [to, value, data, operation]); | ||
@@ -238,3 +245,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "handler", "type": "address" }], "name": "setFallbackHandler", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "handler", "type": "address" }], "name": "setFallbackHandler", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [handler]); | ||
@@ -245,3 +252,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address[]", "name": "_owners", "type": "address[]" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "address", "name": "fallbackHandler", "type": "address" }, { "internalType": "address", "name": "paymentToken", "type": "address" }, { "internalType": "uint256", "name": "payment", "type": "uint256" }, { "internalType": "address payable", "name": "paymentReceiver", "type": "address" }], "name": "setup", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address[]", "name": "_owners", "type": "address[]" }, { "internalType": "uint256", "name": "_threshold", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "address", "name": "fallbackHandler", "type": "address" }, { "internalType": "address", "name": "paymentToken", "type": "address" }, { "internalType": "uint256", "name": "payment", "type": "uint256" }, { "internalType": "address payable", "name": "paymentReceiver", "type": "address" }], "name": "setup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [ | ||
@@ -261,3 +268,3 @@ _owners, | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "bytes", "name": "_data", "type": "bytes" }], "name": "signMessage", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "bytes", "name": "_data", "type": "bytes" }], "name": "signMessage", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [_data]); | ||
@@ -268,3 +275,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": true, "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "signedMessages", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "signedMessages", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [bytes], multicall); | ||
@@ -275,3 +282,3 @@ }; | ||
// @ts-ignore | ||
var abi = { "constant": false, "inputs": [{ "internalType": "address", "name": "prevOwner", "type": "address" }, { "internalType": "address", "name": "oldOwner", "type": "address" }, { "internalType": "address", "name": "newOwner", "type": "address" }], "name": "swapOwner", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "address", "name": "prevOwner", "type": "address" }, { "internalType": "address", "name": "oldOwner", "type": "address" }, { "internalType": "address", "name": "newOwner", "type": "address" }], "name": "swapOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [prevOwner, oldOwner, newOwner]); | ||
@@ -278,0 +285,0 @@ }; |
@@ -11,2 +11,3 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
changePriceSource(fsm: string, priceSource: string): TransactionRequest; | ||
disableContract(targetContract: string): TransactionRequest; | ||
initializeCollateralType(targetContract: string, collateralType: BytesLike): TransactionRequest; | ||
@@ -21,3 +22,4 @@ modifyParameters1(targetContract: string, collateralType: BytesLike, parameter: BytesLike, data: BigNumberish): TransactionRequest; | ||
modifyTwoParameters1(targetContract1: string, targetContract2: string, parameter1: BytesLike, parameter2: BytesLike, data1: BigNumberish, data2: BigNumberish): TransactionRequest; | ||
modifyTwoParameters2(targetContract1: string, targetContract2: string, collateralType1: BytesLike, collateralType2: BytesLike, parameter1: BytesLike, parameter2: BytesLike, data1: BigNumberish, data2: BigNumberish): TransactionRequest; | ||
modifyTwoParameters2(targetContract1: string, targetContract2: string, parameter1: BytesLike, parameter2: BytesLike, data1: BigNumberish, data2: BigNumberish): TransactionRequest; | ||
modifyTwoParameters3(targetContract1: string, targetContract2: string, collateralType1: BytesLike, collateralType2: BytesLike, parameter1: BytesLike, parameter2: BytesLike, data1: BigNumberish, data2: BigNumberish): TransactionRequest; | ||
multiSetAllowance(join: string, accounts: string[], allowances: BigNumberish[]): TransactionRequest; | ||
@@ -34,4 +36,6 @@ removeAuthority(validator: string, account: string): TransactionRequest; | ||
setDummyPIDValidator(rateSetter: string, oracleRelayer: string, dummyValidator: string): TransactionRequest; | ||
setName(coin: string, name: string): TransactionRequest; | ||
setPerBlockAllowance(targetContract: string, account: string, rad: BigNumberish): TransactionRequest; | ||
setProtester(pause: string, protester: string): TransactionRequest; | ||
setSymbol(coin: string, symbol: string): TransactionRequest; | ||
setTotalAllowance(targetContract: string, account: string, rad: BigNumberish): TransactionRequest; | ||
@@ -38,0 +42,0 @@ shutdownSystem(globalSettlement: string): TransactionRequest; |
@@ -55,2 +55,8 @@ "use strict"; | ||
}; | ||
GovActions.prototype.disableContract = function (targetContract) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "targetContract", "type": "address" }], "name": "disableContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [targetContract]); | ||
}; | ||
GovActions.prototype.initializeCollateralType = function (targetContract, collateralType) { | ||
@@ -150,5 +156,18 @@ // prettier-ignore | ||
}; | ||
GovActions.prototype.modifyTwoParameters2 = function (targetContract1, targetContract2, collateralType1, collateralType2, parameter1, parameter2, data1, data2) { | ||
GovActions.prototype.modifyTwoParameters2 = function (targetContract1, targetContract2, parameter1, parameter2, data1, data2) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "targetContract1", "type": "address" }, { "internalType": "address", "name": "targetContract2", "type": "address" }, { "internalType": "bytes32", "name": "parameter1", "type": "bytes32" }, { "internalType": "bytes32", "name": "parameter2", "type": "bytes32" }, { "internalType": "uint256", "name": "data1", "type": "uint256" }, { "internalType": "uint256", "name": "data2", "type": "uint256" }], "name": "modifyTwoParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [ | ||
targetContract1, | ||
targetContract2, | ||
parameter1, | ||
parameter2, | ||
data1, | ||
data2, | ||
]); | ||
}; | ||
GovActions.prototype.modifyTwoParameters3 = function (targetContract1, targetContract2, collateralType1, collateralType2, parameter1, parameter2, data1, data2) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "targetContract1", "type": "address" }, { "internalType": "address", "name": "targetContract2", "type": "address" }, { "internalType": "bytes32", "name": "collateralType1", "type": "bytes32" }, { "internalType": "bytes32", "name": "collateralType2", "type": "bytes32" }, { "internalType": "bytes32", "name": "parameter1", "type": "bytes32" }, { "internalType": "bytes32", "name": "parameter2", "type": "bytes32" }, { "internalType": "uint256", "name": "data1", "type": "uint256" }, { "internalType": "uint256", "name": "data2", "type": "uint256" }], "name": "modifyTwoParameters", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
@@ -241,2 +260,8 @@ return this.getTransactionRequest(abi, [ | ||
}; | ||
GovActions.prototype.setName = function (coin, name) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "coin", "type": "address" }, { "internalType": "string", "name": "name", "type": "string" }], "name": "setName", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [coin, name]); | ||
}; | ||
GovActions.prototype.setPerBlockAllowance = function (targetContract, account, rad) { | ||
@@ -254,2 +279,8 @@ // prettier-ignore | ||
}; | ||
GovActions.prototype.setSymbol = function (coin, symbol) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "coin", "type": "address" }, { "internalType": "string", "name": "symbol", "type": "string" }], "name": "setSymbol", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [coin, symbol]); | ||
}; | ||
GovActions.prototype.setTotalAllowance = function (targetContract, account, rad) { | ||
@@ -256,0 +287,0 @@ // prettier-ignore |
@@ -11,2 +11,3 @@ import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
changePriceSource(priceSource_: string): TransactionRequest; | ||
disableContract(): TransactionRequest; | ||
initializeCollateralType(bytes: BytesLike): TransactionRequest; | ||
@@ -26,3 +27,5 @@ modifyParameters1(bytes: BytesLike, uinteger1: BigNumberish, uinteger2: BigNumberish, address: string): TransactionRequest; | ||
setDummyPIDValidator(address: string): TransactionRequest; | ||
setName(name: string): TransactionRequest; | ||
setPerBlockAllowance(address: string, uinteger: BigNumberish): TransactionRequest; | ||
setSymbol(symbol: string): TransactionRequest; | ||
setTotalAllowance(address: string, uinteger: BigNumberish): TransactionRequest; | ||
@@ -29,0 +32,0 @@ start(): TransactionRequest; |
@@ -55,2 +55,8 @@ "use strict"; | ||
}; | ||
Setter.prototype.disableContract = function () { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "disableContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, []); | ||
}; | ||
Setter.prototype.initializeCollateralType = function (bytes) { | ||
@@ -145,2 +151,8 @@ // prettier-ignore | ||
}; | ||
Setter.prototype.setName = function (name) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "string", "name": "name", "type": "string" }], "name": "setName", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [name]); | ||
}; | ||
Setter.prototype.setPerBlockAllowance = function (address, uinteger) { | ||
@@ -152,2 +164,8 @@ // prettier-ignore | ||
}; | ||
Setter.prototype.setSymbol = function (symbol) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "string", "name": "symbol", "type": "string" }], "name": "setSymbol", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [symbol]); | ||
}; | ||
Setter.prototype.setTotalAllowance = function (address, uinteger) { | ||
@@ -154,0 +172,0 @@ // prettier-ignore |
import { BaseContractAPI } from '@reflexer-finance/geb-contract-base'; | ||
import { MulticallRequest } from '@reflexer-finance/geb-contract-base'; | ||
import { TransactionRequest } from '@reflexer-finance/geb-contract-base'; | ||
import { BigNumberish } from '@ethersproject/bignumber'; | ||
import { BigNumber } from '@ethersproject/bignumber'; | ||
export declare class Tester extends BaseContractAPI { | ||
balance(): TransactionRequest; | ||
fail(): TransactionRequest; | ||
ok(value_: BigNumberish): TransactionRequest; | ||
token(): Promise<string>; | ||
token(multicall: true): MulticallRequest<string>; | ||
value(): Promise<BigNumber>; | ||
value(multicall: true): MulticallRequest<BigNumber>; | ||
addAuthorization(usr: string): TransactionRequest; | ||
burn1(wad: BigNumberish): TransactionRequest; | ||
burn2(usr: string, wad: BigNumberish): TransactionRequest; | ||
mint(usr: string, wad: BigNumberish): TransactionRequest; | ||
notMintOrBurn(): TransactionRequest; | ||
removeAuthorization(usr: string): TransactionRequest; | ||
setOwner(usr: string): TransactionRequest; | ||
setRoot(usr: string): TransactionRequest; | ||
} |
@@ -25,31 +25,49 @@ "use strict"; | ||
} | ||
Tester.prototype.balance = function () { | ||
Tester.prototype.addAuthorization = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "balance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, []); | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "addAuthorization", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
Tester.prototype.fail = function () { | ||
Tester.prototype.burn1 = function (wad) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "fail", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [wad]); | ||
}; | ||
Tester.prototype.burn2 = function (usr, wad) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "burn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr, wad]); | ||
}; | ||
Tester.prototype.mint = function (usr, wad) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }, { "internalType": "uint256", "name": "wad", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr, wad]); | ||
}; | ||
Tester.prototype.notMintOrBurn = function () { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "notMintOrBurn", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, []); | ||
}; | ||
Tester.prototype.ok = function (value_) { | ||
Tester.prototype.removeAuthorization = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [{ "internalType": "uint256", "name": "value_", "type": "uint256" }], "name": "ok", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [value_]); | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "removeAuthorization", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
Tester.prototype.token = function (multicall) { | ||
Tester.prototype.setOwner = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "token", "outputs": [{ "internalType": "contract ERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
Tester.prototype.value = function (multicall) { | ||
Tester.prototype.setRoot = function (usr) { | ||
// prettier-ignore | ||
// @ts-ignore | ||
var abi = { "inputs": [], "name": "value", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }; | ||
return this.ethCallOrMulticall(abi, [], multicall); | ||
var abi = { "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }], "name": "setRoot", "outputs": [], "stateMutability": "nonpayable", "type": "function" }; | ||
return this.getTransactionRequest(abi, [usr]); | ||
}; | ||
@@ -56,0 +74,0 @@ return Tester; |
@@ -41,3 +41,2 @@ import { AccountingEngineFactory } from './generated/AccountingEngineFactory'; | ||
import { EnglishCollateralAuctionHouseFactory } from './generated/EnglishCollateralAuctionHouseFactory'; | ||
import { FaucetUser } from './generated/FaucetUser'; | ||
import { FixedDiscountCollateralAuctionHouseFactory } from './generated/FixedDiscountCollateralAuctionHouseFactory'; | ||
@@ -48,5 +47,2 @@ import { FsmGovernanceInterface } from './generated/FsmGovernanceInterface'; | ||
import { GebDeployPauseProxyActions } from './generated/GebDeployPauseProxyActions'; | ||
import { GebPollingEmitter } from './generated/GebPollingEmitter'; | ||
import { GebPollingEvents } from './generated/GebPollingEvents'; | ||
import { GemBag } from './generated/GemBag'; | ||
import { GlobalSettlementFactory } from './generated/GlobalSettlementFactory'; | ||
@@ -66,3 +62,2 @@ import { GovActions } from './generated/GovActions'; | ||
import { ProtocolTokenAuthority } from './generated/ProtocolTokenAuthority'; | ||
import { RestrictedTokenFaucet } from './generated/RestrictedTokenFaucet'; | ||
import { SafeEngineFactory } from './generated/SAFEEngineFactory'; | ||
@@ -72,7 +67,3 @@ import { SafeHandler } from './generated/SAFEHandler'; | ||
import { SimpleAuthority } from './generated/SimpleAuthority'; | ||
import { StabilityFeeTreasuryFactory } from './generated/StabilityFeeTreasuryFactory'; | ||
import { Store } from './generated/Store'; | ||
import { Tester } from './generated/Tester'; | ||
import { TokenFaucet } from './generated/TokenFaucet'; | ||
import { TxManager } from './generated/TxManager'; | ||
import { AdminApis } from './admin-apis'; | ||
@@ -90,2 +81,2 @@ import { DsProtestPause } from './generated/DSProtestPause'; | ||
import { UniswapConverterBasicAveragePriceFeedMedianizer } from './generated/UniswapConverterBasicAveragePriceFeedMedianizer'; | ||
export { AdminApis, AccountingEngineFactory, AggregatorInterface, AuthCollateralJoin, AuthorizableContract, ChainlinkMedianFlxusd, ChainlinkMedianRaiusd, ChainlinkPriceFeedMedianizer, CoinFactory, CoinJoinFactory, CoinSavingsAccount, CoinSavingsAccountFactory, CollateralAuctionHouse, CollateralJoin1, CollateralJoin2, CollateralJoin3, CollateralJoin4, CollateralJoin5, CollateralJoin6, DsAuth, DsAuthEvents, DsAuthority, DsCompare, DsGuard, DsGuardEvents, DsGuardFactory, DsPause, DsPauseProxy, DsProxyCache, DsProxyFactory, DsRoles, DsStop, DsThing, DsTokenBase, DebtAuctionHouseFactory, Erc20Events, Esm, EsmFactory, EsmThresholdSetter, EthJoin, EnglishCollateralAuctionHouseFactory, FaucetUser, FixedDiscountCollateralAuctionHouseFactory, FsmGovernanceInterface, FsmGovernanceInterfaceCaller, GebDeploy, GebDeployPauseProxyActions, GebPollingEmitter, GebPollingEvents, GemBag, GlobalSettlementFactory, GovActions, GovernanceLedMedianEthusd, GovernanceLedMedianFlxusd, GovernanceLedMedianRaiusd, GovernanceLedPriceFeedMedianizer, IUniswapV2Factory, IUniswapV2Pair, LiquidationEngineFactory, LiquidationEngineMock, OracleRelayerFactory, PauseFactory, PreSettlementSurplusAuctionHouseFactory, ProtocolTokenAuthority, RestrictedTokenFaucet, SafeEngineFactory, SafeHandler, Setter, SimpleAuthority, StabilityFeeTreasuryFactory, Store, Tester, TokenFaucet, TxManager, DsDelegateRoles, DsProtestPause, ProtestPauseFactory, GnosisSafeProxy, GnosisSafe, UniswapConsecutiveSlotsMedianFlxusd, UniswapConsecutiveSlotsMedianRaiusd, UniswapConsecutiveSlotsPriceFeedMedianizer, UniswapConverterBasicAverageMedianFlxusd, UniswapConverterBasicAverageMedianRaiusd, UniswapConverterBasicAveragePriceFeedMedianizer, }; | ||
export { AdminApis, AccountingEngineFactory, AggregatorInterface, AuthCollateralJoin, AuthorizableContract, ChainlinkMedianFlxusd, ChainlinkMedianRaiusd, ChainlinkPriceFeedMedianizer, CoinFactory, CoinJoinFactory, CoinSavingsAccount, CoinSavingsAccountFactory, CollateralAuctionHouse, CollateralJoin1, CollateralJoin2, CollateralJoin3, CollateralJoin4, CollateralJoin5, CollateralJoin6, DsAuth, DsAuthEvents, DsAuthority, DsCompare, DsGuard, DsGuardEvents, DsGuardFactory, DsPause, DsPauseProxy, DsProxyCache, DsProxyFactory, DsRoles, DsStop, DsThing, DsTokenBase, DebtAuctionHouseFactory, Erc20Events, Esm, EsmFactory, EsmThresholdSetter, EthJoin, EnglishCollateralAuctionHouseFactory, FixedDiscountCollateralAuctionHouseFactory, FsmGovernanceInterface, FsmGovernanceInterfaceCaller, GebDeploy, GebDeployPauseProxyActions, GlobalSettlementFactory, GovActions, GovernanceLedMedianEthusd, GovernanceLedMedianFlxusd, GovernanceLedMedianRaiusd, GovernanceLedPriceFeedMedianizer, IUniswapV2Factory, IUniswapV2Pair, LiquidationEngineFactory, LiquidationEngineMock, OracleRelayerFactory, PauseFactory, PreSettlementSurplusAuctionHouseFactory, ProtocolTokenAuthority, SafeEngineFactory, SafeHandler, Setter, SimpleAuthority, Tester, DsDelegateRoles, DsProtestPause, ProtestPauseFactory, GnosisSafeProxy, GnosisSafe, UniswapConsecutiveSlotsMedianFlxusd, UniswapConsecutiveSlotsMedianRaiusd, UniswapConsecutiveSlotsPriceFeedMedianizer, UniswapConverterBasicAverageMedianFlxusd, UniswapConverterBasicAverageMedianRaiusd, UniswapConverterBasicAveragePriceFeedMedianizer, }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UniswapConverterBasicAveragePriceFeedMedianizer = exports.UniswapConverterBasicAverageMedianRaiusd = exports.UniswapConverterBasicAverageMedianFlxusd = exports.UniswapConsecutiveSlotsPriceFeedMedianizer = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.UniswapConsecutiveSlotsMedianFlxusd = exports.GnosisSafe = exports.GnosisSafeProxy = exports.ProtestPauseFactory = exports.DsProtestPause = exports.DsDelegateRoles = exports.TxManager = exports.TokenFaucet = exports.Tester = exports.Store = exports.StabilityFeeTreasuryFactory = exports.SimpleAuthority = exports.Setter = exports.SafeHandler = exports.SafeEngineFactory = exports.RestrictedTokenFaucet = exports.ProtocolTokenAuthority = exports.PreSettlementSurplusAuctionHouseFactory = exports.PauseFactory = exports.OracleRelayerFactory = exports.LiquidationEngineMock = exports.LiquidationEngineFactory = exports.IUniswapV2Pair = exports.IUniswapV2Factory = exports.GovernanceLedPriceFeedMedianizer = exports.GovernanceLedMedianRaiusd = exports.GovernanceLedMedianFlxusd = exports.GovernanceLedMedianEthusd = exports.GovActions = exports.GlobalSettlementFactory = exports.GemBag = exports.GebPollingEvents = exports.GebPollingEmitter = exports.GebDeployPauseProxyActions = exports.GebDeploy = exports.FsmGovernanceInterfaceCaller = exports.FsmGovernanceInterface = exports.FixedDiscountCollateralAuctionHouseFactory = exports.FaucetUser = exports.EnglishCollateralAuctionHouseFactory = exports.EthJoin = exports.EsmThresholdSetter = exports.EsmFactory = exports.Esm = exports.Erc20Events = exports.DebtAuctionHouseFactory = exports.DsTokenBase = exports.DsThing = exports.DsStop = exports.DsRoles = exports.DsProxyFactory = exports.DsProxyCache = exports.DsPauseProxy = exports.DsPause = exports.DsGuardFactory = exports.DsGuardEvents = exports.DsGuard = exports.DsCompare = exports.DsAuthority = exports.DsAuthEvents = exports.DsAuth = exports.CollateralJoin6 = exports.CollateralJoin5 = exports.CollateralJoin4 = exports.CollateralJoin3 = exports.CollateralJoin2 = exports.CollateralJoin1 = exports.CollateralAuctionHouse = exports.CoinSavingsAccountFactory = exports.CoinSavingsAccount = exports.CoinJoinFactory = exports.CoinFactory = exports.ChainlinkPriceFeedMedianizer = exports.ChainlinkMedianRaiusd = exports.ChainlinkMedianFlxusd = exports.AuthorizableContract = exports.AuthCollateralJoin = exports.AggregatorInterface = exports.AccountingEngineFactory = exports.AdminApis = void 0; | ||
exports.UniswapConverterBasicAveragePriceFeedMedianizer = exports.UniswapConverterBasicAverageMedianRaiusd = exports.UniswapConverterBasicAverageMedianFlxusd = exports.UniswapConsecutiveSlotsPriceFeedMedianizer = exports.UniswapConsecutiveSlotsMedianRaiusd = exports.UniswapConsecutiveSlotsMedianFlxusd = exports.GnosisSafe = exports.GnosisSafeProxy = exports.ProtestPauseFactory = exports.DsProtestPause = exports.DsDelegateRoles = exports.Tester = exports.SimpleAuthority = exports.Setter = exports.SafeHandler = exports.SafeEngineFactory = exports.ProtocolTokenAuthority = exports.PreSettlementSurplusAuctionHouseFactory = exports.PauseFactory = exports.OracleRelayerFactory = exports.LiquidationEngineMock = exports.LiquidationEngineFactory = exports.IUniswapV2Pair = exports.IUniswapV2Factory = exports.GovernanceLedPriceFeedMedianizer = exports.GovernanceLedMedianRaiusd = exports.GovernanceLedMedianFlxusd = exports.GovernanceLedMedianEthusd = exports.GovActions = exports.GlobalSettlementFactory = exports.GebDeployPauseProxyActions = exports.GebDeploy = exports.FsmGovernanceInterfaceCaller = exports.FsmGovernanceInterface = exports.FixedDiscountCollateralAuctionHouseFactory = exports.EnglishCollateralAuctionHouseFactory = exports.EthJoin = exports.EsmThresholdSetter = exports.EsmFactory = exports.Esm = exports.Erc20Events = exports.DebtAuctionHouseFactory = exports.DsTokenBase = exports.DsThing = exports.DsStop = exports.DsRoles = exports.DsProxyFactory = exports.DsProxyCache = exports.DsPauseProxy = exports.DsPause = exports.DsGuardFactory = exports.DsGuardEvents = exports.DsGuard = exports.DsCompare = exports.DsAuthority = exports.DsAuthEvents = exports.DsAuth = exports.CollateralJoin6 = exports.CollateralJoin5 = exports.CollateralJoin4 = exports.CollateralJoin3 = exports.CollateralJoin2 = exports.CollateralJoin1 = exports.CollateralAuctionHouse = exports.CoinSavingsAccountFactory = exports.CoinSavingsAccount = exports.CoinJoinFactory = exports.CoinFactory = exports.ChainlinkPriceFeedMedianizer = exports.ChainlinkMedianRaiusd = exports.ChainlinkMedianFlxusd = exports.AuthorizableContract = exports.AuthCollateralJoin = exports.AggregatorInterface = exports.AccountingEngineFactory = exports.AdminApis = void 0; | ||
var AccountingEngineFactory_1 = require("./generated/AccountingEngineFactory"); | ||
@@ -84,4 +84,2 @@ Object.defineProperty(exports, "AccountingEngineFactory", { enumerable: true, get: function () { return AccountingEngineFactory_1.AccountingEngineFactory; } }); | ||
Object.defineProperty(exports, "EnglishCollateralAuctionHouseFactory", { enumerable: true, get: function () { return EnglishCollateralAuctionHouseFactory_1.EnglishCollateralAuctionHouseFactory; } }); | ||
var FaucetUser_1 = require("./generated/FaucetUser"); | ||
Object.defineProperty(exports, "FaucetUser", { enumerable: true, get: function () { return FaucetUser_1.FaucetUser; } }); | ||
var FixedDiscountCollateralAuctionHouseFactory_1 = require("./generated/FixedDiscountCollateralAuctionHouseFactory"); | ||
@@ -97,8 +95,2 @@ Object.defineProperty(exports, "FixedDiscountCollateralAuctionHouseFactory", { enumerable: true, get: function () { return FixedDiscountCollateralAuctionHouseFactory_1.FixedDiscountCollateralAuctionHouseFactory; } }); | ||
Object.defineProperty(exports, "GebDeployPauseProxyActions", { enumerable: true, get: function () { return GebDeployPauseProxyActions_1.GebDeployPauseProxyActions; } }); | ||
var GebPollingEmitter_1 = require("./generated/GebPollingEmitter"); | ||
Object.defineProperty(exports, "GebPollingEmitter", { enumerable: true, get: function () { return GebPollingEmitter_1.GebPollingEmitter; } }); | ||
var GebPollingEvents_1 = require("./generated/GebPollingEvents"); | ||
Object.defineProperty(exports, "GebPollingEvents", { enumerable: true, get: function () { return GebPollingEvents_1.GebPollingEvents; } }); | ||
var GemBag_1 = require("./generated/GemBag"); | ||
Object.defineProperty(exports, "GemBag", { enumerable: true, get: function () { return GemBag_1.GemBag; } }); | ||
var GlobalSettlementFactory_1 = require("./generated/GlobalSettlementFactory"); | ||
@@ -132,4 +124,2 @@ Object.defineProperty(exports, "GlobalSettlementFactory", { enumerable: true, get: function () { return GlobalSettlementFactory_1.GlobalSettlementFactory; } }); | ||
Object.defineProperty(exports, "ProtocolTokenAuthority", { enumerable: true, get: function () { return ProtocolTokenAuthority_1.ProtocolTokenAuthority; } }); | ||
var RestrictedTokenFaucet_1 = require("./generated/RestrictedTokenFaucet"); | ||
Object.defineProperty(exports, "RestrictedTokenFaucet", { enumerable: true, get: function () { return RestrictedTokenFaucet_1.RestrictedTokenFaucet; } }); | ||
var SAFEEngineFactory_1 = require("./generated/SAFEEngineFactory"); | ||
@@ -143,12 +133,4 @@ Object.defineProperty(exports, "SafeEngineFactory", { enumerable: true, get: function () { return SAFEEngineFactory_1.SafeEngineFactory; } }); | ||
Object.defineProperty(exports, "SimpleAuthority", { enumerable: true, get: function () { return SimpleAuthority_1.SimpleAuthority; } }); | ||
var StabilityFeeTreasuryFactory_1 = require("./generated/StabilityFeeTreasuryFactory"); | ||
Object.defineProperty(exports, "StabilityFeeTreasuryFactory", { enumerable: true, get: function () { return StabilityFeeTreasuryFactory_1.StabilityFeeTreasuryFactory; } }); | ||
var Store_1 = require("./generated/Store"); | ||
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return Store_1.Store; } }); | ||
var Tester_1 = require("./generated/Tester"); | ||
Object.defineProperty(exports, "Tester", { enumerable: true, get: function () { return Tester_1.Tester; } }); | ||
var TokenFaucet_1 = require("./generated/TokenFaucet"); | ||
Object.defineProperty(exports, "TokenFaucet", { enumerable: true, get: function () { return TokenFaucet_1.TokenFaucet; } }); | ||
var TxManager_1 = require("./generated/TxManager"); | ||
Object.defineProperty(exports, "TxManager", { enumerable: true, get: function () { return TxManager_1.TxManager; } }); | ||
var admin_apis_1 = require("./admin-apis"); | ||
@@ -155,0 +137,0 @@ Object.defineProperty(exports, "AdminApis", { enumerable: true, get: function () { return admin_apis_1.AdminApis; } }); |
{ | ||
"name": "@reflexer-finance/geb-admin-api", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Includes contract API from all contracts of the GEB ecosystem", | ||
@@ -13,4 +13,4 @@ "main": "./lib/index.js", | ||
"@ethersproject/bignumber": "5.x", | ||
"@reflexer-finance/geb-contract-api": "^0.1.2", | ||
"@reflexer-finance/geb-contract-base": "^0.1.2" | ||
"@reflexer-finance/geb-contract-api": "^0.2.0", | ||
"@reflexer-finance/geb-contract-base": "^0.2.0" | ||
}, | ||
@@ -21,3 +21,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "04e4c7e29e18dceb31eab76950e2bce579b94588" | ||
"gitHead": "798a1243c11766a4a37acb5f758861635bee7c1d" | ||
} |
import { | ||
GebDeploy, | ||
ProtocolTokenAuthority, | ||
GebPollingEmitter, | ||
DsDelegateRoles, | ||
@@ -12,3 +11,2 @@ DsPauseProxy, | ||
GebDeployPauseProxyActions, | ||
TxManager, | ||
GnosisSafeProxy, | ||
@@ -32,3 +30,2 @@ DsProtestPause, | ||
public protocolTokenAuthority: ProtocolTokenAuthority | ||
public pollingEmitter: GebPollingEmitter | ||
public pauseAuthority: DsDelegateRoles | ||
@@ -43,3 +40,2 @@ public pause: DsProtestPause | ||
public proxyDeployer: DsProxy | ||
public txManager: TxManager | ||
@@ -59,3 +55,2 @@ | ||
this.deploy = new GebDeploy(addressList.GEB_DEPLOY, this.chainProvider) | ||
this.pollingEmitter = new GebPollingEmitter(addressList.GEB_POLLING_EMITTER, this.chainProvider) | ||
this.pauseAuthority = new DsDelegateRoles(addressList.GEB_PAUSE_AUTHORITY, this.chainProvider) | ||
@@ -69,4 +64,3 @@ this.pause = new DsProtestPause(addressList.GEB_PAUSE, this.chainProvider) | ||
this.proxyDeployer = new DsProxy(addressList.PROXY_DEPLOYER, this.chainProvider) | ||
this.txManager = new TxManager(addressList.GEB_TX_MANAGER, this.chainProvider) | ||
} | ||
} |
@@ -136,9 +136,37 @@ /* Generated by ts-generator ver. 0.0.8 */ | ||
getTransactionDataHash( | ||
getTransactionDataHash1( | ||
usr: string, | ||
codeHash: BytesLike, | ||
parameters: BytesLike | ||
): Promise<string> | ||
getTransactionDataHash1( | ||
usr: string, | ||
codeHash: BytesLike, | ||
parameters: BytesLike, | ||
multicall: true | ||
): MulticallRequest<string> | ||
getTransactionDataHash1( | ||
usr: string, | ||
codeHash: BytesLike, | ||
parameters: BytesLike, | ||
multicall?: true | ||
): Promise<string> | MulticallRequest<string> { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"bytes","name":"parameters","type":"bytes"}],"name":"getTransactionDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"} | ||
return this.ethCallOrMulticall( | ||
abi, | ||
[usr, codeHash, parameters], | ||
multicall | ||
) | ||
} | ||
getTransactionDataHash2( | ||
usr: string, | ||
codeHash: BytesLike, | ||
parameters: BytesLike, | ||
earliestExecutionTime: BigNumberish | ||
): Promise<string> | ||
getTransactionDataHash( | ||
getTransactionDataHash2( | ||
usr: string, | ||
@@ -150,3 +178,3 @@ codeHash: BytesLike, | ||
): MulticallRequest<string> | ||
getTransactionDataHash( | ||
getTransactionDataHash2( | ||
usr: string, | ||
@@ -255,2 +283,18 @@ codeHash: BytesLike, | ||
scheduledTransactionsDataHashes(bytes: BytesLike): Promise<boolean> | ||
scheduledTransactionsDataHashes( | ||
bytes: BytesLike, | ||
multicall: true | ||
): MulticallRequest<boolean> | ||
scheduledTransactionsDataHashes( | ||
bytes: BytesLike, | ||
multicall?: true | ||
): Promise<boolean> | MulticallRequest<boolean> { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"scheduledTransactionsDataHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"} | ||
return this.ethCallOrMulticall(abi, [bytes], multicall) | ||
} | ||
setAuthority(authority_: string): TransactionRequest { | ||
@@ -257,0 +301,0 @@ // prettier-ignore |
@@ -17,3 +17,3 @@ /* Generated by ts-generator ver. 0.0.8 */ | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"} | ||
@@ -28,3 +28,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"} | ||
@@ -40,3 +40,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"addOwnerWithThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"addOwnerWithThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -49,3 +49,3 @@ return this.getTransactionRequest(abi, [owner, _threshold]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"bytes32","name":"hashToApprove","type":"bytes32"}],"name":"approveHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"bytes32","name":"hashToApprove","type":"bytes32"}],"name":"approveHash","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -68,3 +68,3 @@ return this.getTransactionRequest(abi, [hashToApprove]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"approvedHashes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"approvedHashes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"} | ||
@@ -77,3 +77,3 @@ return this.ethCallOrMulticall(abi, [address, bytes], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"_masterCopy","type":"address"}],"name":"changeMasterCopy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"_masterCopy","type":"address"}],"name":"changeMasterCopy","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -86,3 +86,3 @@ return this.getTransactionRequest(abi, [_masterCopy]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"changeThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"changeThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -95,3 +95,3 @@ return this.getTransactionRequest(abi, [_threshold]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"contract Module","name":"prevModule","type":"address"},{"internalType":"contract Module","name":"module","type":"address"}],"name":"disableModule","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"contract Module","name":"prevModule","type":"address"},{"internalType":"contract Module","name":"module","type":"address"}],"name":"disableModule","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -108,3 +108,3 @@ return this.getTransactionRequest(abi, [prevModule, module]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"} | ||
@@ -117,3 +117,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"contract Module","name":"module","type":"address"}],"name":"enableModule","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"contract Module","name":"module","type":"address"}],"name":"enableModule","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -163,3 +163,3 @@ return this.getTransactionRequest(abi, [module]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"encodeTransactionData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"encodeTransactionData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"} | ||
@@ -185,2 +185,3 @@ return this.ethCallOrMulticall( | ||
execTransaction( | ||
ethValue: BigNumberish, | ||
to: string, | ||
@@ -199,16 +200,20 @@ value: BigNumberish, | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address payable","name":"refundReceiver","type":"address"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"execTransaction","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address payable","name":"refundReceiver","type":"address"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"execTransaction","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"payable","type":"function"} | ||
return this.getTransactionRequest(abi, [ | ||
to, | ||
value, | ||
data, | ||
operation, | ||
safeTxGas, | ||
baseGas, | ||
gasPrice, | ||
gasToken, | ||
refundReceiver, | ||
signatures, | ||
]) | ||
return this.getTransactionRequest( | ||
abi, | ||
[ | ||
to, | ||
value, | ||
data, | ||
operation, | ||
safeTxGas, | ||
baseGas, | ||
gasPrice, | ||
gasToken, | ||
refundReceiver, | ||
signatures, | ||
], | ||
BigNumber.from(ethValue) | ||
) | ||
} | ||
@@ -224,3 +229,3 @@ | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModule","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModule","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"} | ||
@@ -238,3 +243,3 @@ return this.getTransactionRequest(abi, [to, value, data, operation]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModuleReturnData","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModuleReturnData","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"stateMutability":"nonpayable","type":"function"} | ||
@@ -255,3 +260,3 @@ return this.getTransactionRequest(abi, [to, value, data, operation]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"bytes","name":"message","type":"bytes"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"bytes","name":"message","type":"bytes"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"} | ||
@@ -268,3 +273,3 @@ return this.ethCallOrMulticall(abi, [message], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"getModules","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"getModules","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"} | ||
@@ -304,3 +309,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"address","name":"start","type":"address"},{"internalType":"uint256","name":"pageSize","type":"uint256"}],"name":"getModulesPaginated","outputs":[{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"start","type":"address"},{"internalType":"uint256","name":"pageSize","type":"uint256"}],"name":"getModulesPaginated","outputs":[{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}],"stateMutability":"view","type":"function"} | ||
@@ -317,3 +322,3 @@ return this.ethCallOrMulticall(abi, [start, pageSize], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"} | ||
@@ -330,3 +335,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"getThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"getThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"} | ||
@@ -376,3 +381,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"getTransactionHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"getTransactionHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"} | ||
@@ -397,2 +402,15 @@ return this.ethCallOrMulticall( | ||
isModuleEnabled(module: string): Promise<boolean> | ||
isModuleEnabled(module: string, multicall: true): MulticallRequest<boolean> | ||
isModuleEnabled( | ||
module: string, | ||
multicall?: true | ||
): Promise<boolean> | MulticallRequest<boolean> { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"contract Module","name":"module","type":"address"}],"name":"isModuleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"} | ||
return this.ethCallOrMulticall(abi, [module], multicall) | ||
} | ||
isOwner(owner: string): Promise<boolean> | ||
@@ -406,3 +424,3 @@ isOwner(owner: string, multicall: true): MulticallRequest<boolean> | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"} | ||
@@ -418,3 +436,3 @@ return this.ethCallOrMulticall(abi, [owner], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"} | ||
@@ -429,3 +447,3 @@ return this.getTransactionRequest(abi, [_data, _signature]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"} | ||
@@ -442,3 +460,3 @@ return this.ethCallOrMulticall(abi, [], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"removeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"removeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -456,3 +474,3 @@ return this.getTransactionRequest(abi, [prevOwner, owner, _threshold]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"requiredTxGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enum Enum.Operation","name":"operation","type":"uint8"}],"name":"requiredTxGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"} | ||
@@ -465,3 +483,3 @@ return this.getTransactionRequest(abi, [to, value, data, operation]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"handler","type":"address"}],"name":"setFallbackHandler","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"handler","type":"address"}],"name":"setFallbackHandler","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -483,3 +501,3 @@ return this.getTransactionRequest(abi, [handler]) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_threshold","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"address","name":"fallbackHandler","type":"address"},{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"payment","type":"uint256"},{"internalType":"address payable","name":"paymentReceiver","type":"address"}],"name":"setup","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_threshold","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"address","name":"fallbackHandler","type":"address"},{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"payment","type":"uint256"},{"internalType":"address payable","name":"paymentReceiver","type":"address"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -501,3 +519,3 @@ return this.getTransactionRequest(abi, [ | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"signMessage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"signMessage","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -518,3 +536,3 @@ return this.getTransactionRequest(abi, [_data]) | ||
// @ts-ignore | ||
const abi = {"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"signedMessages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"signedMessages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"} | ||
@@ -531,3 +549,3 @@ return this.ethCallOrMulticall(abi, [bytes], multicall) | ||
// @ts-ignore | ||
const abi = {"constant":false,"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"oldOwner","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"swapOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"oldOwner","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"swapOwner","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
@@ -534,0 +552,0 @@ return this.getTransactionRequest(abi, [prevOwner, oldOwner, newOwner]) |
@@ -53,2 +53,10 @@ /* Generated by ts-generator ver. 0.0.8 */ | ||
disableContract(targetContract: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"targetContract","type":"address"}],"name":"disableContract","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [targetContract]) | ||
} | ||
initializeCollateralType( | ||
@@ -212,2 +220,24 @@ targetContract: string, | ||
targetContract2: string, | ||
parameter1: BytesLike, | ||
parameter2: BytesLike, | ||
data1: BigNumberish, | ||
data2: BigNumberish | ||
): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"targetContract1","type":"address"},{"internalType":"address","name":"targetContract2","type":"address"},{"internalType":"bytes32","name":"parameter1","type":"bytes32"},{"internalType":"bytes32","name":"parameter2","type":"bytes32"},{"internalType":"uint256","name":"data1","type":"uint256"},{"internalType":"uint256","name":"data2","type":"uint256"}],"name":"modifyTwoParameters","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [ | ||
targetContract1, | ||
targetContract2, | ||
parameter1, | ||
parameter2, | ||
data1, | ||
data2, | ||
]) | ||
} | ||
modifyTwoParameters3( | ||
targetContract1: string, | ||
targetContract2: string, | ||
collateralType1: BytesLike, | ||
@@ -360,2 +390,10 @@ collateralType2: BytesLike, | ||
setName(coin: string, name: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"coin","type":"address"},{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [coin, name]) | ||
} | ||
setPerBlockAllowance( | ||
@@ -381,2 +419,10 @@ targetContract: string, | ||
setSymbol(coin: string, symbol: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"coin","type":"address"},{"internalType":"string","name":"symbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [coin, symbol]) | ||
} | ||
setTotalAllowance( | ||
@@ -383,0 +429,0 @@ targetContract: string, |
@@ -50,2 +50,10 @@ /* Generated by ts-generator ver. 0.0.8 */ | ||
disableContract(): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"disableContract","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, []) | ||
} | ||
initializeCollateralType(bytes: BytesLike): TransactionRequest { | ||
@@ -191,2 +199,10 @@ // prettier-ignore | ||
setName(name: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [name]) | ||
} | ||
setPerBlockAllowance( | ||
@@ -203,2 +219,10 @@ address: string, | ||
setSymbol(symbol: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [symbol]) | ||
} | ||
setTotalAllowance( | ||
@@ -205,0 +229,0 @@ address: string, |
@@ -5,51 +5,69 @@ /* Generated by ts-generator ver. 0.0.8 */ | ||
import { BaseContractAPI } from '@reflexer-finance/geb-contract-base' | ||
import { MulticallRequest } from '@reflexer-finance/geb-contract-base' | ||
import { TransactionRequest } from '@reflexer-finance/geb-contract-base' | ||
import { BigNumberish } from '@ethersproject/bignumber' | ||
import { BigNumber } from '@ethersproject/bignumber' | ||
export class Tester extends BaseContractAPI { | ||
balance(): TransactionRequest { | ||
addAuthorization(usr: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"balance","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"addAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, []) | ||
return this.getTransactionRequest(abi, [usr]) | ||
} | ||
fail(): TransactionRequest { | ||
burn1(wad: BigNumberish): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"fail","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [wad]) | ||
} | ||
burn2(usr: string, wad: BigNumberish): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [usr, wad]) | ||
} | ||
mint(usr: string, wad: BigNumberish): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [usr, wad]) | ||
} | ||
notMintOrBurn(): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"notMintOrBurn","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, []) | ||
} | ||
ok(value_: BigNumberish): TransactionRequest { | ||
removeAuthorization(usr: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"ok","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"removeAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.getTransactionRequest(abi, [value_]) | ||
return this.getTransactionRequest(abi, [usr]) | ||
} | ||
token(): Promise<string> | ||
token(multicall: true): MulticallRequest<string> | ||
token(multicall?: true): Promise<string> | MulticallRequest<string> { | ||
setOwner(usr: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.ethCallOrMulticall(abi, [], multicall) | ||
return this.getTransactionRequest(abi, [usr]) | ||
} | ||
value(): Promise<BigNumber> | ||
value(multicall: true): MulticallRequest<BigNumber> | ||
value(multicall?: true): Promise<BigNumber> | MulticallRequest<BigNumber> { | ||
setRoot(usr: string): TransactionRequest { | ||
// prettier-ignore | ||
// @ts-ignore | ||
const abi = {"inputs":[],"name":"value","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"} | ||
const abi = {"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"} | ||
return this.ethCallOrMulticall(abi, [], multicall) | ||
return this.getTransactionRequest(abi, [usr]) | ||
} | ||
} |
@@ -41,3 +41,2 @@ import { AccountingEngineFactory } from './generated/AccountingEngineFactory' | ||
import { EnglishCollateralAuctionHouseFactory } from './generated/EnglishCollateralAuctionHouseFactory' | ||
import { FaucetUser } from './generated/FaucetUser' | ||
import { FixedDiscountCollateralAuctionHouseFactory } from './generated/FixedDiscountCollateralAuctionHouseFactory' | ||
@@ -48,5 +47,2 @@ import { FsmGovernanceInterface } from './generated/FsmGovernanceInterface' | ||
import { GebDeployPauseProxyActions } from './generated/GebDeployPauseProxyActions' | ||
import { GebPollingEmitter } from './generated/GebPollingEmitter' | ||
import { GebPollingEvents } from './generated/GebPollingEvents' | ||
import { GemBag } from './generated/GemBag' | ||
import { GlobalSettlementFactory } from './generated/GlobalSettlementFactory' | ||
@@ -66,3 +62,2 @@ import { GovActions } from './generated/GovActions' | ||
import { ProtocolTokenAuthority } from './generated/ProtocolTokenAuthority' | ||
import { RestrictedTokenFaucet } from './generated/RestrictedTokenFaucet' | ||
import { SafeEngineFactory } from './generated/SAFEEngineFactory' | ||
@@ -72,7 +67,3 @@ import { SafeHandler } from './generated/SAFEHandler' | ||
import { SimpleAuthority } from './generated/SimpleAuthority' | ||
import { StabilityFeeTreasuryFactory } from './generated/StabilityFeeTreasuryFactory' | ||
import { Store } from './generated/Store' | ||
import { Tester } from './generated/Tester' | ||
import { TokenFaucet } from './generated/TokenFaucet' | ||
import { TxManager } from './generated/TxManager' | ||
import { AdminApis } from './admin-apis' | ||
@@ -135,3 +126,2 @@ import { DsProtestPause } from './generated/DSProtestPause' | ||
EnglishCollateralAuctionHouseFactory, | ||
FaucetUser, | ||
FixedDiscountCollateralAuctionHouseFactory, | ||
@@ -142,5 +132,2 @@ FsmGovernanceInterface, | ||
GebDeployPauseProxyActions, | ||
GebPollingEmitter, | ||
GebPollingEvents, | ||
GemBag, | ||
GlobalSettlementFactory, | ||
@@ -160,3 +147,2 @@ GovActions, | ||
ProtocolTokenAuthority, | ||
RestrictedTokenFaucet, | ||
SafeEngineFactory, | ||
@@ -166,7 +152,3 @@ SafeHandler, | ||
SimpleAuthority, | ||
StabilityFeeTreasuryFactory, | ||
Store, | ||
Tester, | ||
TokenFaucet, | ||
TxManager, | ||
DsDelegateRoles, | ||
@@ -173,0 +155,0 @@ DsProtestPause, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2313891
418
36392
+ Added@reflexer-finance/geb-contract-api@0.2.0(transitive)
+ Added@reflexer-finance/geb-contract-base@0.2.0(transitive)
- Removed@reflexer-finance/geb-contract-api@0.1.2(transitive)
- Removed@reflexer-finance/geb-contract-base@0.1.2(transitive)