Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
47 changes: 35 additions & 12 deletions packages/core-cairo/src/account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function testAPIEquivalence(title: string, opts?: AccountOptions) {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
...opts,
})));
});
Expand All @@ -55,6 +56,7 @@ testAccount('explicit full account, mixin + upgradeable', {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
upgradeable: true
});

Expand All @@ -64,47 +66,56 @@ testAccount('explicit full account, mixin + non-upgradeable', {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
upgradeable: false
});

testAccount('basic account, upgradeable', {
declare: false,
deploy: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testAccount('basic account, non-upgradeable', {
declare: false,
deploy: false,
pubkey: false,
outsideExecution: false,
upgradeable: false
});

testAccount('account declarer', {
deploy: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testAccount('account deployable', {
declare: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testAccount('account public key', {
declare: false,
deploy: false,
outsideExecution: false,
});

testAccount('account declarer, deployable', {
pubkey: false
pubkey: false,
outsideExecution: false,
});

testAccount('account declarer, public key', {
deploy: false
deploy: false,
outsideExecution: false,
});

testAccount('account deployable, public key', {
declare: false
declare: false,
outsideExecution: false,
});

testEthAccount('default full ethAccount, mixin + upgradeable', {});
Expand All @@ -119,6 +130,7 @@ testEthAccount('explicit full ethAccount, mixin + upgradeable', {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
upgradeable: true
});

Expand All @@ -128,47 +140,56 @@ testEthAccount('explicit full ethAccount, mixin + non-upgradeable', {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
upgradeable: false
});

testEthAccount('basic ethAccount, upgradeable', {
declare: false,
deploy: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testEthAccount('basic ethAccount, non-upgradeable', {
declare: false,
deploy: false,
pubkey: false,
outsideExecution: false,
upgradeable: false
});

testEthAccount('ethAccount declarer', {
deploy: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testEthAccount('ethAccount deployable', {
declare: false,
pubkey: false
pubkey: false,
outsideExecution: false,
});

testEthAccount('ethAccount public key', {
declare: false,
deploy: false,
outsideExecution: false,
});

testEthAccount('ethAccount declarer, deployable', {
pubkey: false
pubkey: false,
outsideExecution: false,
});

testEthAccount('ethAccount declarer, public key', {
deploy: false
deploy: false,
outsideExecution: false,
});

testEthAccount('ethAccount deployable, public key', {
declare: false
declare: false,
outsideExecution: false,
});

testAPIEquivalence('account API default');
Expand All @@ -179,6 +200,7 @@ testAPIEquivalence('account API basic', {
declare: false,
deploy: false,
pubkey: false,
outsideExecution: false,
upgradeable: false,
});

Expand All @@ -188,6 +210,7 @@ testAPIEquivalence('account API full upgradeable', {
declare: true,
deploy: true,
pubkey: true,
outsideExecution: true,
upgradeable: true,
});

Expand Down
Loading
Loading