mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor changes
This commit is contained in:
parent
559ab1f4e1
commit
47475742a2
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpellArbitrum is DSASpell {
|
contract ConnectV2DSASpellArbitrum is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpellAvalanche is DSASpell {
|
contract ConnectV2DSASpellAvalanche is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpellFantom is DSASpell {
|
contract ConnectV2DSASpellFantom is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpell is DSASpell {
|
contract ConnectV2DSASpell is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpellOptimism is DSASpell {
|
contract ConnectV2DSASpellOptimism is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,5 @@ contract Events {
|
||||||
string[] connectors,
|
string[] connectors,
|
||||||
bytes[] datas
|
bytes[] datas
|
||||||
);
|
);
|
||||||
event LogRetrySpell(string[] eventNames, bytes[] eventParams);
|
event LogSpellFactory(string[] eventNames, bytes[] eventParams);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { AccountInterface } from "../../common/interfaces.sol";
|
||||||
import { Stores } from "../../common/stores.sol";
|
import { Stores } from "../../common/stores.sol";
|
||||||
import { Events } from "./events.sol";
|
import { Events } from "./events.sol";
|
||||||
|
|
||||||
abstract contract DSASpell is Events, Stores {
|
abstract contract DSASpellsResolver is Events, Stores {
|
||||||
/**
|
/**
|
||||||
*@dev Cast spells on DSA.
|
*@dev Cast spells on DSA.
|
||||||
*@param targetDSA target DSA to cast spells on.
|
*@param targetDSA target DSA to cast spells on.
|
||||||
|
@ -41,7 +41,7 @@ abstract contract DSASpell is Events, Stores {
|
||||||
*@param connectors Array of connector names.
|
*@param connectors Array of connector names.
|
||||||
*@param datas Array of connector calldatas.
|
*@param datas Array of connector calldatas.
|
||||||
*/
|
*/
|
||||||
function retrySpell(string[] memory connectors, bytes[] memory datas)
|
function spellFactory(string[] memory connectors, bytes[] memory datas)
|
||||||
external
|
external
|
||||||
payable
|
payable
|
||||||
returns (string memory eventName, bytes memory eventParam)
|
returns (string memory eventName, bytes memory eventParam)
|
||||||
|
@ -69,11 +69,11 @@ abstract contract DSASpell is Events, Stores {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
eventName = "LogRetrySpell(string[],bytes[])";
|
eventName = "LogSpellFactory(string[],bytes[])";
|
||||||
eventParam = abi.encode(_eventNames, _eventParams);
|
eventParam = abi.encode(_eventNames, _eventParams);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
contract ConnectV2DSASpellPolygon is DSASpell {
|
contract ConnectV2DSASpellPolygon is DSASpellsResolver {
|
||||||
string public name = "DSA-Spell-v1.0";
|
string public name = "DSA-Spell-v1.0";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user