Skip to content

Commit 60d54e3

Browse files
authored
pkg/bindings/mcms bindings + e2e integration test (#103)
* Init timelock pkg Go bindings * Add timelock outgoing msgs (Go bindings) * Add pkg/bindings/lib/access/rbac * Add pkg/bindings/mcms/mcms * Add mcms Go bindings error constants and proxy data * Add wrappers/mcms/RBACTimelock.ts error codes * Use common.SnakeData for MCMS Go bindings * Fix ac.Errors import * Polish timelock bindings, remove old duplicated tests * Add cell.Dictionary usage to mcms Go bindings
1 parent b17ab70 commit 60d54e3

File tree

29 files changed

+881
-593
lines changed

29 files changed

+881
-593
lines changed

contracts/contracts/lib/access/access_control.tolk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ struct AccessControl<T> {
178178
hooks: AccessControl_Hooks<T>?;
179179
}
180180

181-
/// AccessControl data struct, auto-serialized to/from cells.
181+
/// AccessControl data struct, auto-serialized to/from cell.
182182
struct AccessControl_Data {
183183
roles: dict; // map<int, AccessControl_RoleData>
184184
}

contracts/contracts/mcms/call_proxy.tolk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tolk 1.0
22

33
// --- Storage ---
44

5-
/// CallProxy contract storage, auto-serialized to/from cells.
5+
/// CallProxy contract storage, auto-serialized to/from cell.
66
struct CallProxy_Data {
77
/// ID allows multiple independent instances, since contract address depends on initial state.
88
id: uint32;

contracts/contracts/mcms/mcms.tolk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct MCMS<T> {
191191
hooks: MCMS_Hooks<T>? = null;
192192
}
193193

194-
/// MCMS contract storage, auto-serialized to/from cells.
194+
/// MCMS contract storage, auto-serialized to/from cell.
195195
struct MCMS_Data {
196196
/// ID allows multiple independent instances, since contract address depends on initial state.
197197
id: uint32;

contracts/contracts/mcms/rbac_timelock.tolk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ struct Timelock<T> {
319319
hooks: Timelock_Hooks<T>? = null;
320320
}
321321

322-
/// RBACTimelock contract storage, auto-serialized to/from cells.
322+
/// RBACTimelock contract storage, auto-serialized to/from cell.
323323
struct Timelock_Data {
324324
/// ID allows multiple independent instances, since contract address depends on initial state.
325325
id: uint32;

contracts/tests/mcms/BaseTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface TestContracts {
4141
}
4242

4343
export class BaseTestSetup {
44-
static readonly MIN_DELAY = 24 * 60 * 60 * 7
44+
static readonly MIN_DELAY = 24n * 60n * 60n * 7n
4545
static readonly DONE_TIMESTAMP = 1
4646
static readonly NO_PREDECESSOR = 0n
4747
static readonly EMPTY_SALT = 0n

contracts/tests/mcms/Integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('MCMS - IntegrationTest', () => {
5757
const VETO_COUNT = 22 + 7
5858
const VETO_QUORUM = (VETO_COUNT - 1) / 3 + 1
5959

60-
const MIN_DELAY = 24 * 60 * 60
60+
const MIN_DELAY = 24n * 60n * 60n
6161

6262
const signerAddresses: Address[] = []
6363
const signerPrivateKeys: bigint[] = []

0 commit comments

Comments
 (0)