forked from protofire/safe-client-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
563 changed files
with
22,262 additions
and
13,947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
APPLICATION_VERSION=1.40.0 | ||
APPLICATION_VERSION=1.52.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ lerna-debug.log* | |
data | ||
|
||
# ABIs | ||
/abis | ||
/abis/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
DROP TABLE IF EXISTS groups, | ||
accounts CASCADE; | ||
|
||
CREATE TABLE | ||
groups ( | ||
id SERIAL PRIMARY KEY, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() | ||
); | ||
|
||
CREATE TABLE | ||
accounts ( | ||
id SERIAL PRIMARY KEY, | ||
group_id INTEGER REFERENCES groups (id) ON DELETE SET NULL, | ||
address CHARACTER VARYING(42) NOT NULL, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
UNIQUE (address) | ||
); | ||
|
||
CREATE OR REPLACE FUNCTION update_updated_at_column() | ||
RETURNS TRIGGER AS $$ | ||
BEGIN | ||
NEW.updated_at = NOW(); | ||
RETURN NEW; | ||
END; | ||
$$ LANGUAGE plpgsql; | ||
|
||
CREATE OR REPLACE TRIGGER update_accounts_updated_at | ||
BEFORE UPDATE ON accounts | ||
FOR EACH ROW | ||
EXECUTE FUNCTION update_updated_at_column(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
DROP TABLE IF EXISTS account_data_types CASCADE; | ||
|
||
CREATE TABLE account_data_types ( | ||
id SERIAL PRIMARY KEY, | ||
name VARCHAR(255) NOT NULL, | ||
description TEXT, | ||
is_active BOOLEAN NOT NULL DEFAULT TRUE, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() | ||
); | ||
|
||
CREATE OR REPLACE TRIGGER update_account_data_types_updated_at | ||
BEFORE UPDATE ON account_data_types | ||
FOR EACH ROW | ||
EXECUTE FUNCTION update_updated_at_column(); | ||
|
||
INSERT INTO account_data_types (name, description, is_active) VALUES | ||
('CounterfactualSafes', 'Counterfactual Safes', true), | ||
('AddressBook', 'Address Book', false), | ||
('Watchlist', 'Watchlist', false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
DROP TABLE IF EXISTS account_data_settings CASCADE; | ||
|
||
CREATE TABLE account_data_settings ( | ||
account_id INTEGER NOT NULL, | ||
account_data_type_id INTEGER NOT NULL, | ||
enabled BOOLEAN NOT NULL DEFAULT FALSE, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
PRIMARY KEY (account_id, account_data_type_id), | ||
FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE, | ||
FOREIGN KEY (account_data_type_id) REFERENCES account_data_types(id) ON DELETE CASCADE | ||
); | ||
|
||
CREATE OR REPLACE TRIGGER update_account_data_settings_updated_at | ||
BEFORE UPDATE ON account_data_settings | ||
FOR EACH ROW | ||
EXECUTE FUNCTION update_updated_at_column(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
DROP TABLE IF EXISTS counterfactual_safes CASCADE; | ||
|
||
CREATE TABLE counterfactual_safes ( | ||
id SERIAL PRIMARY KEY, | ||
chain_id VARCHAR(32) NOT NULL, | ||
creator VARCHAR(42) NOT NULL, | ||
fallback_handler VARCHAR(42) NOT NULL, | ||
owners VARCHAR(42)[] NOT NULL, | ||
predicted_address VARCHAR(42) NOT NULL, | ||
salt_nonce VARCHAR(255) NOT NULL, | ||
singleton_address VARCHAR(42) NOT NULL, | ||
threshold INTEGER NOT NULL, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), | ||
account_id INTEGER NOT NULL, | ||
FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE, | ||
CONSTRAINT unique_chain_address UNIQUE (account_id, chain_id, predicted_address) | ||
); | ||
|
||
CREATE OR REPLACE TRIGGER update_counterfactual_safes_updated_at | ||
BEFORE UPDATE ON counterfactual_safes | ||
FOR EACH ROW | ||
EXECUTE FUNCTION update_updated_at_column(); |
Oops, something went wrong.