Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnosis safe intergration #18

Merged
merged 3 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions migrations/1694633909572-AddMultisigSessionEntity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import { MigrationInterface, QueryRunner, Table } from 'typeorm';

export class AddMultisigSessionEntity1694633909572
implements MigrationInterface
{
name = 'AddMultisigSessionEntity1694633909572';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.createTable(
new Table({
name: 'multisig_session',
columns: [
{
name: 'id',
type: 'int',
isPrimary: true,
isGenerated: true,
generationStrategy: 'increment',
},
{
name: 'multisigAddress',
type: 'varchar',
isNullable: true,
},
{
name: 'safeTransactionMessage',
type: 'varchar',
isNullable: false,
},
{
name: 'safeTransactionHash',
type: 'varchar',
},
{
name: 'network',
type: 'int',
},
{
name: 'active',
type: 'boolean',
default: true,
},
{
name: 'expirationDate',
type: 'timestamp',
},
{
name: 'createdAt',
type: 'timestamp',
default: 'CURRENT_TIMESTAMP',
},
{
name: 'updatedAt',
type: 'timestamp',
default: 'CURRENT_TIMESTAMP',
},
],
indices: [
{
columnNames: ['safeTransactionHash', 'network'],
isUnique: true,
},
{
columnNames: ['multisigAddress'],
},
{
columnNames: ['safeTransactionHash'],
},
{
columnNames: ['network'],
},
],
}),
true,
);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropTable('multisig_session');
}
}
Loading
Loading